/* ===========================================================
   Flora Cantina Dallas — Modern Tex Mex & Tapas
   Palette and type taken from the live Wix site:
     navy #202B37 · teal #0FA89E · cream #F4EEE6 · blue #3850A2
     Playfair Display (display) · Heebo (body/UI)
   Structure follows the G Texas rebuild so the two read as siblings.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Heebo:wght@300;400;500;700&display=swap');

:root {
  --cream:     #f6f1ea;
  --sand:      #ece3d7;
  --navy:      #202b37;
  --navy-deep: #16202a;
  --teal:      #0d9c93;   /* darkened from the site's #0FA89E for AA on cream */
  --teal-br:   #0fa89e;   /* original, for use on dark only */
  --blue:      #3850a2;
  --ink:       #16161a;
  --text:      #4d5257;
  --muted:     #767b80;
  --rule:      #ded4c6;
  --white:     #fff;

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

/* ---------------- Layout ---------------- */
.wrap        { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-wide   { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { width: 100%; max-width: 780px;  margin: 0 auto; padding: 0 var(--gut); }
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.bg-band { background: var(--sand); }
.center-text { text-align: center; }

/* ---------------- Type ---------------- */
.display {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.15;
  letter-spacing: -.005em; margin: 0;
}
h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 500; line-height: 1.25; margin: 0 0 .7rem; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1.1rem; }

.eyebrow {
  font-family: var(--body); font-size: .74rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 .9rem;
}
.eyebrow.light { color: var(--teal-br); }

.ornament {
  display: block; width: 190px; max-width: 55%; height: 1px; border: 0;
  margin: 1.4rem auto 1.8rem;
  background: linear-gradient(to right, transparent, var(--rule) 15%, var(--teal) 50%, var(--rule) 85%, transparent);
}
.ornament.left { margin-left: 0; margin-right: 0; }

.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lede { max-width: 720px; margin: 0 auto; color: var(--text); font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2rem; }
.fineprint { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 2rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; font-family: var(--body); font-size: .8rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.9rem; background: var(--navy); color: #fff;
  border: 1px solid var(--navy); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: .68rem 1.3rem; font-size: .74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.btn-row.center { justify-content: center; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; }
/* Blur lives on ::before, not the header: backdrop-filter creates a containing
   block, which clips the fixed mobile drawer to the header's height. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 241, 234, .93); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.7rem); }
.nav a {
  font-size: .78rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: .3rem 0;
  border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease;
}
.nav a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); }
/* .nav a sets colour on every link, so the CTA must reassert its own. */
.nav .btn { color: #fff; border-bottom-color: var(--navy); }
.nav .btn:hover { color: #fff; border-bottom-color: var(--teal); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 0; min-height: min(76vh, 640px); display: grid; }
.hero > img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ''; grid-area: 1/1;
  background: linear-gradient(to right, rgba(22,32,42,.9), rgba(22,32,42,.62) 55%, rgba(22,32,42,.35));
}
.hero-inner {
  grid-area: 1/1; z-index: 1; align-self: center; color: #fff;
  padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem);
}
.hero-inner .display { color: #fff; max-width: 15ch; }
.hero-inner p { color: rgba(255,255,255,.86); max-width: 48ch; margin-top: 1.2rem; }
.hero-inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-inner .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.page-hero { position: relative; padding: 0; min-height: min(46vh, 380px); display: grid; }
.page-hero > img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; grid-area: 1/1; background: rgba(22,32,42,.68); }
.page-hero-inner { grid-area: 1/1; z-index: 1; align-self: center; text-align: center; color: #fff; }
.page-hero-inner .display { color: #fff; }
.page-hero-inner p { color: rgba(255,255,255,.85); margin-top: .8rem; }

/* ---------------- Notice band ---------------- */
.notice-band { background: var(--navy); color: #fff; padding: clamp(1.6rem, 3vw, 2.2rem) 0; text-align: center; }
.notice-band .eyebrow { margin-bottom: .5rem; }
.notice-text { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.88); font-size: .98rem; }
.notice-text a { color: var(--teal-br); text-underline-offset: 3px; }

/* ---------------- Split ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.split-body p:last-of-type { margin-bottom: 0; }

/* ---------------- Cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.card {
  display: flex; flex-direction: column; background: var(--white);
  text-decoration: none; color: inherit; border: 1px solid var(--rule);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(22,32,42,.10); }
.card-media { overflow: hidden; aspect-ratio: 3/2; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.4rem 1.3rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.15rem; margin-bottom: .5rem; }
.card-body p { font-size: .94rem; }
.card-link {
  margin-top: auto; padding-top: 1rem; font-size: .76rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--teal);
}

/* ---------------- Events ---------------- */
.event-list { display: grid; gap: 1rem; }
.event-list.wide { gap: 1.1rem; }
.event {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.4rem; align-items: center;
  background: var(--white); border: 1px solid var(--rule); padding: 1.2rem 1.4rem;
}
.event-list.wide .event { grid-template-columns: 132px 190px 1fr; }
.event-media { overflow: hidden; background: var(--sand); }
.event-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.event-date { display: flex; flex-direction: column; }
.event-date time {
  font-family: var(--display); font-size: 1.05rem; color: var(--ink); line-height: 1.3;
}
.event-date span { font-size: .8rem; letter-spacing: .06em; color: var(--teal); }
.event-body h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.event-body p { margin: 0; font-size: .93rem; }

/* ---------------- Order ---------------- */
.order-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.order-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .5rem; padding: 1.8rem 1.3rem; background: var(--white);
  border: 1px solid var(--rule); text-decoration: none; color: inherit;
  transition: transform .25s ease, border-color .2s ease;
}
.order-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.order-card img { width: 56px; height: 56px; border-radius: 12px; }
.order-name { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.order-blurb { font-size: .89rem; color: var(--text); }

.order-detail { display: grid; gap: 1.2rem; }
.order-detail-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 1.4rem; align-items: start;
  background: var(--white); border: 1px solid var(--rule); padding: 1.6rem;
}
.order-detail-card img { width: 72px; height: 72px; border-radius: 14px; }
.order-detail-card p { font-size: .95rem; }

/* ---------------- Photo grid / band ---------------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 1.1vw, .9rem); }
.photo-grid figure { margin: 0; overflow: hidden; background: var(--sand); }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; }
.band-photo-wrap { padding: 0; }
.band-photo { width: 100%; max-height: 520px; object-fit: cover; object-position: center; }

/* ---------------- Menu ---------------- */
.menu-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.menu-jump a {
  font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: .55rem 1rem;
  border: 1px solid var(--rule); background: var(--white);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.menu-jump a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* These are <section> elements nested inside a <section>, so the global
   `section { padding: ... }` rule above lands on them too — 96px top AND bottom
   each, on top of the margin. Reset it; spacing here comes from margin alone. */
.menu-group { padding: 0; margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.menu-cat {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center; margin-bottom: .3rem;
}
.menu-note { text-align: center; font-size: .88rem; color: var(--muted); font-style: italic; margin-bottom: 1.8rem; }
.menu-cat + .menu-items { margin-top: 1.8rem; }
.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem clamp(2rem, 4vw, 3.5rem); }
.menu-item { break-inside: avoid; }
.menu-line { display: flex; align-items: baseline; gap: .5rem; }
.menu-name { font-family: var(--display); font-size: 1.06rem; color: var(--ink); }
.menu-dots { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-3px); }
.menu-price { font-size: .95rem; font-weight: 500; color: var(--teal); }
.menu-desc { margin: .25rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--text); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-grid h3 { margin-top: 1.8rem; font-family: var(--body); font-size: .76rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.contact-lg { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.contact-lg a { text-decoration: none; }
.contact-lg a:hover { color: var(--teal); }
.map-embed { position: relative; aspect-ratio: 21/9; border: 1px solid var(--rule); background: var(--sand); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.social-row { display: flex; gap: .8rem; margin-top: 1.2rem; }
.social-row a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-row a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.social-row.dark a { border-color: var(--rule); color: var(--ink); }
.social-row.dark a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(1.8rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer-grid h3 { color: #fff; font-family: var(--body); font-size: .74rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid p { font-size: .92rem; margin-bottom: .7rem; }
.footer-grid a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-grid a:hover { color: var(--teal-br); }
.f-logo { height: 46px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.f-tag { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.2rem 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------------- Reveal ----------------
   Guarded on .js so the content is never invisible when scripting is off. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card, .card-media img, .order-card { transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .cards, .order-row, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-items { grid-template-columns: 1fr; }
  .event-list.wide .event { grid-template-columns: 110px 1fr; }
  .event-list.wide .event .event-body { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  /* Not translateX on a visible panel: an off-screen fixed element still counts
     toward document scrollWidth and gives the whole page a horizontal scrollbar. */
  .nav {
    display: none; position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 1.2rem; padding: 5.5rem 1.8rem 2rem; background: var(--cream);
    border-left: 1px solid var(--rule); box-shadow: -18px 0 40px rgba(22,32,42,.16);
    overflow-y: auto;
  }
  .nav.open { display: flex; animation: navIn .28s ease both; }
  @keyframes navIn { from { transform: translateX(100%); } to { transform: none; } }
  .nav a { font-size: .92rem; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .cards, .order-row { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .event, .event-list.wide .event { grid-template-columns: 1fr; gap: .8rem; }
  .event-media img { aspect-ratio: 16/9; }
  .order-detail-card { grid-template-columns: 1fr; }
  .hero-inner .display { max-width: none; }
  .map-embed { aspect-ratio: 4/3; }
}

@media print {
  .site-header, .nav, .btn-row, .menu-jump, .site-footer, .band-photo-wrap, .map-embed { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .menu-items { grid-template-columns: repeat(2, 1fr); }
  section { padding: .5rem 0; }
}
