/* ── Base & Reset ── */
*, *::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;
}

::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #0f766e;
}

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

/* ── Section Label ── */
.section-label {
    letter-spacing: 0.25em;
}

/* ── Navigation ── */
#site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.3s ease;
}

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

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

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-headline {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-sub {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-cta {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-stats {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-image-wrapper {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-image-accent {
    animation: expandAccent 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-floating-card {
    animation: floatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expandAccent {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ── Scroll Reveal (below the fold only) ── */
.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-grid > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

    .reveal-up {
        opacity: 0;
        transform: translateY(28px);
    }

    .reveal-grid .reveal-item {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ── Offer Cards ── */
.offer-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Craft Items ── */
.craft-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .craft-item {
        opacity: 0;
        transform: translateX(-16px);
    }

    .craft-item.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Button Focus ── */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Utility ── */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem !important;
    }

    .hero-image {
        height: 400px !important;
    }

    .hero-floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
        max-width: 100%;
    }
}
