/*
Theme Name: Cineframe
Theme URI: https://example.com/cineframe
Author: Malir
Description: Editorial WordPress portfolio theme for wedding photographers and filmmakers.
Version: 2.5.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: cineframe
*/

:root {
  --bg: #fbf9f5;
  --bg-soft: #f4f0e9;
  --surface: #ffffff;
  --surface-soft: #f8f4ef;
  --text: #2f2a25;
  --text-soft: #746b62;
  --line: #ece5dc;
  --line-strong: #d9cfc4;
  --accent: #d10808;
  --accent-soft: #f7dfdf;
  --footer: #222222;
  --footer-soft: #a6a6a6;
  --max-width: 1500px;
  --content-width: 1180px;
  --text-width: 760px;
  --section-space: clamp(64px, 9vw, 140px);
  --shadow: 0 22px 60px rgba(59, 44, 33, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Montserrat", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-shell,
.hero-collage,
.section-inner,
.archive-shell,
.single-shell,
.footer-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 249, 245, 0.94);
  border-bottom: 1px solid rgba(236, 229, 220, 0);
  backdrop-filter: blur(20px);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(35, 30, 25, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 106px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.custom-logo-link img,
.brand-mark {
  max-height: 48px;
  width: auto;
}

.brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-note {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
}

.nav-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a,
.footer-menu a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-menu .current-menu-item > a {
  color: #000;
}

.nav-cta,
.button-primary,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.nav-cta:hover,
.button-primary:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(209, 8, 8, 0.16);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-main {
  overflow: clip;
}

.section {
  padding-top: var(--section-space);
}

.hero-banner {
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collage {
  display: grid;
  grid-template-columns: 0.9fr 2fr 0.9fr;
  gap: 44px;
  align-items: start;
  padding-top: 28px;
}

.hero-collage-item {
  overflow: hidden;
  background: var(--surface-soft);
}

.hero-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collage-main {
  aspect-ratio: 16 / 12;
}

.hero-collage-side {
  aspect-ratio: 5 / 8;
}

.hero-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px auto 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-counter::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.hero-counter-current {
  color: var(--text);
}

.section-heading {
  max-width: var(--text-width);
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow-mark {
  width: 54px;
  margin: 0 auto 18px;
  border-top: 1px solid #efebe3;
  position: relative;
}

.eyebrow-mark::before,
.eyebrow-mark::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 16px;
  height: 1px;
  background: #efebe3;
}

.eyebrow-mark::before {
  left: 8px;
  transform: rotate(-30deg);
}

.eyebrow-mark::after {
  right: 8px;
  transform: rotate(30deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-title,
.single-title,
.content-title,
.archive-title,
.philosophy-title {
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-title,
.archive-title,
.content-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-subtitle,
.section-heading em,
.archive-subtitle {
  display: block;
  margin-top: 10px;
  color: #b6a99a;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-style: italic;
}

.section-copy,
.archive-copy,
.single-intro,
.page-copy,
.philosophy-copy,
.testimonial-copy {
  color: #9e948a;
  font-size: 0.98rem;
}

.section-copy,
.archive-copy {
  max-width: 78ch;
  margin: 28px auto 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.95fr 0.8fr;
  gap: 54px;
  align-items: center;
}

.philosophy-side {
  display: grid;
  gap: 18px;
}

.philosophy-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.philosophy-image {
  aspect-ratio: 4 / 5.6;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.editorial-card,
.film-card,
.blog-card {
  display: grid;
  gap: 20px;
}

.editorial-card-media,
.film-card-media,
.blog-card-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
}

.editorial-card-media img,
.film-card-media img,
.blog-card-media img,
.moment-card-media img,
.strip-grid img,
.single-hero-media img,
.single-gallery-grid img,
.wide-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.editorial-card:hover .editorial-card-media img,
.film-card:hover .film-card-media img,
.blog-card:hover .blog-card-media img,
.moment-card:hover .moment-card-media img,
.wide-grid-card:hover img {
  transform: scale(1.03);
}

.wide-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.wide-grid-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
}

.wide-grid-card img {
  min-height: 100%;
}

.wide-grid-card--tall {
  min-height: 720px;
}

.wide-grid-card--stack {
  min-height: 340px;
}

.wide-grid-stack {
  display: grid;
  gap: 36px;
}

.card-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 18px 30px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.editorial-card-content,
.film-card-content,
.blog-card-content {
  display: grid;
  gap: 10px;
}

.card-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.editorial-card h3,
.film-card h3,
.blog-card h3,
.moment-card h3,
.single-sidebar h3,
.contact-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.editorial-card p,
.film-card p,
.blog-card p {
  margin: 0;
  color: #9b9084;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 700;
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.moment-card {
  display: grid;
  gap: 18px;
}

.moment-card-media {
  aspect-ratio: 0.82 / 1;
  overflow: hidden;
  background: var(--surface-soft);
}

.moment-meter {
  width: 214px;
  height: 4px;
  margin-top: 22px;
  background: #dfddd9;
  border-radius: 999px;
  overflow: hidden;
}

.moment-meter::before {
  content: "";
  display: block;
  width: 46px;
  height: 100%;
  background: #2f2a25;
}

.testimonial-band {
  padding: clamp(62px, 7vw, 110px) 32px;
  background: linear-gradient(180deg, #fbf8f3 0%, #f7f3ed 100%);
}

.testimonial-band .section-heading {
  margin-bottom: 30px;
}

.testimonial-copy {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-copy strong,
.testimonial-copy p:first-of-type {
  color: var(--text);
  font-weight: 600;
}

.testimonial-author {
  display: block;
  margin-top: 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-style: italic;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.strip-grid a {
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  background: var(--surface-soft);
}

.archive-hero,
.single-hero {
  padding-top: 34px;
}

.archive-shell,
.single-shell {
  width: min(calc(100% - 48px), var(--content-width));
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 32px 0 42px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: #8c8379;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.film-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.film-card-media,
.blog-card-media {
  aspect-ratio: 16 / 10;
}

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.play-badge::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-34%, -50%);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #fff;
}

.single-hero-media {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--surface-soft);
  margin-bottom: 52px;
}

.single-hero-media iframe,
.single-hero-media video {
  width: 100%;
  height: 100%;
  border: 0;
}

.single-heading {
  max-width: 980px;
  margin: 0 auto 46px;
  text-align: center;
}

.single-title {
  font-size: clamp(3rem, 7vw, 6rem);
}

.single-intro {
  max-width: 72ch;
  margin: 22px auto 0;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 54px;
  align-items: start;
}

.single-copy {
  font-size: 1rem;
  color: #61584f;
}

.single-copy > *:first-child {
  margin-top: 0;
}

.single-copy h2,
.single-copy h3,
.single-copy h4 {
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  font-weight: 600;
}

.single-copy .wp-block-gallery,
.single-copy .blocks-gallery-grid {
  margin-top: 36px;
  margin-bottom: 36px;
}

.single-copy .wp-block-image img,
.single-copy .blocks-gallery-item img {
  border-radius: 0;
}

.single-sidebar {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.single-detail {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.single-detail:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.single-detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.appointment-shell {
  width: min(calc(100% - 48px), 1080px);
  margin: 0 auto;
}

.appointment-form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end; /* keeps inputs level even when labels differ */
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  background: #f7f4ef;
  padding: 18px 20px;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 190px;
}

.form-response {
  padding: 16px 18px;
  font-size: 0.92rem;
}

.form-response-success {
  background: #eff9ef;
  color: #1a6b1a;
}

.form-response-error {
  background: #fff0f0;
  color: #a31515;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 52px 26px;
  background: #faf6f1;
  text-align: center;
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.8rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  border-radius: 18px;
  background: #faf6f1;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 24px 26px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.faq-question span:last-child {
  color: #8c8379;
  font-size: 1.6rem;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  padding: 0 26px;
  overflow: hidden;
  color: #9d9388;
  transition: max-height 260ms ease, padding-bottom 260ms ease;
}

.faq-item.is-open .faq-answer {
  max-height: 280px;
  padding-bottom: 24px;
}

.faq-item.is-open .faq-question span:last-child {
  transform: rotate(45deg);
}

.site-footer {
  margin-top: var(--section-space);
  padding: 72px 0 36px;
  background: var(--footer);
  color: #fff;
}

.footer-shell {
  display: grid;
  gap: 38px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.9fr 0.9fr;
  gap: 32px;
}

.footer-copy,
.footer-meta {
  color: var(--footer-soft);
}

.footer-menu {
  display: grid;
  gap: 14px;
  justify-content: start;
}

.footer-heading {
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.social-links a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.subscribe-form {
  display: flex;
  align-items: stretch;
}

.subscribe-form input {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 16px;
  outline: none;
}

.subscribe-form input::placeholder {
  color: rgba(255,255,255,0.45);
}

.subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 200ms ease;
}

.subscribe-btn:hover {
  opacity: 0.85;
}

/* Footer brand logo colour inversion */
.footer-brand .custom-logo {
  filter: brightness(0) invert(1);
  max-height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f7f7f;
  text-align: center;
}

.pagination-wrap {
  margin-top: 46px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .editorial-card-media img,
  .film-card-media img,
  .blog-card-media img,
  .moment-card-media img,
  .wide-grid-card img {
    transition: none;
  }
}

@media (max-width: 1200px) {
  .philosophy-grid,
  .wide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-grid-card--tall,
  .wide-grid-card--stack {
    min-height: auto;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .hero-collage,
  .editorial-grid,
  .moment-grid,
  .film-grid,
  .blog-grid,
  .contact-card-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    gap: 18px;
  }

  .hero-collage-side {
    aspect-ratio: 16 / 9;
  }

  .strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-shell,
  .hero-collage,
  .section-inner,
  .archive-shell,
  .single-shell,
  .footer-shell,
  .appointment-shell {
    width: min(calc(100% - 26px), var(--max-width));
  }

  /* ── Mobile nav: logo + hamburger on ONE row, menu drops below ── */
  .nav {
    flex-wrap: wrap;
    align-items: center;
    min-height: 72px;
    padding: 14px 0;
    gap: 0;
  }

  /* Brand grows to fill the row minus the hamburger button */
  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 56px);
  }

  /* Tagline: tighten letter-spacing so it fits on 320px */
  .brand-note {
    letter-spacing: 0.13em;
    font-size: 0.63rem;
  }

  /* Logo image: a bit smaller on mobile */
  .custom-logo {
    max-height: 44px;
    max-width: 170px;
  }

  /* Hamburger: order 2 so it stays right of the brand, pushed to end */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--text);
    position: relative;
  }

  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle span::before {
    top: -6px;
  }

  .nav-toggle span::after {
    top: 6px;
  }

  /* Full-width dropdown, order 3 so it's always below the logo+hamburger row */
  .nav-menu-wrap {
    display: none;
    order: 3;
    width: 100%;
    padding-top: 8px;
  }

  .menu-open .nav-menu-wrap,
  .nav-menu-wrap.is-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0 6px;
  }

  /* Hide the CTA button on mobile — "Book Appointment" already appears in
     the nav menu; showing it as a third full-width row wastes screen space */
  .nav-cta {
    display: none;
  }

  .hero-banner {
    aspect-ratio: 16 / 9;
  }

  .philosophy-title,
  .single-title {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
  }
}

@media (max-width: 560px) {
  .section {
    padding-top: 68px;
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO — VIDEO / IMAGE / EMBED MODES
   Added to support Customizer → 02 — Homepage: Hero
───────────────────────────────────────────────────────────────────────────── */

/* Shared wrapper for the whole hero section */
.hero-section {
  position: relative;
  padding-top: 0 !important; /* override .section padding so hero butts up to header */
  margin-top: 0;
}

/* ── Self-hosted MP4 background video ───────────────────────────────────── */
.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 420px;
  overflow: hidden;
  background: #111;
  box-sizing: border-box;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* ── YouTube / Vimeo oEmbed ──────────────────────────────────────────────── */
.hero-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 420px;
  overflow: hidden;
  background: #111;
  box-sizing: border-box;
}

.hero-embed-wrap iframe,
.hero-embed-wrap .wp-block-embed__wrapper,
.hero-embed-wrap > * {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ── Static uploaded background image ───────────────────────────────────── */
.hero-banner-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-soft);
  box-sizing: border-box;
}

.hero-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text overlay on all hero modes */
.hero-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 100%);
  z-index: 2;
  gap: 12px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.hero-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin: 0;
}

.hero-subline {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0;
}

.hero-cta.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 8px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-cta.btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-video-wrap,
  .hero-embed-wrap,
  .hero-banner-wrap {
    aspect-ratio: 9 / 10;
  }

  .hero-text-overlay {
    padding: 24px 18px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER — SOCIAL ICONS + CLICKABLE LINKS
───────────────────────────────────────────────────────────────────────────── */

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 220ms ease, transform 220ms ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.social-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-meta a {
  color: var(--footer-soft);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-meta a:hover {
  color: #fff;
}

.footer-menu a {
  color: var(--footer-soft);
  transition: color 180ms ease;
}

.footer-menu a:hover {
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BOOKING PAGE — UI FIXES
───────────────────────────────────────────────────────────────────────────── */

/* Extra breathing room above the form section */
.appointment-shell {
  padding-top: 20px;
}

/* Contact card grid responsive fixes */
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.contact-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(209,8,8,0.08);
  color: var(--accent);
}

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-card a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-card a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .contact-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PLACEHOLDER NOTICE (shown before content is added)
───────────────────────────────────────────────────────────────────────────── */

.placeholder-notice {
  background: #f9f7f4;
  border: 2px dashed #d4cfc8;
  padding: 2rem;
  text-align: center;
  color: #746b62;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   INSTAGRAM FEED SECTION
───────────────────────────────────────────────────────────────────────────── */

.instagram-section {
  padding: 5rem 0;
  background: var(--cream, #faf8f5);
}

.instagram-handle {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-soft, #746b62);
  letter-spacing: 0.04em;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 2.5rem 0 2rem;
}

.instagram-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ede9e3;
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.instagram-card:hover img {
  transform: scale(1.05);
}

.instagram-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 250ms ease;
}

.instagram-card:hover .instagram-card-overlay {
  opacity: 1;
}

.instagram-follow {
  text-align: center;
  margin-top: 1.5rem;
}

.instagram-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1.5px solid var(--text-main, #2a2522);
  color: var(--text-main, #2a2522);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.instagram-follow-btn:hover {
  background: var(--text-main, #2a2522);
  color: #fff;
}

@media (max-width: 900px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ARCHIVE HERO BANNER
───────────────────────────────────────────────────────────────────────────── */

.archive-hero {
  position: relative;
  width: 100%;
  padding-top: 0 !important;
  height: clamp(280px, 35vw, 560px);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  overflow: hidden;
}

.archive-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.28) 100%);
}

.archive-hero-text {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  width: 90%;
}

.archive-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}

.archive-hero-text p {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CATEGORY FILTER TABS
───────────────────────────────────────────────────────────────────────────── */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 2.5rem 0 3rem;
}

.cat-btn {
  padding: 0.45rem 1.4rem;
  border: 1.5px solid var(--text-main, #2a2522);
  background: transparent;
  color: var(--text-main, #2a2522);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  border-radius: 0;
}

.cat-btn:hover,
.cat-btn.is-active {
  background: var(--text-main, #2a2522);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BLOG / FILM CARD GRID
───────────────────────────────────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card-media {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
  aspect-ratio: 3 / 2;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 450ms ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

/* Play icon overlay for film cards */
.blog-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  color: #fff;
  opacity: 0;
  transition: opacity 250ms ease;
}

.blog-card:hover .blog-card-play {
  opacity: 1;
}

.blog-card-body {
  padding: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card-cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft, #746b62);
}

.blog-card-title {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.4;
  margin: 0;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-soft, #746b62);
  line-height: 1.6;
  margin: 0;
}

.blog-card-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main, #2a2522);
  text-decoration: none;
  margin-top: 0.25rem;
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  cursor: pointer;
}

.blog-card-link:hover {
  color: var(--accent);
}

/* Pagination */
.archive-pagination {
  margin-top: 3rem;
  text-align: center;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  transition: background 180ms ease;
}

.archive-pagination .page-numbers li .current,
.archive-pagination .page-numbers li a:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SINGLE POST — PHOTO HERO (featured image with text overlay)
───────────────────────────────────────────────────────────────────────────── */

.single-wrap {
  padding-bottom: 5rem;
}

.single-hero-media {
  width: 100%;
  margin-bottom: 2.5rem;
}

.single-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 for film embeds */
  background: #111;
  overflow: hidden;
}

.single-embed-wrap iframe,
.single-embed-wrap > * {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.single-hero-photo {
  height: clamp(320px, 45vw, 640px);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.single-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
}

.single-hero-placeholder {
  height: clamp(200px, 25vw, 360px);
  background: var(--bg-soft);
  display: flex;
  align-items: flex-end;
}

.single-hero-name {
  position: relative;
  z-index: 2;
  padding: 2rem 3rem;
  color: #fff;
}

.single-hero-placeholder .single-hero-name {
  color: var(--text-main);
}

.single-hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  font-style: italic;
}

.single-hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

.single-heading {
  text-align: center;
  /* `auto` on the inline axis is required — a bare `0` left-aligns the
     max-width block inside the wider shell instead of centring it. */
  margin: 2rem auto 1.5rem;
}

.single-intro-row {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.single-intro-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-soft);
}

/* Details as horizontal tag row */
.single-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  margin: 0 auto 3rem;
  max-width: 720px;
}

.single-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.single-tag-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.single-tag-value {
  font-size: 0.95rem;
  color: var(--text-main);
}

.single-description {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ─────────────────────────────────────────────────────────────────────────────
   POST MASONRY GALLERY (2-column)
   Images added in Gutenberg editor appear here.
───────────────────────────────────────────────────────────────────────────── */

.post-masonry {
  columns: 2;
  column-gap: 14px;
  margin: 0 0 4rem;
}

.post-masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
}

.post-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .post-masonry {
    columns: 1;
  }

  .single-hero-photo {
    height: 260px;
  }

  .single-hero-name {
    padding: 1.5rem;
  }

  .single-hero-title {
    font-size: 2rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILM CARD — play button always visible (not just on hover)
───────────────────────────────────────────────────────────────────────────── */

.blog-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.30);
  color: #fff;
  opacity: 1;       /* always visible on film cards */
  transition: background 250ms ease;
  border: 0;
  cursor: pointer;
}

.blog-card-play svg {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.blog-card:hover .blog-card-play {
  background: rgba(0,0,0,0.50);
}

/* ─────────────────────────────────────────────────────────────────────────────
   VIDEO LIGHTBOX MODAL
───────────────────────────────────────────────────────────────────────────── */

.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
}

.video-lightbox.is-open {
  display: flex;
}

.video-lightbox-inner {
  position: relative;
  width: min(90vw, 1100px);
}

.video-lightbox-ratio {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.video-lightbox-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.video-lightbox-close:hover {
  opacity: 1;
}

/* ─── PARALLAX PHOTO DIVIDER BANDS ──────────────────────────────────────── */
/*
 * JS-driven parallax — works on all platforms including iOS Safari.
 * The outer .parallax-band clips the viewport window.
 * The inner .parallax-band-inner is 50% taller and translated by JS on scroll.
 */

.parallax-band {
  width: 100%;
  height: 560px;
  position: relative;
  overflow: hidden;   /* clips the taller inner image */
}

.parallax-band-inner {
  position: absolute;
  /* 25% extra top and bottom so there's room to travel */
  top: -25%;
  left: 0;
  right: 0;
  bottom: -25%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;   /* GPU-composited — smooth on mobile */
}

/* Vignette overlay */
.parallax-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0)    40%,
    rgba(0,0,0,0)    60%,
    rgba(0,0,0,0.18) 100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .parallax-band {
    height: 340px;
  }
}

/* ─── PAGE LOADER ─────────────────────────────────────────────────────────── */

#cineframe-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

#cineframe-loader.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

/* Inner wrapper — centres all content */
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: loader-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes loader-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Custom logo variant */
.loader-logo img {
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1);   /* force white on dark bg */
  opacity: 0;
  animation: loader-fade-in 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes loader-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1);    }
}

