:root {
    --terracotta: #d9642f;
    --terracotta-dark: #b3491d;
    --terracotta-light: #ffe4d1;
    --palm-green: #2f6b4f;
    --palm-green-dark: #163829;
    --gold: #e8a94a;
    --cream: #fbf6ee;
    --cream-dark: #f2e8d6;
    --ink: #241d1a;
    --ink-soft: #6b5f56;
    --border: #e9dcc4;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(36, 29, 26, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(36, 29, 26, 0.16);
    --shadow-brand: 0 16px 40px -12px rgba(217, 100, 47, 0.35);
    --radius: 20px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wrap-narrow {
    max-width: 640px;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.eyebrow-light {
    color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 246, 238, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--palm-green-dark);
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--palm-green-dark);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: var(--terracotta);
}

.site-nav a.cta {
    background: var(--terracotta);
    color: white;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    box-shadow: var(--shadow-brand);
    transition: transform 0.15s ease, background 0.15s ease;
}

.site-nav a.cta:hover {
    background: var(--terracotta-dark);
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
        display: none;
        box-shadow: var(--shadow-md);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a.cta {
        text-align: center;
    }

    .site-header.is-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Flash messages */

.flash {
    padding: 0.85rem 0;
    text-align: center;
    font-weight: 500;
}

.flash-success {
    background: #e4f3e9;
    color: var(--palm-green-dark);
}

.flash-error {
    background: #fbe4e0;
    color: #8a2c1a;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(420px, 65vh, 620px);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 56, 41, 0.75) 0%, rgba(22, 56, 41, 0.55) 55%, rgba(22, 56, 41, 0.85) 100%);
    z-index: -1;
}

.hero-inner {
    position: relative;
    animation: fade-in-up 0.7s ease both;
}

.hero h1 {
    margin-bottom: 1rem;
    color: white;
}

.hero .tagline {
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 auto 2.25rem;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 0.8rem 1.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--terracotta);
    color: white;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: inherit;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    transform: translateY(-2px);
}

/* Sections */

.section {
    padding: 2.5rem 0;
}

.section-alt {
    background: var(--cream-dark);
}

.section > .wrap > h2 {
    margin-bottom: 2rem;
}

.page-header {
    background: var(--cream-dark);
    padding: 2.5rem 0 2rem;
    text-align: center;
}

/* Week strip */

.week-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.9rem;
}

.week-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.week-day:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--terracotta);
}

.week-day.open {
    cursor: pointer;
}

.week-day.closed {
    opacity: 0.6;
}

.week-day.today {
    border: 2px solid var(--terracotta);
    box-shadow: var(--shadow-brand);
}

.week-day strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
}

.week-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
}

.week-day.open .status-dot {
    background: var(--palm-green);
}

.week-town {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.today-tag {
    display: inline-block;
    background: var(--terracotta);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.week-cta {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--terracotta);
    font-weight: 600;
    text-decoration: none;
}

.week-cta:hover {
    text-decoration: underline;
}

/* Dishes */

.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.dish-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.dish-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(22, 56, 41, 0) 40%, rgba(22, 56, 41, 0.92) 100%);
}

.dish-overlay h3 {
    color: white;
    margin-bottom: 0.25rem;
}

.dish-overlay p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem;
}

.dish-overlay .price {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.4rem;
    font-family: 'Fraunces', Georgia, serif;
}

.dish-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
}

.dish-list .dish-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.dish-list .dish-card:last-child {
    border-bottom: none;
}

.dish-list .dish-card:hover {
    transform: none;
    box-shadow: none;
}

.dish-list .dish-photo {
    position: static;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.dish-list .dish-text {
    flex: 1;
}

.dish-list .dish-text h3 {
    margin-bottom: 0.15rem;
}

.dish-list .dish-text p {
    margin: 0;
    color: var(--ink-soft);
}

.dish-list .price {
    font-weight: 700;
    color: var(--terracotta);
    font-size: 1.4rem;
    font-family: 'Fraunces', Georgia, serif;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .dish-list .dish-card {
        flex-wrap: wrap;
    }

    .dish-list .price {
        margin-left: auto;
    }
}

/* Markets */

.market-list {
    display: flex;
    flex-direction: column;
}

.market-card {
    display: grid;
    grid-template-columns: 160px 1fr 1.5fr;
    gap: 1.75rem;
    align-items: center;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 90px;
}

.market-list .market-card:last-child {
    border-bottom: none;
}

.market-day-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: var(--palm-green);
    color: white;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.market-card:hover .market-day-badge {
    transform: translateY(-3px);
}

.market-card.today .market-day-badge {
    background: var(--terracotta);
}

.market-day-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.market-day-hours {
    font-size: 0.8rem;
    opacity: 0.85;
}

.market-day-badge .today-tag {
    position: absolute;
    top: -0.6rem;
    background: var(--gold);
    color: var(--ink);
}

.market-info h2 {
    margin-bottom: 0.4rem;
}

.market-town {
    color: var(--ink-soft);
    font-weight: 500;
    margin: 0;
}

.market-map iframe {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: var(--radius);
    display: block;
}

.market-card.market-closed {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    opacity: 0.55;
}

.market-card.market-closed .market-day-name {
    color: var(--ink);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
}

@media (max-width: 780px) {
    .market-card {
        grid-template-columns: 1fr;
    }

    .market-day-badge {
        flex-direction: row;
        justify-content: center;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
    }
}

/* Events */

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

.event-intro p {
    color: var(--ink-soft);
    margin: 0 auto 1.75rem;
    max-width: 480px;
}

/* Events teaser (home) */

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

.events-teaser p {
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto 1.75rem;
}

/* Contact */

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

.contact-block p {
    color: var(--ink-soft);
}

.contact-person {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Footer */

.site-footer {
    background: var(--palm-green-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem;
    font-size: 0.9rem;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2rem;
    margin-bottom: 1.25rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-brand p {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0.5rem 0 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    text-decoration: none;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
