/* =========================================================================
   Maverick Men's Grooming Center
   styles.css — hand-built, no framework
   -------------------------------------------------------------------------
   Palette   : warm bone paper, near-black ink, one oxblood accent
   Type      : Barlow Condensed (display) + Source Serif 4 (text)
   Structure : .wrap containers, section rhythm, a small button + frame system
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --paper:       #f4f0e7;   /* page background — warm bone */
  --paper-alt:   #ece5d7;   /* alternating section band */
  --card:        #faf7f0;   /* raised surfaces */
  --ink:         #1f1c18;   /* primary text — warm near-black */
  --ink-soft:    #55504a;   /* secondary text */
  --ink-faint:   #6a635c;   /* captions, meta — darkened from #8a8279 for WCAG AA contrast (4.5:1) on paper */
  --line:        #d9d0c0;   /* hairlines on paper */
  --line-strong: #c3b8a4;
  --accent:      #8e07ed;   /* brand purple, sampled from the logo/business card and darkened ~2% for WCAG AA on paper-alt */
  --accent-deep: #6a05b1;
  --accent-tint: #efe4f6;

  --ink-panel:   #1c1a17;   /* dark bands (info strip, footer) */
  --on-panel:    #e9e2d4;
  --on-panel-faint: #9c9488;

  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --shadow-sm: 0 1px 2px rgba(31, 28, 24, 0.08);
  --shadow-md: 0 14px 40px -18px rgba(31, 28, 24, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent-deep); text-decoration: underline; }

h1, h2, h3, .wordmark-name {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); text-transform: uppercase; letter-spacing: 0.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); text-transform: uppercase; letter-spacing: 0.03em; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--paper-alt); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
/* Pages with no hero (gallery, legal, 404) use a real <h1> as their one page
   heading, sized to match the section h2's elsewhere so it looks the same. */
.section-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; letter-spacing: 0.01em; }
.section-intro { color: var(--ink-soft); font-size: 1.15rem; margin-top: 0.9rem; }
.section-head-cta { margin-top: 1.6rem; }
.section-foot { margin-top: clamp(2rem, 5vw, 3rem); }