/* Text wordmark — each letter animates independently */
.loader-wordmark {
  display: flex;
  gap: 0;
  font-family: var(--font-heading, serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  overflow: hidden;
}

.loader-wordmark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: loader-letter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes loader-letter {
  to { opacity: 1; transform: translateY(0); }
}

/* Tagline below wordmark */
.loader-tagline {
  font-family: var(--font-body, sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0;
  opacity: 0;
  animation: loader-fade-in 0.6s 0.8s ease forwards;
}

/* Animated underline / progress bar */
.loader-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  border-radius: 1px;
}

.loader-line span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.75);
  animation: loader-line-grow 1.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loader-line-grow {
  0%   { width: 0%;   opacity: 1; }
  80%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0.4; }
}

/* ─── END PAGE LOADER ──────────────────────────────────────────────────────── */

/* ─── LAYOUT FIXES v11 ────────────────────────────────────────────────────── */

/* 1. Logo image in nav — cap size, ensure column stacking with tagline */
.brand {
  max-width: 240px;  /* prevent very wide logos from crushing the nav */
}

.custom-logo {
  display: block;
  max-height: 56px;
  max-width: 210px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 2. Reduce the gap between archive hero banner and the first content section.
      The generic .section top padding (--section-space ~64–140px) is too large
      directly after a full-height hero image. */
.archive-hero + .section {
  padding-top: clamp(28px, 3.5vw, 52px);
}

/* 3. Tighten category filter tab row — was 2.5rem/3rem above/below */
.category-filter {
  margin: 1.2rem 0 1.8rem;
}

/* 4. Section heading bottom margin on archive pages — a bit generous */
.archive-hero + .section .section-heading {
  margin-bottom: 32px;
}

/* 5. Hide the eyebrow <p> entirely when it's empty so it doesn't leave a gap */
.eyebrow:empty {
  display: none;
}

/* 6. About / page template — tighten heading area top padding */
.single-heading {
  padding-top: 2rem;
}

/* ─── END LAYOUT FIXES v11 ───────────────────────────────────────────────── */

/* ─── PAGE / ABOUT TEMPLATE — FULL-BLEED BANNER + CENTRED CONTENT ────────── */

/* Hero banner: edge-to-edge, same proportions as archive hero */
.page-banner-full {
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: var(--bg-soft);
}

.page-banner-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area below the banner — same outer padding as other sections */
.page-content-wrap {
  padding-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 100px);
}

