/*
Theme Name: Khalabuzar Horizon
Description: Photography theme for khalabuzar.com — filmstrip hero, wedding stories first, enquiry form on every page.
Version: 2.0
Requires PHP: 7.4
Text Domain: khalabuzar
*/

:root {
  --ink: #191714;
  --ink-2: #4f483f;
  --muted: #776c5f;
  --line: #e6e0d7;
  --soft: #f6f3ee;
  --accent: #191714;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1360px;
  --pad: clamp(18px, 3.2vw, 44px);
  --gap: clamp(14px, 1.6vw, 24px);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 10px); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 10px; top: 10px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; color: var(--ink-2); }
.display { font-size: clamp(44px, 7.4vw, 116px); line-height: .96; letter-spacing: -.02em; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); }
.h3 { font-size: clamp(26px, 2.6vw, 40px); }
em, .it { font-style: italic; }
.center { text-align: center; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 28px; border-radius: 40px; background: var(--ink); color: #fff; font: 600 14px/1 var(--sans); letter-spacing: .02em; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #3a352f; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--soft); color: var(--ink); }
.link { font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header); padding: 0 var(--pad); gap: 20px; }
.logo { font-family: var(--serif); font-weight: 300; font-size: 27px; letter-spacing: .01em; white-space: nowrap; }
.logo span { font-style: italic; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav-main li { position: relative; }
.nav-main a { font-size: 14px; font-weight: 500; padding: 8px 0; display: inline-block; }
.nav-main .current-menu-item > a, .nav-main .current-menu-ancestor > a { border-bottom: 1px solid var(--ink); }
.nav-main .sub-menu { display: none; position: absolute; left: -16px; top: 100%; background: #fff; border: 1px solid var(--line); padding: 10px 16px; min-width: 180px; flex-direction: column; gap: 0; }
.nav-main li:hover > .sub-menu, .nav-main li:focus-within > .sub-menu { display: flex; }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-cta .btn { min-height: 42px; padding: 11px 20px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; margin-left: -10px; }
.burger i { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: transform .25s, opacity .25s; }
.menu-open .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Filmstrip */
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 10px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip img { flex: 0 0 auto; height: var(--strip-h, min(72vh, 720px)); width: auto; object-fit: cover; scroll-snap-align: start; user-select: none; -webkit-user-drag: none; background: var(--soft); }
.strip--small img { --strip-h: clamp(240px, 32vw, 420px); }
.strip-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad) 0; font-size: 13px; color: var(--muted); }
.strip-arrows { display: flex; gap: 8px; }
.strip-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink); }
.strip-arrows button:hover { border-color: var(--ink); }

/* Hero */
.hero-title { text-align: center; padding: clamp(56px, 8vw, 100px) var(--pad) clamp(40px, 5vw, 60px); }
.hero-title p.lead { max-width: 560px; margin: 26px auto 30px; }
.hero-title .btns { justify-content: center; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; padding: 0 var(--pad); color: var(--muted); font-size: 14px; }
.facts span::before { content: "— "; }

/* Split stories */
.stories { display: flex; flex-direction: column; gap: clamp(70px, 9vw, 130px); }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; height: clamp(380px, 48vw, 680px); object-fit: cover; }
.split__num { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6vw, 84px); line-height: 1; color: #cfc5b6; margin: 0 0 12px; }

/* Gallery cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) var(--gap); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: block; }
.card__img { overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.card:hover .card__img img { transform: scale(1.035); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); margin: 16px 0 2px; color: var(--ink); }
.card__meta { font-size: 13px; color: var(--muted); }

/* Value / process */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.value { border-top: 1px solid var(--ink); padding-top: 20px; }
.value h3 { font-size: 24px; margin-bottom: 8px; }
.value p { color: var(--ink-2); font-size: 15px; margin: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.step { counter-increment: s; background: var(--soft); padding: 28px 24px; border-radius: 4px; }
.step::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 40px; font-weight: 300; color: #b8ab98; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.quote { margin: 0; }
.quote img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 20px; }
.quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; margin-bottom: 12px; }
.quote footer { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Band (photo with overlay) */
.band { position: relative; margin: 0 10px; overflow: hidden; }
.band > img { width: 100%; height: clamp(420px, 52vw, 640px); object-fit: cover; }
.band__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 30px; color: #fff; background: rgba(18, 15, 12, .34); }
.band__in h2 { color: #fff; }

/* Secondary (portrait & family) */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--gap); align-items: end; }
.duo a img { width: 100%; height: clamp(260px, 30vw, 420px); object-fit: cover; }
.duo a span { display: block; margin-top: 12px; font-family: var(--serif); font-size: 22px; }

