/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Navigation ─────────────────────────────────── */
.nav { transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-logo { display: flex; align-items: center; }
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #0d9488; }

/* Mobile menu */
#mobileMenu.open { opacity: 1; pointer-events: auto; translate: none; }

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #0d9488;
    color: #fff;
    padding: 0.8125rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { background: #0f766e; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,148,136,0.25); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #1e293b;
    padding: 0.8125rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: #0d9488; color: #0d9488; background: #f0fdfa; }

/* ── Hero ───────────────────────────────────────── */
.hero-pattern {
    background-image: radial-gradient(circle, #0d9488 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease both;
}
.hero-title {
    animation: fadeUp 0.8s 0.1s ease both;
}
.hero-subtitle {
    animation: fadeUp 0.8s 0.2s ease both;
}
.hero-cta {
    animation: fadeUp 0.8s 0.3s ease both;
}

.floating-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.4s ease both;
}

.float-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    min-width: 170px;
    flex: 1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.float-card-number {
    display: block;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    color: #0d9488;
    line-height: 1;
    margin-bottom: 0.375rem;
}
.float-card-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Section shared ─────────────────────────────── */
.section-eyebrow {
    animation: fadeUp 0.6s ease both;
}
.section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #0f172a;
    line-height: 1.15;
    font-weight: 400;
}
.section-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    font-weight: 300;
    line-height: 1.7;
    max-width: 520px;
}

/* ── Services ───────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    border-color: #ccfbf1;
}
.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: #f0fdfa;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}
.service-card:hover .service-icon-wrap { background: #ccfbf1; }
.service-icon {
    width: 28px;
    height: 28px;
    color: #0d9488;
}
.service-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    color: #0f172a;
    margin-bottom: 0.625rem;
    font-weight: 400;
}
.service-desc {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 300;
    line-height: 1.7;
}

/* ── About ──────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}
.about-image-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 60%;
    height: 40%;
    background: #0d9488;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.12;
}
.about-text {
    font-size: 1rem;
    color: #475569;
    font-weight: 300;
    line-height: 1.8;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #334155;
    font-weight: 400;
}
.about-feature-icon {
    width: 20px;
    height: 20px;
    color: #0d9488;
    flex-shrink: 0;
}

/* ── Gallery ────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 5/4;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ── Contact ────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
}
.contact-detail {
    display: flex;
    gap: 1rem;
}
.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: #f0fdfa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
}
.contact-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.contact-detail-value {
    font-size: 0.9375rem;
    color: #334155;
    font-weight: 400;
    line-height: 1.6;
}

/* Form */
.contact-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.form-input:focus {
    border-color: #0d9488;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-input::placeholder { color: #94a3b8; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}
.form-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: #0d9488;
}
.form-success-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.form-success-text {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 300;
    line-height: 1.7;
}
.hidden { display: none !important; }

/* ── Footer ─────────────────────────────────────── */
.footer { padding: 4rem 0 0; }
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.footer-tagline { max-width: 240px; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 300;
    transition: color 0.2s ease;
}
.footer-link:hover { color: #2dd4bf; }
.footer-contact { display: flex; flex-direction: column; }
.footer-phone {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s ease;
}
.footer-phone:hover { color: #2dd4bf; }
.footer-address { line-height: 1.6; }
.footer-bottom {
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: #475569;
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1023px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .floating-cards { flex-direction: column; }
    .float-card { min-width: unset; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: clamp(2.25rem, 8vw, 3.5rem); }
}
