/* Tekila Mexican Bar & Grill - Red Isle Web build
   Design: the bottle label. Black lacquer, gold hairlines, bone serif type,
   one centred spine, colour only inside framed photographs. */

@import url('fonts/fonts.css');

:root {
  --black: #0e0d0b;
  --panel: #14120e;
  --bone: #efe6d4;
  --bone-dim: #b3a88e;
  --gold: #c8a24b;
  --gold-line: rgba(200, 162, 75, 0.38);
  --gold-faint: rgba(200, 162, 75, 0.18);
  --display: 'Playfair Display', 'Times New Roman', serif;
  --text: 'EB Garamond', Georgia, serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- links ---------- */
a { color: var(--gold); text-decoration-color: var(--gold-faint); text-underline-offset: 3px; }
a:not(.btn):hover { color: #e0c27d; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.18;
  color: var(--bone);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: 0.16em; }

.display-brand {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
}

.kicker {
  font-family: var(--text);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bone-dim);
  letter-spacing: 0.01em;
}

.lede { font-size: 1.22rem; }
.dim { color: var(--bone-dim); }
.small { font-size: 0.95rem; }
p + p { margin-top: var(--s2); }

/* ---------- spine & sections ---------- */
.spine {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--s3);
  padding-right: var(--s3);
}
.spine--narrow { max-width: 760px; }

section { padding: var(--s6) 0; text-align: center; }
section.tight { padding: var(--s5) 0; }

/* hairline rule with diamond */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(420px, 70%);
  margin: 0 auto var(--s4);
}
.rule .rule-line {
  height: 1px;
  flex: 1;
  background: var(--gold-line);
}
.rule .diamond {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.rule--end { margin: var(--s4) auto 0; }

/* ornament */
.ornament { display: block; margin: 0 auto var(--s3); }
.ornament path {
  stroke: var(--gold);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
}

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--gold-faint);
  padding: var(--s3) 0 var(--s2);
  position: relative;
}
.head-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--bone);
}
.brand .display-brand { font-size: 1.5rem; }
.brand .brand-sub {
  font-family: var(--text);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-dim);
  letter-spacing: 0.02em;
  text-transform: none;
}
.brand .ornament { margin: 0; }
.brand .ornament path { stroke-width: 3; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px var(--s4);
}
.nav a {
  font-family: var(--display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold-line); }

#burger {
  display: none;
  background: none;
  border: 1px solid var(--gold-line);
  color: var(--bone);
  font-family: var(--display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 10px 22px;
  cursor: pointer;
}

/* ---------- hero: the label diptych ---------- */
.hero { padding: var(--s5) 0 var(--s6); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s5);
  align-items: center;
}
.hero-label { text-align: center; }
.hero-label .display-brand {
  font-size: clamp(2.6rem, 6vw, 4rem);
  display: block;
  margin: var(--s2) 0 4px;
}
.hero-sub {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--gold);
}
.hero-line { margin: var(--s3) auto 0; max-width: 40ch; }
.hero-cta { margin-top: var(--s4); display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
.hero-hours { margin-top: var(--s3); font-style: italic; color: var(--bone-dim); font-size: 1rem; }

/* ---------- framed photos ---------- */
.frame {
  border: 1px solid var(--gold-line);
  padding: 10px;
  background: var(--panel);
}
.frame .inner {
  border: 1px solid var(--gold-faint);
  overflow: hidden;
}
.frame figcaption {
  padding: 12px 6px 2px;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-dim);
  text-align: center;
}
.frame img { width: 100%; }

/* plate rows: framed photo off-axis beside centred text */
.plate {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s5);
  align-items: center;
  margin-top: var(--s5);
  text-align: left;
}
.plate.flip { grid-template-columns: 6fr 5fr; }
.plate.flip .frame { order: 2; }
.plate .copy { text-align: center; }
.plate .copy .rule { margin-bottom: var(--s3); }
/* frames hug their own image, never a sibling's height (kit section 1) */
.plate .frame, .hero-grid .frame { align-self: start; }

/* three-frame still life row */
.stills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
  align-items: start;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--gold-faint); color: #e6cd8f; }
