/* FoodConnection v2 — calm, minimal layout */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1e1d1b;
  --muted: #5e5c57;
  --accent: #3d5c4a;
  --accent-soft: #e8f0eb;
  --line: #e3e1dc;
  --radius: 8px;
  --max: 68rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  color: var(--accent);
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
  outline: 2px solid var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #2d4335;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
}

.fc-weight-loss-results > h2:first-of-type {
  margin-top: 0;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-top: var(--space-lg);
}

.weight-loss-page-title {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.weight-loss-section-heading {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  margin-top: var(--space-xl);
}

h3, h4 {
  font-size: 1.15rem;
  margin-top: var(--space-md);
}

p {
  margin: 0 0 var(--space-md);
  max-width: 65ch;
}

ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
  max-width: 65ch;
}

li {
  margin-bottom: var(--space-xs);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ——— Top strip ——— */
.top-strip {
  background: var(--ink);
  color: #c9c7c2;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.top-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.top-strip a {
  color: #eeede9;
  text-decoration: none;
}
.top-strip a:hover {
  text-decoration: underline;
  color: #fff;
}
.top-strip a.top-strip-icon-link:hover {
  text-decoration: none;
  color: #eeede9;
}
.top-strip-icons ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-strip-icons li {
  margin: 0;
  padding: 0;
}
.top-strip-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.top-strip-icon-link img {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  opacity: 0.92;
}
.top-strip a.top-strip-icon-link:hover img {
  opacity: 1;
}

/* ——— Header ——— */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(0.5rem, 1.5vw, 1.25rem);
  row-gap: 0;
  padding: 0.8125rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  justify-self: start;
}
.logo img {
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle__icon {
  width: 1.375rem;
  height: 0.625rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(0.25rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-0.25rem) rotate(-45deg);
}

.primary-nav {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  align-self: center;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.05rem 0.28rem;
  max-width: none;
  justify-content: center;
}
.primary-nav a {
  display: block;
  padding: 0.38rem 0.42rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: clamp(0.75rem, 0.2vw + 0.68rem, 0.875rem);
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: var(--space-sm);
  flex-shrink: 0;
  justify-self: end;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.header-cta .btn {
  padding: 0.6rem 1.15rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #324839;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .top-strip {
    padding: 0.35rem 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: var(--space-sm);
    row-gap: var(--space-xs);
    justify-content: stretch;
    padding: 0.65rem 0;
  }

  .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    min-width: 0;
  }

  .logo img {
    max-height: 40px;
  }

  .nav-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    display: flex;
    position: static;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 6px;
  }

  .nav-toggle__icon {
    width: 1.2rem;
    height: 0.55rem;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(0.1875rem) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-0.1875rem) rotate(-45deg);
  }

  .header-cta {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    justify-content: flex-end;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .header-cta .btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: unset;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    display: none;
    padding-bottom: var(--space-sm);
    border-top: 1px solid var(--line);
    margin-top: 0;
    padding-top: var(--space-sm);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .primary-nav a {
    font-size: 0.8125rem;
    padding: 0.45rem 0.65rem;
    line-height: 1.35;
    white-space: normal;
  }
}

@media (min-width: 861px) {
  .primary-nav {
    display: flex;
    justify-content: safe center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .primary-nav ul {
    flex: 0 0 auto;
    width: max-content;
  }

  .logo img {
    max-height: 46px;
  }

  .header-cta .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }
}

/* ——— Main ——— */
main {
  padding-bottom: var(--space-lg);
}

.hero {
  padding: calc(var(--space-sm) + 0.25rem) 0 var(--space-md);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  /* Home hero only: more width for copy, narrow column for portrait video aligned right */
  header.hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(22rem, 36vw));
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  header.hero .hero-grid > div:last-child {
    justify-self: end;
  }

  header.hero .hero-grid .hero-video {
    margin-inline: unset;
    margin-left: auto;
  }
}

