/* =========================================================================
   Whatley's Bar — house stylesheet
   Brand palette (whatleys_bar_brand_palette.pdf) + impeccable-style discipline.
   Deliberate heritage Irish-pub register: green-black, antique gold, cream.
   No AI-slop tells — no gradient text, no side-tab borders, no pill eyebrows.
   ========================================================================= */

:root {
  /* Brand palette */
  --green:        #0F6B2E;
  --green-deep:   #0B4F22;
  --green-black:  #0a1810;  /* atmospheric page ground, drawn from the photos */
  --green-panel:  #102a1b;  /* raised surfaces */
  --cream:        #E8E3D6;
  --gold:         #D4AF37;
  --gold-dark:    #B8922E;
  --gold-light:   #E5C878;
  --white:        #ffffff;

  /* Derived text tones (kept high-contrast on dark ground for AA) */
  --ink:          #f3efe4;            /* near-cream body text on dark */
  --ink-soft:     #cfc9b8;            /* secondary text, still ~7:1 on ground */
  --ink-on-cream: #15301f;            /* dark green text for cream sections */

  /* Type — distinctive display + refined body, deliberately NOT Inter/Geist */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing rhythm (varied, not monotone) */
  --s1: 0.5rem;  --s2: 0.75rem; --s3: 1rem;   --s4: 1.5rem;
  --s5: 2.5rem;  --s6: 4rem;    --s7: 6rem;    --s8: 9rem;

  --measure: 68ch;
  --radius: 14px;          /* cards top out 12–16px */
  --radius-sm: 8px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);   /* ease-out, never bounce */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;                 /* >=16 ideal */
  line-height: 1.65;               /* 1.5–1.7 */
  color: var(--ink);
  background: var(--green-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* ---------- Type scale (>=1.25 ratio between steps) ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--ink); }
.display  { font-size: clamp(2.6rem, 6.5vw, 5rem);  font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p, li { max-width: var(--measure); }          /* 65–75ch measure */
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Small uppercase label — used sparingly, NOT as a hero eyebrow pill */
.kicker {
  font-family: var(--body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;       /* wide tracking only on short labels */
  color: var(--gold); display: inline-block;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem); }   /* never touch viewport edge */
.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.02em; padding: 0.85em 1.6em; border-radius: 999px;  /* full-pill OK for buttons */
  cursor: pointer; border: 1px solid transparent; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }     /* transform only — no layout animation */
.btn--gold { background: var(--gold); color: #160f02; }
.btn--gold:hover { background: var(--gold-light); color: #160f02; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(212,175,55,.5); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,24,16,.82);
  backdrop-filter: blur(10px);          /* functional layering, not decorative glass */
  border-bottom: 1px solid rgba(212,175,55,.18);
}
.nav { display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding-block: 0.7rem; }
.nav__brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav__brand img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none; padding: 0; }
.nav__links a { font-family: var(--body); color: var(--ink-soft); text-decoration: none;
  font-weight: 500; font-size: 0.97rem; transition: color .2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-light); }
/* Keep the gold "Book a table" button text dark — beat .nav__links a specificity */
.nav__links a.btn--gold,
.nav__links a.btn--gold:hover,
.nav__links a.btn--gold[aria-current="page"] { color: #160f02; font-weight: 700; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink);
  font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: grid;
  align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,24,16,.55) 0%, rgba(10,24,16,.35) 40%, rgba(10,24,16,.92) 100%),
    radial-gradient(60% 55% at 50% 38%, rgba(10,24,16,.05), rgba(10,24,16,.65)); }
.hero__inner { padding-block: var(--s8) var(--s6); }
.hero__badge { width: clamp(220px, 34vw, 360px); height: auto; margin-bottom: var(--s4);
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.55)); }
.hero .lead { max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* ---------- Surfaces / cards (no hairline+shadow combo, no nesting) ---------- */
.panel { background: var(--green-panel); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem); }
.elevated { box-shadow: 0 24px 60px -28px rgba(0,0,0,.7); }   /* elevation, no border */

