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

: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;
    --teal-950: #042f2e;

    --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;
    --slate-950: #020617;

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

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

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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;
}

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--teal-700);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 100;
    font-weight: 600;
}
.skip-link:focus { top: var(--space-md); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

em {
    font-style: italic;
    color: var(--teal-700);
}

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

.section-title {
    margin-bottom: var(--space-2xl);
    max-width: 700px;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    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(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--teal-700);
    border-color: var(--teal-700);
}
.btn-outline:hover {
    background: var(--teal-700);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--teal-800);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--slate-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Header ───────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

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

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

.logo-mark {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--teal-700);
    background: var(--teal-50);
    border: 1.5px solid var(--teal-200);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--slate-900);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-600);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color 0.2s;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-600);
    transition: width 0.25s ease;
}
.nav-menu a:hover { color: var(--teal-700); }
.nav-menu a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--slate-900);
    position: relative;
    overflow: hidden;
}

.hero .container {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    position: relative;
    z-index: 2;
}

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

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    color: #fff;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}
.hero-headline em { color: var(--teal-300); }

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

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

.hero-image-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.hero-image.main-img {
    width: 100%;
    max-width: 520px;
}
.hero-image.main-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-image.accent-img {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 55%;
    border: 4px solid var(--slate-900);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.hero-image.accent-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-badge {
    margin-top: var(--space-xl);
    align-self: flex-start;
}

.badge-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-400);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
}

.hero-slash {
    position: absolute;
    top: 72px;
    right: 15%;
    width: 1px;
    height: calc(100vh - 72px);
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

/* Decorative pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13, 148, 136, 0.15), transparent),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(20, 184, 166, 0.08), transparent);
    pointer-events: none;
}

/* ── Services ─────────────────────────────────────── */
.services {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
}
.service-card:hover {
    border-color: var(--teal-200);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.1);
}

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

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ── About ────────────────────────────────────────── */
.about {
    padding: var(--space-4xl) 0;
    background: #fff;
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.about-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    bottom: -30px;
    left: -20px;
    background: var(--teal-700);
    color: #fff;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.3);
}
.about-stat .stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}
.about-stat .stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--teal-200);
    letter-spacing: 0.05em;
}

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

.about-content .section-title {
    margin-bottom: var(--space-xl);
}

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

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-700);
}
.feature-item svg { color: var(--teal-600); flex-shrink: 0; }

/* ── Gallery ──────────────────────────────────────── */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item--wide {
    grid-column: span 2;
}
.gallery-item--wide img { height: 300px; }

.gallery-item:not(.gallery-item--wide) img { height: 240px; }

/* ── CTA Banner ───────────────────────────────────── */
.cta-banner {
    padding: var(--space-4xl) 0;
    background: var(--slate-900);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(13, 148, 136, 0.2), transparent);
    pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 2; text-align: center; }

.cta-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: var(--space-md);
}

.cta-title {
    color: #fff;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-title em { color: var(--teal-300); }

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Contact ──────────────────────────────────────── */
.contact {
    padding: var(--space-4xl) 0;
    background: #fff;
}

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

.contact-body {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 440px;
}

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

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

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

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

.contact-item span,
.contact-item a {
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.6;
}
.contact-item a:hover { color: var(--teal-700); }

/* Form */
.contact-form {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--slate-800);
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-md);
    color: var(--teal-800);
    font-size: 0.9375rem;
    font-weight: 500;
}
.form-success svg { color: var(--teal-600); flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.footer-brand .logo-mark { display: inline-block; width: fit-content; }
.footer-brand .logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; color: #fff; }
.footer-brand p { font-size: 0.9375rem; line-height: 1.7; max-width: 280px; }

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

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.footer-links a {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal-400); }

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}
.footer-contact a { color: var(--teal-400); transition: color 0.2s; }
.footer-contact a:hover { color: var(--teal-300); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-xl);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

/* ── 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-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .hero-image-col { align-items: flex-start; }
    .hero-image.accent-img { right: 0; }
    .hero-slash { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
    .about-image-col { max-width: 500px; }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid transparent;
        transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
    }
    .nav-menu.open {
        max-height: 300px;
        padding: var(--space-lg) 0;
        border-bottom-color: var(--slate-200);
    }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu a {
        display: block;
        padding: var(--space-md) var(--space-xl);
        font-size: 1.0625rem;
    }
    .nav-menu a::after { display: none; }

    .hero { min-height: auto; padding-bottom: var(--space-3xl); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .hero-image.main-img img { height: 360px; }
    .hero-image.accent-img { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--wide { grid-column: span 1; }
    .gallery-item--wide img { height: 240px; }
    .gallery-item img { height: 220px; }

    .about-image img { height: 360px; }
    .about-stat { position: static; margin-top: var(--space-md); display: inline-block; }
    .about-features { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .footer-bottom { text-align: left; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .hero-headline { font-size: 2rem; }
    .service-card { padding: var(--space-xl); }
    .contact-form { padding: var(--space-lg); }
}
