/*
Theme Name: Cafe Greco Luxe
Theme URI: https://cafegreco.com.au
Author: Cafe Greco
Description: A luxury dark restaurant theme with red and gold accents. Every section — hero, featured dishes, menu list, about, visit and contact — is fully editable from Appearance → Customize. Converted from the original Lovable design.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cafe-greco
Tags: dark, restaurant, luxury, one-page, custom-colors
*/

/* ---------- Design tokens (overridable via Customizer) ---------- */
:root {
  --bg: #141110;
  --fg: #f4eee1;
  --muted: #b3a996;
  --secondary: #201b19;
  --border: #38302c;
  --primary: #c1332b;
  --primary-fg: #faf6ec;
  --gold: #ddb35e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 112.5%; } /* 18px base instead of 16px — scales every rem size site-wide */
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s, border-color .25s, background .25s, opacity .25s; }
h1,h2,h3,h4,blockquote { font-family: var(--serif); font-weight: 500; margin: 0; }

.container { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.eyebrow {
  font-size: .85rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .75rem;
}
.track { letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: .5rem; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .3em; }
.brand .gold { color: var(--gold); }
.brand img.custom-logo { max-height: 2.5rem; width: auto; }
.main-nav { display: none; align-items: center; gap: 2rem; font-size: .95rem; }
.main-nav a { letter-spacing: .18em; text-transform: uppercase; }
.main-nav a:hover { color: var(--primary); }
.btn-book {
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--border); padding: .5rem 1rem;
}
.btn-book:hover { border-color: var(--primary); color: var(--primary); }
@media (min-width: 768px) { .main-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 40rem; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg) 40%, transparent),
    color-mix(in srgb, var(--bg) 60%, transparent),
    var(--bg));
}
.hero-inner {
  position: relative; z-index: 10; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem;
}
.hero-tag { font-size: .95rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.5rem; }
.hero-title { font-size: clamp(3.5rem, 10vw, 6.5rem); line-height: 1; letter-spacing: -.01em; }
.hero-title em { font-style: italic; color: var(--primary); }
.hero-sub { margin-top: 1.5rem; max-width: 36rem; color: var(--muted); font-size: 1.2rem; line-height: 1.6; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  padding: .8rem 2rem; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
}
.btn-primary:hover { opacity: .9; }
.btn-ghost {
  border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent);
  padding: .8rem 2rem; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero-meta {
  margin-top: 4rem; display: flex; align-items: center; gap: 1.5rem;
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero-meta .sep { display: none; }
@media (min-width: 640px) { .hero-meta .sep, .hero-meta .optional { display: inline; } }
.hero-meta .optional { display: none; }
@media (min-width: 640px) { .hero-meta .optional { display: inline; } }

/* ---------- Menu / featured ---------- */
.section { padding: 6rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 4rem; }
.section-title { font-size: clamp(2.25rem, 5vw, 3rem); }
.section-blurb { max-width: 26rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.dishes { display: grid; gap: 2rem; }
@media (min-width: 768px) { .dishes { grid-template-columns: repeat(3, 1fr); } }
.dish .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--secondary); }
.dish img { height: 100%; width: 100%; object-fit: cover; transition: transform .7s; }
.dish:hover img { transform: scale(1.05); }
.dish h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.dish p { margin: .5rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.menu-list { margin-top: 6rem; border-top: 1px solid var(--border); padding-top: 4rem; }
.menu-grid { display: grid; column-gap: 2rem; }
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-row {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  padding: 1rem 0;
}
.menu-row .name { font-family: var(--serif); font-size: 1.15rem; }
.menu-row .price { font-size: .85rem; color: var(--muted); letter-spacing: .18em; }

/* ---------- About ---------- */
.band { background: color-mix(in srgb, var(--secondary) 40%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-title { font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.15; }
.about-text { margin-top: 2rem; color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; font-size: .875rem; }
.stats dt { color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; }
.stats dd { font-family: var(--serif); font-size: 1.9rem; margin: .5rem 0 0; }
.pull-quote {
  font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.4; font-style: italic;
  border-left: 2px solid var(--primary); padding-left: 2rem;
}
.pull-quote footer {
  margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: .9rem;
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- Visit ---------- */
.visit-title { font-size: clamp(2.25rem, 5vw, 3rem); margin-bottom: 4rem; }
.visit-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.visit-grid h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; font-weight: 300; }
.visit-grid p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.7; margin: 0; }
.visit-links { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.visit-links a { letter-spacing: .18em; text-transform: uppercase; }
.visit-links a:hover, .visit-grid p a:hover { color: var(--primary); }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 56rem; margin: 0 auto; }
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  padding: 2.5rem;
}
.contact-card:hover { border-color: var(--primary); background: var(--bg); }
.contact-card svg { width: 2rem; height: 2rem; stroke: var(--gold); transition: stroke .25s; }
.contact-card:hover svg { stroke: var(--primary); }
.contact-card span { font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .inner {
  padding: 2.5rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Blog / inner pages fallback ---------- */
.page-shell { padding: 8rem 0 6rem; max-width: 48rem; margin: 0 auto; }
.page-shell h1 { font-size: 2.5rem; margin-bottom: 2rem; }
.page-shell .entry { color: var(--muted); }
.page-shell .entry a { color: var(--gold); }
.page-shell article + article { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 3rem; }

/* ---------- "Our menus" PDF buttons ---------- */
.menus-title { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 2.5rem; }
.menu-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.menu-btn {
  border: 1px solid var(--border); padding: 1rem 2rem;
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
}
.menu-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- PDF viewer page ---------- */
.pdf-viewer-shell { min-height: 100vh; display: flex; flex-direction: column; padding-top: 4rem; }
.pdf-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 4rem; border-bottom: 1px solid var(--border); max-width: 64rem;
}
.pdf-back { font-size: .9rem; }
.pdf-back:hover { color: var(--primary); }
.pdf-title { font-size: 1.5rem; }
.pdf-main { flex: 1; max-width: 64rem; width: 100%; padding-top: 2rem; padding-bottom: 2rem; }
.pdf-frame { width: 100%; height: 80vh; background: var(--secondary); border: 0; display: block; }
.pdf-fallback { margin-top: 1.5rem; font-size: 1rem; color: var(--muted); text-align: center; }
.pdf-fallback a { text-decoration: underline; }
.pdf-fallback a:hover { color: var(--primary); }
.pdf-empty { text-align: center; padding: 6rem 1rem; border: 1px dashed var(--border); }
.pdf-empty h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.pdf-empty p { color: var(--muted); }

