/* ===========================================================
   Flora Cantina Dallas — V2
   Deliberately faithful to the original Wix site's look, not to the
   G Texas family. Everything below is measured off floracantinadallas.com:

     headings   Playfair Display, ROYAL BLUE #3850A2  (42px section, 72px page)
     subheads   bold, near-black #161616, letter-spacing 3.3px, uppercase
     body       Heebo 18px, NAVY #202B37   <- body is navy, headings are blue
     accents    teal #0FA89E
     page       cream #F4EEE6 · cards white · footer royal blue

   The signature move on the original is a WHITE CARD OVERLAPPING A PHOTO,
   alternating sides down the page, with the card's text centred. That, the
   blue serif, and the rotated street address are what make it read as Flora.
   =========================================================== */

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

:root {
  --cream: #f4eee6;
  --white: #fff;
  --blue:  #3850a2;   /* headings, footer — the dominant brand colour */
  --navy:  #202b37;   /* body copy and dark panels */
  --ink:   #161616;   /* wide-tracked subheads */
  --teal:  #0fa89e;
  --teal-dk: #0d8f87;
  --rule:  #ded4c6;

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

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font-family: var(--body); font-size: 18px; font-weight: 400; line-height: 1.7;
  -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(--blue); color: #fff; padding: .8rem 1.2rem; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 var(--gut); }
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
section.tight { padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
section.flush { padding: 0; }
.center-text { text-align: center; }

/* ---------------- Type ----------------
   Headings are blue and serif; body is navy and sans. Keeping those two
   assignments straight is most of the original's character. */
.h-page {
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.1; margin: 0;
}
.h-blue {
  font-family: var(--display); font-weight: 400; color: var(--blue);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; margin: 0 0 .8rem;
}
.h-sub {
  font-family: var(--body); font-weight: 700; color: var(--ink);
  font-size: clamp(.92rem, 1.3vw, 1.05rem); letter-spacing: 3.3px;
  text-transform: uppercase; line-height: 1.5; margin: 0 0 1.2rem;
}
h3 { font-family: var(--display); font-weight: 500; color: var(--blue); font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1rem; }

/* Teal flourish, lifted from the logo mark — the original dots these around
   the corners of its white cards. */
.flourish { display: block; width: 62px; height: auto; opacity: .95; }
.flourish.br { margin: 1.2rem 0 0 auto; }
.flourish.c  { margin: 0 auto .8rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: .9rem 1.9rem; background: var(--blue); color: #fff; border: 2px solid var(--blue);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--teal-dk); border-color: var(--teal-dk); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.btn-row.center { justify-content: center; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal-dk); outline-offset: 3px; }

/* ---------------- Header ----------------
   Cream, not translucent — the original header is a plain solid bar. */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a {
  font-family: var(--display); font-size: 1rem; letter-spacing: .04em;
  text-decoration: none; color: var(--blue); padding: .2rem 0;
  border-bottom: 2px solid transparent; transition: border-color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav .btn { color: #fff; border-bottom-color: var(--blue); font-family: var(--body); font-size: .72rem; padding: .6rem 1.2rem; }
.nav .btn:hover { color: #fff; }
.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(--blue); }

/* ---------------- Heroes ---------------- */
.hero { position: relative; padding: 0; min-height: min(72vh, 620px); display: grid; }
.hero > img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; grid-area: 1/1; background: rgba(22,32,42,.45); }
.hero-inner { grid-area: 1/1; z-index: 1; align-self: center; text-align: center; color: #fff; padding: 3rem 0; }
.hero-inner .h-page { text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero-inner p { color: #fff; max-width: 46ch; margin: 1.2rem auto 0; text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* Page banner: photo strip with the mark + title centred, as on the original */
.page-band { position: relative; padding: 0; min-height: 240px; display: grid; }
.page-band > img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; }
.page-band::after { content: ''; grid-area: 1/1; background: rgba(22,32,42,.42); }
.page-band-inner { grid-area: 1/1; z-index: 1; align-self: center; display: flex; align-items: center;
  justify-content: center; gap: .6rem; }
.page-band-inner img { width: clamp(48px, 6vw, 82px); height: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }

/* ---------------- Overlap: the signature layout ----------------
   A photo with a white card pulled over its edge. .flip puts the card on the
   right. Below 900px the overlap is abandoned and they simply stack, because
   a negative margin at phone width just makes the card cover the photo. */
/* Proportions match the original: the photo takes ~60% and the card ~40%,
   with the card pulled about 14% over the photo's edge. Columns swap on .flip
   so the photo always gets the wider track. */
.overlap { display: grid; grid-template-columns: 40% 60%; align-items: center; }
.overlap.flip { grid-template-columns: 60% 40%; }
.overlap-media { grid-area: 1/2/2/3; }
.overlap.flip .overlap-media { grid-area: 1/1/2/2; }
.overlap-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.panel {
  z-index: 2; background: var(--white);
  padding: clamp(1.8rem, 3vw, 2.8rem); text-align: center;
  box-shadow: 0 14px 40px rgba(32,43,55,.10);
}
.overlap:not(.flip) .panel { grid-area: 1/1/2/2; margin-right: -14%; }
.overlap.flip .panel { grid-area: 1/2/2/3; margin-left: -14%; }
.panel p { font-size: .97rem; }

/* ---------------- Hours panel over a dark photo ---------------- */
.hours-band { position: relative; padding: 0; display: grid; min-height: 380px; }
.hours-band > img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; }
.hours-band::after { content: ''; grid-area: 1/1; background: rgba(10,12,16,.55); }
.hours-inner { grid-area: 1/1; z-index: 1; align-self: center; }
.hours-card { background: rgba(50,66,94,.94); color: #fff; max-width: 520px; padding: clamp(2rem, 4vw, 3rem); text-align: center; }
.hours-card .h-blue { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.hours-card .h-sub { color: #fff; }
.hours-card p { font-size: .97rem; color: rgba(255,255,255,.9); }
.hours-card .btn-light { margin-top: .4rem; }

/* Rotated street address, as on the original */
.vert-addr {
  position: absolute; right: clamp(.5rem, 3vw, 2.5rem); top: 50%; z-index: 3;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-size: .78rem; font-weight: 500; letter-spacing: .28em; color: #fff;
  display: flex; align-items: center; gap: 1rem;
}
.vert-addr::after { content: ''; width: 2px; height: 90px; background: var(--blue); }

/* ---------------- Cards / grids ---------------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.tile { background: var(--white); text-decoration: none; color: inherit; display: flex; flex-direction: column;
  box-shadow: 0 10px 28px rgba(32,43,55,.07); transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(32,43,55,.13); }
.tile-media { overflow: hidden; aspect-ratio: 3/2; background: var(--rule); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-body { padding: 1.5rem 1.4rem 1.7rem; text-align: center; flex: 1; display: flex; flex-direction: column; }
.tile-body p { font-size: .93rem; }
.tile-link { margin-top: auto; padding-top: 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal-dk); }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.photo-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.band-photo { width: 100%; max-height: 460px; object-fit: cover; }

/* ---------------- Teal rule ---------------- */
.teal-bar { height: 12px; background: var(--teal); width: min(560px, 62%); }
.teal-bar.center { margin: 0 auto; }
.teal-bar.thin { height: 5px; width: 120px; margin: 1.2rem auto 1.6rem; }
.panel .teal-bar.thin { margin: 1rem auto 1.4rem; }

/* ---------------- Events ---------------- */
.ev-list { display: grid; gap: 1.2rem; }
.ev {
  display: grid; grid-template-columns: 120px 200px 1fr; gap: 1.6rem; align-items: center;
  background: var(--white); padding: 1.2rem 1.5rem; box-shadow: 0 8px 22px rgba(32,43,55,.06);
}
.ev-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ev-when time { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--blue); line-height: 1.3; }
.ev-when span { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--teal-dk); }
.ev-body h3 { margin-bottom: .25rem; }
.ev-body p { font-size: .93rem; }

/* ---------------- Order ---------------- */
.order-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.order-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem;
  padding: 2rem 1.4rem; background: var(--white); text-decoration: none; color: inherit;
  box-shadow: 0 10px 26px rgba(32,43,55,.07); transition: transform .25s ease; }
.order-card:hover { transform: translateY(-4px); }
.order-card img { width: 58px; height: 58px; border-radius: 13px; }
.order-name { font-family: var(--display); font-size: 1.2rem; color: var(--blue); }
.order-blurb { font-size: .9rem; }
.order-detail { display: grid; gap: 1.2rem; }
.order-detail-card { display: grid; grid-template-columns: 76px 1fr; gap: 1.5rem; align-items: start;
  background: var(--white); padding: 1.7rem; box-shadow: 0 8px 22px rgba(32,43,55,.06); }
.order-detail-card img { width: 76px; height: 76px; border-radius: 15px; }
.order-detail-card p { font-size: .95rem; }

/* ---------------- Menu ---------------- */
.menu-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.menu-jump a { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; color: var(--blue); padding: .6rem 1.1rem;
  background: var(--white); border: 2px solid transparent; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.menu-jump a:hover { border-color: var(--teal); }
.menu-group { padding: 0; margin-top: clamp(2.2rem, 4.5vw, 3.4rem); }
.menu-cat { font-family: var(--display); color: var(--blue); font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center; margin: 0 0 .2rem; font-weight: 400; }
.menu-note { text-align: center; font-size: .86rem; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 700; color: var(--ink); margin: 0 0 1.6rem; }
.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.7rem clamp(2rem, 4vw, 3.5rem); }
.menu-line { display: flex; align-items: baseline; gap: .5rem; }
.menu-name { font-family: var(--display); font-size: 1.08rem; color: var(--blue); }
.menu-dots { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-3px); }
.menu-price { font-size: .95rem; font-weight: 700; color: var(--teal-dk); }
.menu-desc { margin: .3rem 0 0; font-size: .9rem; line-height: 1.6; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-lg { font-family: var(--display); font-size: 1.3rem; color: var(--blue); }
.contact-lg a { text-decoration: none; }
.contact-lg a:hover { color: var(--teal-dk); }
.map-embed { position: relative; aspect-ratio: 21/9; background: var(--rule); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social-row { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-row a { display: grid; place-items: center; width: 42px; height: 42px; color: #fff;
  background: var(--blue); text-decoration: none; transition: background .2s ease; }
.social-row a:hover { background: var(--teal-dk); }

.fineprint { font-size: .86rem; text-align: center; margin-top: 2rem; color: #5c6570; }
.prose h2 { margin-top: 2rem; }

/* ---------------- Footer ----------------
   Royal blue band, social left, logo centred — as on the original. */
.site-footer { background: var(--blue); color: #fff; }
.footer-top { background: var(--navy); padding: clamp(2.5rem,5vw,3.5rem) 0; }
.footer-top .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-top h3 { color: #fff; font-family: var(--body); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-top p, .footer-top a { color: rgba(255,255,255,.82); font-size: .93rem; text-decoration: none; }
.footer-top a:hover { color: var(--teal); }
.footer-nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 0; }
.footer-bar .social-row { margin: 0; }
.footer-bar .social-row a { background: transparent; border: 0; width: 34px; height: 34px; }
.footer-bar .social-row a:hover { background: transparent; color: #cfe6e4; }
.footer-bar a { color: #fff; }
.f-links { display: flex; gap: clamp(1rem, 4vw, 3rem); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.f-links a { text-decoration: underline; text-underline-offset: 4px; }
.f-logo { height: 56px; width: auto; filter: brightness(0) invert(1); }
.footer-legal { padding: 0 0 1.4rem; font-size: .76rem; color: rgba(255,255,255,.8); text-align: center; }
.footer-legal a { color: #fff; }

/* ---------------- Reveal ---------------- */
.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; }
  .tile, .tile-media img, .order-card { transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .tri, .order-row { grid-template-columns: repeat(2, 1fr); }
  .ev { grid-template-columns: 100px 1fr; }
  .ev-body { grid-column: 1 / -1; }
  .footer-top .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Drop the overlap entirely: a negative margin at this width just parks the
     card on top of the photo and hides it. */
  .overlap, .overlap.flip { grid-template-columns: 1fr; }
  .overlap-media, .overlap.flip .overlap-media { grid-area: auto; }
  .panel, .overlap:not(.flip) .panel, .overlap.flip .panel {
    grid-area: auto; margin: -2.5rem clamp(1rem, 5vw, 3rem) 0; }
  .vert-addr { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  /* display:none rather than translateX — an off-screen fixed panel still adds
     to document scrollWidth and gives the page a horizontal scrollbar. */
  .nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px);
    flex-direction: column; align-items: flex-start; gap: 1.3rem;
    padding: 6rem 1.8rem 2rem; background: var(--cream);
    box-shadow: -18px 0 40px rgba(32,43,55,.18); overflow-y: auto; }
  .nav.open { display: flex; animation: navIn .28s ease both; }
  @keyframes navIn { from { transform: translateX(100%); } to { transform: none; } }
  .tri, .order-row, .contact-grid, .photo-strip { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 1fr; gap: .8rem; }
  .ev-media img { aspect-ratio: 16/9; }
  .order-detail-card { grid-template-columns: 1fr; }
  .menu-items { grid-template-columns: 1fr; }
  .footer-top .wrap { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; text-align: center; }
  .map-embed { aspect-ratio: 4/3; }
}

@media print {
  .site-header, .nav, .btn-row, .menu-jump, .site-footer, .map-embed, .hours-band { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  section { padding: .5rem 0; }
}