/* Film block */
.film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.film__media { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; align-items: end; }
.film__media img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.film__media img:first-child { height: clamp(320px, 36vw, 520px); }
.film__media img:last-child { height: clamp(220px, 24vw, 340px); }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); }
.post-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); margin-bottom: 18px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.post-card:hover .post-card__img img { transform: scale(1.035); }
.post-card h2, .post-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.25; margin: 0 0 10px; }
.post-card p { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.post-card .card__meta { margin-bottom: 8px; }

/* Page headers */
.page-head { text-align: center; padding: clamp(48px, 7vw, 96px) var(--pad) clamp(30px, 4vw, 54px); }
.page-head p.lead { max-width: 640px; margin: 18px auto 0; }
.page-hero img { width: 100%; height: clamp(360px, 56vw, 720px); object-fit: cover; }

/* Gallery single */
.g-body { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 40px; }
.g-body .wp-block-gallery { display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; margin: 0 0 10px !important; }
.g-body .wp-block-gallery.has-nested-images figure.wp-block-image { margin: 0 !important; flex: 1 1 0 !important; width: auto !important; }
.g-body .wp-block-gallery figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; cursor: zoom-in; }
.g-body .wp-block-gallery.columns-1 img { max-height: 92vh; width: auto !important; margin: 0 auto; object-fit: contain; }
.g-body > p, .g-body > .wp-block-group { max-width: 720px; margin-left: auto; margin-right: auto; }
.g-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 1200px; margin: 40px auto 0; padding: 0 var(--pad); }
.g-nav a { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.g-nav a:last-child { grid-template-columns: 1fr 120px; text-align: right; }
.g-nav a:last-child img { order: 2; }
.g-nav img { width: 120px; height: 90px; object-fit: cover; }
.g-nav small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.g-nav strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }

