/* ──────────────────────────────────────────
   Tilly's Tavern — Styles
   Palette: Emerald Green + Cream
   ────────────────────────────────────────── */

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

:root {
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;

    --cream-50:  #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #f5f0e1;
    --cream-400: #e8e0cc;
    --cream-500: #d4c9b0;

    --text-dark:  #1a2e26;
    --text-body:  #2d4a3e;
    --text-muted: #5a7d6e;
    --text-light: #8fa89a;

    --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-sm:  0 1px 3px rgba(6, 78, 59, 0.06), 0 1px 2px rgba(6, 78, 59, 0.04);
    --shadow-md:  0 4px 16px rgba(6, 78, 59, 0.08), 0 2px 4px rgba(6, 78, 59, 0.04);
    --shadow-lg:  0 12px 40px rgba(6, 78, 59, 0.10), 0 4px 12px rgba(6, 78, 59, 0.05);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--cream-50);
    -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;
}

/* ──────────────────────────────────────────
   Buttons
   ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.938rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--emerald-700);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}

.btn--primary:hover {
    background: var(--emerald-600);
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.30);
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn--small {
    padding: 10px 22px;
    font-size: 0.875rem;
}

.btn--full {
    width: 100%;
}

/* ──────────────────────────────────────────
   Section Headers
   ────────────────────────────────────────── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

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

.section-subtitle {
    font-size: 1.063rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ──────────────────────────────────────────
   Header / Nav
   ────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logo-icon {
    color: var(--emerald-600);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-list a {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text-body);
    position: relative;
    transition: color var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-list a:hover {
    color: var(--emerald-700);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ──────────────────────────────────────────
   Hero
   ────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #042f23 0%,
        #064e3b 20%,
        #047857 40%,
        #10b981 55%,
        #34d399 70%,
        #6ee7b7 85%,
        #d1fae5 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(4, 47, 35, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(16, 185, 129, 0.4) 0%, transparent 50%);
}

.hero-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: 48px 48px, 32px 32px;
}

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

.hero-eyebrow {
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-200);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
}

.hero-word {
    display: inline-block;
    color: #fff;
    transition: var(--transition);
}

.hero-word--accent {
    color: var(--emerald-200);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.188rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-detail svg {
    flex-shrink: 0;
}

.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.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

/* ──────────────────────────────────────────
   Features
   ────────────────────────────────────────── */
.features {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--emerald-100);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--emerald-300);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.313rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.938rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ──────────────────────────────────────────
   Menu
   ────────────────────────────────────────── */
.menu-preview {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream-50) 0%, var(--emerald-50) 100%);
}

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

.menu-category {
    margin-bottom: 40px;
}

.menu-category h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--emerald-800);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--emerald-200);
}

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

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

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

.menu-item-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

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

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.01);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item--wide {
    grid-column: span 7;
    aspect-ratio: 3/2;
}

.gallery-item--tall {
    grid-column: span 5;
    aspect-ratio: 2/3;
}

.gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
    aspect-ratio: 1/1;
}

/* ──────────────────────────────────────────
   Testimonials
   ────────────────────────────────────────── */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-700) 50%, var(--emerald-600) 100%);
}

.testimonials .section-eyebrow {
    color: var(--emerald-300);
}

.testimonials .section-title {
    color: #fff;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--emerald-400);
    margin-bottom: -8px;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 0.875rem;
    color: var(--emerald-300);
    font-weight: 500;
}

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

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

.visit-info .section-header {
    text-align: left;
    margin-bottom: 32px;
}

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

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

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

.visit-detail strong {
    display: block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 4px;
}

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

.visit-detail a {
    color: var(--emerald-700);
    transition: color var(--transition);
}

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

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
}

/* ──────────────────────────────────────────
   Contact
   ────────────────────────────────────────── */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream-50) 0%, var(--emerald-50) 100%);
}

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

.contact-text .section-header {
    text-align: left;
    margin-bottom: 0;
}

.contact-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--emerald-100);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.938rem;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1.5px solid var(--cream-400);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

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

.form-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    font-size: 0.938rem;
    color: var(--emerald-800);
}

.form-success svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

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

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

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

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

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.813rem;
    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.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──────────────────────────────────────────
   Responsive
   ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .gallery-item--wide {
        grid-column: span 12;
    }

    .gallery-item--tall {
        grid-column: span 6;
    }

    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--cream-50);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 100;
    }

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

    .nav-list a {
        font-size: 1.125rem;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-details {
        flex-direction: column;
        gap: 12px;
    }

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

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

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

    .gallery-item--tall {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
        grid-column: span 1;
    }

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

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

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

    .visit-info .section-header {
        text-align: center;
    }

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

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

    .contact-text .section-header {
        text-align: center;
    }

    .contact-form {
        padding: 28px 24px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

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

    .features,
    .menu-preview,
    .gallery,
    .testimonials,
    .visit,
    .contact {
        padding: 72px 0;
    }

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

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

    .gallery-item--tall,
    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}
