/* ════════════════════════════════════════════════════════════════
   Anthony's Trattoria — styles.css
   Upscale Italian restaurant theme · fully fluid / responsive
   ════════════════════════════════════════════════════════════════ */

/* === FONT FACES === */
@font-face {
  font-family: 'Precious';
  src: url('../fonts/Precious.woff2') format('woff2'),
       url('../fonts/Precious.ttf')   format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Parisienne';
  src: url('../fonts/Parisienne-Regular.woff2') format('woff2'),
       url('../fonts/Parisienne-Regular.ttf')   format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Marcellus';
  src: url('../fonts/Marcellus-Regular.woff2') format('woff2'),
       url('../fonts/Marcellus-Regular.ttf')   format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
/* === DESIGN TOKENS === */
:root {
  --bg:           #0a0806;
  --surface:      #16120e;
  --card:         #1e1810;
  --card-hover:   #261f14;
  --gold:         #c4973d;
  --gold-lt:      #ddb96a;
  --gold-dk:      #8a6520;
  --wine:         #6b1220;
  --wine-lt:      #8c1a2b;
  --cream:        #f2e8d5;
  --text:         #c8b89a;
  --text-muted:   #8a7a68;
  --border:       #2a2318;
  --border-gold:  rgba(196,151,61,0.28);
  --nav-h:        72px;
  --radius:       4px;
  --shadow:       0 8px 40px rgba(0,0,0,0.6);

  /* fluid spacing — scales smoothly with viewport width */
  --gutter:       clamp(16px, 4vw, 24px);
  --section-y:    clamp(48px, 8vw, 80px);
  --maxw:         1100px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font: inherit; }

/* === BASE === */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 1.4vw, 16px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.muted { color: var(--text-muted); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section      { padding: var(--section-y) 0; }
.section--alt { background-color: var(--surface); }
.text-center  { text-align: center; }

/* === GOLD RULES / ORNAMENT === */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: clamp(24px,5vw,36px) auto;
  max-width: 600px;
}

/* === TOPBAR === */
.topbar {
  background-color: var(--wine);
  padding: 8px 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--cream); transition: color 0.2s; }
.topbar a:hover { color: var(--gold-lt); }