/* Feature rows — alternating, deliberately NOT an identical card grid */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); aspect-ratio: 4/3; }
.feature__body { max-width: 52ch; }

/* Cream section — flips contrast for variety/rhythm */
.section--cream { background: var(--cream); color: var(--ink-on-cream); }
.section--cream h1, .section--cream h2, .section--cream h3 { color: var(--ink-on-cream); }
.section--cream .kicker { color: var(--gold-dark); }   /* gold-dark for contrast on cream */
.section--cream a { color: var(--green); }
.section--cream .lead { color: #3a4a3f; }
/* Forms on cream: flip to dark-on-light so labels/inputs stay legible (AA) */
.section--cream .field label { color: #2c3a30; }
.section--cream .field input,
.section--cream .field textarea,
.section--cream .field select {
  color: var(--ink-on-cream); background: #fbfaf5;
  border-color: rgba(21,48,31,.28); }
.section--cream .field input::placeholder,
.section--cream .field textarea::placeholder { color: #7c857c; }
.section--cream .form-note { color: #3a4a3f; }

/* Three offerings — varied weights so it isn't a monotone grid */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.offer { border-radius: var(--radius); overflow: hidden; background: var(--green-panel);
  display: flex; flex-direction: column; }
.offer img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.offer__body { padding: 1.4rem 1.4rem 1.7rem; }
.offer h3 { margin-bottom: .4rem; }
.offer p { color: var(--ink-soft); font-size: .98rem; }

/* Decorative gold rule echoing the badge flourish */
.rule { border: 0; height: 1px; width: 90px; margin: var(--s3) 0;
  background: linear-gradient(90deg, var(--gold), transparent); }
.rule.center { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 130px; }

/* ---------- Gallery band ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.gallery a { overflow: hidden; }
.gallery img { transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }    /* subtle, the one allowed image motion */

/* ---------- Menu ---------- */
.menu-cat + .menu-cat { margin-top: var(--s6); }
.menu-cat__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: var(--s4); }
.menu-cat__head::after { content: ""; flex: 1; height: 1px; background: rgba(212,175,55,.3); }
.menu-list { list-style: none; padding: 0; display: grid; gap: var(--s4); max-width: none; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; max-width: none; }
.menu-item__name { font-family: var(--display); font-size: 1.18rem; color: var(--ink); }
.menu-item__price { font-family: var(--body); font-weight: 600; color: var(--gold-light); white-space: nowrap; }
.menu-item__desc { grid-column: 1 / -1; color: var(--ink-soft); font-size: .96rem; max-width: 60ch; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s7); }

/* ---------- Info / details ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s5); }
.info h3 { color: var(--gold-light); font-family: var(--body); font-weight: 700;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.hours { list-style: none; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px solid rgba(232,227,214,.1); max-width: 32ch; }
.hours span:last-child { color: var(--ink-soft); }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: var(--s3); }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.04); border: 1px solid rgba(232,227,214,.22);
  border-radius: var(--radius-sm); padding: .8rem 1rem; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Embed (OpenTable) ---------- */
.embed { background: var(--green-panel); border-radius: var(--radius); padding: clamp(1.2rem,3vw,2rem);
  display: grid; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); border-top: 2px solid var(--gold-dark);
  padding-block: var(--s6) var(--s4); margin-top: var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); }
.site-footer img.badge { width: 180px; margin-bottom: var(--s3); }
.site-footer h4 { font-family: var(--body); font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .8rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-bottom { margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid rgba(232,227,214,.12); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .88rem; }

/* ---------- Reveal on scroll (opacity/transform only) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .gallery a:hover img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .feature, .menu-cols { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .nav__links { position: fixed; inset: 64px 0 auto 0; flex-direction: column;
    background: var(--green-deep); padding: 1.5rem; gap: 1.2rem;
    border-bottom: 1px solid rgba(212,175,55,.2); transform: translateY(-130%);
    transition: transform .3s var(--ease); }
  .nav__links.open { transform: none; }
  .nav__toggle { display: block; }
}
