/* GIFSA sections, in homepage order. Each rule serves the ACF block markup and the
 * core-block page markup; a card in a section is matched by :where(.section), so
 * the card's own colour setting (core-blocks.css) still wins. */

/* Colour utilities for icon chips and bars. Text colour follows the brief's hard colour rule. */
.bg-orange { background: var(--c-orange); color: var(--c-black); }
.bg-red-orange { background: var(--c-red-orange); color: var(--c-black); }
.bg-sky-blue { background: var(--c-sky-blue); color: var(--c-black); }
.bg-teal { background: var(--c-teal); color: var(--c-black); }
.bg-warm-gold { background: var(--c-warm-gold); color: var(--c-black); }
.bg-yellow { background: var(--c-yellow); color: var(--c-black); }
.bg-deep-teal { background: var(--c-deep-teal); color: var(--c-white); }
.bg-deep-ochre { background: var(--c-deep-ochre); color: var(--c-white); }
.ink-black { color: var(--c-black); }
.ink-deep-teal { color: var(--c-deep-teal); }
.ink-deep-ochre { color: var(--c-deep-ochre); }

/* Editor-only prompt when a block has no content yet. */
.block-empty { padding: 24px; border: 2px dashed var(--c-line); font-size: var(--fs-16); }

/* ---- Hero ---- */
.hero { background: var(--c-cream); padding: clamp(40px, 6vw, 84px) var(--gutter) clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.hero__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.16; letter-spacing: -.02em; max-width: 24ch; margin: 0 0 24px; }
.hero__intro { font-size: var(--fs-lead); line-height: 1.65; max-width: 60ch; margin: 0 0 32px; }
.hero__image { width: 100%; height: 100%; min-height: clamp(320px, 34vw, 470px); object-fit: cover; border-radius: 40px 150px 40px 40px; }

/* ---- Pathways ---- */
.pathways { background: var(--c-deep-teal); color: var(--c-white); padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 76px); }
.pathways__inner { position: relative; }
/* Hand-drawn arrow after the heading's last word (assets/js/blocks.js). It hangs
   below the line (negative margin) so it does not change the heading's height. */
.pathways__tail { white-space: nowrap; }
.pathways__arrow {
	display: inline-block;
	width: 1.32em;
	height: 1.6em;
	margin: 0 0 -.48em .1em;
	vertical-align: top;
	overflow: visible;
	pointer-events: none;
	fill: none;
	stroke: var(--c-warm-gold);
	stroke-width: 8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pathways__title { display: inline-block; line-height: 1.12; color: var(--c-white); }
.pathways__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(320px, 44%)), 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(26px, 3.4vw, 48px); }
.pathway {
	background: var(--c-cream);
	color: var(--c-black);
	border-radius: 26px 26px 26px 8px;
	padding: 26px 28px;
	text-decoration: none;
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.pathway:hover { background: var(--c-white); color: var(--c-black); }
.pathway__icon { flex: none; width: 58px; height: 58px; border-radius: 18px 18px 18px 5px; display: grid; place-items: center; }
.pathway__body { display: flex; flex-direction: column; gap: 8px; }
.pathway__title { font-family: var(--font-heading); font-size: var(--fs-tile-title); font-weight: 700; line-height: 1.25; }
.pathway__text { font-size: var(--fs-15); line-height: 1.6; }
.pathway__cta {
	font: 700 var(--fs-15)/1.45 var(--font-ui);
	text-transform: uppercase;
	text-decoration: underline;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
}

/* ---- Service cards ---- */
.services { background: var(--c-cream); }
.services__title { margin-bottom: 18px; }
.services__intro { font-size: var(--fs-intro); line-height: 1.7; max-width: 70ch; margin-bottom: clamp(30px, 4vw, 46px); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.service-card {
	background: var(--c-white);
	color: var(--c-black);
	border-radius: 26px 26px 26px 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: clamp(340px, 26vw, 400px);
}
.service-card__bar { height: 12px; }
.service-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 0%; }
.service-card__icon { width: 54px; height: 54px; border-radius: var(--r-pill); display: grid; place-items: center; }
.service-card__title { font-size: var(--fs-card-title); font-weight: 700; line-height: 1.25; }
.service-card__text { font-size: var(--fs-15); line-height: 1.6; flex: 1 1 0%; }
.services__buttons { margin-top: clamp(28px, 4vw, 44px); }

/* ---- Statistics ---- */
.stats { background: var(--c-deep-ochre); color: var(--c-white); padding: clamp(56px, 7vw, 100px) var(--gutter) clamp(64px, 8vw, 110px); }
.stats__tab {
	position: relative;
	max-width: 820px;
	background: var(--c-warm-gold);
	color: var(--c-black);
	border-radius: 32px 32px 6px;
	padding: clamp(22px, 2.6vw, 34px) clamp(24px, 3vw, 40px);
}
.stats__tab-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; }
.stats__spark { width: 74px; height: auto; margin-bottom: 8px; }
.stats__nub { position: absolute; left: clamp(30px, 7%, 124px); bottom: -36px; width: 138px; height: 38px; background: var(--c-warm-gold); border-radius: 0 0 70px 70px; z-index: 2; }
.stats__grid {
	position: relative;
	background: var(--c-cream);
	color: var(--c-black);
	border-radius: 36px;
	padding: clamp(46px, 4.6vw, 62px) clamp(22px, 2.6vw, 40px) clamp(34px, 4vw, 56px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
	gap: clamp(20px, 2.4vw, 34px) clamp(22px, 2.6vw, 40px);
}
.stat { border-top: 2px solid var(--c-line); padding-top: 16px; }
.stat__figure { font: 800 var(--fs-stat)/1.05 var(--font-heading); color: var(--c-deep-teal); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-15); line-height: 1.55; }