/* Centred content shell — narrower than the hero so text stays readable */
.page-content-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

/* Centre the heading block (eyebrow / title / intro) */
.page-content-shell .single-heading {
  text-align: center;
  padding-top: 0;
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Body copy (Gutenberg blocks) — max-width for comfortable reading */
.page-content-shell .single-copy {
  max-width: 820px;
  margin-inline: auto;
}

@media (max-width: 860px) {
  .page-banner-full {
    aspect-ratio: 16 / 8;
  }
  .page-content-shell {
    width: min(calc(100% - 26px), var(--content-width));
  }
}

/* ─── END PAGE TEMPLATE ───────────────────────────────────────────────────── */

/* ─── UNIFIED CONTENT CENTRING (v16) ──────────────────────────────────────────
 *
 * Root cause of the misalignment this fixes:
 * `.single-heading` carried `margin: 2rem 0 1.5rem` in a later rule, which
 * reset the inline margins to 0. A max-width block with `margin-inline: 0`
 * sits flush against the left edge of its container rather than centring —
 * so the 980px heading sat 100px left of the 1180px shell's centre while the
 * hero media above it stayed centred.
 *
 * These rules make the centring explicit for every heading/content block so a
 * future shorthand `margin` declaration cannot silently break it again.
 * ─────────────────────────────────────────────────────────────────────────── */

.single-heading,
.single-intro-row,
.single-tags-row,
.single-description,
.page-content-shell .single-heading,
.page-content-shell .single-copy,
.archive-hero + .section .section-heading {
  margin-inline: auto;
}

/* Heading blocks share one measure across single, page and archive templates */
.single-heading {
  max-width: 980px;
  text-align: center;
}

/* Body/meta blocks share a narrower measure for readability */
.single-intro-row,
.single-tags-row,
.single-description {
  max-width: 720px;
}

/* Gutenberg body content on single posts — match the description measure and
   centre it, so editor content lines up with the theme-rendered blocks above */
.single-wrap .single-copy,
.single-description {
  margin-inline: auto;
}

/* Editor content inside a story/film should not inherit centre alignment for
   its paragraphs — only the block itself is centred, text stays left-aligned */
.single-description > p,
.single-description > ul,
.single-description > ol,
.page-content-shell .single-copy > p,
.page-content-shell .single-copy > ul,
.page-content-shell .single-copy > ol {
  text-align: left;
}

/* Full-bleed blocks must never inherit the content max-width */
.single-hero-media,
.post-masonry,
.page-banner-full {
  max-width: none;
}

@media (max-width: 860px) {
  .single-heading,
  .single-intro-row,
  .single-tags-row,
  .single-description {
    max-width: 100%;
  }
}

/* ─── END UNIFIED CONTENT CENTRING ───────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   REUSABLE BLOCK PATTERN COMPONENTS  (v16)

   Styles for the pre-made components in the editor:
   Editor → [+] → Patterns tab → "Cineframe: Sections / Content / Cards"

   All classes are prefixed .cf- so they never collide with core block styles.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Shared typography helpers ──────────────────────────────────────────── */

.cf-eyebrow {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cf-display {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
}

h2.cf-display { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3.cf-display { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.cf-lede {
  color: var(--text-soft);
  font-size: 1rem;
}

.cf-pattern-heading {
  margin-block: clamp(40px, 6vw, 80px);
}

/* ─── Image + text ───────────────────────────────────────────────────────── */

.cf-media-text {
  margin-block: clamp(40px, 6vw, 80px);
  gap: clamp(24px, 4vw, 56px);
}

.cf-media-text .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Cards (services) ───────────────────────────────────────────────────── */

.cf-cards {
  margin-block: clamp(40px, 6vw, 80px);
  gap: clamp(20px, 3vw, 40px);
}

.cf-card {
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cf-card-title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.cf-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ─── Stats row ──────────────────────────────────────────────────────────── */

.cf-stats {
  margin-block: clamp(40px, 6vw, 80px);
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cf-stat-num {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}

.cf-stat-label {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ─── Testimonial / pull quote ───────────────────────────────────────────── */

.cf-quote-block {
  margin-block: clamp(48px, 7vw, 96px);
  padding-block: clamp(28px, 4vw, 48px);
  position: relative;
}

.cf-quote-block::before {
  content: "\201C";
  display: block;
  margin-bottom: -0.35em;
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--line-strong);
  text-align: center;
}

.cf-quote-text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.cf-quote-cite {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ─── Process steps ──────────────────────────────────────────────────────── */

.cf-steps {
  margin-block: clamp(48px, 7vw, 96px);
}

.cf-steps > .wp-block-columns {
  margin-top: clamp(28px, 4vw, 52px);
  gap: clamp(24px, 4vw, 48px);
}

.cf-step-num {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}

.cf-step-title {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
}

.cf-step p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ─── Pricing ────────────────────────────────────────────────────────────── */

.cf-pricing {
  margin-block: clamp(40px, 6vw, 80px);
  gap: clamp(18px, 2.5vw, 32px);
  align-items: stretch;
}

.cf-price-card {
  padding: clamp(26px, 3vw, 42px) clamp(20px, 2.5vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cf-price-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.cf-price {
  margin: 0 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}

.cf-price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.cf-price-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.cf-price-list li:first-child {
  border-top: none;
}

/* ─── FAQ accordion ──────────────────────────────────────────────────────── */

.cf-faq {
  margin-block: clamp(48px, 7vw, 96px);
}

.cf-faq > .wp-block-heading {
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.cf-faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cf-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 32px;
}

.cf-faq-item summary::-webkit-details-marker {
  display: none;
}

.cf-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 220ms ease;
}

.cf-faq-item[open] summary::after {
  content: "\2212";
}

.cf-faq-item p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ─── CTA banner ─────────────────────────────────────────────────────────── */

.cf-cta {
  margin-block: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px);
  background: var(--bg-soft);
  text-align: center;
}

.cf-cta-title {
  margin: 0 0 14px;
}

.cf-cta-copy {
  margin: 0 0 28px;
  color: var(--text-soft);
}

.cf-cta .wp-block-button__link,
.cf-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cf-cta .wp-block-button__link:hover,
.cf-btn .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(209, 8, 8, 0.16);
}

/* ─── Full-width image band ──────────────────────────────────────────────── */

.cf-image-band {
  margin-block: clamp(48px, 7vw, 96px);
}

/* ─── Photo grids ────────────────────────────────────────────────────────── */

.cf-photo-grid,
.cf-gallery-strip {
  margin-block: clamp(40px, 6vw, 80px);
  gap: 14px;
}

.cf-photo-grid .wp-block-image img,
.cf-gallery-strip .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Contact details ────────────────────────────────────────────────────── */

.cf-contact {
  margin-block: clamp(40px, 6vw, 80px);
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.cf-contact p:not(.cf-eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.9;
}

/* ─── Ornamental divider ─────────────────────────────────────────────────── */

.cf-divider {
  margin-block: clamp(36px, 5vw, 64px);
}

.cf-divider-mark {
  margin: 0;
  color: var(--line-strong);
  font-size: 0.7rem;
  letter-spacing: 0.6em;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 781px) {
  .cf-cards,
  .cf-pricing,
  .cf-stats,
  .cf-contact,
  .cf-steps > .wp-block-columns {
    gap: 16px;
  }

  .cf-stats {
    row-gap: 28px;
  }

  .cf-stats .wp-block-column {
    flex-basis: calc(50% - 8px) !important;
  }

  .cf-media-text {
    gap: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END REUSABLE BLOCK PATTERN COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   BOOKING FORM — REQUIRED MARKERS + THEMED SELECT  (v16)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Red asterisk on required labels ────────────────────────────────────── */

.required-mark {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1;
  margin-left: 1px;
}

.form-required-note {
  margin: 0 0 1.6rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ─── Themed select ──────────────────────────────────────────────────────────
 *
 * A native <select> popup is drawn by the operating system and is entirely
 * unstyleable — hence the custom listbox built in theme.js.
 *
 * .cf-select-native is added by JS only after the enhancement succeeds, so
 * with JS disabled the original <select> stays visible and functional.
 * ─────────────────────────────────────────────────────────────────────────── */

.cf-select {
  position: relative;
}

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

/* Trigger button — matches the other form inputs exactly */
.cf-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.cf-select-trigger:hover {
  border-color: var(--line-strong);
}

.cf-select-trigger:focus-visible,
.cf-select.is-open .cf-select-trigger {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.cf-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chevron */
.cf-select-caret {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-soft);
  border-bottom: 1.5px solid var(--text-soft);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease;
}

.cf-select.is-open .cf-select-caret {
  transform: rotate(225deg) translate(-3px, -3px);
  border-color: var(--accent);
}

/* Option list */
.cf-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(47, 42, 37, 0.13);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 200ms;
}

.cf-select.is-open .cf-select-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.cf-select-option {
  position: relative;
  padding: 12px 16px 12px 40px;
  color: var(--text-soft);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

/* Hover / keyboard-active row */
.cf-select-option.is-active {
  background: var(--bg-soft);
  color: var(--text);
}

/* Currently chosen row */
.cf-select-option.is-selected {
  color: var(--text);
  font-weight: 600;
}

/* Tick mark on the selected row, drawn with borders (no icon font needed) */
.cf-select-option.is-selected::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .cf-select-trigger {
    min-height: 52px;
    font-size: 0.9rem;
  }
  .cf-select-list {
    max-height: 240px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cf-select-list,
  .cf-select-caret {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END BOOKING FORM STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE FEATURED VIDEO + HOMEPAGE EDITOR CONTENT  (v17)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Video hero on About / Book Appointment / any page ──────────────────── */

.page-banner-full.has-video,
.hero-banner.has-video {
  position: relative;
  overflow: hidden;
  background: #111;
}

.page-banner-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The banner wrappers define the aspect ratio; the video fills it */
.page-banner-full.has-video {
  aspect-ratio: 16 / 6;
}

.hero-banner.has-video {
  aspect-ratio: 16 / 6;
}

/* ─── YouTube / Vimeo embed hero ─────────────────────────────────────────── */

.page-banner-full.has-embed,
.hero-banner.has-embed {
  aspect-ratio: auto;
  overflow: hidden;
}

.page-banner-embed {
  position: relative;
  width: 100%;
  padding-top: 42%; /* wide cinematic crop, close to 16:6.7 */
  overflow: hidden;
  background: #111;
}

.page-banner-embed iframe,
.page-banner-embed video,
.page-banner-embed object,
.page-banner-embed embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

@media (max-width: 860px) {
  .page-banner-full.has-video,
  .hero-banner.has-video {
    aspect-ratio: 16 / 9;
  }
  .page-banner-embed {
    padding-top: 56.25%; /* standard 16:9 on small screens */
  }
}

/* ─── Homepage: page editor content area ─────────────────────────────────────
 *
 * front-page.php previously never called the_content(), so nothing added in
 * Pages → Home → editor could render. This is the container for that content;
 * its position is set in Customize → 13.
 * ─────────────────────────────────────────────────────────────────────────── */

.home-editor-content .home-editor-inner > *:first-child {
  margin-top: 0;
}

.home-editor-content .home-editor-inner > *:last-child {
  margin-bottom: 0;
}

/* Let full/wide-aligned blocks break out of the section shell as intended */
.home-editor-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-editor-content .alignwide {
  width: min(100vw - 48px, var(--max-width));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Keep ordinary editor text at a readable measure, centred in the section */
.home-editor-content .home-editor-inner > p,
.home-editor-content .home-editor-inner > h1,
.home-editor-content .home-editor-inner > h2,
.home-editor-content .home-editor-inner > h3,
.home-editor-content .home-editor-inner > ul,
.home-editor-content .home-editor-inner > ol,
.home-editor-content .home-editor-inner > blockquote {
  max-width: var(--text-width);
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   END v17 STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── FOOTER ADMIN HINTS (v18) ────────────────────────────────────────────────
 * Shown only to logged-in users who can edit theme options. An unset footer
 * field used to render as blank space with no clue where to populate it.
 * ─────────────────────────────────────────────────────────────────────────── */

.footer-admin-hint {
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #cfcfcf !important;
  font-size: 0.72rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIAL CAROUSEL + SHAPED IMAGE LAYOUTS  (v20)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Testimonial carousel ───────────────────────────────────────────────────
 * Crossfade rather than horizontal slide — quotes differ in length, and a
 * translate-based track would expose the neighbouring quote mid-transition.
 * ─────────────────────────────────────────────────────────────────────────── */

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.testimonial-track {
  position: relative;
  /* min-height is set by JS to the tallest slide so the page doesn't jump */
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 620ms;
  pointer-events: none;
}

.testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

/* ─── Carousel navigation ────────────────────────────────────────────────── */

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.testimonial-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

/* Chevron drawn with borders — no icon font dependency */
.testimonial-arrow span {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--text-soft);
  border-right: 1.5px solid var(--text-soft);
}

.testimonial-prev span { transform: rotate(-135deg) translate(-2px, -2px); }
.testimonial-next span { transform: rotate(45deg)   translate(-2px, -2px); }

.testimonial-arrow:hover span { border-color: var(--accent); }

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--line-strong);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease, width 220ms ease;
}

.testimonial-dot:hover { background: #b9aa9a; }

.testimonial-dot.is-active {
  width: 26px;
  border-radius: 4px;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slide { transition: none; }
}

@media (max-width: 600px) {
  .testimonial-nav { gap: 14px; margin-top: 26px; }
  .testimonial-arrow { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHAPED IMAGE LAYOUTS
   All shapes use clip-path, so the client just swaps the image in the editor
   and the shape follows — no masking or transparent PNGs required.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Chevron / flag band ────────────────────────────────────────────────── */

.cf-shape-chevron {
  /* notch cut into the top and bottom edges */
  clip-path: polygon(
    0 0,      50% 9%,   100% 0,
    100% 100%, 50% 91%,  0 100%
  );
  margin-block: clamp(-20px, -2vw, 0px);
}

.cf-shape-chevron .cf-shape-quote {
  max-width: 760px;
  margin-inline: auto;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.75;
}

/* ─── Slanted band ───────────────────────────────────────────────────────── */

.cf-shape-slant {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

/* ─── Hexagon trio ───────────────────────────────────────────────────────── */

.cf-hex-row {
  margin-block: clamp(48px, 7vw, 100px);
}

.cf-hex-grid {
  gap: clamp(12px, 1.6vw, 26px);
  align-items: flex-start;
}

.cf-hex-img {
  margin: 0;
  overflow: hidden;
  /* regular hexagon, flat top and bottom */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cf-hex-img img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
}

.cf-hex-img:hover { transform: translateY(-6px); }

/* Middle hexagon drops to create the honeycomb interlock */
.cf-hex--drop { margin-top: clamp(28px, 5vw, 84px); }

@media (max-width: 781px) {
  .cf-hex--drop { margin-top: 0; }
  .cf-hex-grid  { gap: 14px; }
}

/* ─── Arch trio ──────────────────────────────────────────────────────────── */

.cf-arch-grid {
  margin-block: clamp(48px, 7vw, 100px);
  gap: clamp(14px, 2vw, 32px);
  align-items: flex-end;
}

.cf-arch-img {
  margin: 0;
  overflow: hidden;
  /* full semicircle top, square base */
  border-radius: 999px 999px 8px 8px;
}

.cf-arch-img img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  display: block;
}

.cf-arch--tall .cf-arch-img img { aspect-ratio: 3 / 4.9; }

@media (max-width: 781px) {
  .cf-arch-grid { align-items: stretch; }
  .cf-arch--tall .cf-arch-img img { aspect-ratio: 3 / 4.2; }
}

/* ─── Overlapping duo ────────────────────────────────────────────────────── */

.cf-overlap {
  margin-block: clamp(56px, 8vw, 120px);
}

.cf-overlap-title {
  margin-bottom: clamp(28px, 4vw, 56px);
}

.cf-overlap-grid {
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.cf-overlap-img {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cf-overlap-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.cf-overlap-left .cf-overlap-img img { aspect-ratio: 3 / 4; }

/* The landscape image lifts out of the text column and overlaps the portrait */
.cf-overlap-img--float {
  position: relative;
  margin-top: clamp(20px, 3vw, 40px);
  margin-left: clamp(-120px, -8vw, 0px);
  width: calc(100% + clamp(0px, 8vw, 120px));
  max-width: none;
  z-index: 2;
}

.cf-overlap-img--float img { aspect-ratio: 11 / 8; }

/* Overlap only makes sense side-by-side; stack cleanly on small screens */
@media (max-width: 781px) {
  .cf-overlap-img--float {
    margin-left: 0;
    width: 100%;
  }
  .cf-overlap-grid { gap: 20px; }
}

/* Shapes are decorative — drop them where a device can't render clip-path */
@supports not (clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)) {
  .cf-shape-chevron,
  .cf-shape-slant,
  .cf-hex-img {
    clip-path: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END v20 STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── TESTIMONIAL SPACING FIX (v21) ──────────────────────────────────────────
 *
 * The markup is <section class="section testimonial-band">, so the band was
 * receiving .section's padding-top (up to 140px) AND its own vertical padding
 * (up to 110px) — roughly 250px of stacked space above the heading.
 *
 * Collapse to a single, self-contained padding on the band.
 * ─────────────────────────────────────────────────────────────────────────── */

.section.testimonial-band {
  padding-top: clamp(48px, 5.5vw, 84px);
  padding-bottom: clamp(48px, 5.5vw, 84px);
}

.testimonial-band .section-heading {
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

/* Track height is set by JS to the ACTIVE slide; transition keeps it smooth */
.testimonial-track {
  transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track { transition: none; }
}

/* Tighten the gap between the quote and the controls */
.testimonial-carousel .testimonial-copy {
  padding-block: 0;
}

.testimonial-carousel .testimonial-copy p {
  margin: 0 0 14px;
}

.testimonial-nav {
  margin-top: clamp(18px, 2.4vw, 30px);
}

/* ─── END TESTIMONIAL SPACING FIX ────────────────────────────────────────── */
