/* ============================================
   Brick"n" Brecher Sugar Shack
   Clean Minimalist · Terracotta + Sand
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracotta: #C4724E;
    --terracotta-dark: #A85A3A;
    --terracotta-light: #D4916F;
    --sand: #F5F0EB;
    --sand-dark: #E8E0D8;
    --sand-warm: #EDE5DC;
    --charcoal: #2A2522;
    --charcoal-light: #4A4240;
    --cream: #FAF7F4;
    --white: #FFFFFF;
    --text-primary: #2A2522;
    --text-secondary: #6B5F5A;
    --text-light: #F5F0EB;
    --line: rgba(196, 114, 78, 0.15);
    --line-strong: rgba(196, 114, 78, 0.3);

    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --nav-height: 72px;
    --container-max: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(250, 247, 244, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--line);
}

.nav.scrolled .nav-logo {
    color: var(--text-primary);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 0.01em;
    transition: color 0.4s ease;
    line-height: 1.3;
}

.nav-logo-accent {
    font-style: italic;
    color: var(--terracotta-light);
}

.nav.scrolled .nav-logo-accent {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--terracotta-light);
}

.nav.scrolled .nav-links a:hover {
    color: var(--terracotta);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

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

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 8px 20px;
    border-radius: 100px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.nav.scrolled .nav-cta {
    border-color: var(--terracotta) !important;
    color: var(--terracotta) !important;
}

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

.nav-cta::after {
    display: none !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
    background: var(--text-primary);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(250, 247, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    padding: 12px 0;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--terracotta);
}

.mobile-menu-divider {
    width: 40px;
    height: 1px;
    background: var(--line-strong);
    margin: 8px 0;
}

.mobile-menu-phone,
.mobile-menu-address {
    font-family: var(--font-body);
    font-size: 0.875rem !important;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-secondary) !important;
    text-transform: none !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(42, 37, 34, 0.55) 0%,
        rgba(42, 37, 34, 0.45) 50%,
        rgba(42, 37, 34, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-headline br {
    display: none;
}

.hero-tagline {
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-light {
    background: var(--white);
    color: var(--text-primary);
}

.btn-light:hover {
    background: var(--terracotta-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 114, 78, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    animation: float 2.5s ease-in-out infinite;
}

.hero-scroll:hover {
    color: var(--white);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
section {
    padding: 120px 0;
}

.label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    z-index: -1;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.divider-icon {
    color: var(--terracotta);
    flex-shrink: 0;
}

/* ============================================
   MENU
   ============================================ */
.menu {
    background: var(--sand);
}

.menu-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

.menu-header h2 {
    margin-bottom: 16px;
}

.menu-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 1px solid var(--line);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
    box-shadow: 0 12px 40px rgba(42, 37, 34, 0.08);
    transform: translateY(-4px);
}

.menu-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.menu-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sand);
    color: var(--terracotta);
    flex-shrink: 0;
}

.menu-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-primary);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.menu-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.menu-item-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.menu-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: 0;
    background: var(--cream);
    overflow: hidden;
}

.gallery-strip {
    display: flex;
    gap: 2px;
}

.gallery-item {
    flex: 1;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* ============================================
   VISIT
   ============================================ */
.visit {
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.visit-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: start;
}

.visit-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sand);
    color: var(--terracotta);
    flex-shrink: 0;
}

.visit-detail strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 6px;
}

.visit-detail span,
.visit-detail a {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.visit-detail a:hover {
    color: var(--terracotta);
}

.visit-map {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.map-link {
    display: block;
    position: relative;
}

.map-link img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: opacity 0.3s ease;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}

.map-link:hover .map-overlay {
    background: var(--terracotta);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    color: var(--text-light);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--terracotta-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    font-size: 1rem;
    color: var(--terracotta-light);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact span {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

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

    .reveal.visible {
        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; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid {
        gap: 48px;
    }

    .menu-categories {
        gap: 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-top > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    section {
        padding: 80px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline br {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 350px;
    }

    .about-image-accent {
        display: none;
    }

    .menu-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-card {
        padding: 28px 24px;
    }

    .gallery-strip {
        flex-direction: column;
    }

    .gallery-item img {
        height: 250px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .visit-map img {
        height: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

    .btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-greeting {
        font-size: 0.6875rem;
        letter-spacing: 0.14em;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }
}