/* Entry content */
.entry { font-size: 17px; line-height: 1.8; color: #2b2723; }
.entry > * { margin-top: 0; margin-bottom: 1.15em; }
.entry h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.6em; }
.entry h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 1.4em; }
.entry h1 { font-size: clamp(30px, 3.4vw, 42px); }
.entry a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li { margin-bottom: .4em; }
.entry img { margin: 0 auto; }
.entry .wp-block-image { margin: 2em 0; }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 3em auto; }
.entry blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry td, .entry th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.has-text-align-center { text-align: center; }
.single-head { text-align: center; padding: clamp(40px, 6vw, 80px) var(--pad) 30px; }
.single-head h1 { font-size: clamp(34px, 4.6vw, 60px); max-width: 980px; margin: 0 auto 16px; }
.single-hero { margin: 0 10px 50px; }
.single-hero img { width: 100%; height: clamp(300px, 46vw, 600px); object-fit: cover; }
.post-cta { margin: 3em 0; padding: 30px; background: var(--soft); display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.post-cta img { width: 120px; height: 150px; object-fit: cover; }
.post-cta p { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.tags { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tags a { margin-right: 12px; }

/* About page */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-hero img { width: 100%; height: clamp(420px, 50vw, 720px); object-fit: cover; }
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); }
.person img { width: 100%; height: clamp(380px, 42vw, 600px); object-fit: cover; margin-bottom: 24px; }
.person h3 { font-size: 36px; margin-bottom: 4px; }
.person .role { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* Reviews page */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px) clamp(28px, 4vw, 60px); }
.review img { width: 100%; height: clamp(300px, 32vw, 460px); object-fit: cover; margin-bottom: 22px; }
.review blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }
.review cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Enquiry section (on every page) */
.enquire { background: var(--soft); padding: clamp(64px, 8vw, 110px) 0; margin-top: clamp(60px, 8vw, 110px); }
.enquire__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.enquire__aside .photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 34px; align-items: end; }
.enquire__aside .photos img { width: 100%; object-fit: cover; }
.enquire__aside .photos img:first-child { height: 300px; }
.enquire__aside .photos img:last-child { height: 210px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.enquire__form { background: #fff; padding: clamp(24px, 3.4vw, 46px); border-radius: 6px; }

/* Flo Forms skin */
.flo-form .form-style1 { display: flex; flex-wrap: wrap; gap: 0 18px; }
.flo-form .field-row { margin: 0 0 18px; padding: 0 !important; float: none !important; }
.flo-form .field-row.width-100 { flex: 1 1 100%; }
.flo-form .field-row.width-50 { flex: 1 1 calc(50% - 9px); min-width: 220px; }
.flo-form .main-label, .flo-form label.main-label { display: block; font-family: var(--sans) !important; font-size: 13px !important; font-weight: 600 !important; color: var(--ink) !important; margin: 0 0 7px !important; letter-spacing: .01em; text-transform: none !important; }
.flo-form input[type=text], .flo-form input[type=email], .flo-form textarea, .flo-form select {
  width: 100% !important; min-height: 50px; border: 1px solid #d8d0c4 !important; border-radius: 4px !important; background: #fff !important; padding: 12px 14px !important;
  font: 400 16px/1.4 var(--sans) !important; color: var(--ink) !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; }
.flo-form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%) !important; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; padding-right: 40px !important; }
.flo-form textarea { min-height: 110px; resize: vertical; }
.flo-form input:focus, .flo-form textarea:focus, .flo-form select:focus { border-color: var(--ink) !important; outline: none; }
.flo-form ::placeholder { color: #9b9184; opacity: 1; }
.flo-form .field-box.radio_button { display: flex; flex-wrap: wrap; gap: 8px; }
.flo-form .the-choice { display: inline-flex; margin: 0 !important; }
.flo-form .kh-f-type label.choice { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 1px solid #d8d0c4; border-radius: 40px; cursor: pointer; font-size: 15px; background: #fff; margin: 0 !important; transition: border-color .2s, background .2s, color .2s; }
.flo-form .kh-f-type label.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.flo-form .kh-f-type label.choice:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.flo-form .kh-f-type label.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.flo-form .kh-f-film label.choice { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; color: var(--ink-2); margin: 0 !important; }
.flo-form .kh-f-film input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.flo-form .submit-row { flex: 1 1 100%; margin: 6px 0 0 !important; position: relative; }
.flo-form .flo-submit-button { min-height: 54px; padding: 16px 34px !important; border-radius: 40px !important; background: var(--ink) !important; color: #fff !important; border: 0 !important; font: 600 15px/1 var(--sans) !important; letter-spacing: .02em; cursor: pointer; width: auto; text-transform: none !important; }
.flo-form .flo-submit-button:hover { background: #3a352f !important; }
.flo-form label.error, .flo-form .error:not(input):not(textarea):not(select) { display: block; color: #a3261b !important; font-size: 13px !important; margin-top: 6px !important; font-family: var(--sans) !important; }
.flo-form input.error, .flo-form textarea.error { border-color: #a3261b !important; }
.flo-response, .flo-form .response, .flo-form-response { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Footer */
.site-footer { padding: 54px var(--pad) 34px; }
.site-footer__in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; align-items: start; }
.site-footer .logo { font-size: 30px; display: inline-block; margin-bottom: 10px; }
.site-footer p, .site-footer li { font-size: 14px; color: var(--ink-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer__bottom { max-width: var(--wrap); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.98); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; }
.lb button { position: absolute; background: none; border: 0; cursor: pointer; font-size: 34px; line-height: 1; padding: 16px; color: var(--ink); min-width: 52px; min-height: 52px; }
.lb__close { top: 6px; right: 8px; }
.lb__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 60px; font-family: var(--serif); font-size: 18px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
.pagination .current { border-bottom: 1px solid var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-main ul { gap: 18px; }
  .cards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header: 64px; }
  .site-header__in { grid-template-columns: auto 1fr auto; }
  .burger { display: inline-flex; }
  .logo { justify-self: center; font-size: 24px; }
  .nav-main { position: fixed; inset: var(--header) 0 0 0; background: #fff; z-index: 59; padding: 30px var(--pad); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .menu-open .nav-main { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav-main ul { flex-direction: column; gap: 0; }
  .nav-main a { font-family: var(--serif); font-weight: 300; font-size: 32px; padding: 8px 0; }
  .nav-main .sub-menu { display: flex; position: static; border: 0; padding: 0 0 6px 18px; min-width: 0; }
  .nav-main .sub-menu a { font-size: 22px; color: var(--ink-2); }
  .header-cta .btn { padding: 10px 14px; font-size: 13px; min-height: 40px; }
  .split, .split--rev, .film, .about-hero, .enquire__grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .cards, .cards--4, .posts, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo > div { grid-column: 1 / -1; order: -1; }
  .site-footer__in { grid-template-columns: 1fr 1fr; }
  .site-footer__in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .cards--4, .posts, .quotes, .values, .steps, .reviews, .people { grid-template-columns: 1fr; }
  .card__img { aspect-ratio: 4 / 5; }
  .strip img { --strip-h: 62vh; max-height: 520px; }
  .strip--small img { --strip-h: 260px; }
  .header-cta .btn { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; transform: translateY(140%); transition: transform .3s; }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
  .g-body { padding: 0 8px 30px; }
  .g-body .wp-block-gallery { flex-wrap: wrap !important; }
  .g-body .wp-block-gallery.has-nested-images figure.wp-block-image { flex: 1 1 100% !important; }
  .g-nav { grid-template-columns: 1fr; }
  .g-nav a, .g-nav a:last-child { grid-template-columns: 90px 1fr; text-align: left; }
  .g-nav a:last-child img { order: 0; }
  .g-nav img { width: 90px; height: 70px; }
  .flo-form .field-row.width-50 { flex-basis: 100%; min-width: 0; }
  .flo-form .flo-submit-button { width: 100%; }
  .post-cta { grid-template-columns: 1fr; }
  .post-cta img { display: none; }
  .enquire__aside .photos img:first-child { height: 220px; }
  .enquire__aside .photos img:last-child { height: 160px; }
  .site-footer__in { grid-template-columns: 1fr; }
  .facts { flex-direction: column; align-items: center; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
