/* ── 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: #A8D5D0;
    color: #0B1D3A;
}

/* ── Hero Grid ── */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 0;
    }
}

.hero-image-col {
    position: relative;
    min-height: 500px;
}

@media (min-width: 1024px) {
    .hero-image-col {
        min-height: auto;
    }
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        height: 100%;
        min-height: auto;
        border-radius: 24px;
        overflow: hidden;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Hero Animations (above the fold — always visible) ── */
.hero-label {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-headline {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-ctas {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stats {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-float-card {
    animation: floatCard 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
    opacity: 0;
}

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

/* ── Scroll indicator ── */
.scroll-line {
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* ── Navbar ── */
#site-header {
    background: transparent;
}

#site-header.scrolled {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(11, 29, 58, 0.06);
}

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

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

.mobile-link {
    position: relative;
}

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

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

/* ── Scroll Reveal (below fold only — progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ── Gallery hover ── */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Divider accent ── */
.divider-mint {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #A8D5D0, transparent);
}

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

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

::-webkit-scrollbar-thumb {
    background: #0B1D3A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #132D52;
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #A8D5D0;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