/* Eyebrow label with a short rule */
.eyebrow {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* Sticky-header scroll offset for anchor links */
:where(#services, #about, #book, #visit, #gallery, #policy, #notfound) { scroll-margin-top: 92px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; text-decoration: none; color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.95rem;
  --btn-pad-x: 1.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:hover { text-decoration: none; }

/* Short/long button labels (header CTA collapses to "Book" on phones) */
.lbl-short { display: none; }
.btn:active { transform: translateY(1px); }

.btn-sm { --btn-pad-y: 0.65rem; --btn-pad-x: 1.15rem; font-size: 0.92rem; min-height: 44px; }

.btn-accent {
  background: var(--accent);
  color: #fbf3ef;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fbf3ef; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: rgba(31,28,24,0.04); }

.btn-on-dark {
  color: var(--on-panel);
  border-color: rgba(233, 226, 212, 0.4);
}
.btn-on-dark:hover { border-color: var(--on-panel); color: var(--on-panel); background: rgba(233,226,212,0.08); }

/* ---------- Framed media (photos, iframes) ---------- */
.frame {
  margin: 0;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}
.frame > img,
.frame > iframe,
.frame > .photo-ph { display: block; width: 100%; border: 0; }
.frame figcaption {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding: 0.7rem 0.2rem 0.2rem;
  text-align: center;
}

/* Placeholder shown until real photos are dropped in (see images/README.md) */
.photo-ph {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background-color: var(--paper-alt);
  background-image:
    repeating-linear-gradient(-45deg,
      rgba(142, 7, 237, 0.06) 0 1px,
      transparent 1px 11px);
  color: var(--ink-faint);
  text-align: center;
}
.photo-ph span {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.photo-ph small { font-size: 0.75rem; opacity: 0.75; }
.photo-ph--square { aspect-ratio: 1 / 1; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(6px);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px -6px rgba(31, 28, 24, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-height: 72px;
  padding-block: 0.6rem;
}

.wordmark { display: flex; align-items: center; gap: 0.5rem; line-height: 1; color: var(--ink); min-width: 0; flex: 1 1 auto; overflow: hidden; }
.wordmark-mark { height: 1.9rem; width: auto; flex: none; display: block; }
.wordmark-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.wordmark-name, .wordmark-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark-name {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wordmark-sub {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin-top: 0.18rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 0.4rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.site-nav a:hover { text-decoration: none; color: var(--accent); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-block: clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero h1 { margin-bottom: 0.55rem; }
.hero-tagline {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--accent);
  margin: 0 0 1.3rem;
}
.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 36rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.trust-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.trust-icon { flex: none; color: var(--accent); }
.hero-photo { max-width: 460px; margin-inline: auto; }
.hero-photo .photo-ph { aspect-ratio: 4 / 5; }
/* The storefront photo is a tall phone shot; crop it to a calmer portrait
   and bias the framing upward so the sign stays in view. */
.hero-photo img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%; }

/* =========================================================================
   INFO STRIP  (dark band)
   ========================================================================= */
.info-strip {
  background: var(--ink-panel);
  color: var(--on-panel);
}
.info-strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}
.info-label {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--on-panel-faint);
  margin: 0 0 0.35rem;
}
.info-value { margin: 0; font-size: 1.02rem; }
.info-value a { color: var(--on-panel); text-decoration: underline; text-decoration-color: rgba(233,226,212,0.4); }
.info-value a:hover { text-decoration-color: currentColor; }

/* =========================================================================
   SERVICES — typographic menu
   ========================================================================= */
.menu { list-style: none; margin: 0; padding: 0; }
/* Each row is a small grid: name | dotted leader | price on the first line,
   and an optional note on its own second line spanning the full row. The
   note used to live inside .menu-name, which made that box as wide as the
   note - so the leader started after the *note's* right edge instead of
   right after the name. Keeping the note out of the name's column means the
   leader always starts where the name actually ends. */
.menu-row {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  column-gap: 0.9rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-row:first-child { border-top: 1px solid var(--line); }

.menu-name {
  grid-column: 1;
  grid-row: 1;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.menu-leader {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-0.3rem);
}
.menu-price {
  grid-column: 3;
  grid-row: 1;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.menu-note {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.92rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}
.about-copy { max-width: 40rem; }
.about-copy h2 { margin-bottom: 1.3rem; }
.about-photo { max-width: 420px; }
.about-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

.pull-quote {
  margin: 2rem 0 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.pull-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: "Source Serif 4", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-faint);
}

.team { margin-top: clamp(3rem, 7vw, 4.5rem); }
.team-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 620px;
}
.team-photo { margin-bottom: 1rem; }
/* Portrait crop, anchored high so the face stays in view and the Maverick
   logo on the chair back still shows below it. */
.team-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.team-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}
.team-role {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0.1rem 0 0;
}

/* =========================================================================
   BOOKING
   ========================================================================= */
.booking-frame { padding: 6px; }
.booking-frame iframe {
  width: 100%;
  height: 900px;
  border: 0;
  background: var(--card);
}
/* .frame > iframe { display: block } above outranks the [hidden] attribute's
   own display:none (both are one-class specificity, but this one also
   matches the element type) - without this the gated iframe would render
   at full height, invisible-looking but still taking up the page. */
.booking-frame iframe[hidden] { display: none; }

/* Shown until the visitor taps in. Without this, the live scheduler is
   tall enough that a swipe meant to scroll the page instead scrolls the
   widget's own content - on an iPhone that traps people right at "Book
   Your Appointment" and they never reach Hours/Visit below. A static,
   non-scrolling placeholder means normal page scrolling just glides past
   it until someone deliberately opts in. Sized to its own content rather
   than matching the iframe's height, so it reads as a deliberate card
   instead of a mostly-empty box; the box is allowed to grow once the
   real widget replaces it. */
.booking-gate {
  width: 100%;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.booking-gate:hover, .booking-gate:focus-visible { background: var(--paper-alt); }
.booking-gate-icon { color: var(--accent); }
.booking-gate-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.booking-gate-note {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0;
}

.booking-notes {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-faint);
}
.booking-notes p { margin: 0 0 0.5rem; }
.booking-notes p:last-child { margin-bottom: 0; }

/* =========================================================================
   VISIT
   ========================================================================= */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}
.visit-hours h2, .visit-contact h2 { margin-bottom: 1.4rem; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.hours-table th {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  width: 45%;
}
.hours-table td { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th,
.hours-table tr.is-today td {
  color: var(--accent);
  font-weight: 700;
}
.hours-table tr.is-today th::after {
  content: "Today";
  margin-left: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.contact-block {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.contact-list li:first-child { border-top: 1px solid var(--line); }

.map-frame { padding: 6px; }
.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.35) contrast(1.02);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink-panel);
  color: var(--on-panel);
  padding-block: clamp(3rem, 7vw, 4.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  /* Rule drawn inside the gutters so it lines up with the text, not the
     .wrap's padding box. */
  background: linear-gradient(rgba(233, 226, 212, 0.16), rgba(233, 226, 212, 0.16))
              bottom center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.footer-brand .wordmark-name { font-size: 1.9rem; color: var(--on-panel); letter-spacing: 0.06em; }
.footer-brand .wordmark-sub { color: var(--on-panel-faint); }

.footer-label {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--on-panel-faint);
  margin: 0 0 0.6rem;
}
.footer-col p { margin-bottom: 0.9rem; line-height: 1.6; }
.footer-col a { color: var(--on-panel); text-decoration: underline; text-decoration-color: rgba(233,226,212,0.4); }
.footer-col a:hover { text-decoration-color: currentColor; }

.footer-legal {
  padding-top: 1.5rem;
}
.footer-legal p:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}
.footer-legal p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--on-panel-faint);
  letter-spacing: 0.02em;
}
/* Privacy/Terms links here sit on the dark footer, not paper - the global
   `a { color: var(--accent) }` measures ~2.8:1 there (fails AA), so give
   this context the same legible on-panel treatment as .footer-col a. */
.footer-legal a {
  color: var(--on-panel);
  text-decoration: underline;
  text-decoration-color: rgba(233,226,212,0.4);
  padding-block: 0.25rem;
  display: inline-block;
}
.footer-legal a:hover { text-decoration-color: currentColor; }

/* Focus indicator on dark surfaces: accent purple fails contrast against dark #1c1a17,
   so use warm light on-panel color for 13:1+ WCAG AA/AAA compliance */
.site-footer :focus-visible,
.info-strip :focus-visible {
  outline-color: var(--on-panel);
}

.footer-legal .footer-credit {
  margin-top: 0.45rem;
  font-size: 0.75rem;
}

/* =========================================================================
   LEGAL CONTENT  (privacy.html, terms.html)
   ========================================================================= */
.legal-content { max-width: 42rem; }
.legal-content h2 {
  /* Real <h2>s for heading order (h1 page title -> h2), sized like an h3. */
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: 0.03em;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-soft); }
.legal-content ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent); }