/* ---- Image and text ---- */
.image-text { background: var(--c-cream); position: relative; overflow: hidden; }
.image-text__motif { position: absolute; right: -40px; bottom: 0; width: min(620px, 50%); height: auto; opacity: .16; }
.image-text__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.image-text__media { position: relative; align-self: stretch; min-height: clamp(280px, 40vw, 392px); border-radius: 150px 40px 40px; overflow: hidden; }
.image-text__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-text__title { margin-bottom: 22px; }
.image-text__copy { font-size: var(--fs-copy); line-height: 1.75; max-width: 64ch; margin-bottom: 18px; }
.image-text__copy:last-of-type { margin-bottom: 30px; }

/* ---- Feature with image or video ---- */
.feature { background: var(--c-deep-teal); color: var(--c-white); padding-bottom: clamp(64px, 8vw, 112px); }
.feature__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.feature__panel,
:where(.feature) .gifsa-card--panel {
	background: var(--c-warm-gold);
	color: var(--c-black);
	border-radius: 36px 36px 36px 10px;
	padding: clamp(30px, 3.6vw, 50px) clamp(26px, 3vw, 44px);
	position: relative;
	overflow: hidden;
	height: 100%;
}
.feature__title { line-height: 1.08; margin-bottom: 20px; }
.feature__copy { font-size: var(--fs-copy); line-height: 1.75; max-width: 46ch; margin-bottom: 28px; }
.feature__media { position: relative; min-height: clamp(280px, 32vw, 420px); }
.feature__image,
:where(.feature__media) > .wp-block-gifsa-video,
.feature__media iframe { width: 100%; height: 100%; min-height: clamp(280px, 32vw, 420px); object-fit: cover; border-radius: 36px 36px 10px; }
.feature__media iframe { position: absolute; inset: 0; border: 0; }
.feature__play {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 78px; height: 78px;
	border-radius: var(--r-pill);
	border: 0;
	background: var(--c-warm-gold);
	color: var(--c-black);
	display: grid;
	place-items: center;
	box-shadow: 0 10px 26px rgba(29, 29, 29, .3);
	cursor: pointer;
}
.feature__play:hover { background: var(--c-yellow); }
.wp-block-gifsa-video iframe{background: #000;}

/* ---- Testimonials ---- */
.stories { background: var(--c-cream); }
.stories__head { margin-bottom: clamp(30px, 4vw, 46px); }
.stories__title { line-height: 1.14; letter-spacing: -.022em; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 0 .38em; }
.stories__phrase { transition: opacity .55s ease, transform .55s ease, visibility 0s; transition-delay: calc(var(--i, 0) * 130ms); }
/* visibility as well as opacity, so nothing half-transparent is ever exposed to assistive tech or audits. */
.stories__title.is-waiting .stories__phrase { opacity: 0; visibility: hidden; transform: translateY(16px); }
.stories__intro { font-size: var(--fs-intro); line-height: 1.7; max-width: 70ch; }
.stories__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2vw, 26px); }
.story-card { background: var(--c-white); border-radius: 34px 34px 34px 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.story-card__photo { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.story-card__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 20px; flex: 1 1 0%; }
.story-card__summary { font-size: var(--fs-16); line-height: 1.7; }
.story-card__quote { margin: 0; background: var(--c-cream); border-radius: 24px 24px 24px 6px; padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 0; }
.story-card__glyph { display: block; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-quote-glyph); color: var(--c-deep-ochre); }
.story-card__glyph--open { height: .34em; line-height: .34; }
.story-card__glyph--close { align-self: flex-end; height: .5em; margin-top: -.06em; line-height: .5; }
.story-card__words { font-size: var(--fs-quote); line-height: 1.6; font-weight: 600; }
.story-card__footer { margin-top: 10px; }
.story-card__cite { font-style: normal; font-size: var(--fs-16); line-height: 1.7; font-weight: 700; color: var(--c-black); }
.stories__buttons { margin-top: clamp(28px, 4vw, 44px); }

