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

:root {
    --green-900: #0B2B1A;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --cream-mid: #E8E4DD;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --white: #FFFFFF;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--green-900);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mark {
    font-family: var(--font-display), serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.15em;
    animation: loaderPulse 1s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--cream-mid);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s;
}

.nav.scrolled .nav-logo {
    color: var(--green-800);
}

.nav-logo-mark {
    font-family: var(--font-display), serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--green-500);
}

.nav-logo-text {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.nav.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-500);
    transition: width 0.3s var(--ease-out);
}

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

.nav-link:hover,
.nav-link:focus {
    color: var(--white);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link:focus {
    color: var(--green-700);
}

.nav-link--cta {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    transition: all 0.3s;
}

.nav.scrolled .nav-link--cta {
    border-color: var(--green-700);
    color: var(--green-700);
}

.nav-link--cta:hover {
    background: var(--green-500);
    border-color: var(--green-500);
    color: var(--white) !important;
}

.nav.scrolled .nav-link--cta:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
    background: var(--green-800);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #0B2B1A 0%,
        #1B4332 25%,
        #2D6A4F 50%,
        #1B4332 75%,
        #0B2B1A 100%
    );
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 600px 600px at 20% 80%, rgba(82, 183, 136, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 20%, rgba(45, 106, 79, 0.15) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-500);
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-headline {
    font-family: var(--font-display), serif;
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-headline em {
    font-style: italic;
    color: var(--green-500);
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    max-width: 540px;
    margin: 0 auto 2.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn--primary {
    background: var(--green-500);
    color: var(--white);
    border-radius: 2px;
}

.btn--primary:hover {
    background: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(82, 183, 136, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn--full {
    width: 100%;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.5s forwards;
}

.hero-scroll span {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Section styles */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display), serif;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Services */
.services {
    padding: 7rem 0;
    background: var(--cream);
}

.section-header {
    margin-bottom: 4rem;
}

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

.service-card {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--cream-mid);
    border-radius: 4px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    border-color: var(--green-500);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    margin-bottom: 1.5rem;
}

.service-title {
    font-family: var(--font-display), serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-muted);
}

/* About */
.about {
    padding: 7rem 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.about-image-accent {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 100%;
    height: 100%;
    border: 1px solid var(--green-500);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.4;
}

.about-content {
    padding: 1rem 0;
}

.about-text {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about-values {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-value-line {
    width: 24px;
    height: 1px;
    background: var(--green-500);
    flex-shrink: 0;
}

.about-value span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Areas */
.areas {
    padding: 7rem 0;
    background: var(--white);
}

.areas .section-header {
    text-align: center;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.area-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.area-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.area-card:hover img {
    transform: scale(1.05);
}

.area-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 43, 26, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    transition: background 0.3s;
}

.area-card:hover .area-card-overlay {
    background: linear-gradient(to top, rgba(11, 43, 26, 0.9) 0%, rgba(11, 43, 26, 0.2) 60%);
}

.area-name {
    font-family: var(--font-display), serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.area-detail {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
}

/* Contact */
.contact {
    padding: 7rem 0;
    background: var(--green-800);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact .section-eyebrow {
    color: var(--green-500);
}

.contact .section-title {
    color: var(--white);
}

.contact-intro {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--green-500);
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--green-500);
}

/* Form */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: var(--green-500);
}

.form-textarea {
    line-height: 1.75;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

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

.form-success-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--green-500);
    border-radius: 50%;
    color: var(--green-500);
}

.form-success p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--green-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-display), serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--green-500);
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.footer-info p,
.footer-info a {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--green-500);
}

.footer-bottom p {
    font-size: 0.6875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrap {
        max-width: 500px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(11, 43, 26, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .nav-link--cta {
        border-color: rgba(255, 255, 255, 0.3) !important;
        color: var(--white) !important;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

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

    .area-card img {
        height: 220px;
    }

    .about-image-accent {
        top: -1rem;
        right: -1rem;
    }

    .contact-form-wrap {
        padding: 1.75rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .services,
    .about,
    .areas,
    .contact {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-scroll {
        bottom: 1.5rem;
    }

    .service-card {
        padding: 1.75rem;
    }
}
