/* ============================================
   Rusty Pit BBQ — Styles
   Palette: Emerald Green + Cream
   Fonts: Playfair Display + Lato
   ============================================ */

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

:root {
    --emerald-900: #0d3320;
    --emerald-800: #1a4d2e;
    --emerald-700: #236b3f;
    --emerald-600: #2d8a52;
    --emerald-500: #3aa864;
    --cream-50:  #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ebe4d6;
    --cream-300: #ddd3c0;
    --gold-400:  #d4a84b;
    --gold-500:  #c49a3f;
    --gold-600:  #b08830;
    --text-dark:  #1a1a18;
    --text-mid:   #3d3d38;
    --text-light: #6b6b64;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Lato', system-ui, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(13,51,32,0.08);
    --shadow-md: 0 4px 16px rgba(13,51,32,0.10);
    --shadow-lg: 0 8px 32px rgba(13,51,32,0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--emerald-800);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--emerald-800);
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-800);
    color: #fff;
    border-color: var(--emerald-800);
}
.btn-primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}
.btn-outline-light:hover {
    background: var(--emerald-800);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}
.btn-outline-dark:hover {
    background: var(--emerald-800);
    color: #fff;
    transform: translateY(-2px);
}

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

.btn-nav {
    background: var(--gold-400);
    color: var(--emerald-900);
    border-color: var(--gold-400);
    padding: 10px 20px;
    font-size: 0.85rem;
}
.btn-nav:hover {
    background: var(--gold-500);
    border-color: var(--gold-500);
    transform: translateY(-1px);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--emerald-800);
}
.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.logo-light .logo-name { color: #fff; }
.logo-light .logo-tagline { color: var(--gold-400); }

.nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}
.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    transition: width var(--transition);
}
.nav a:not(.btn):hover { color: var(--emerald-800); }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}
.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 22px;
    height: 2px;
    background: var(--emerald-800);
    transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--emerald-800);
    transition: 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 {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    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(
        135deg,
        rgba(13, 51, 32, 0.92) 0%,
        rgba(26, 77, 46, 0.85) 50%,
        rgba(35, 107, 63, 0.78) 100%
    );
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    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;
}

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

.hero-card {
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 24px;
}
.hero-headline em {
    font-style: italic;
    color: var(--gold-400);
}

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

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

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.stat-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateX(6px);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    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: 480px;
    object-fit: cover;
}

.about-img-float {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-50);
}
.about-img-float img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-text {
    padding: 20px 0;
}

.about-lead {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--emerald-700);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-signature {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cream-200);
}
.about-signature-img {
    width: 160px;
    height: 60px;
    object-fit: cover;
    opacity: 0.7;
    border-radius: var(--radius-sm);
}

/* --- Menu --- */
.menu {
    position: relative;
    padding: 120px 0;
    background: var(--emerald-900);
    overflow: hidden;
}

.menu-bg {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.menu-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.menu-title {
    color: #fff;
}

.menu-lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.menu-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: var(--transition);
}
.menu-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.menu-card-img {
    overflow: hidden;
    height: 220px;
}
.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.menu-card:hover .menu-card-img img {
    transform: scale(1.06);
}

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

.menu-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.menu-card-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
}

.menu-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-400);
    background: rgba(212, 168, 75, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.menu-card-body p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.65;
}

.menu-note {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}
.menu-note p {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    font-style: italic;
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
    background: var(--cream-100);
}

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,51,32,0.3), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- CTA Strip --- */
.cta-strip {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
    text-align: center;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: #fff;
    margin-bottom: 16px;
}

.cta-sub {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

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

.btn-outline-light {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--emerald-800);
    border-color: #fff;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.visit-info {
    padding: 20px 0;
}

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

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

.visit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--cream-100);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
}

.visit-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--emerald-800);
    margin-bottom: 4px;
}

.visit-detail p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.6;
}
.visit-detail a {
    color: var(--emerald-600);
    transition: color var(--transition);
}
.visit-detail a:hover { color: var(--emerald-800); }

.visit-cta {
    margin-top: 40px;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 460px;
}
.visit-map iframe {
    width: 100%;
    height: 100%;
}

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

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

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

.footer-links,
.footer-contact {
    font-size: 0.9rem;
}
.footer-links strong,
.footer-contact strong {
    display: block;
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-400); }

.footer-contact p {
    margin-bottom: 6px;
    line-height: 1.6;
}
.footer-contact a {
    color: var(--gold-400);
    transition: color var(--transition);
}
.footer-contact a:hover { color: var(--gold-500); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
}
.footer-bottom p {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- 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.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stat-card { flex: 1; min-width: 140px; }
    
    .about-grid { gap: 48px; }
    .about-img-float { right: -20px; bottom: -24px; }
    
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    
    .visit-grid { grid-template-columns: 1fr; }
    .visit-map { height: 360px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,248,244,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--cream-200);
        padding: 24px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-lg);
    }
    .nav.open { transform: translateY(0); }
    .nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .nav a:not(.btn) { font-size: 1.05rem; }
    .btn-nav { width: 100%; text-align: center; }
    
    .hero { padding: 100px 0 80px; min-height: auto; }
    .hero-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .hero-stats { gap: 12px; }
    .stat-card { padding: 16px 20px; }
    .stat-number { font-size: 1.2rem; }
    
    .about { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .about-img-main img { height: 360px; }
    .about-img-float { right: 0; bottom: -20px; }
    
    .menu { padding: 80px 0; }
    .menu-grid { grid-template-columns: 1fr; }
    
    .gallery { padding: 80px 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item img { height: 200px; }
    
    .cta-strip { padding: 60px 0; }
    
    .visit { padding: 80px 0; }
    
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}
