/* ============================================
   Treasie's Snack Shack — Styles
   Burgundy + Blush Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --burgundy-light: #9B3D4E;
    --blush: #F5E6D3;
    --blush-light: #FFF5F0;
    --blush-dark: #E8CDB5;
    --cream: #FFFDF9;
    --warm-white: #FFFAF6;
    --text-dark: #2D1A1E;
    --text-mid: #5C3A42;
    --text-light: #8A6068;
    --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.08);
    --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.12);
    --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--text-dark);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--burgundy);
    color: #fff;
    padding: 14px 32px;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.3);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(123, 45, 59, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--burgundy);
    padding: 14px 32px;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background: var(--blush);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    background: rgba(123, 45, 59, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: all var(--transition);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--burgundy);
}

.logo-light {
    color: var(--blush);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-mid);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--burgundy);
    background: rgba(123, 45, 59, 0.07);
}

/* --- Menu Toggle --- */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: rgba(123, 45, 59, 0.07);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(45, 26, 30, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--cream);
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 14px 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: color var(--transition);
}

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

.mobile-call-btn {
    margin-top: 16px;
    justify-content: center;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blush);
    background: rgba(245, 230, 211, 0.15);
    border: 1px solid rgba(245, 230, 211, 0.25);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--blush);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-item svg {
    color: var(--blush);
    opacity: 0.8;
}

/* --- Hero Image --- */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.hero-image-accent {
    position: absolute;
    inset: 16px;
    border: 2px solid rgba(245, 230, 211, 0.3);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: float 4s ease-in-out infinite;
}

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

.floating-card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--burgundy);
}

.floating-card-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-mid);
    font-weight: 600;
}

/* --- Wave Divider --- */
.wave-divider {
    margin-top: -1px;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
}

/* --- Menu Section --- */
.menu-section {
    background: var(--blush-light);
    padding: 100px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.menu-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.menu-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--burgundy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

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

.menu-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.menu-card-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.menu-note {
    margin-top: 56px;
}

.menu-note p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.menu-note .btn {
    margin-top: 8px;
}

/* --- About Section --- */
.about-section {
    background: var(--cream);
    padding: 100px 0;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/6;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--cream);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-pattern {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--burgundy) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.2;
    pointer-events: none;
}

.about-content {
    max-width: 500px;
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(123, 45, 59, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Visit Section --- */
.visit-section {
    background: var(--blush-light);
    padding: 100px 0;
}

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

.visit-info {
    max-width: 500px;
}

.visit-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(123, 45, 59, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.contact-card-content p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-card-content a {
    color: var(--burgundy);
    font-weight: 700;
    transition: color var(--transition);
}

.contact-card-content a:hover {
    color: var(--burgundy-dark);
}

/* --- Map --- */
.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-placeholder {
    background: var(--burgundy);
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 80% 70%, #fff 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px;
}

.map-placeholder-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    color: #fff;
}

.map-placeholder-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.85);
}

.map-placeholder-content strong {
    color: #fff;
}

.map-placeholder-content .btn {
    margin: 0 auto;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 30% 50%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 70% 50%, #fff 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

/* --- Footer --- */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blush);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin: 0;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .about-container {
        gap: 48px;
    }

    .hero-floating-card {
        left: -10px;
        bottom: 24px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-content {
        max-width: 100%;
    }

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

    .visit-info {
        max-width: 100%;
    }

    .visit-map {
        max-width: 500px;
        margin: 0 auto;
    }

    .map-placeholder {
        aspect-ratio: 16/9;
    }

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

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        display: inline-flex;
    }

    .hero-image-wrapper {
        border-radius: var(--radius-md);
    }

    .about-img-secondary {
        right: -20px;
        bottom: -20px;
        width: 50%;
    }

    .about-pattern {
        top: -16px;
        left: -16px;
        width: 80px;
        height: 80px;
    }

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

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

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

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

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
