/* ==========================================================================
   O PALMEIRAL — opalmeiral.com
   Design language: 1870s grocery shop meets Roman trattoria.
   Warm, editorial, unhurried. Never generic.
   ========================================================================== */

:root {
  /* Palette — drawn from the space itself */
  --cream: #F5F0E8;
  --warm-white: #FAF8F4;
  --ochre: #C4943E;
  --ochre-dark: #A67A2E;
  --olive: #4A5A3C;
  --ink: #1A1A18;
  --ink-soft: #3A3A35;
  --stone: #8C8578;
  --terracotta: #B85C38;
  --linen: #E8E2D6;

  /* Typography scale */
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  --nav-height: 72px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--warm-white);
  line-height: 1.7;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ochre);
  transition: border-color 0.3s ease, color 0.3s ease;
}

a:hover {
  color: var(--ochre-dark);
  border-bottom-color: var(--ochre-dark);
}

/* ==========================================================================
   Typography — Editorial, not corporate
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: 1.5em;
  max-width: 65ch; /* Readability constraint */
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

blockquote {
  border-left: 3px solid var(--ochre);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

section {
  padding: var(--space-xl) 0;
}

section + section {
  border-top: 1px solid var(--linen);
}

/* ==========================================================================
   Navigation — Minimal, stays out of the way
   ========================================================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--linen);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  border: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-logo:hover { border: none; }

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  color: var(--stone);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.4rem;
  background: var(--ink);
  color: var(--warm-white) !important;
  border: none !important;
  transition: background 0.3s ease;
}

.nav-cta:hover {
  background: var(--ochre-dark);
  color: var(--warm-white) !important;
}

/* Mobile nav */
.nav-toggle { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--warm-white);
    padding: var(--space-md);
    border-bottom: 1px solid var(--linen);
  }
}

/* ==========================================================================
   Hero — Full-bleed image with restrained text
   ========================================================================== */

.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-top: none;
}

.hero + section { border-top: none; }

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 24, 0.85) 0%,
    rgba(26, 26, 24, 0.3) 40%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.hero .lead {
  color: var(--linen);
  max-width: 50ch;
}

/* ==========================================================================
   Section Patterns
   ========================================================================== */

.section-intro {
  padding: var(--space-xl) 0;
  text-align: left;
}

.section-intro h2 {
  margin-bottom: var(--space-sm);
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Image with caption */
.figure {
  margin: var(--space-lg) 0;
}

.figure img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: var(--space-xs);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Menu Page
   ========================================================================== */

.menu-section {
  margin-bottom: var(--space-lg);
}

.menu-section h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ochre);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--linen);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.2rem;
}

.menu-item-price {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

/* ==========================================================================
   Blog / Article
   ========================================================================== */

.article-header {
  padding: var(--space-xl) 0 var(--space-md);
}

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.article-body {
  padding-bottom: var(--space-xl);
}

.article-body h2 {
  margin-top: var(--space-lg);
}

.article-body img {
  margin: var(--space-md) 0;
  width: 100%;
}

/* Blog index */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-md);
}

.blog-card {
  border: none;
}

.blog-card img {
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: var(--space-sm);
}

.blog-card h3 a {
  border: none;
}

.blog-card .article-meta {
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   FAQ — Schema-friendly structure
   ========================================================================== */

.faq-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--linen);
}

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.faq-item p {
  color: var(--ink-soft);
}

/* ==========================================================================
   Private Dining
   ========================================================================== */

.private-dining-hero {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-xl) 0;
}

.private-dining-hero h1 { color: var(--cream); }
.private-dining-hero p { color: var(--linen); }

.private-dining-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.detail-block h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ochre);
  margin-bottom: var(--space-xs);
}

.detail-block p {
  color: var(--linen);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .private-dining-details { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer — Quiet, informational
   ========================================================================== */

footer {
  background: var(--ink);
  color: var(--stone);
  padding: var(--space-lg) 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

footer a {
  color: var(--linen);
  border-bottom-color: var(--stone);
}

footer a:hover {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ochre);
  margin-bottom: var(--space-sm);
}

.footer-about {
  line-height: 1.8;
  color: var(--stone);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom small {
  color: var(--stone);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Breadcrumbs — semantic, minimal */
.breadcrumbs {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-sm) 0;
}

.breadcrumbs a {
  border: none;
  color: var(--stone);
}

.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { margin: 0 0.4em; }

/* CTA button */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--warm-white);
  border-color: var(--ink);
}

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

.btn-primary:hover {
  background: var(--ochre-dark);
  border-color: var(--ochre-dark);
}