/* =========================================================================
   GALLERY  (gallery.html)
   Balanced masonry: gallery.js drops each photo into the shortest column,
   so portrait and landscape shots both show whole and the columns stay even.
   ========================================================================= */
.gallery-grid {
  --gallery-gap: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  align-items: flex-start;
  gap: var(--gallery-gap);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.gallery-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
}

.gallery-item {
  margin: 0;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.16s var(--ease);
}
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item a { display: block; font-size: 0; }

.gallery-img {
  width: 100%;
  height: auto;
  background: var(--paper-alt);
}

.gallery-note {
  margin-top: clamp(2rem, 5vw, 3rem);
  color: var(--ink-faint);
  font-size: 1.05rem;
}

/* No-JS fallback: gallery.js normally builds the columns. */
.gallery-grid:not(:has(.gallery-col)) { display: block; }
.gallery-grid:not(:has(.gallery-col)) .gallery-item { margin-bottom: var(--gallery-gap); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 620px) {
  .info-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero-photo { margin-inline: 0; margin-left: auto; }
  .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .about-photo { position: sticky; top: 100px; }
  .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
}

/* Long email/phone links in the footer must never force a sideways scroll. */
.footer-col a { overflow-wrap: anywhere; }

/* Desktop nav vs mobile drawer */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.28s var(--ease), visibility 0s linear 0.28s;
  }
  .site-header.nav-open .site-nav {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: visible;
    transition: max-height 0.28s var(--ease), visibility 0s;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 1rem 0; font-size: 1.15rem; }
  .site-nav a::after { display: none; }
}

@media (max-width: 560px) {
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .header-actions .btn { --btn-pad-x: 1rem; letter-spacing: 0.08em; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 460px) {
  .wordmark { gap: 0.35rem; }
  .wordmark-mark { height: 1.6rem; }
  .wordmark-name { font-size: 1.3rem; letter-spacing: 0.04em; }
  .wordmark-sub { letter-spacing: 0.24em; font-size: 0.54rem; }
  .menu-row { grid-template-columns: minmax(0, 1fr) auto; }
  .menu-name { font-size: 1.2rem; }
  .menu-leader { display: none; }
  .menu-price { grid-column: 2; font-size: 1.2rem; }
  .booking-frame iframe { height: 820px; }
  .booking-gate { height: 320px; }
}

@media (max-width: 380px) {
  .hours-table th { width: auto; font-size: 0.95rem; }
  .hours-table td { font-size: 0.95rem; }
  .hours-table th, .hours-table td { padding: 0.7rem 0.25rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .site-header, .nav-toggle, .skip-link, .booking-gate, .hero-cta, .section-foot, .header-actions {
    display: none !important;
  }
  body, .info-strip, .site-footer {
    background: #fff !important;
    color: #000 !important;
  }
  .info-strip, .site-footer {
    border-top: 1px solid #ccc;
  }
  a { text-decoration: underline; color: #000; }
  .frame { box-shadow: none; border: 1px solid #ccc; }
  iframe { display: none !important; }
}
