/* ========================================================================
   Riverview Food Mart / Riverview Smoke Mart
   Stylesheet v1.0
   Aesthetic: Refined editorial — deep navy/teal + warm cream + terracotta
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --ink: #0d1f2d;
    --ink-soft: #2a3a4a;
    --teal: #1a4d4a;
    --teal-light: #2d6862;
    --cream: #f5efe2;
    --cream-light: #faf6ec;
    --terracotta: #c25a3a;
    --terracotta-dark: #a04527;
    --mustard: #d4a437;
    --rule: #d9cfb8;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(13, 31, 45, 0.05);
    --shadow-md: 0 4px 12px rgba(13, 31, 45, 0.08);
    --shadow-lg: 0 12px 32px rgba(13, 31, 45, 0.12);
    --max-width: 1200px;
    --content-width: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
p { margin-bottom: 1.1rem; }

a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

ul, ol { margin: 0 0 1.1rem 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--content-width); }
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 5.5rem 0; } }

/* Header */
.site-header {
    background: rgba(245, 239, 226, 0.95);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.brand {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink);
    border-bottom: none;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.brand:hover { color: var(--terracotta); }
.brand-tag {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
    margin-top: 2px;
}
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}
.main-nav ul {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    align-items: center;
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    border-bottom: none;
    position: relative;
    padding: 0.25rem 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--terracotta); }
.nav-cta {
    background: var(--ink);
    color: var(--cream) !important;
    padding: 0.6rem 1.1rem !important;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--terracotta); }
.nav-cta::after { display: none !important; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--rule);
        padding: 1rem 1.5rem 1.5rem;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.5rem; align-items: stretch; }
    .main-nav li { border-bottom: 1px solid var(--rule); }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: 0.75rem 0; }
}

/* Hero */
.hero {
    padding: 4rem 0 5rem;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(26, 77, 74, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 780px; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.hero-lead { font-size: 1.2rem; max-width: 620px; color: var(--ink-soft); margin-bottom: 2rem; }
.hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    margin-top: 2.5rem;
}
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.hero-meta-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    border-bottom: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.btn--primary { background: var(--terracotta); color: var(--cream-light); }
.btn--primary:hover {
    background: var(--terracotta-dark);
    color: var(--cream-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn--secondary { background: var(--ink); color: var(--cream); }
.btn--secondary:hover {
    background: var(--teal);
    color: var(--cream);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Section variants */
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream-light); }
.section--dark a:not(.btn) { color: var(--mustard); }
.section--dark a:not(.btn):hover { color: var(--terracotta); }
.section--dark .eyebrow { color: var(--mustard); }
.section--cream-deep { background: var(--cream-light); }

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.feature-card {
    background: var(--cream-light);
    border: 1px solid var(--rule);
    padding: 2rem;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.section--dark .feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card-number {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.feature-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }
.section--dark .feature-card p { color: rgba(245, 239, 226, 0.8); }

/* Category cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.category-card {
    display: block;
    padding: 2.5rem 2rem;
    background: var(--cream-light);
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--ink);
    border-bottom: none !important;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--terracotta);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}
.category-card:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-card:hover::before { transform: scaleY(1); }
.category-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.75rem;
}
.category-card h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.category-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.category-card-arrow { font-family: 'Fraunces', serif; color: var(--terracotta); font-weight: 600; font-size: 0.95rem; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .split--40-60 { grid-template-columns: 2fr 3fr; }
}

/* Pull quote / callout */
.pullquote {
    border-left: 4px solid var(--terracotta);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--ink);
}
.callout {
    background: var(--cream-light);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--teal);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    border-radius: 4px;
}
.callout--warning { border-left-color: var(--terracotta); background: rgba(194, 90, 58, 0.05); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--terracotta); }

/* Article */
.article-header {
    padding: 4rem 0 2.5rem;
    background: var(--cream-light);
    border-bottom: 1px solid var(--rule);
}
.article-header h1 { max-width: 800px; margin-bottom: 1rem; }
.article-header .lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 720px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
}
.article-content { padding: 3.5rem 0 5rem; }
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1.25rem; padding-top: 1rem; }
.article-content h2:first-child { margin-top: 0; padding-top: 0; }
.article-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-content ul li, .article-content ol li { margin-bottom: 0.6rem; }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
.faq-question {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.faq-answer { color: var(--ink-soft); margin-bottom: 0; }

/* Hours block */
.hours-block {
    background: var(--ink);
    color: var(--cream);
    padding: 2.5rem;
    border-radius: 6px;
    text-align: center;
    margin: 2rem 0;
}
.hours-block .eyebrow { color: var(--mustard); }
.hours-block .hours-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--cream-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.hours-block .hours-sub { color: rgba(245, 239, 226, 0.75); font-size: 1rem; margin-bottom: 0; }

/* Age notice */
.age-notice {
    background: rgba(194, 90, 58, 0.08);
    border: 1px solid rgba(194, 90, 58, 0.3);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.age-notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--terracotta);
    color: var(--cream-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 0.95rem;
}
.age-notice-text { font-size: 0.95rem; color: var(--ink); margin-bottom: 0; }
.age-notice-text strong { color: var(--terracotta); }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand h3 { color: var(--cream-light); font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-brand .footer-tag {
    color: var(--mustard);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}
.footer-brand p { color: rgba(245, 239, 226, 0.7); font-size: 0.95rem; max-width: 360px; }
.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mustard);
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    color: var(--cream);
    border-bottom: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-col a:hover { opacity: 1; color: var(--terracotta); }
.footer-bottom {
    border-top: 1px solid rgba(245, 239, 226, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { color: rgba(245, 239, 226, 0.5); font-size: 0.85rem; margin: 0; }

/* Smoke shop hero */
.smoke-hero {
    background: var(--ink);
    color: var(--cream);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.smoke-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(26, 77, 74, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(194, 90, 58, 0.2) 0%, transparent 50%);
    pointer-events: none;
}
.smoke-hero .container { position: relative; z-index: 1; }
.smoke-hero h1 { color: var(--cream-light); }
.smoke-hero h1 em { font-style: italic; color: var(--mustard); font-weight: 500; }
.smoke-hero .hero-lead { color: rgba(245, 239, 226, 0.8); }
.smoke-hero .eyebrow { color: var(--mustard); }

/* Brand pills */
.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}
.brand-pills li {
    background: var(--cream-light);
    border: 1px solid var(--rule);
    color: var(--ink);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}
.section--dark .brand-pills li {
    background: rgba(255, 255, 255, 0.06);
    color: var(--cream);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Tables */
.compare-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.compare-table th, .compare-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--rule);
}
.compare-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    font-weight: 600;
    background: var(--cream-light);
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero .hero-lead, .hero .btn-group, .hero .hero-meta,
.smoke-hero h1, .smoke-hero .hero-lead, .smoke-hero .btn-group {
    animation: fadeUp 0.7s ease both;
}
.hero .hero-lead, .smoke-hero .hero-lead { animation-delay: 0.1s; }
.hero .btn-group, .smoke-hero .btn-group { animation-delay: 0.2s; }
.hero .hero-meta { animation-delay: 0.3s; }

@media print {
    .site-header, .site-footer, .nav-toggle, .btn-group { display: none; }
    body { background: white; color: black; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
