/* ============================================
   Real 28 — Custom Styles
   Classic & Elegant | Emerald + Cream
   ============================================ */

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #064e3b;
    color: #fef3c7;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 100;
    font-size: 0.875rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* ---- Navigation ---- */
.nav {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
    background: rgba(2, 44, 34, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(254, 243, 207, 0.08);
}

.nav.scrolled .font-serif.text-cream-100,
.nav.scrolled .font-serif.text-cream-50 {
    color: #fef3c7;
}

.nav-link {
    position: relative;
}

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

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

/* ---- Mobile Menu ---- */
.mobile-menu-btn {
    position: relative;
    z-index: 60;
}

.menu-line {
    display: block;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    position: relative;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    background: #022c22;
}

.hero-bg {
    will-change: transform;
}

.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-img {
    transform: scale(1.0);
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(2, 44, 34, 0.55) 0%,
        rgba(2, 44, 34, 0.45) 40%,
        rgba(2, 44, 34, 0.70) 100%
    );
}

/* ---- Buttons ---- */
.btn-primary {
    background: #fef3c7;
    color: #064e3b;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #fde68a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: transparent;
    color: #fef3c7;
    border: 1px solid rgba(254, 243, 207, 0.4);
    border-radius: 9999px;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(254, 243, 207, 0.1);
    border-color: rgba(254, 243, 207, 0.7);
    transform: translateY(-2px);
}

/* ---- Section Headers ---- */
.section-eyebrow {
    /* opacity handled by JS reveal */
}

.section-title {
    /* opacity handled by JS reveal */
}

.section-desc {
    /* opacity handled by JS reveal */
}

/* ---- Divider ---- */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #047857, transparent);
    max-width: 120px;
}

/* ---- Product Cards ---- */
.product-card {
    cursor: default;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* ---- Story Section ---- */
.story-img-wrap {
    /* opacity handled by JS reveal */
}

.story-content > * {
    /* opacity handled by JS reveal */
}

/* ---- Reveal Animations ---- */
.reveal {
    /* Default: visible — progressive enhancement */
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-img {
        transform: none;
        transition: none;
    }
}

/* ---- CTA Pattern ---- */
.cta-pattern {
    color: #fef3c7;
}

/* ---- Map ---- */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

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

    .hero-headline br {
        display: none;
    }

    .hero-headline::after {
        content: 'feels like';
        display: block;
        font-size: 0.7em;
        margin-top: 0.25em;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .story-img-wrap {
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5rem;
    }
}

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

a:focus-visible:not(.btn-primary):not(.btn-secondary),
button:focus-visible:not(.btn-primary):not(.btn-secondary) {
    outline-color: #047857;
}

/* ---- Print ---- */
@media print {
    .nav, .hero-scroll, .cta-pattern, .story-pattern {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