/* ---- Text with panel ---- */
.text-panel { background: var(--c-deep-ochre); color: var(--c-white); padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); position: relative; overflow: hidden; }
.text-panel__motif { position: absolute; top: 0; left: -60px; width: min(600px, 48%); height: auto; transform: scaleY(-1) scaleX(-1); opacity: .16; }
.text-panel__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3.4vw, 56px); align-items: stretch; }
.text-panel__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.text-panel__title { color: var(--c-white); margin-bottom: 22px; max-width: 20ch; }
.text-panel__copy { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.8; max-width: 50ch; }
.text-panel__copy + .text-panel__copy { margin-top: 18px; }
.text-panel__panel,
:where(.text-panel) .gifsa-card--panel { position: relative; background: var(--c-cream); color: var(--c-black); border-radius: 36px 36px 36px 10px; padding: clamp(28px, 3.2vw, 44px); }
.text-panel__panel-title { font-size: var(--fs-h3-panel); font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.text-panel__panel-copy { font-size: clamp(1.02rem, 1.25vw, 1.16rem); line-height: 1.85; }

/* ---- Call-to-action banner ---- */
.cta-banner { background: var(--c-cream); }
.cta-banner__card,
:where(.cta-banner) .gifsa-card--panel {
	background: var(--c-warm-gold);
	color: var(--c-black);
	border-radius: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) 12px;
	padding: clamp(30px, 3.4vw, 46px) clamp(28px, 3.4vw, 48px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(16px, 1.6vw, 24px);
}
.cta-banner__text { flex: 1 1 min(100%, 620px); max-width: 88ch; }
.cta-banner__title { line-height: 1.12; max-width: 26ch; margin-bottom: 16px; }
.cta-banner__copy { font-size: clamp(1.02rem, 1.25vw, 1.12rem); line-height: 1.7; margin-bottom: 26px; }
.cta-banner__illustration { flex: none; height: clamp(230px, 27vw, 370px); width: auto; margin-left: auto; margin-right: 0; align-self: flex-end; }

/* ---- Get in touch ---- */
.contact { background: var(--c-deep-teal); color: var(--c-white); position: relative; overflow: hidden; }
.contact__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.contact__details { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.contact__title { color: var(--c-white); }
.contact__copy { font-size: var(--fs-intro); line-height: 1.7; }
.office-card { background: var(--c-cream); color: var(--c-black); border-radius: 28px 28px 28px 6px; padding: 26px; }
.office-card__name { font-size: var(--fs-h3-office); font-weight: 700; margin-bottom: 12px; }
.office-card__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 var(--fs-18)/1 var(--font-heading); color: var(--c-black); }
.office-card__address { font-size: var(--fs-16); line-height: 1.7; margin-top: 8px; }
.contact__buttons { gap: 12px; }
.contact__form,
:where(.contact) .gifsa-card--panel { background: var(--c-cream); color: var(--c-black); border-radius: 36px 36px 36px 8px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.contact__form-intro { font-size: var(--fs-16); line-height: 1.7; }

/* ---- Hero, inner page style ---- */
.hero--page { padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(52px, 7vw, 92px); }
.hero--page .hero__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.hero--page .hero__title { line-height: 1.08; letter-spacing: -.025em; margin-bottom: 22px; max-width: none; }
.hero--page .hero__intro { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 58ch; }
.hero__media { position: relative; align-self: stretch; min-height: clamp(280px, 38vw, 392px); border-radius: 40px 150px 40px 40px; overflow: hidden; }
.hero__media .hero__image { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border-radius: 0; }

/* ---- Breadcrumb (X8) ---- */
.breadcrumb { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--c-rule); }
.breadcrumb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; font-size: var(--fs-14); font-weight: 600; color: var(--c-deep-ochre); }
.breadcrumb__link { color: var(--c-deep-ochre); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb__link:hover { color: var(--c-black); }
.breadcrumb__sep { opacity: .5; }
.breadcrumb__current { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Service cards, listing layout (Services overview) ---- */
.services--listing { padding-top: 0; padding-bottom: clamp(52px, 7vw, 92px); }
.services--listing .service-card { min-height: 0; }

/* ---- Feature with photos (vehicle fleet) ---- */
.fleet { background: var(--c-warm-gold); color: var(--c-black); padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(52px, 7vw, 92px); position: relative; overflow: hidden; }
.fleet__mark { position: absolute; left: -70px; bottom: -110px; width: 330px; height: auto; opacity: .34; }
.fleet__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(28px, 3vw, 48px); align-items: stretch; }
.fleet__text { display: flex; flex-direction: column; gap: 16px; max-width: 58ch; justify-content: center; }
.fleet__title { line-height: 1.08; }
.fleet__intro { font-size: clamp(1.08rem, 1.45vw, 1.25rem); line-height: 1.65; font-weight: 600; }
.fleet__copy { font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.75; }
.fleet__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); align-content: start; }
.fleet__photo, .fleet__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px 24px 24px 6px; overflow: hidden; } 
.fleet__photos > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 28px 28px 28px 8px; }
.fleet__placeholder { background: var(--c-cream); border: 2px dashed var(--c-placeholder-border); display: grid; place-items: center; padding: 16px; }
.fleet__photos > .fleet__placeholder:first-child { padding: 20px; }
.fleet__placeholder-label,
.fleet__placeholder > p { background: var(--c-black); color: var(--c-yellow); font: 700 .6875rem/1.45 var(--font-heading); letter-spacing: .05em; padding: 9px 13px; border-radius: 14px; text-align: center; }
.fleet__photos > :first-child .fleet__placeholder-label,
.fleet__photos > :first-child > p { font-size: .75rem; padding: 10px 14px; }