/* Hero video: portrait 3:4 to match source (480×640); centred in column. */
.hero-grid .hero-video {
  display: block;
  width: 100%;
  max-width: min(18rem, 100%);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* About: portrait beside intro copy (not .panel — that style is for article cards) */
.about-hero {
  margin-bottom: var(--space-lg);
}
.about-hero__figure {
  margin: 0;
  justify-self: center;
}
.about-hero__figure img {
  display: block;
  width: 100%;
  max-width: min(18rem, 100%);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (min-width: 840px) {
  /* Narrower image track than 50/50 — keeps portrait height in proportion to the intro copy */
  .hero-grid.about-hero {
    grid-template-columns: 1fr minmax(12.5rem, 15rem);
  }
  .about-hero__figure {
    justify-self: end;
    align-self: start;
  }
  .about-hero__figure img {
    max-width: 100%;
  }
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 52ch;
}

.section {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}
/* First content under sticky header: gap was section top + header padding stacking */
main > .section:first-child,
main.section {
  padding-top: calc(var(--space-sm) + 0.25rem);
}
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Avoid stacking section padding with first heading margin */
.section > .wrap > :first-child {
  margin-top: 0;
}
.section > h2:first-child {
  margin-top: 0;
}

/* Weight loss (and similar): centred enquiry card — avoids double .section padding + left-heavy band */
.fc-enquiry-panel {
  margin: var(--space-xl) auto 0;
  max-width: 42rem;
  padding: var(--space-lg) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .fc-enquiry-panel {
    padding: var(--space-lg) var(--space-lg);
  }
}
.fc-enquiry-panel__inner.prose {
  max-width: none;
}
.fc-enquiry-panel__inner.prose > h2:first-child {
  margin-top: 0;
}

.cta-row {
  text-align: center;
  padding: var(--space-lg) 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.support-list li::marker {
  color: var(--accent);
}

.two-col {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  /* Services hero: narrower TOC so the main copy uses more horizontal space */
  .two-col.two-col--services-intro {
    grid-template-columns: minmax(12.5rem, 0.38fr) minmax(0, 1fr);
  }
}

.toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  font-size: 0.95rem;
}
.toc h2,
.toc .toc__heading {
  margin-top: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.toc .toc__heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.toc li {
  margin-bottom: 0.35rem;
}
.toc a {
  text-decoration: none;
  color: var(--muted);
  display: block;
  padding: 0.25rem 0;
}
.toc a:hover {
  color: var(--accent);
}

.price-block {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line);
}
/* Collapse stray paragraph margins; row rhythm comes from vertical padding instead */
.price-block > p:last-child {
  margin-bottom: 0;
}
.price-block:last-of-type {
  border-bottom: none;
}

/* .price-block comes after .panel in this file; plain .price-block padding would wipe .panel horizontal padding when both classes sit on one element */
.price-block.panel {
  padding: var(--space-sm) var(--space-md);
  border-bottom: none;
}

/* Prices: most_popular asset is tiny (80×71); keep it icon-sized beside the heading */
.price-most-popular__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: none;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
}
.price-most-popular__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: auto;
  margin: 0;
  object-fit: contain;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card time {
  font-size: 0.85rem;
  color: var(--muted);
}
.blog-card h2 {
  margin: var(--space-xs) 0 var(--space-sm);
  font-size: 1.2rem;
}
.blog-card .read-more {
  margin-top: auto;
  font-weight: 600;
}

/* Blog index: space before closing CTA copy below the card grid */
.blog-page__closing {
  padding-top: var(--space-lg);
}

.article-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.article-cover {
  margin: 0 0 var(--space-md);
}
.article-cover img {
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.prose {
  max-width: 42rem;
}
.prose h2 {
  margin-top: var(--space-lg);
}

/* Forms */
.form-grid {
  display: grid;
  gap: var(--space-sm);
  max-width: 36rem;
}
@media (min-width: 560px) {
  .form-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
textarea {
  min-height: 10rem;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #b0aea8;
  padding: var(--space-xl) 0 var(--space-md);
  font-size: 0.95rem;
  margin-top: var(--space-xl);
}
.site-footer a {
  color: #e0ded8;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8780;
  border-bottom: 1px solid #3d3c38;
  padding-bottom: var(--space-xs);
  margin-top: 0;
}
.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 0.5rem;
}
/* <picture> wrappers: keep flex/grid layouts that target img/direct children */
picture {
  display: contents;
}

.accreditations {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.75rem);
  row-gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid #3d3c38;
}
.accreditations a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  line-height: 0;
}
.accreditations img {
  height: clamp(52px, 12vw, 80px);
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: center;
  opacity: 0.9;
  filter: grayscale(0.12);
}
.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid #3d3c38;
  font-size: 0.85rem;
}
.footer-local-links {
  white-space: nowrap;
}

/* ——— Home photo carousel (scroll-snap) ——— */
.fc-carousel {
  position: relative;
  margin-top: var(--space-md);
}

.fc-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  scrollbar-width: thin;
}

.fc-carousel__viewport:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fc-carousel__viewport:focus:not(:focus-visible) {
  outline: none;
}