.btn-solid { background: var(--gold); color: #14120e; font-weight: 600; }
.btn-solid:hover { background: #dab964; color: #14120e; }

/* ---------- carta (menu) ---------- */
.carta { text-align: left; max-width: 780px; margin: 0 auto; }
.carta-cat { margin-top: var(--s6); }
.carta-cat:first-of-type { margin-top: var(--s5); }
.carta-cat > h2 { text-align: center; }
.carta-intro {
  text-align: center;
  font-style: italic;
  color: var(--bone-dim);
  max-width: 56ch;
  margin: var(--s3) auto 0;
}
.dish { margin-top: var(--s3); }
.dish-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.dish-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--bone);
}
.dish-leader {
  flex: 1;
  border-bottom: 1px dotted var(--gold-line);
  transform: translateY(-5px);
}
.dish-price {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--gold);
  white-space: nowrap;
}
.dish-desc { margin-top: 6px; color: var(--bone-dim); font-size: 1.02rem; max-width: 62ch; }
.dish-note {
  display: inline-block;
  margin-top: 6px;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--bone-dim);
  border: 1px solid var(--gold-faint);
  padding: 1px 10px;
  border-radius: 999px;
}
.dish-note + .dish-note { margin-left: 6px; }

/* ---------- hours ledger ---------- */
.ledger { max-width: 460px; margin: var(--s4) auto 0; text-align: left; }
.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gold-faint);
}
.ledger-row .day { color: var(--bone); }
.ledger-row .fill { flex: 1; border-bottom: 1px dotted var(--gold-line); transform: translateY(-5px); }
.ledger-row .time { color: var(--bone-dim); font-style: italic; }

/* ---------- contact / visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  text-align: left;
  margin-top: var(--s5);
}
.visit-block { text-align: center; }
.map-frame {
  margin-top: var(--s5);
  border: 1px solid var(--gold-line);
  padding: 10px;
  background: var(--panel);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--gold-faint);
  filter: grayscale(0.35) contrast(1.02);
}

/* form */
form.res {
  max-width: 620px;
  margin: var(--s5) auto 0;
  text-align: left;
}
.field { margin-top: var(--s3); }
.field label {
  display: block;
  font-style: italic;
  color: var(--bone-dim);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--gold-line);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.05rem;
  padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.hp { position: absolute; left: -9999px; }
form .btn { margin-top: var(--s4); }
.form-note { margin-top: var(--s3); font-size: 0.95rem; font-style: italic; color: var(--bone-dim); }

/* reviews placeholder */
.reviews-placeholder {
  border: 1px dashed var(--gold-line);
  padding: var(--s5) var(--s4);
  max-width: 720px;
  margin: var(--s4) auto 0;
  color: var(--bone-dim);
  font-style: italic;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--gold-faint);
  padding: var(--s5) 0 calc(var(--s5) + 20px);
  text-align: center;
}
.site-foot .display-brand { font-size: 1.1rem; }
.foot-contact { margin-top: var(--s3); color: var(--bone-dim); font-style: italic; }
.foot-nav { margin-top: var(--s3); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px var(--s3); }
.foot-nav a { font-size: 0.95rem; }
.credit {
  margin-top: var(--s4);
  font-size: 0.9rem;
  color: rgba(179, 168, 142, 0.7);
}
.credit a { color: rgba(200, 162, 75, 0.8); }

/* ---------- mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--panel);
  border-top: 1px solid var(--gold-line);
  padding: 10px var(--s3) calc(10px + env(safe-area-inset-bottom));
  gap: var(--s2);
}
.callbar .btn { flex: 1; text-align: center; padding: 12px 8px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #14120e;
  padding: 10px 18px;
  z-index: 100;
  font-family: var(--display);
  font-size: 0.85rem;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- reveal motion (JS only) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
.js [data-rule] .rule-line {
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.1s ease;
}
.js [data-rule].revealed .rule-line { clip-path: inset(0 0 0 0); }
.js [data-draw] path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s ease;
}
.js [data-draw].drawn path { stroke-dashoffset: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-grid .frame { max-width: 480px; margin: 0 auto; }
  .plate, .plate.flip { grid-template-columns: 1fr; gap: var(--s4); }
  .plate.flip .frame { order: 0; }
  .plate .frame { max-width: 480px; margin: 0 auto; }
  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  section { padding: var(--s5) 0; }
  .callbar { display: flex; }
  #burger { display: inline-block; margin-top: 4px; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3) 0 var(--s2);
  }
  .nav.open { display: flex; }
  .stills { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .form-row { grid-template-columns: 1fr; }
}
