/* ══════════════════════════════════════════════
   Hoggpen Bar & Grill — Styles
   Palette: Terracotta (#B85C38) + Sand (#F5F0EB)
   Fonts: Playfair Display + Inter
   ══════════════════════════════════════════════ */

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

:root {
    --terra: #B85C38;
    --terra-dark: #9A4B2C;
    --terra-light: #D4845E;
    --sand: #F5F0EB;
    --sand-dark: #E8E0D8;
    --sand-light: #FAF7F4;
    --charcoal: #1A1A1A;
    --text: #2C2C2C;
    --text-light: #5A5A5A;
    --text-muted: #8A8A8A;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(26,26,26,0.06), 0 1px 2px rgba(26,26,26,0.04);
    --shadow: 0 4px 20px rgba(26,26,26,0.08);
    --shadow-lg: 0 12px 40px rgba(26,26,26,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--sand-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--terra);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--terra-dark);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--charcoal);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 1rem;
}

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

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 92, 56, 0.08);
    transition: box-shadow var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--charcoal);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terra);
    color: var(--white);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.primary-nav a {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.primary-nav a:hover {
    color: var(--terra);
    background: rgba(184, 92, 56, 0.06);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    padding: 0;
}

.nav-toggle-line {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 1.5px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-line:nth-child(1) { top: 10px; }
.nav-toggle-line:nth-child(2) { top: 17.5px; }
.nav-toggle-line:nth-child(3) { top: 25px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.8125rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--terra-dark);
    border-color: var(--terra-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 92, 56, 0.3);
}

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

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

.btn-small {
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
}

.btn-full {
    width: 100%;
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════ */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

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

.accent-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--terra-light);
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--charcoal);
    padding-top: 72px;
}

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

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.55) 55%,
        rgba(26, 26, 26, 0.2) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terra-light);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

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

.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
}

/* Stat Cards */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background var(--transition), transform var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(-4px);
}

.stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    color: var(--white);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

/* ══════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════ */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

/* ══════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════ */
.about {
    background: var(--sand-light);
}

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

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

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.75;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand-dark);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.about-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--terra);
    font-weight: 500;
}

.about-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.menu-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.menu-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.menu-item-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.menu-item-body {
    padding: 1.5rem;
}

.menu-item-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

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

.menu-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 2.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

/* ══════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════ */
.gallery {
    background: var(--sand-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

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

/* ══════════════════════════════════════════════
   VISIT
   ══════════════════════════════════════════════ */
.visit {
    background: var(--sand);
}

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

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visit-details {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visit-details p {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.visit-details strong {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terra);
}

.visit-details a {
    color: var(--text);
    font-size: 1.0625rem;
    text-decoration: none;
    border-bottom: 1px solid var(--sand-dark);
    padding-bottom: 2px;
    transition: border-color var(--transition), color var(--transition);
}

.visit-details a:hover {
    color: var(--terra);
    border-color: var(--terra);
}

.visit-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

.visit-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--terra);
}

.visit-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
.contact {
    background: var(--charcoal);
    color: var(--white);
}

.contact .section-eyebrow {
    color: var(--terra-light);
}

.contact .section-title {
    color: var(--white);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.contact-text p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.contact-form-wrapper {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    transition: border-color var(--transition), background var(--transition);
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terra);
    background: rgba(255,255,255,0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--charcoal);
    color: var(--white);
}

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

.form-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin: 0;
}

.form-note a {
    color: var(--terra-light);
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    padding: 2rem;
    color: var(--white);
}

.form-success svg {
    color: var(--terra-light);
}

.form-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 500;
}

.form-success p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 3rem 0 2rem;
    color: rgba(255,255,255,0.5);
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.footer-brand .logo-text {
    color: var(--white);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 500;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.footer-top nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-top nav a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.footer-top nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 2rem;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
    color: var(--terra-light);
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(24px);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 260px;
        gap: 2rem;
    }

    .about-grid {
        gap: 2.5rem;
    }

    .menu-grid {
        gap: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    /* Nav mobile */
    .nav-toggle {
        display: block;
        z-index: 101;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--sand-light);
        padding: 6rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }

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

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .primary-nav a {
        display: block;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 98;
    }

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

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        max-height: 360px;
    }

    .about-image-wrapper img {
        height: 100%;
    }

    /* Menu mobile */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* Visit mobile */
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visit-map iframe {
        height: 280px;
    }

    /* Contact mobile */
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

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

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

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-cards {
        flex-direction: column;
    }

    .stat-card {
        min-width: auto;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal-state="hidden"] {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal[data-reveal-state="hidden"] {
        opacity: 1;
        transform: none;
    }
}
