/* ==========================================================================
   Home sections, v3 (notes/V3-DIRECTION.md): Origin's dark gallery + Caldera's
   light canvas and 40px cards. Loaded on the front page only, after v2.css.
   Rhythm: onyx → onyx (colour tiles) → logos → pumice → onyx → pumice → red card
   → module → pumice → onyx → pumice → blue panel.
   ========================================================================== */

/* Section headings: serif, sentence case, centred like a gallery wall */
:is(.v2-about, .v2-steps, .v2-services, .v2-explainer, .v2-cost, .v2-testimonials, .v2-faq, .v2-areas, .band-emergency) h2 {
	font-weight: 400 !important; letter-spacing: -.02em !important; line-height: .98 !important;
	font-size: calc(clamp(2.6rem, 5.2vw, 5rem) * var(--v2-ds)) !important;
}
:is(.v2-steps, .v2-explainer, .v2-testimonials) .section-head { text-align: center; margin-inline: auto !important; }
:is(.v2-steps, .v2-explainer, .v2-testimonials) .section-head h2 { margin-inline: auto !important; max-width: 16ch; }

/* Light sections (Caldera canvas) */
:is(.v2-about, .v2-services, .v2-cost, .v2-faq) {
	--fg: var(--v3-ink); --fg2: rgba(20, 22, 28, .7); --line: rgba(20, 22, 28, .12);
	background: var(--v3-pumice) !important; color: var(--fg2) !important;
}
:is(.v2-about, .v2-services, .v2-cost, .v2-faq) :is(h2, h3, strong) { color: var(--v3-ink) !important; }
:is(.v2-about, .v2-services, .v2-cost, .v2-faq) p:not(.text-link) { color: var(--fg2) !important; }
:is(.v2-about, .v2-services) .text-link a { color: var(--v3-ink) !important; }
:is(.v2-steps, .v2-testimonials, .v2-explainer) { background: var(--v2-soot) !important; }

/* Halftone texture on section photos (echoes the hero); clears on hover */
:is(.v2-about .split-image, .v2-services .services-photo) { position: relative; overflow: hidden; border-radius: var(--v3-r) !important; }
:is(.v2-about .split-image, .v2-services .services-photo) img { border-radius: var(--v3-r) !important; }
:is(.v2-about .split-image, .v2-services .services-photo)::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
	background: radial-gradient(circle, rgba(50, 157, 215, .9) 1.2px, transparent 1.7px) 0 0 / 7px 7px;
	mix-blend-mode: multiply; opacity: .5; transition: opacity .8s var(--v2-ease);
}
:is(.v2-about .split-image, .v2-services .services-photo):hover::after { opacity: 0; }

/* ---- Quote form: an inverted light card on onyx ---- */
.air-quote .form-panel { border-radius: var(--v3-r) !important; background: var(--v3-stone) !important; box-shadow: 0 50px 120px -50px rgba(50, 157, 215, .45) !important; }
.air-quote .form-panel h2 { font-weight: 400 !important; letter-spacing: -.02em; font-size: calc(clamp(2.4rem, 4.4vw, 3.8rem) * var(--v2-ds)) !important; color: var(--v3-ink) !important; }