/* ---- Numbered steps ---- */
.steps { background: var(--c-cream); color: var(--c-black); padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(60px, 7vw, 104px); }
.steps__title { color: var(--c-black); margin-bottom: clamp(26px, 3vw, 42px); }
.steps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 880px; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 0 22px; }
.step__marker { display: flex; flex-direction: column; align-items: center; }
.step__number { flex: none; width: 58px; height: 58px; border-radius: var(--r-pill); display: grid; place-items: center; font: 800 1.5rem/1 var(--font-heading); }
.step__line { flex: 1 1 auto; width: 3px; min-height: 18px; background: var(--c-rule); margin: 8px 0; border-radius: var(--r-pill); }
.step__text { font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.7; max-width: 62ch; padding: 15px 0 clamp(24px, 3vw, 38px); }
.step:last-child .step__text { padding-bottom: 0; }

/* ---- Call-to-action band ---- */
.cta-band { background: var(--c-deep-teal); color: var(--c-white); padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(52px, 7vw, 92px); position: relative; overflow: hidden; }
.cta-band__motif { position: absolute; right: -40px; top: -30px; width: min(560px, 46%); height: auto; opacity: .14; transform: scaleY(-1); }
.cta-band__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-band__title { line-height: 1.15; max-width: 24ch; color: var(--c-white); }
.cta-band__copy { font-size: var(--fs-intro); line-height: 1.7; max-width: 58ch; }
.cta-band__buttons { justify-content: center; }
.cta-band__buttons .btn { padding: 0 28px; }
