/* ============================================================
   The Seagull page (template-the-seagull.php)
   Uses the site's own look (style.css: sections, badges, cards, buttons, contact items,
   the brand gradient). This file only adds the page's layout pieces: photo hero, quick
   facts, section menu, floors, gallery, hire panel, week, timeline, thanks, garden, FAQs,
   the photo viewer and the editors' review markers.
   ============================================================ */

.sg-page {
  --sg-orange:      #b9501f;   /* the site orange, darkened so white text on it reaches 4.9:1 */
  --sg-orange-dark: #98401a;
  --sg-orange-text: #a3461a;   /* orange text on light backgrounds: 5:1 */
  --sg-nav-bottom:  96px;      /* updated by seagull.js to the fixed nav's real height */
  --sg-subnav-h:    56px;
  --sg-amber:       #8a5300;
  overflow-x: clip;
}
.sg-page [id] { scroll-margin-top: calc(var(--sg-nav-bottom) + var(--sg-subnav-h) + 1rem); }
.sg-page .sg-section[id] { scroll-margin-top: calc(var(--sg-nav-bottom) + var(--sg-subnav-h)); }
.sg-page [tabindex="-1"]:focus { outline: none; }   /* headings focused by the section menu */
.sg-page :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sg-page .screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}

/* Readable contrast for the site's orange on this page (same colour family). */
.sg-page .btn--primary,
.sg-page a.btn--primary       { background: var(--sg-orange); color: #fff; }
.sg-page .btn--primary:hover,
.sg-page a.btn--primary:hover { background: var(--sg-orange-dark); color: #fff; }
.sg-page .btn--outline        { border-color: var(--sg-orange-text); color: var(--sg-orange-text); }
.sg-page .btn--outline:hover  { background: var(--sg-orange-text); color: #fff; }
.sg-page .btn--white          { color: var(--sg-orange-text); }
.sg-page .badge--red          { color: var(--sg-orange-text); }
.sg-page .l2-embed__btn       { background: var(--sg-orange); }        /* map placeholder button (inc/privacy.php) */
.sg-page .l2-embed__btn:hover { background: var(--sg-orange-dark); }
.sg-page a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.sg-page a:not(.btn):hover { text-decoration-thickness: 2px; }

/* Shared bits */
.sg-center { text-align: center; }
.sg-muted  { font-size: .92rem; margin-bottom: 1.25rem; }
.sg-small  { font-size: .85rem; }
.sg-label  { font-size: .8rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--mid); margin-bottom: .9rem; }
.sg-subhead { font-size: clamp(1.3rem, 2.4vw, 1.6rem) !important; margin: 3.5rem 0 .35rem; }
.sg-note { margin-top: 1.5rem; font-size: .98rem; }
.sg-note--info, .sg-note--green {
  background: var(--white); border-left: 4px solid var(--accent);
  padding: .85rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.sg-note--green { border-left-color: #2f7d4f; background: #f1f8f3; color: #234a33; }
.sg-tick { width: 1.3rem; height: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.sg-tick circle { fill: var(--accent); }
.sg-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────────── */
.sg-hero {
  position: relative; isolation: isolate;
  min-height: min(84vh, 760px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3.5rem) 0 4.5rem;
  background: var(--hero-grad);
  color: var(--white);
}
.sg-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.sg-hero__img   { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.sg-hero::before {   /* the site's brand gradient over the photo, strongest behind the text */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,57,115,.94) 0%, rgba(54,25,130,.86) 45%, rgba(88,21,163,.45) 75%, rgba(228,112,62,.25) 100%),
    linear-gradient(180deg, rgba(8,30,70,.55) 0%, rgba(8,30,70,0) 30%);
}
.sg-hero__inner { position: relative; width: 100%; }
.sg-hero__inner > * { max-width: 40rem; }
.sg-hero h1 { color: var(--white); margin: .9rem 0 .75rem; }
.sg-hero__message { color: var(--white) !important; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; line-height: 1.35; margin-bottom: 1rem; }
.sg-hero__intro p { color: rgba(255,255,255,.9) !important; font-size: 1.05rem; margin-bottom: .6rem; }
.sg-hero .hero__actions { margin-top: 1.75rem; }
.sg-hero :focus-visible { outline-color: var(--white); }

/* Quick facts under the hero */
.sg-facts { background: var(--white); border-bottom: 1px solid var(--border); }
.sg-facts ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.sg-facts li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .95rem; color: var(--dark); line-height: 1.4; }

/* ── Editors' review bar and pending items ───────────────────── */
.sg-reviewbar { background: #fff4d6; border-bottom: 1px solid #f0d58a; font-size: .9rem; color: #4a3500; padding: .7rem 0; }
.sg-reviewbar a { color: #4a3500 !important; font-weight: 600; }
.sg-pending { outline: 2px dashed var(--sg-amber); outline-offset: 4px; }
.sg-pending-tag {
  display: inline-block; margin: 0 0 .5rem; padding: .15rem .55rem; border-radius: 4px;
  background: #fff4d6; color: #4a3500; font: 700 .72rem/1.4 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase;
}
.sg-review-note {
  display: block; margin: 0 0 .7rem; padding: .55rem .75rem; border-radius: 6px;
  background: #fffbea; border: 1px solid #f0d58a; color: #4a3500; font: 400 .82rem/1.5 'Inter', sans-serif; text-align: left;
}
.sg-gap {
  margin: .75rem 0; padding: .7rem .9rem; border: 2px dashed var(--sg-amber); border-radius: 8px;
  background: #fffbea; color: #4a3500 !important; font-size: .88rem;
}

/* ── Section menu ────────────────────────────────────────────── */
.sg-subnav {
  position: sticky; top: var(--sg-nav-bottom); z-index: 150;
  background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.sg-subnav ul { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: thin; padding: .5rem 0; }
.sg-subnav a {
  display: block; white-space: nowrap; padding: .5rem .9rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--dark) !important; text-decoration: none !important;
}
.sg-subnav a:hover { background: var(--light); }
.sg-subnav a[aria-current="true"] { background: var(--accent); color: var(--white) !important; }

/* ── Explore the space ───────────────────────────────────────── */
.sg-access { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.sg-access li {
  display: flex; gap: .65rem; align-items: flex-start;
  background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem;
  font-weight: 500; line-height: 1.45; color: var(--dark);
}
.sg-floor { padding-top: 2.25rem; }
.sg-floor:hover { transform: none; }
.sg-floor .sg-floor__btn {   /* a lift button; beats style.css's ".card > *" position rule */
  position: absolute; top: 1.1rem; right: 1.25rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--white);
  background: var(--secondary); box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--secondary);
}
.sg-floor h3 { padding-right: 3rem; }
.sg-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 1rem; }
.sg-shot figure { margin: 0; }
.sg-shot--feature { grid-column: span 2; }
.sg-shot__btn {
  position: relative; display: block; width: 100%; border: 0; padding: 0;
  background: var(--light); border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
}
.sg-shot__btn img { width: 100%; height: clamp(220px, 23vw, 290px); object-fit: cover; transition: transform .35s ease; }
.sg-shot__btn:hover img { transform: scale(1.03); }
.sg-shot__zoom {
  position: absolute; right: .7rem; bottom: .7rem; padding: .3rem .65rem; border-radius: 100px;
  background: rgba(17,24,39,.75); color: var(--white); font-size: .75rem; font-weight: 600;
}
.sg-shot figcaption { padding: .6rem .2rem 0; font-size: .9rem; color: var(--dark); line-height: 1.45; }
.sg-where {
  display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 100px;
  background: #f0e7fb; color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}

/* ── Hire the space (on the site's CTA gradient) ─────────────── */
.sg-hire { padding: 5rem 0; }
.sg-hire__grid { align-items: center; }
.sg-hire h2 { color: var(--white); margin: .75rem 0 1rem; }
.sg-hire__text p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.sg-hire__list { margin: 1.25rem 0; display: grid; gap: .6rem; }
.sg-hire__list li {
  position: relative; padding: .75rem 1rem .75rem 2.6rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12); color: var(--white); font-weight: 500;
}
.sg-hire__list li::before {
  content: ''; position: absolute; left: 1rem; top: 1.05rem; width: .8rem; height: .8rem; border-radius: 3px;
  border: 2px solid var(--white);
}
p.sg-hire__note { font-size: .95rem; color: rgba(255,255,255,.8); }
.sg-hire__card {
  background: var(--white); color: var(--dark); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.sg-hire__card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.sg-hire__card p { color: var(--mid); max-width: none; font-size: 1rem; }   /* undo .cta-section p (white) */
.sg-hire__card p.sg-small { font-size: .85rem; }
.sg-hire__card .btn { margin: 1rem 0 1.25rem; }
.sg-hire :focus-visible { outline-color: var(--white); }
.sg-hire__card :focus-visible { outline-color: var(--accent); }
.sg-contact li { display: flex; gap: .75rem; align-items: baseline; padding: .5rem 0; border-top: 1px solid var(--border); }
.sg-contact__label { min-width: 4.2rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); }
.sg-hire__card .sg-small { margin-top: .9rem; }

/* ── What's on ───────────────────────────────────────────────── */
.sg-uses { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; max-width: 56rem; margin: 0 auto; }
.sg-uses li { padding: .5rem 1rem; border-radius: 100px; background: var(--white); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; color: var(--dark); }
.sg-dropin {
  max-width: 48rem; margin: 2.25rem auto 0; padding: 1.4rem 1.6rem;
  background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--sg-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sg-dropin h3 { margin-bottom: .45rem; }
.sg-dropin p + p { margin-top: .5rem; }
.sg-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; align-items: start; }
.sg-day { padding: 1.4rem; gap: .5rem; border-top: 4px solid var(--accent); }
.sg-day:hover { transform: none; }
.sg-day h4 { font-size: 1.15rem; }
.sg-act { padding: .75rem 0; border-top: 1px solid var(--border); }
.sg-act:first-child { border-top: 0; padding-top: .25rem; }
.sg-act__time { display: block; font-size: .82rem; font-weight: 700; color: var(--sg-orange-text); }
.sg-act__name { display: block; color: var(--dark); }
.sg-act p { font-size: .9rem; margin-top: .25rem; line-height: 1.5; }
.sg-tag { display: inline-block; margin-top: .35rem; padding: .1rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 700; line-height: 1.5; }
.sg-tag--hire    { background: #e7f1fb; color: #0b4a86; }
.sg-tag--private { background: #fde8d8; color: #7a3410; }
.sg-tag--soon    { background: #f0e7fb; color: var(--accent); }
.sg-tag--staff   { background: #eceaf1; color: #3f3a4d; }

/* ── Our story ───────────────────────────────────────────────── */
.sg-need {
  max-width: 50rem; margin: 0 auto 3rem; padding: 1.75rem 2rem;
  background: var(--light); border-radius: var(--radius); border: 1px solid var(--border);
}
.sg-need h3 { margin-bottom: .6rem; }
.sg-need p + p { margin-top: .6rem; }
.sg-story__grid { align-items: start; }
.sg-timeline { position: relative; padding-left: 2.25rem; }
.sg-timeline::before { content: ''; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 3px; border-radius: 3px; background: var(--hero-grad); }
.sg-milestone { position: relative; padding-bottom: 1.75rem; }
.sg-milestone::before {
  content: ''; position: absolute; left: -2.2rem; top: .3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--white); border: 3px solid var(--sg-orange);
}
.sg-milestone__when { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sg-orange-text) !important; margin-bottom: .15rem; }
.sg-milestone h3 { margin-bottom: .3rem; }
.sg-milestone p + p { margin-top: .4rem; }
.sg-milestone__img { border-radius: var(--radius-sm); margin: .6rem 0; width: 100%; height: auto; }
.sg-link { font-weight: 600; }
.sg-story__aside { display: flex; flex-direction: column; gap: 1.25rem; }
.sg-story__aside .card:hover { transform: none; }
.sg-quote { margin: 0; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--cta-grad); color: var(--white); }
.sg-quote blockquote p { color: var(--white) !important; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.sg-quote blockquote p::before { content: '“'; }
.sg-quote blockquote p::after  { content: '”'; }
.sg-quote figcaption { margin-top: .75rem; font-weight: 700; }
.sg-quote figcaption span { display: block; font-weight: 400; font-size: .88rem; color: rgba(255,255,255,.85); }
.sg-quote .sg-review-note, .sg-quote .sg-pending-tag { color: #4a3500; }
.sg-namecard p + p, .sg-next p + p { margin-top: .5rem; }
.sg-news li { padding: .55rem 0; border-top: 1px solid var(--border); }
.sg-news li:first-child { border-top: 0; }
.sg-news a { font-weight: 600; }
.sg-news__meta { display: block; font-size: .8rem; color: var(--mid); }
.sg-thanks { margin-top: 3.5rem; padding: 2.5rem 2rem; background: var(--light); border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.sg-thanks h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.sg-thanks h4 { margin: 1.75rem 0 .8rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--mid); }
.sg-thanks > p { max-width: 44rem; margin: 0 auto; }
.sg-supporters { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.sg-supporter {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem 1.1rem; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  min-width: 11rem; max-width: 19rem; color: var(--dark);
}
.sg-supporter__logo { max-height: 56px; width: auto; object-fit: contain; }
.sg-supporter__detail { font-size: .82rem; color: var(--mid); }
.sg-supporter a { color: var(--dark) !important; }
.sg-thanks__cta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sg-thanks__cta .sg-actions { margin-top: 1rem; }
.sg-thanks .sg-gap { text-align: left; }

/* ── Community garden ────────────────────────────────────────── */
.sg-garden__grid { align-items: start; margin-bottom: 2.5rem; }
.sg-garden h2 { margin: .75rem 0 1rem; }
.sg-garden__text > p { margin-bottom: .75rem; }
.sg-garden__cta { margin: 1.25rem 0 .9rem; color: var(--dark) !important; }
.sg-garden__plan:hover { transform: none; }
.sg-garden__fig { margin: 0; background: var(--white); padding: .6rem; border-radius: var(--radius); border: 1px solid var(--border); }
.sg-garden__fig img { border-radius: var(--radius-sm); width: 100%; height: auto; }
.sg-garden__fig figcaption { font-size: .88rem; color: var(--mid); padding: .7rem .5rem .3rem; line-height: 1.5; }
.sg-garden__fig figcaption a { margin-left: .35rem; font-weight: 600; white-space: nowrap; }

/* ── Visit us ────────────────────────────────────────────────── */
.sg-visit__grid { align-items: start; }
.sg-item-text p { color: var(--dark); font-size: .98rem; margin-top: .25rem; }
.sg-map-col { display: flex; flex-direction: column; gap: 1rem; }
.sg-map-col .btn { align-self: flex-start; }
.sg-faqs { max-width: 50rem; margin: 0 auto; }
.sg-faqs .sg-subhead { margin-bottom: 1.25rem; }
.sg-faq { background: var(--white); border-radius: var(--radius-sm); margin-bottom: .6rem; border: 1px solid var(--border); }
.sg-faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative;
  font-weight: 600; font-size: 1.02rem; color: var(--dark);
}
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after {
  content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background: #f0e7fb; color: var(--accent); font: 700 1.15rem/1 'Inter', sans-serif;
}
.sg-faq[open] summary::after { content: '−'; }
.sg-faq__a { padding: 0 1.2rem 1.1rem; }
.sg-faq__a p + p { margin-top: .5rem; }

/* ── Photo viewer ────────────────────────────────────────────── */
.sg-lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.sg-lb::backdrop { background: rgba(10,8,24,.92); }
.sg-lb[open] { display: grid; place-items: center; }
.sg-lb__inner { margin: 0; max-width: min(92vw, 1400px); display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.sg-lb__img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.sg-lb__cap { color: var(--white); font-size: .95rem; text-align: center; max-width: 48rem; padding: 0 3.5rem; }
.sg-lb__btn {
  position: fixed; width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: var(--white); font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.sg-lb__btn:hover { background: rgba(255,255,255,.28); }
.sg-lb__btn:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.sg-lb__close { top: 1rem; right: 1rem; }
.sg-lb__prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.sg-lb__next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sg-facts ul { grid-template-columns: 1fr 1fr; }
  .sg-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sg-page { --sg-subnav-h: 52px; }
  .sg-hero { min-height: 0; padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem; }
  .sg-hero::before { background: linear-gradient(160deg, rgba(8,57,115,.92) 0%, rgba(88,21,163,.88) 70%, rgba(228,112,62,.7) 100%); }
  .sg-hero__img { object-position: 58% 50%; }
  .sg-facts ul { grid-template-columns: 1fr; gap: .6rem; }
  .sg-subnav .container { padding: 0; }
  .sg-subnav ul { padding: .5rem 1rem; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .sg-gallery { grid-template-columns: 1fr; }
  .sg-shot--feature { grid-column: auto; }
  .sg-shot__btn img { height: auto; aspect-ratio: 4 / 3; }
  .sg-hire { padding: 3.5rem 0; }
  .sg-hire__card { padding: 1.5rem 1.25rem; }
  .sg-hire__card .btn, .sg-garden .btn { width: 100%; }
  .sg-need { padding: 1.4rem 1.25rem; }
  .sg-thanks { padding: 1.75rem 1.1rem; }
  .sg-lb__cap { padding: 0 1rem 4rem; }
  .sg-lb__prev, .sg-lb__next { top: auto; bottom: 1rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sg-shot__btn img { transition: none; }
}

/* ── Second photo set (What's on: the space in use) and the hire video ── */
.sg-gallery--strip { grid-template-columns: repeat(2, 1fr); max-width: 56rem; margin: 1rem auto 0; }
.sg-video { margin: 1.5rem 0 0; max-width: 300px; }
.sg-video video { display: block; width: 100%; aspect-ratio: 478 / 850; background: #000; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.sg-video figcaption { margin-top: .5rem; font-size: .88rem; color: rgba(255,255,255,.85); }
.sg-hero h1 span { display: inline; }
@media (max-width: 640px) {
  .sg-gallery--strip { grid-template-columns: 1fr; }
  .sg-video { max-width: 260px; }
}
