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

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

::selection {
    background-color: rgba(13, 148, 136, 0.25);
    color: #042f2e;
}

/* ── Section Labels ── */
.section-label {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #0d9488;
    font-weight: 500;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1e293b;
    font-weight: 400;
    line-height: 1.15;
}

.body-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #475569;
    font-weight: 400;
}

/* ── Buttons ── */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ── Hero Animations ── */
.hero-subtitle {
    animation: fadeUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-tagline {
    animation: fadeUp 1s ease 0.7s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 1s ease 0.9s forwards;
    opacity: 0;
}

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* ── Navbar Transition ── */
#navbar.scrolled {
    background: rgba(4, 47, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

#navbar.scrolled #nav-logo {
    color: #ccfbf1;
}

#navbar.scrolled .nav-link {
    color: rgba(204, 251, 241, 0.8);
}

#navbar.scrolled .nav-link:hover {
    color: #ccfbf1;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ── Menu List Items ── */
#menu ul li {
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 0;
}

#menu ul li:first-child {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 0;
}

#menu ul li:last-child {
    border-bottom: none;
}

/* ── Form Styles ── */
#contact-form select option {
    background: #042f2e;
    color: #ccfbf1;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ── Focus Visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* ── Print ── */
@media print {
    #navbar, #mobile-menu, .scroll-indicator {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
