*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8f8f9; }
::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8b3; }

/* Button pill */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff5722;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav link */
.mobile-nav-link {
    text-decoration: none;
    transition: color 0.3s ease;
}
.mobile-nav-link:hover {
    color: #ff5722;
}

/* Header scrolled state */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Service card */
.service-card {
    transition: all 0.3s ease;
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.3s ease;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-up {
    animation: fade-up 0.7s ease forwards;
    opacity: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(-6px) rotate(-1deg); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Header height */
#site-header {
    height: 72px;
}

/* Mobile menu */
#mobile-menu {
    pointer-events: none;
}
#mobile-menu.is-open {
    pointer-events: auto;
}

/* Focus styles */
input:focus, textarea:focus, button:focus, a:focus {
    outline: none;
}

/* Selection */
::selection {
    background: #ffd3c4;
    color: #7f2310;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}
