/* ============================================
   Bottle Rocket — Artisan Bakery & Grocery
   Bold Editorial Style · Teal + Slate Grey
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal-900: #134E4A;
    --teal-800: #115E59;
    --teal-700: #0D9488;
    --teal-600: #0F766E;
    --teal-500: #14B8A6;
    --teal-100: #CCFBF1;
    --teal-50:  #F0FDFA;

    --slate-950: #050C13;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50:  #F8FAFC;

    --cream: #FAFAF8;
    --warm-white: #FDFCF8;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --shadow-sm:  0 1px 3px rgba(5, 12, 19, 0.08);
    --shadow-md:  0 4px 16px rgba(5, 12, 19, 0.10);
    --shadow-lg:  0 8px 32px rgba(5, 12, 19, 0.12);
    --shadow-xl:  0 16px 48px rgba(5, 12, 19, 0.14);

    --transition-fast:  0.2s ease;
    --transition-base:  0.3s ease;
    --transition-slow:  0.5s ease;
}

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    color: var(--slate-800);
    background-color: var(--warm-white);
    overflow-x: hidden;
}

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

a {
    color: var(--teal-700);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--teal-600);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--teal-800);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-md);
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 12, 19, 0.06);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--slate-900);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.logo:hover {
    color: var(--teal-700);
}

.logo--light {
    color: white;
}

.logo--light:hover {
    color: var(--teal-100);
}

.logo-icon {
    color: var(--teal-700);
    flex-shrink: 0;
}

.logo--light .logo-icon {
    color: white;
}

/* Nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav a {
    color: var(--slate-700);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.nav-cta {
    background: var(--teal-700) !important;
    color: white !important;
    margin-left: var(--space-sm);
}

.nav-cta:hover {
    background: var(--teal-600) !important;
    color: white !important;
}

/* Nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-800);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

/* Hero content — asymmetric offset */
.hero-content {
    padding-right: var(--space-xl);
    max-width: 560px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--slate-900);
    margin-bottom: var(--space-xl);
}

.hero-headline em {
    font-style: italic;
    color: var(--teal-700);
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--slate-600);
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--teal-700);
    color: white;
    border-color: var(--teal-700);
}

.btn-primary:hover {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-800);
    border-color: var(--slate-300);
}

.btn-ghost:hover {
    border-color: var(--teal-700);
    color: var(--teal-700);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--slate-500);
}

.meta-sep {
    color: var(--slate-300);
}

/* Hero visual — stacked images */
.hero-visual {
    position: relative;
}

.hero-img-stack {
    position: relative;
    height: 620px;
}

.hero-img {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.hero-img--main {
    width: 360px;
    height: 480px;
    top: 0;
    right: 0;
    z-index: 1;
}

.hero-img--accent {
    width: 260px;
    height: 200px;
    bottom: 40px;
    left: 0;
    z-index: 2;
    border: 4px solid var(--warm-white);
}

.hero-img--badge {
    width: 100px;
    height: 100px;
    background: var(--teal-700);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.3;
    bottom: 0;
    right: 40px;
    z-index: 3;
    border-radius: var(--radius-md);
}

.hero-img--badge svg {
    width: 20px;
    height: 20px;
}

/* Hero wave divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    color: var(--slate-50);
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ---------- SECTION COMMON ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: var(--space-md);
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--slate-900);
    margin-bottom: var(--space-xl);
}

.section-headline em {
    font-style: italic;
    color: var(--teal-700);
}

.section-headline--light {
    color: white;
}

.section-headline--light em {
    color: var(--teal-100);
}

/* ---------- STORY ---------- */
.story {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.story-image-col {
    position: relative;
}

.story-image-col > img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.story-image-accent {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--slate-50);
}

.story-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-text-col {
    padding-top: var(--space-2xl);
}

.story-text-col > p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--slate-600);
    margin-bottom: var(--space-lg);
}

.story-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--slate-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-500);
    letter-spacing: 0.02em;
}

/* ---------- OFFERINGS ---------- */
.offerings {
    padding: var(--space-4xl) 0;
    background: var(--teal-900);
    position: relative;
}

.offerings::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(20, 184, 166, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.offerings-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.offering-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.offering-card:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.offering-card-img {
    overflow: hidden;
    height: 240px;
}

.offering-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

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

.offering-card-body {
    padding: var(--space-xl);
}

.offering-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.offering-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--slate-300);
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--warm-white);
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--tall {
    grid-column: span 4;
    height: 420px;
}

.gallery-item--wide {
    grid-column: span 8;
    height: 280px;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    grid-column: span 4;
    height: 280px;
}

/* ---------- VISIT ---------- */
.visit {
    padding: var(--space-4xl) 0;
    background: var(--slate-900);
    position: relative;
    overflow: hidden;
}

.visit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(13, 148, 136, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
    position: relative;
}

.visit-info {
    padding-right: var(--space-xl);
}

.visit-info .section-headline {
    margin-bottom: var(--space-2xl);
}

.visit-details {
    font-style: normal;
    margin-bottom: var(--space-2xl);
}

.visit-details p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--slate-300);
}

.visit-details strong {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

.visit-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--teal-500);
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.visit-phone:hover {
    color: var(--teal-400);
}

.visit-hours {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--slate-800);
}

.hours-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
    font-size: 0.9375rem;
    color: var(--slate-400);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--slate-800);
}

.hours-list li span:first-child {
    color: var(--slate-300);
    font-weight: 500;
}

.hours-list li span:last-child {
    color: var(--teal-500);
    font-weight: 500;
}

/* Map placeholder */
.visit-map {
    position: relative;
}

.map-placeholder {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.map-placeholder svg {
    color: var(--teal-500);
    opacity: 0.8;
}

.map-placeholder p {
    color: var(--slate-300);
    font-size: 0.9375rem;
}

.btn-map {
    margin-top: var(--space-md);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--slate-950);
    color: var(--slate-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand p {
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--slate-500);
    max-width: 280px;
}

.footer-links p,
.footer-contact p {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-contact a {
    color: var(--slate-400);
    font-size: 0.9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--teal-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.8125rem;
    color: var(--slate-600);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- MOBILE NAV OVERLAY ---------- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 19, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-content {
        padding-right: 0;
        max-width: 100%;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-img-stack {
        height: 480px;
    }

    .hero-img--main {
        width: 280px;
        height: 380px;
    }

    .hero-img--accent {
        width: 200px;
        height: 160px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .story-image-accent {
        right: -10px;
        bottom: -20px;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 12;
        height: 280px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .visit-info {
        padding-right: 0;
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--warm-white);
        z-index: 999;
        padding: 100px var(--space-xl) var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-xl);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
    }

    .main-nav a {
        font-size: 1.0625rem;
        padding: var(--space-md);
        text-align: center;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: var(--space-md);
    }

    .nav-overlay.active {
        display: block;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-img-stack {
        height: 380px;
    }

    .hero-img--main {
        width: 220px;
        height: 300px;
    }

    .hero-img--accent {
        width: 160px;
        height: 120px;
    }

    .hero-img--badge {
        width: 80px;
        height: 80px;
        font-size: 0.625rem;
        bottom: 10px;
        right: 20px;
    }

    .hero-img--badge svg {
        width: 16px;
        height: 16px;
    }

    .story-stats {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.125rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .hero-img-stack {
        height: 320px;
    }

    .hero-img--main {
        width: 180px;
        height: 240px;
    }

    .hero-img--accent {
        width: 140px;
        height: 100px;
    }
}
