/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background: #C75A3A;
    color: #fff;
}

/* Navbar */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-logo-text {
    color: #fff;
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu a {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#mobile-menu.open a {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }

/* Menu Button */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Hero Animations */
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-headline {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-sub {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Animations */
.section-eyebrow,
.section-headline {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-eyebrow.visible,
.section-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards */
.service-card {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.service-card:hover {
    background-color: #111111;
    color: #fff;
}

.service-card:hover .text-warmgray {
    color: rgba(255, 255, 255, 0.6);
}

.service-card:hover h3 {
    color: #fff;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Form Styles */
input::placeholder,
textarea::placeholder {
    color: #999;
}

input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #C75A3A !important;
}

select option {
    background: #fff;
    color: #1C1C1C;
}

/* Image hover effects */
.service-card img,
#about img {
    transition: transform 0.6s ease;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1C1C1C;
}

::-webkit-scrollbar-thumb {
    background: #C75A3A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A84729;
}
