/* ===================================
   Tim's BBQ Hut — Editorial BBQ Site
   Plum + Amber Palette
   =================================== */

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

:root {
    --plum: #5B2C6F;
    --plum-deep: #3D1D4E;
    --plum-light: #7D3C99;
    --plum-muted: #9B59B6;
    --amber: #C8956C;
    --amber-light: #E8B960;
    --amber-pale: #F5D9A8;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --charcoal: #1A1A1A;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    background: var(--plum-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-flame {
    width: 60px;
    height: 84px;
    animation: flame-dance 0.8s ease-in-out infinite alternate;
}

@keyframes flame-dance {
    0% { transform: scaleY(1) scaleX(1); }
    50% { transform: scaleY(1.08) scaleX(0.95); }
    100% { transform: scaleY(0.92) scaleX(1.05); }
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-flame {
    width: 32px;
    height: 44px;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--plum-deep);
    letter-spacing: -0.01em;
}

.logo-accent {
    color: var(--amber);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-desktop a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width var(--transition);
}

.nav-desktop a:hover {
    color: var(--plum);
}

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

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--plum-deep);
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--plum-deep);
    transition: transform var(--transition);
}

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

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

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

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

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(91, 44, 111, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    z-index: 999;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    padding: 12px 0;
    border-bottom: 1px solid rgba(91, 44, 111, 0.06);
    transition: color var(--transition);
}

.mobile-nav-link:hover {
    color: var(--plum);
}

.mobile-nav-cta {
    border-bottom: none;
    margin-top: 8px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 12px 28px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--plum-deep);
    border-color: var(--plum-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.25);
}

.btn-secondary {
    background: var(--amber);
    color: var(--white);
    border-color: var(--amber);
}

.btn-secondary:hover {
    background: #B8844D;
    border-color: #B8844D;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 149, 108, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--plum-deep);
    border-color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8125rem;
}

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

.btn-full {
    width: 100%;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--plum-deep);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(200, 149, 108, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(125, 60, 153, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content {
    max-width: 560px;
}

.hero-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    position: relative;
}

.hero-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.hero-card-main {
    width: 100%;
    aspect-ratio: 520 / 420;
}

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

.stat-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: float 4s ease-in-out infinite;
}

.stat-card--1 {
    bottom: -20px;
    left: -16px;
    animation-delay: 0s;
}

.stat-card--2 {
    top: -16px;
    right: -16px;
    animation-delay: 2s;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--plum);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--plum-deep);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* MENU SECTION */
.menu-section {
    padding: 100px 0;
    background: var(--cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(91, 44, 111, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(91, 44, 111, 0.12);
}

.menu-card-img {
    aspect-ratio: 400 / 280;
    overflow: hidden;
}

.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-body {
    padding: 24px 28px 28px;
}

.menu-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-deep);
    margin-bottom: 8px;
}

.menu-card-body p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.65;
}

.menu-note {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.menu-note p {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* STORY SECTION */
.story-section {
    padding: 100px 0;
    background: var(--plum-deep);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 0% 100%, rgba(200, 149, 108, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(125, 60, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.story-images {
    position: relative;
}

.story-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.story-img--main {
    width: 100%;
    aspect-ratio: 500 / 640;
}

.story-img--accent {
    position: absolute;
    bottom: -32px;
    right: -16px;
    width: 65%;
    aspect-ratio: 500 / 300;
    border: 4px solid var(--plum-deep);
}

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

.story-content {
    color: var(--white);
}

.story-content .section-tag {
    color: var(--amber-light);
}

.story-content .section-title {
    color: var(--white);
    margin-bottom: 0;
}

.story-divider {
    width: 60px;
    height: 3px;
    background: var(--amber);
    border-radius: 100px;
    margin: 24px 0;
}

.story-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.story-stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.story-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.story-stat-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-light);
}

.story-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.story-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
    margin: 4px 0;
}

/* GALLERY */
.gallery-section {
    padding: 100px 0;
    background: var(--cream-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 600 / 400;
}

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

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

/* VISIT SECTION */
.visit-section {
    padding: 100px 0;
    background: var(--cream);
}

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

.visit-info .section-title {
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
}

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

.visit-icon {
    width: 24px;
    height: 24px;
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--plum-deep);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--plum);
    font-weight: 500;
    transition: color var(--transition);
}

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

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 40px rgba(91, 44, 111, 0.1);
}

/* CONTACT */
.contact-section {
    padding: 100px 0;
    background: var(--plum);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 100% 100%, rgba(200, 149, 108, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.contact-content .section-title {
    color: var(--white);
    margin-bottom: 16px;
}

.contact-content .section-tag {
    color: var(--amber-light);
}

.contact-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-email,
.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    transition: background var(--transition), transform var(--transition);
    width: fit-content;
}

.contact-email:hover,
.contact-phone:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: var(--amber-light);
    flex-shrink: 0;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #E8F5E9;
    border-radius: var(--radius);
    margin-top: 16px;
}

.form-success svg {
    width: 24px;
    height: 24px;
    color: #4CAF50;
    flex-shrink: 0;
}

.form-success p {
    font-size: 0.9375rem;
    color: #2E7D32;
    font-weight: 500;
}

/* FOOTER */
.site-footer {
    background: var(--charcoal);
    padding: 64px 0 32px;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.375rem;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

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

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

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

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

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

.footer-contact p {
    font-size: 0.875rem;
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    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:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (min-width: 640px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .hero {
        padding: 140px 0 100px;
    }
    
    .contact-form-wrap {
        padding: 44px;
    }
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
    
    .story-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
    
    .story-img--accent {
        right: -40px;
        bottom: -48px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1280px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item--1 {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-item--1 {
        aspect-ratio: auto;
    }
}
