/* Lobster Galley Restaurant — site styles
   Palette taken straight from the logo: lobster red #d2232b and deep navy
   #282d68, with a warm sand ground so the food photography sits comfortably.
   Light-theme only by design: this is a brochure site, not an app. */

:root {
  --brand: #d2232b;
  --brand-dark: #a81a21;
  --brand-ink: #1f2450;      /* navy — dark surfaces and the footer */
  --accent: #e2a03f;         /* drawn butter; warms up the red */
  --accent-dark: #b87c22;

  --ink: #17182e;
  --body: #4a4c5e;
  --muted: #74768a;

  --paper: #ffffff;
  --sand: #f7f5f0;
  --sand-deep: #ece7dd;
  --line: #ded8cc;

  --wrap: 1140px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 30, 20, .06), 0 8px 24px rgba(27, 30, 20, .07);
  --shadow-lg: 0 2px 4px rgba(27, 30, 20, .07), 0 18px 44px rgba(27, 30, 20, .13);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand); }

/* Last-resort guard against sideways scroll. `anywhere` (unlike `break-word`)
   also shrinks the element's min-content width, which is what actually stops a
   long email or URL from forcing a grid column wider than the viewport. */
a, p, dd, li, code, blockquote { overflow-wrap: anywhere; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Hidden from sight, still present for assistive tech and for bots.
   Clipped to nothing rather than pushed off-canvas with a negative offset:
   content parked at left:-9999px sits outside the viewport, and mobile
   browsers can scroll or jump to it — which reads as the page drifting
   sideways. Clipping occupies no space, so there is nothing to scroll to. */
.visually-hidden,
.skip,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The clip above already stops these painting, but a child's layout box can
   still stretch past the viewport. Real mobile browsers have been known to
   scroll to it anyway, so constrain the children too. */
.hp > * {
  width: 1px;
  height: 1px;
  min-width: 0;
  padding: 0;
  border: 0;
}

/* The skip link is the one that must come back on keyboard focus. */
.skip:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1.25rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.muted { color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #241a02; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { border-color: currentColor; color: var(--brand-dark); background: transparent; }
.btn-ghost:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn-on-dark { border-color: rgba(255, 255, 255, .75); color: #fff; background: transparent; }
.btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand img { width: 175px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
[aria-expanded="true"] .bars { background: transparent; }
[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav.open {
  display: block;
  position: absolute;
  inset: 100% 0 auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .5rem clamp(1rem, 4vw, 2rem) 1.5rem;
}
.nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.nav li + li { border-top: 1px solid var(--line); }
.nav a {
  display: block;
  padding: .9rem .25rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.btn-call { background: var(--brand); color: #fff; width: 100%; }
.btn-call:hover { background: var(--brand-dark); color: #fff; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .nav {
    display: flex !important;
    position: static;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .nav ul { display: flex; gap: 1.5rem; margin: 0; }
  .nav li + li { border-top: 0; }
  .nav a { padding: .35rem 0; font-size: .975rem; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .btn-call { width: auto; padding: .7rem 1.25rem; font-size: .95rem; white-space: nowrap; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section-sand { background: var(--sand); }
.section-tint { background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }

.eyebrow {
  display: block;
  margin-bottom: .6rem;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lede { font-size: clamp(1.06rem, 1rem + .45vw, 1.25rem); color: var(--body); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(26rem, 62vh, 40rem);
  color: #fff;
  background: var(--brand-ink);
  isolation: isolate;
}
.hero > img {
  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(105deg, rgba(20, 23, 14, .88) 0%, rgba(20, 23, 14, .68) 45%, rgba(20, 23, 14, .3) 100%);
}
.hero-inner { padding-block: clamp(3.5rem, 9vw, 6rem); max-width: 44rem; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .eyebrow { color: #dbe07a; }
.hero p { color: rgba(255, 255, 255, .92); font-size: clamp(1.06rem, 1rem + .5vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* Compact hero for interior pages */
.hero-sm { min-height: clamp(15rem, 34vh, 22rem); }
.hero-sm .hero-inner { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

/* ---------- generic grids ---------- */

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* Grid and flex children default to min-width:auto, meaning they refuse to
   shrink below their min-content width. One unbreakable string — an email
   address is the usual culprit — then forces the whole column wider than the
   screen and the page scrolls sideways. min-width:0 lets them shrink; the
   wrapping rules further down let the content cope once they do. */
.grid > *,
.grid-2 > *,
.grid-3 > *,
.contact-grid > *,
.quotes > *,
.price-grid > *,
.ba-pair > *,
.foot-grid > * {
  min-width: 0;
}

@media (min-width: 40rem) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

/* ---------- cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { font-size: .97rem; margin-bottom: 0; }

/* ---------- quotes ---------- */

.quotes { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 62rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0; font-size: .99rem; }
.quote cite,
.quote figcaption { margin-top: auto; font-style: normal; font-weight: 700; color: var(--ink); }

/* Google review profile photo */
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sand-deep);
}

/* ---------- Lobster Galley specifics ---------- */

/* Site-wide notice, set from the admin. Above the header deliberately —
   if it is worth saying at all it is worth saying before the logo. */
.notice-bar {
  margin: 0;
  padding: .6rem 1rem;
  text-align: center;
  background: var(--brand-ink);
  color: #fff;
  font-size: .93rem;
  font-weight: 600;
}

/* "Now open for the season" */
.hero-flag,
.season-flag {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1c00;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.season-flag { margin-top: 1rem; }

/* Opening hours, rendered from the admin's rows */
.hours { margin: 0 0 1rem; }
.hours > div {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.hours > div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }

/* On light backgrounds the divider needs to be dark */
.info-card .hours > div,
.hours-lg > div { border-bottom-color: var(--line); }

.hours-lg { max-width: 26rem; margin-bottom: 1.5rem; }
.hours-lg > div { padding: .7rem 0; font-size: 1.05rem; }
.hours-lg dt { color: var(--ink); }

/* Gaelic welcome on the location page */
.gaelic {
  margin-top: 1.75rem;
  padding-left: 1.1rem;
  border-left: 4px solid var(--accent);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  font-weight: 700;
  color: var(--brand-ink);
}
.gaelic span { display: block; font-size: .88rem; font-weight: 500; color: var(--muted); }

/* Google Street View links */
.tour-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.tour-links a { font-weight: 650; }

.shot figure, figure.shot { margin: 0; }
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: .6rem; font-size: .92rem; color: var(--muted); }

.inline-shot, .rounded {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.center-note { max-width: 42rem; margin: 2rem auto 0; text-align: center; }
.social-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 1.5rem; }

.quote-feature {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--paper);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.quote-feature blockquote { margin: 0 0 1rem; font-size: clamp(1rem, .97rem + .3vw, 1.12rem); }

/* ---------- call-to-action band ---------- */

.cta-band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 40rem; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 1.6rem; }

/* ---------- pricing ---------- */

.price-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price {
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.price h3 { font-size: 1.05rem; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.price .amount { display: block; font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1.1; }
.price .note { font-size: .9rem; color: var(--muted); }

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  position: relative;
  padding: .6rem 0 .6rem 2rem;
  border-bottom: 1px solid var(--line);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: 1.15rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- FAQ ---------- */

.faq { max-width: 52rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: .85rem;
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 1.35rem 1.35rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- gallery ---------- */

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ba-pair {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 48rem) { .ba-pair { grid-template-columns: 1fr 1fr; } }
.ba-pair + .ba-pair { margin-top: var(--gap); }
.ba figure { margin: 0; }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.ba figcaption { margin-top: .7rem; font-size: .93rem; color: var(--body); }
.ba .tag {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--sand-deep);
  color: var(--brand-ink);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ba .tag-after { background: var(--brand); color: #fff; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1.15rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 650; color: var(--ink); font-size: .95rem; }
.field .req { color: var(--accent-dark); }

.field input, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 112, 35, .18);
}
.field textarea { min-height: 10rem; resize: vertical; }

/* Honeypot styling lives with .visually-hidden near the top of this file. */

.form-note { font-size: .88rem; color: var(--muted); }

.alert {
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid;
  font-size: .95rem;
  /* Cleared by the sticky header when the page jumps to #form-status */
  scroll-margin-top: 6rem;
}
.alert:focus { outline: none; }
.alert p:last-child { margin-bottom: 0; }
.alert-ok { background: #f0f5e4; border-color: #b9cb84; color: #33451a; }
.alert-err { background: #fdf0ec; border-color: #e6b3a3; color: #7a2e18; }

.info-card {
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card h2 { font-size: 1.3rem; }
.info-card + .info-card { margin-top: var(--gap); }
.info-row { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { flex: none; width: 5.5rem; font-weight: 700; color: var(--ink); font-size: .93rem; }
.info-row dd { margin: 0; min-width: 0; }
dl { margin: 0; }

/* On narrow screens the label column leaves too little room for an email
   address, so stack instead. Full width fits it without hyphen-free mid-word
   breaks, which read badly in an address. */
@media (max-width: 30rem) {
  .info-row { display: block; }
  .info-row dt { width: auto; margin-bottom: .15rem; }
}

/* ---------- long-form legal pages ---------- */

.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.25rem; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- footer ---------- */

.site-foot { background: var(--brand-ink); color: rgba(255, 255, 255, .8); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-foot h2 { color: #fff; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--accent); }
.site-foot .muted { color: rgba(255, 255, 255, .58); }
.site-foot .addr { font-style: normal; }

.foot-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; padding-bottom: 2.5rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .89rem;
}
.foot-legal p { margin: 0; }
.foot-legal a + a { margin-left: 1.25rem; }
