/* ===================================
   CSS Custom Properties
   =================================== */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50: #fefdf8;
    --cream-100: #fdf9ef;
    --cream-200: #faf3e0;
    --cream-300: #f5e8c8;
    --cream-400: #eddb9a;
    --cream-500: #e0c070;

    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--stone-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===================================
   Utility
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--stone-900);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: var(--space-md);
}

.section-headline {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--stone-900);
    margin-bottom: var(--space-xl);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--emerald-700);
    color: #ffffff;
    border: 2px solid var(--emerald-700);
}

.btn-primary:hover {
    background-color: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--emerald-700);
    border: 2px solid var(--emerald-700);
}

.btn-secondary:hover {
    background-color: var(--emerald-50);
    transform: translateY(-1px);
}

.btn-white {
    background-color: #ffffff;
    color: var(--emerald-800);
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background-color: var(--cream-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}

/* ===================================
   Navbar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--emerald-700);
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--stone-900);
}

.logo-accent {
    color: var(--emerald-700);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-600);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--emerald-700);
}

.nav-cta {
    background-color: var(--emerald-700);
    color: #ffffff !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease !important;
}

.nav-cta:hover {
    background-color: var(--emerald-800);
    color: #ffffff !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--stone-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero
   =================================== */
.hero {
    padding-top: calc(72px + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    background-color: var(--cream-50);
}

.hero-container {
    margin-bottom: var(--space-3xl);
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background-color: var(--emerald-100);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: var(--space-xl);
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--stone-900);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--emerald-700);
    font-style: italic;
}

.hero-subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--stone-600);
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Stats */
.hero-stats {
    background-color: var(--emerald-800);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.25s ease;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--emerald-200);
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

/* ===================================
   Services
   =================================== */
.services {
    padding: var(--space-5xl) 0;
    background-color: var(--cream-100);
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    border: 1px solid var(--stone-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-200);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-50);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    margin-bottom: var(--space-lg);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stone-600);
}

/* ===================================
   About
   =================================== */
.about {
    padding: var(--space-5xl) 0;
    background-color: var(--cream-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-accent-box {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background-color: var(--emerald-700);
    color: #ffffff;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.accent-box-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-200);
    margin-bottom: var(--space-xs);
}

.accent-box-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.about-content {
    padding-top: var(--space-xl);
}

.about-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: var(--space-lg);
}

.about-signature {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--stone-200);
}

.signature-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--emerald-700);
    margin-bottom: var(--space-xs);
}

.signature-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-500);
}

/* ===================================
   Approach
   =================================== */
.approach {
    padding: var(--space-5xl) 0;
    background-color: var(--emerald-800);
}

.approach-header {
    text-align: center;
}

.approach-header .section-eyebrow {
    color: var(--emerald-300);
}

.approach-header .section-headline {
    color: #ffffff;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.approach-step {
    padding: var(--space-2xl);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: background-color 0.25s ease;
}

.approach-step:hover {
    background-color: rgba(255, 255, 255, 0.09);
}

.step-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: var(--emerald-400);
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.step-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: var(--space-5xl) 0;
    background-color: var(--cream-100);
}

.cta-card {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: var(--emerald-700);
}

.cta-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.cta-subheadline {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--stone-600);
    margin-bottom: var(--space-2xl);
}

/* ===================================
   Contact
   =================================== */
.contact {
    padding: var(--space-5xl) 0;
    background-color: var(--cream-50);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--stone-600);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-50);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--stone-800);
}

.contact-value:hover {
    color: var(--emerald-700);
}

/* Form */
.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius-sm);
    background-color: var(--cream-50);
    color: var(--stone-800);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background-color: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-800);
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
    color: var(--emerald-600);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--stone-900);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.footer-brand .logo-text {
    color: #ffffff;
    font-size: 1.125rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-lg);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a,
.footer-col li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xl);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ===================================
   Scroll Reveal (progressive enhancement)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-card {
        gap: var(--space-2xl);
    }

    .hero-img {
        height: 480px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        gap: var(--space-2xl);
    }

    .about-image {
        height: 500px;
    }

    .about-accent-box {
        right: -12px;
        bottom: -16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-2xl);
        gap: var(--space-lg);
        border-bottom: 1px solid var(--stone-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(72px + var(--space-2xl));
        padding-bottom: var(--space-2xl);
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-img {
        height: 320px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .hero-stats {
        padding: var(--space-xl) var(--space-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-card {
        padding: var(--space-md);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .services {
        padding: var(--space-4xl) 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: var(--space-4xl) 0;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 400px;
    }

    .about-accent-box {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: var(--space-lg);
        display: inline-block;
    }

    .approach {
        padding: var(--space-4xl) 0;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: var(--space-4xl) 0;
    }

    .contact {
        padding: var(--space-4xl) 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