/* === SITE HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10,8,6,0.97);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: var(--nav-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}

/* Text wordmark (replaces old logo image) */
.brand { display: block; line-height: 1; flex-shrink: 0; }
.brand-name {
  font-family: 'Precious', cursive;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--gold);
  display: block;
}
.brand-sub {
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* === NAVIGATION === */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav ul li a {
  display: block;
  padding: 6px 11px;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.site-nav ul li a:hover,
.site-nav ul li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav .btn-reserve {
  background: var(--gold) !important;
  color: var(--bg) !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: var(--radius);
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.2s !important;
}
.site-nav .btn-reserve:hover { background: var(--gold-lt) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: var(--gold-lt); color: var(--bg); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn-wine { background: var(--wine-lt); color: var(--cream); }
.btn-wine:hover { background: var(--wine); }
.btn-lg { padding: 16px 42px; font-size: 0.8rem; letter-spacing: 0.22em; }

/* === HERO (HOME) === */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  display: flex;
  align-items: center;
  background-color: var(--bg);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: grayscale(20%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: clamp(56px, 10vw, 90px) var(--gutter);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-name {
  font-family: 'Parisienne', cursive;
  font-size: clamp(3.5rem, 13vw, 8rem);
  color: var(--cream);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-subtitle {
  font-size: clamp(0.62rem, 2.4vw, 0.78rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.hero-tagline {
  font-size: clamp(0.98rem, 2.4vw, 1.05rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  font-style: italic;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-divider { width: 60px; height: 1px; background: var(--gold); margin: 26px auto; opacity: 0.6; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-gold);
  padding: clamp(40px,7vw,52px) 0 clamp(34px,6vw,44px);
  text-align: center;
}
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-lt); }
.page-hero h1 {
  font-family: 'Parisienne', cursive;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.05;
}
.page-hero p { color: var(--text-muted); font-style: italic; font-size: 1rem; }

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: clamp(36px,6vw,52px); }
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.section-header h2 {
  font-family: 'Parisienne', cursive;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.1;
}
.section-header p { color: var(--text-muted); font-style: italic; max-width: 560px; margin: 0 auto; }

/* === GRIDS (fluid, auto-collapsing) === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px,4vw,32px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(18px,3vw,24px);
}

/* === FEATURE CARDS (home info strip) === */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(28px,4vw,36px) clamp(20px,3vw,28px);
  text-align: center;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--card-hover); }
.feature-card .icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 {
  font-family: 'Marcellus', Georgia, serif;
  color: var(--cream);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* === CTA BANNER === */
.cta-banner { background: var(--wine); text-align: center; padding: var(--section-y) var(--gutter); }
.cta-banner h2 {
  font-family: 'Parisienne', cursive;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 12px;
}
.cta-banner p { color: rgba(242,232,213,0.75); margin-bottom: 32px; font-style: italic; font-size: 1.05rem; }
.cta-banner .btn { margin: 6px 8px; }

/* ════════════════════════════════════════════════════════════════
   HOME BLOCKS — swappable seasonal / promo sections
   (rendered by render_home_block() in includes/config.php)
   ════════════════════════════════════════════════════════════════ */
.home-block      { padding: var(--section-y) 0; }
.home-block--alt { background-color: var(--surface); }

/* .promo — the card you build inside each sections/*.php file */
.promo {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(28px,5vw,48px) clamp(22px,5vw,52px);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.promo-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.promo-title {
  font-family: 'Parisienne', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 18px;
}
.promo-body { color: var(--text); line-height: 1.85; }
.promo-body p { margin-bottom: 16px; }
.promo-body p:last-child { margin-bottom: 0; }
.promo-body strong { color: var(--gold-lt); }
.promo-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Daily specials block (baked into the home page) */
.specials {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.specials .promo-meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.specials .promo-meta strong { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   MENU PAGE
   ════════════════════════════════════════════════════════════════ */
.menu-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.menu-intro p { color: var(--text); margin-bottom: 18px; line-height: 1.85; }
.menu-buttons {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 44px;
}
.menu-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 36px 52px;
  color: var(--cream);
  font-family: 'Parisienne', cursive;
  font-size: 2rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex: 1 1 220px;
  max-width: 320px;
}
.menu-btn:hover { background: var(--card-hover); border-color: var(--gold); color: var(--gold); }
.menu-btn .btn-label {
  font-family: Georgia, serif;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted);
}
.menu-btn .btn-info {
  font-family: Georgia, serif;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════
   DINING PAGE
   ════════════════════════════════════════════════════════════════ */
.room-section { margin-bottom: clamp(44px,7vw,68px); }
.room-section h3 {
  font-family: 'Parisienne', cursive;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--cream);
  text-align: center;
  margin-bottom: 10px;
}
.room-desc {
  text-align: center; color: var(--text-muted); font-style: italic;
  max-width: 640px; margin: 0 auto 32px; line-height: 1.8;
}
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.photo-grid img {
  width: clamp(200px, calc((100% - 24px) / 3), 260px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}
.photo-grid img:hover { opacity: 0.88; transform: scale(1.015); }

/* ════════════════════════════════════════════════════════════════
   WINE PAGE
   ════════════════════════════════════════════════════════════════ */
.wine-feature { text-align: center; max-width: 680px; margin: 0 auto; }
.wine-icon { font-size: 3.5rem; margin-bottom: 20px; }
.wine-feature p { color: var(--text); margin-bottom: 16px; line-height: 1.85; }
.wine-cta-wrap { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }

/* ════════════════════════════════════════════════════════════════
   EMPLOYMENT PAGE
   ════════════════════════════════════════════════════════════════ */
.employment-block { max-width: 720px; margin: 0 auto; text-align: center; }
.employment-block p { color: var(--text); margin-bottom: 16px; }
.employment-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 40px 0; }
.contact-info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 20px;
  text-align: left;
}
.contact-info-box p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.9; margin: 0; }
.contact-info-box strong { color: var(--gold); }
.contact-info-box a { color: var(--gold); transition: color 0.2s; }
.contact-info-box a:hover { color: var(--gold-lt); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px,4vw,40px);
  align-items: start;
}
.info-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 20px;
}
.info-block h3 {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-family: 'Marcellus', Georgia, serif;
}
.info-block p { color: var(--text); line-height: 1.9; font-size: 0.95rem; }
.info-block a { color: var(--gold); transition: color 0.2s; }
.info-block a:hover { color: var(--gold-lt); text-decoration: underline; }
.phone-large {
  font-family: 'Marcellus', Georgia, serif; font-size: 1.75rem; letter-spacing: 0.03em; color: var(--gold);
  display: block; margin-top: 6px;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; color: var(--text); font-size: 0.92rem; }
.hours-table td:first-child { color: var(--text-muted); width: 48%; }
.hours-table .closed { color: var(--text-muted); font-style: italic; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-gold); box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; width: 100%; height: clamp(280px, 45vw, 360px); border: none; }
.map-links { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.map-links .btn { flex: 1 1 140px; }

/* ════════════════════════════════════════════════════════════════
   IMAGE MODAL / LIGHTBOX
   ════════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-overlay img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border: 1px solid var(--border-gold); border-radius: var(--radius);
}
.modal-close {
  position: absolute; top: 16px; right: 22px;
  font-size: 2.4rem; color: var(--cream); cursor: pointer; line-height: 1;
  opacity: 0.75; transition: opacity 0.2s; user-select: none;
}
.modal-close:hover { opacity: 1; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border-gold);
  padding: clamp(40px,7vw,56px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px,5vw,44px);
  margin-bottom: 44px;
}
.footer-brand .brand-name {
  font-family: 'Precious', cursive; font-size: 2.2rem; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.75; }
.footer-col h4 {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-family: 'Marcellus', Georgia, serif;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a,
.footer-col a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover,
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.85; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px; text-align: center;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.08em;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-gold);
    padding: 12px 0 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav ul li a {
    padding: 13px var(--gutter);
    border-bottom: none;
    border-left: 2px solid transparent;
    font-size: 0.85rem;
  }
  .site-nav ul li a:hover,
  .site-nav ul li a.active { border-left-color: var(--gold); border-bottom-color: transparent; }
  .site-nav .btn-reserve {
    margin: 12px var(--gutter) 0 !important;
    display: block; text-align: center;
    border-radius: var(--radius) !important;
  }

  .topbar { font-size: 0.65rem; }
  .topbar .container { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col ul { padding: 0; }
  .cta-banner .btn { display: block; margin: 8px auto; max-width: 300px; }
  .map-links { flex-direction: column; }
}

@media (max-width: 420px) {
  .menu-btn { padding: 28px 24px; }
  .promo { padding: 26px 20px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
