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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── NAV ─────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}

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

.logo {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--slate-600);
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--slate-700);
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-700);
    color: #fff;
    border-color: var(--teal-700);
}

.btn-primary:hover {
    background: var(--teal-800);
    border-color: var(--teal-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--teal-700);
    border-color: var(--teal-700);
}

.btn-outline:hover {
    background: var(--teal-700);
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8125rem;
}

.btn-full {
    width: 100%;
}

/* ─── HERO ────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--teal-800) 0%,
        var(--teal-700) 25%,
        var(--slate-700) 60%,
        var(--slate-800) 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(20, 184, 166, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(15, 65, 115, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 64px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-200);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-300);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── SECTIONS ────────────────────────────── */
section {
    padding: 120px 0;
}

.label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-title--center {
    text-align: center;
}

.body-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--slate-600);
    max-width: 520px;
}

/* ─── ABOUT ───────────────────────────────── */
.about {
    background: #fff;
}

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

.about-text .body-text {
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--slate-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--slate-900);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--slate-400);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-image img {
    border-radius: 2px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── SERVICES ────────────────────────────── */
.services {
    background: var(--slate-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 64px;
}

.service-card {
    background: #fff;
    padding: 40px 32px;
    transition: all 0.3s var(--ease-out);
}

.service-card:hover {
    background: var(--teal-50);
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--teal-600);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate-500);
}

/* ─── ENVIRONMENT ─────────────────────────── */
.environment {
    background: #fff;
    padding: 0 0 120px;
}

.env-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.env-image img {
    border-radius: 2px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.env-content .body-text {
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-700);
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
}

/* ─── CONTACT ─────────────────────────────── */
.contact {
    background: var(--slate-900);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact .section-title {
    color: #fff;
}

.contact .body-text {
    color: var(--slate-400);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--slate-300);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.6;
    transition: color 0.2s;
}

.contact-item:hover {
    color: var(--teal-300);
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--teal-500);
}

/* ─── FORM ────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-400);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--slate-700);
    border-radius: 8px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    background: rgba(255, 255, 255, 0.08);
}

.form-success {
    display: none;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--teal-300);
    text-align: center;
    padding: 16px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
}

.form-success.visible {
    display: block;
}

/* ─── FOOTER ──────────────────────────────── */
.footer {
    background: var(--slate-900);
    border-top: 1px solid var(--slate-800);
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer .logo {
    color: #fff;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer div a {
    display: block;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--slate-400);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer div a:hover {
    color: var(--teal-400);
}

.footer div span {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--slate-500);
    line-height: 1.7;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--slate-800);
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--slate-600);
}

/* ─── SCROLL REVEAL ───────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(248, 250, 252, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.4s var(--ease-out), opacity 0.3s;
        pointer-events: none;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active span:last-child {
        opacity: 0;
    }

    .about-grid,
    .env-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    section {
        padding: 80px 0;
    }
}

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-links a.btn {
        width: 100%;
        text-align: center;
    }
}