.fc-carousel__track {
  display: flex;
  flex-direction: row;
}

.fc-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
}

.fc-carousel__slide img {
  display: block;
  width: 100%;
  height: min(72vh, 560px);
  min-height: clamp(260px, 42vw, 400px);
  object-fit: cover;
  vertical-align: middle;
}

.fc-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(30, 29, 27, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.92;
}

.fc-carousel__nav:hover {
  background: var(--surface);
  opacity: 1;
}

.fc-carousel__nav--prev {
  left: var(--space-sm);
}

.fc-carousel__nav--next {
  right: var(--space-sm);
}

@media (max-width: 600px) {
  .fc-carousel__nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.25rem;
  }
  .fc-carousel__nav--prev {
    left: 6px;
  }
  .fc-carousel__nav--next {
    right: 6px;
  }
}

.fc-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: var(--space-md);
  padding: 0;
}

.fc-carousel__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.fc-carousel__dots button:hover {
  background: var(--muted);
}

.fc-carousel__dots button[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .fc-carousel__viewport {
    scroll-behavior: auto;
  }
}

/* Before / after transformation gallery */
.results-gallery {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  max-width: 48rem;
}
.results-gallery--aside {
  margin-top: 0;
  max-width: none;
}
@media (min-width: 800px) {
  .fc-weight-loss-results__grid .results-gallery__grid--before {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.results-gallery__phase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.results-gallery__phase--after {
  border-color: rgba(61, 92, 74, 0.22);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 48%);
}
.results-gallery .results-gallery__heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.results-gallery__phase--after .results-gallery__heading {
  color: var(--accent);
}
.results-gallery__grid {
  display: grid;
  gap: var(--space-sm);
  align-items: stretch;
}
/* Override global `picture { display: contents }` so each <picture> is one grid cell (otherwise imgs stack as a single column). */
.results-gallery__grid picture {
  display: block;
  min-width: 0;
}
.results-gallery__grid--before {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.results-gallery__grid--after {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
/* Taller frame + contain shows full figure; cover on 4:3 was cropping body */
.results-gallery__grid img {
  width: 100%;
  aspect-ratio: 5 / 7;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--bg);
  border-radius: var(--radius);
}
@media (max-width: 600px) {
  .results-gallery__grid--before {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  .results-gallery__grid--before {
    grid-template-columns: minmax(0, 1fr);
  }
  .results-gallery__grid--after {
    grid-template-columns: minmax(0, 1fr);
  }
}

.floating-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}
.floating-wa img {
  width: 52px;
  height: 52px;
}

/* ——— E-book modal (native dialog) ——— */
.fc-dialog {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  max-width: 28rem;
  width: calc(100% - 2rem);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(30, 29, 27, 0.18);
}

.fc-dialog::backdrop {
  background: rgba(30, 29, 27, 0.35);
  backdrop-filter: blur(2px);
}

.fc-dialog__panel {
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.fc-dialog__x {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--bg);
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.fc-dialog__x:hover {
  background: var(--line);
  color: var(--ink);
}

.fc-dialog__h {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 2rem var(--space-sm) 0;
  padding-right: var(--space-sm);
}

.fc-dialog .fc-dialog__text {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: none;
  margin-bottom: var(--space-sm);
}

.fc-dialog label {
  display: block;
  margin-top: var(--space-sm);
}

.fc-dialog .fc-input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem 0.65rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.fc-dialog .fc-input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.fc-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  justify-content: flex-end;
}

.fc-recaptcha {
  min-height: 0;
}

.fc-spinner {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: fc-spin 0.7s linear infinite;
  margin-right: auto;
}

.fc-spinner--hidden {
  display: none;
}

@keyframes fc-spin {
  to {
    transform: rotate(360deg);
  }
}

button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Footer mailing-list form (dark background) */
.site-footer .fc-footer-subscribe-lead {
  font-size: 0.92rem;
  color: #b0aea8;
  margin: 0 0 var(--space-sm);
  max-width: none;
}

.site-footer .fc-footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 22rem;
}

.site-footer .fc-input--compact {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #3d3c38;
  border-radius: var(--radius);
  background: #f7f6f3;
  color: var(--ink);
}

.site-footer .fc-input--compact:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.site-footer .fc-footer-subscribe__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.site-footer .fc-footer-subscribe__row .fc-spinner {
  border-color: rgba(255, 255, 255, 0.22);
  border-top-color: #b8d4c4;
}

.site-footer .fc-footer-subscribe .btn-primary {
  flex-shrink: 0;
}
