/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Custom Properties ── */
:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-850: #054a35;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ef;
    --cream-200: #faf0d7;
}

/* ── Navigation ── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-scrolled {
    background-color: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06), 0 4px 24px rgba(6, 78, 59, 0.06);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1.75rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6, 78, 59, 0.35);
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-850) 100%);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--emerald-850);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1.75rem;
    border-radius: 14px;
    border: 2px solid rgba(6, 78, 59, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: var(--emerald-700);
    background: var(--emerald-50);
    color: var(--emerald-900);
}

/* ── Section Labels & Titles ── */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    padding: 0.4rem 1rem;
    border-radius: 100px;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--emerald-950);
    line-height: 1.15;
}

.section-desc {
    font-size: 1.05rem;
    color: rgba(6, 78, 59, 0.6);
    line-height: 1.7;
}

/* Light variants for dark sections */
.section-label-light {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.12);
    border: 1px solid rgba(110, 231, 183, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
}

.section-title-light {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
}

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(160deg, var(--cream-50) 0%, var(--cream-100) 50%, #e8f5e9 100%);
    position: relative;
}

.hero-deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.06);
    pointer-events: none;
}

.hero-deco-circle:nth-child(2) { width: 600px; height: 600px; }
.hero-deco-circle:nth-child(3) { width: 400px; height: 400px; }

.hero-deco-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(6, 78, 59, 0.12) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
}

/* Floating animation for stat cards */
.floating-card {
    animation: float 5s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: -1.5s; animation-duration: 5.5s; }
.floating-card:nth-child(3) { animation-delay: -3s; animation-duration: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-float-slow { animation: floatSlow 12s ease-in-out infinite; }
.hero-float-medium { animation: floatMedium 8s ease-in-out infinite; }

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.02); }
}

@keyframes floatMedium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, 15px) scale(1.01); }
}

/* Scroll indicator */
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(6, 78, 59, 0.3), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--emerald-600);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* ── Service Cards ── */
.service-card {
    background: var(--cream-50);
    border: 1px solid rgba(6, 78, 59, 0.06);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-500), var(--emerald-700));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(6, 78, 59, 0.1);
    border-color: rgba(6, 78, 59, 0.12);
    background: #fff;
}

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

/* ── Why Us Cards ── */
.why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img { transform: scale(1.08); }

/* ── Contact Form ── */
.input-field {
    background: var(--cream-50);
    border: 1.5px solid rgba(6, 78, 59, 0.12);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    color: var(--emerald-950);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder { color: rgba(6, 78, 59, 0.3); }

.input-field:focus {
    border-color: var(--emerald-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: rgba(6, 78, 59, 0.25);
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Menu ── */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    text-decoration: none;
    color: var(--emerald-900);
}

.mobile-menu-link:last-child { border-bottom: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .floating-card { display: none; }
    
    .hero-section { padding-top: 100px; }
    
    .section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    
    .service-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .nav-fixed { height: 64px; }
    
    .btn-primary, .btn-ghost {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}