/* ---- Audience index → Origin colour tiles ---- */
.hero-index { border-top: 0 !important; gap: 1rem !important; }
.hero-index > .hero-index__item {
	border: 0 !important; border-radius: var(--v3-r) !important; padding: 2.25rem 2rem 2.5rem !important; min-height: 17rem;
	display: flex !important; flex-direction: column; justify-content: flex-end;
	transition: transform .7s var(--v2-ease) !important;
}
.hero-index > .hero-index__item::before { display: none !important; }
.hero-index > .hero-index__item::after { top: 1.75rem !important; right: 1.75rem !important; left: auto; color: rgba(255, 255, 255, .55) !important; font-size: 1.4rem !important; }
.hero-index > .hero-index__item:nth-child(1) { background: var(--v2-blue) !important; }
.hero-index > .hero-index__item:nth-child(2) { background: #1d4f75 !important; }
.hero-index > .hero-index__item:nth-child(3) { background: var(--wp--preset--color--brand) !important; }
.hero-index > .hero-index__item:nth-child(4) { background: var(--v3-stone) !important; }
.hero-index > .hero-index__item:hover { transform: translateY(-8px); background-color: inherit; }
.hero-index__label { color: rgba(255, 255, 255, .8) !important; }
.hero-index__title { font-weight: 400 !important; letter-spacing: -.01em; font-size: calc(clamp(1.6rem, 2.2vw, 2.1rem) * var(--v2-ds)) !important; line-height: 1 !important; }
.hero-index__title a { color: #fff !important; }
.hero-index__desc { color: rgba(255, 255, 255, .82) !important; }
.hero-index > .hero-index__item:nth-child(4) :is(.hero-index__title a) { color: var(--v3-ink) !important; }
.hero-index > .hero-index__item:nth-child(4) .hero-index__label { color: var(--v2-blue) !important; }
.hero-index > .hero-index__item:nth-child(4) .hero-index__desc { color: rgba(20, 22, 28, .7) !important; }
.hero-index > .hero-index__item:nth-child(4)::after { color: rgba(20, 22, 28, .35) !important; }
.hero-index > .hero-index__item:focus-within { outline: 2px solid var(--v2-blue-hi) !important; outline-offset: 3px !important; }

/* ---- Accreditations: white marks on onyx, like press laurels ---- */
.accreditations { background: var(--v2-soot) !important; border-top: 1px solid rgba(238, 240, 242, .08) !important; border-bottom: 1px solid rgba(238, 240, 242, .08) !important; }
.logo-label { color: rgba(238, 240, 242, .6) !important; }
.logo-strip figure { display: grid; place-items: center; height: 4.25rem; padding: .6rem 1.4rem; border-radius: 22px; background: var(--v3-stone); }
.logo-strip img { filter: grayscale(1) !important; mix-blend-mode: multiply; opacity: .85 !important; max-height: 44px !important; transition: filter .4s, opacity .4s; }
.logo-strip figure:hover img { filter: none !important; opacity: 1 !important; }

/* ---- About: light canvas, photo in a 40px frame ---- */
.v2-about h2 { font-size: calc(clamp(2.4rem, 4.4vw, 4.2rem) * var(--v2-ds)) !important; }

/* ---- Steps: five graphite cards with big blue serif numbers ---- */
.v2-steps .steps { gap: 1rem !important; }
.v2-steps .steps::before, .v2-steps .steps::after { display: none !important; }
.v2-steps .steps > .step { background: var(--v3-graphite); border: 1px solid rgba(238, 240, 242, .07); border-radius: var(--v3-r); padding: 2rem 1.75rem 2.25rem !important; transition: transform .7s var(--v2-ease), border-color .4s; }
.v2-steps .steps > .step:hover { transform: translateY(-6px); border-color: rgba(91, 182, 234, .4); }
.v2-steps .steps > .step::after { display: none !important; }
.v2-steps .steps > .step::before {
	color: var(--v2-blue-hi) !important; -webkit-text-stroke: 0 !important; font-weight: 400 !important; font-style: italic;
	font-size: calc(clamp(3.2rem, 4.5vw, 4.5rem) * var(--v2-ds)) !important; line-height: .9 !important; margin-bottom: 2.5rem !important;
}
.v2-steps .steps h3 { color: var(--v2-bone) !important; font-family: var(--wp--preset--font-family--body) !important; font-weight: 600 !important; font-size: 1.125rem !important; line-height: 1.25 !important; letter-spacing: 0 !important; }
.v2-steps .steps p { color: rgba(238, 240, 242, .65) !important; }
.v2-facts > .fact { background: var(--v3-stone) !important; border-radius: var(--v3-r) !important; }
.v2-facts .fact__num { font-weight: 400 !important; font-style: italic; letter-spacing: -.02em; color: var(--wp--preset--color--brand) !important; }
@media (max-width: 960px) {
	.v2-steps .steps { border-left: 0 !important; }
	.v2-steps .steps > .step { padding: 1.75rem 1.5rem !important; }
	.v2-steps .steps > .step::before { margin-bottom: 1.25rem !important; }
}

/* ---- Services: light canvas; serif names; red flood on hover ---- */
.site-main .service-row__name { font-weight: 400 !important; letter-spacing: -.015em !important; }
.v2-services .service-row:hover .service-row__desc { color: rgba(255, 255, 255, .9) !important; }

/* ---- Emergency: a red Caldera feature card inset on onyx ---- */
.band-emergency { background: var(--v2-soot) !important; padding: clamp(1rem, 2vw, 1.5rem) !important; }
.band-emergency::before { display: none !important; }
.band-emergency > .wp-block-columns {
	position: relative; overflow: hidden; isolation: isolate; max-width: none !important; margin: 0 !important;
	border-radius: var(--v3-r); padding: clamp(3rem, 7vw, 6rem) clamp(1.75rem, 5vw, 5rem) !important;
	background: radial-gradient(60% 90% at 78% 50%, #ef2a31 0%, #da2128 40%, #a8141a 100%);
}
.band-emergency > .wp-block-columns::before {
	content: ""; position: absolute; inset: -60%; z-index: -1;
	background: conic-gradient(from 0deg, transparent 0 300deg, rgba(255, 255, 255, .1) 340deg, transparent 360deg);
	animation: v2-siren 9s linear infinite;
}
.band-emergency h2 { font-weight: 400 !important; }

/* ---- 3D explainer: an Origin product module ---- */
.v2-explainer .scar-explainer { border-radius: var(--v3-r) !important; outline: 0 !important; box-shadow: 0 60px 140px -50px rgba(50, 157, 215, .5) !important; }
.v2-explainer .wp-block-group:has(> .scar-explainer), .v2-explainer .scar-explainer { margin-inline: auto; }
.v2-explainer > .scar-explainer { outline: 1px solid rgba(238, 240, 242, .08) !important; outline-offset: clamp(1rem, 3vw, 2.5rem) !important; }

/* ---- Cost: heading plus two stone cards ---- */
.v2-cost .wp-block-column:not(:first-child) { background: var(--v3-stone) !important; border-radius: var(--v3-r) !important; padding: clamp(1.75rem, 3vw, 2.5rem) !important; }
.v2-cost .wp-block-column:first-child h2 { font-size: calc(clamp(2.2rem, 3.8vw, 3.6rem) * var(--v2-ds)) !important; }
.v2-cost ul.dash li::before { background: var(--v2-blue) !important; }

/* ---- Testimonials: one inverted light card, two graphite ---- */
.v2-testimonials .testimonial-card { border-radius: var(--v3-r) !important; background: var(--v3-graphite) !important; border-color: rgba(238, 240, 242, .07) !important; }
.v2-testimonials .section-head { justify-content: center !important; flex-direction: column; align-items: center !important; }

/* ---- FAQ: questions inside one stone card ---- */
.v2-faq .scar-faq { background: var(--v3-stone); border-radius: var(--v3-r); border-top: 0 !important; padding: .5rem clamp(1.5rem, 3vw, 2.5rem); }
.v2-faq .scar-faq details:last-child { border-bottom: 0 !important; }
.v2-faq .scar-faq summary { color: var(--v3-ink) !important; }
.v2-faq .scar-faq details[open] > summary::after { background: var(--v2-blue) !important; border-color: var(--v2-blue) !important; }

/* ---- Where we work: a blue halftone panel (Caldera's single "plasma" card) ---- */
.v2-areas { background: var(--v2-soot) !important; padding: clamp(1rem, 2vw, 1.5rem) !important; }
.v2-areas > .wp-block-columns {
	position: relative; overflow: hidden; isolation: isolate; max-width: none !important; margin: 0 !important;
	border-radius: var(--v3-r); padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.75rem, 5vw, 5rem) !important;
	background: linear-gradient(135deg, #1b6ea3 0%, var(--v2-blue) 55%, #57b3e6 100%);
}
.v2-areas > .wp-block-columns::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(circle, rgba(218, 33, 40, .85) 1.6px, transparent 2.1px) 0 0 / 11px 11px;
	-webkit-mask: radial-gradient(70% 90% at 100% 100%, #000, transparent 70%); mask: radial-gradient(70% 90% at 100% 100%, #000, transparent 70%);
}
.v2-areas :is(h2, p, li, .region-title) { color: #fff !important; }
.v2-areas .eyebrow { color: rgba(255, 255, 255, .85) !important; }
.v2-areas .region-list li { border-top-color: rgba(255, 255, 255, .25) !important; }
.v2-areas .region-list li:hover { color: var(--v3-ink) !important; }
.v2-areas .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--v3-ink) !important; color: #fff !important; }
.v2-areas .wp-block-button.is-style-outline > .wp-block-button__link { background: #fff !important; color: var(--v3-ink) !important; border-color: #fff !important; }

@media (max-width: 1100px) { .hero-index > .hero-index__item { min-height: 13rem; } }
@media (max-width: 600px) { .band-emergency .band-phone a { font-size: 2.1rem !important; } .band-emergency > .wp-block-columns { padding-inline: 1.5rem !important; } }
@media (prefers-reduced-motion: reduce) { .band-emergency > .wp-block-columns::before { animation: none !important; } }

/* ---- Hero quote form: compact enough to sit in the notch on a 1080px screen ---- */
.air-quote .form-panel { padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.5rem, 2.6vw, 2.5rem) !important; max-width: min(40rem, 44vw) !important; }
:root:root:root:root body .air-quote .form-panel h2 { font-size: var(--t3) !important; margin: 0 0 .35rem !important; }
.air-quote .form-panel > p { margin: 0 0 .75rem !important; }
.air-quote .wpcf7 form > p, .air-quote .wpcf7 form > fieldset, .air-quote .wpcf7 form > details, .air-quote .wpcf7 form > div { margin: 0 0 .55rem !important; }
.air-quote .wpcf7 .form-required-note { margin-bottom: .4rem !important; }
/* Name and email side by side; phone full width */
.air-quote .wpcf7 form > p:has(> label + br + label) { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .9rem; }
.air-quote .wpcf7 form > p:has(> label + br + label) > br { display: none; }
.air-quote .wpcf7 form > p:has(> label + br + label) > label:nth-of-type(3) { grid-column: 1 / -1; }
.air-quote .wpcf7 label { margin: 0 !important; }
.air-quote .wpcf7 :is(input[type=text], input[type=email], input[type=tel]) { height: 44px !important; min-height: 44px !important; padding: .5rem .8rem !important; margin-top: .3rem !important; }
.air-quote .wpcf7 textarea { height: 4.25rem !important; min-height: 4.25rem !important; margin-top: .3rem !important; }
/* Pre-purchase question with its radios on one line */
.air-quote .wpcf7 .form-choice { display: block !important; padding: 0 !important; border: 0 !important; }
.air-quote .wpcf7 .form-choice legend { float: left; margin: .55rem 1.25rem 0 0 !important; padding: 0 !important; }
.air-quote .wpcf7 .form-choice > p { margin: 0 !important; display: inline-flex; }
.air-quote .wpcf7 .form-privacy { margin: .3rem 0 0 !important; line-height: 1.35; }
.air-quote .wpcf7 .wpcf7-submit { width: 100%; }
@media (max-width: 600px) { .air-quote .wpcf7 form > p:has(> label + br + label) { grid-template-columns: 1fr; } }
