/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background-color: #0d1f15;
    color: #f5f5f0;
}

::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #f5f5f0;
}

/* ===== Custom Properties ===== */
:root {
    --forest-900: #0d1f15;
    --forest-800: #132b1c;
    --forest-700: #1a3a2a;
    --gold-500: #c9a84c;
    --gold-400: #d4b96a;
    --off-white: #f5f5f0;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

p, span, a, button, input, textarea, label {
    font-family: 'Montserrat', system-ui, sans-serif;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 31, 21, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #d4b96a;
}

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

#mobile-menu .mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
}

.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

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

/* ===== Hero ===== */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-desc {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

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

.hero-image-wrapper {
    animation: fadeRight 1s ease 0.3s forwards;
    opacity: 0;
}

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

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Buttons ===== */
.cta-primary {
    display: inline-flex;
    align-items: center;
    background: #c9a84c;
    color: #0d1f15;
    padding: 14px 32px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    background: #d4b96a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #f5f5f0;
    padding: 14px 32px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(245, 245, 240, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #c9a84c;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: #f5f5f0;
}

.section-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #9ca3af;
    font-weight: 300;
}

/* ===== Service Cards ===== */
.service-card {
    padding: 2rem;
    border: 1px solid rgba(201, 168, 76, 0.08);
    background: rgba(19, 43, 28, 0.4);
    border-radius: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(19, 43, 28, 0.7);
    transform: translateY(-4px);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.08);
}

.service-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #f5f5f0;
}

.service-desc {
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ===== About Image Grid ===== */
.about-image-grid {
    position: relative;
}

/* ===== Insurance Badges ===== */
.insurance-badge {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 12px 24px;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.insurance-badge:hover {
    color: #c9a84c;
    border-color: rgba(201, 168, 76, 0.3);
}

/* ===== Form ===== */
input:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: #4b5563;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 24px;
        font-size: 0.7rem;
    }

    .about-image-grid {
        margin-bottom: 2rem;
    }

    .hero-image-wrapper {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.2rem;
    }

    #navbar .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Focus visible for accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
