/* blocks.css — the drawings of the platform's blocks (modules/web/web/blocks/*.html): every
   kind, every layout, every tone, drawn ONLY in the site's tokens so a page of blocks reads as
   part of whatever site it lands on. A page links it after /base.css (whose primitives it
   reuses: .wrap, .eyebrow, .lead, .actions, .button, .card) and BEFORE the site's /styles.css,
   so a template overrides any rule below by writing its own. */

/* The band ------------------------------------------------------------------------ */

.block { padding-block: clamp(3rem, 7vw, 5.5rem); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

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

/* The head of a band: the eyebrow, the title and the line under it, before the content. */
.block-head { max-width: 40rem; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.block-head p:not(.eyebrow) { color: var(--muted); }
.block-head > :last-child { margin-bottom: 0; }

/* Tones: the same drawing on a tinted, an accent or a dark ground. The derived tokens are
   re-derived from the band's own colours so a card, a muted line or a rule keeps reading. */

.tone-tint { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }

.tone-accent {
	--muted: color-mix(in srgb, var(--accent-contrast) 78%, var(--accent));
	--line: color-mix(in srgb, var(--accent-contrast) 22%, transparent);
	--surface: color-mix(in srgb, var(--accent-contrast) 10%, transparent);
	--accent-text: var(--accent-contrast);
	background: var(--accent);
	color: var(--accent-contrast);
}
.tone-accent .button--accent {
	background: var(--accent-contrast);
	border-color: var(--accent-contrast);
	color: var(--accent);
}
.tone-accent .button:not(.button--accent):not(.button--ghost) {
	background: var(--accent-contrast);
	border-color: var(--accent-contrast);
	color: var(--accent);
}

.tone-dark,
.block-hero--cover,
.block-hero--fullscreen {
	--muted: color-mix(in srgb, var(--bg) 72%, var(--text));
	--line: color-mix(in srgb, var(--bg) 18%, transparent);
	--surface: color-mix(in srgb, var(--bg) 8%, transparent);
	--accent-text: color-mix(in srgb, var(--accent) 55%, var(--bg));
	color: var(--bg);
}
.tone-dark { background: color-mix(in srgb, var(--text) 92%, black); }
.tone-dark .button:not(.button--accent):not(.button--ghost) {
	background: var(--bg);
	border-color: var(--bg);
	color: var(--text);
}

.tone-accent .button--ghost,
.tone-dark .button--ghost,
.block-hero--cover .button--ghost,
.block-hero--fullscreen .button--ghost {
	color: inherit;
	border-color: color-mix(in srgb, currentColor 45%, transparent);
}
.tone-accent .button--ghost:hover,
.tone-dark .button--ghost:hover,
.block-hero--cover .button--ghost:hover,
.block-hero--fullscreen .button--ghost:hover { border-color: currentColor; }

.tone-accent .card,
.tone-dark .card,
.block-hero--cover .card,
.block-hero--fullscreen .card { box-shadow: none; }

/* Hero ----------------------------------------------------------------------------- */

.block-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-copy .actions { margin-top: 1.9rem; }
.hero-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--radius) + 8px);
	box-shadow: var(--shadow);
}
.block-hero--photoLeft .hero-photo { order: -1; }

.block-hero--centered .hero-inner { display: block; max-width: 44rem; text-align: center; }
.block-hero--centered .lead { margin-inline: auto; }
.block-hero--centered .actions { justify-content: center; }

.block-hero--cover,
.block-hero--fullscreen {
	position: relative;
	overflow: hidden;
	padding-block: clamp(5rem, 12vw, 9rem);
}
.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		color-mix(in srgb, var(--text) 78%, transparent),
		color-mix(in srgb, var(--text) 45%, transparent)
	);
}
.block-hero--cover .hero-inner,
.block-hero--fullscreen .hero-inner { position: relative; display: block; }
.block-hero--cover .hero-copy,
.block-hero--fullscreen .hero-copy { max-width: 40rem; }
.block-hero--cover .lead,
.block-hero--fullscreen .lead { color: inherit; opacity: 0.88; }
.block-hero--fullscreen {
	min-height: 100vh;
	display: flex;
	align-items: center;
}
.block-hero--fullscreen .hero-inner { width: 100%; }

.block-hero--split { padding-block: 0; }
.block-hero--split .hero-inner {
	max-width: none;
	padding: 0;
	gap: 0;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}
.block-hero--split .hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: clamp(3rem, 8vw, 7rem);
	padding-left: max(clamp(1.25rem, 4vw, 2.5rem), calc((100vw - var(--wrap)) / 2));
	padding-right: clamp(2rem, 5vw, 5rem);
	background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.block-hero--split .hero-photo img {
	height: 100%;
	min-height: 60vh;
	aspect-ratio: auto;
	border-radius: 0;
	box-shadow: none;
}

/* Picture and text ----------------------------------------------------------------- */

.photoText-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.photoText-text { color: var(--muted); }
.photoText-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.block-photoText--photoLeft .photoText-photo { order: -1; }
.block-photoText--stacked .photoText-inner { grid-template-columns: 1fr; max-width: 52rem; gap: 2rem; }
.block-photoText--stacked .photoText-photo { order: -1; }
.block-photoText--stacked .photoText-photo img { aspect-ratio: 16 / 9; }

/* Text ----------------------------------------------------------------------------- */

.text-head { max-width: 40rem; }
.text-head h2 { margin-bottom: 1rem; }
.text-body { max-width: 44rem; }
.text-body p:last-child { margin-bottom: 0; }

.block-text--titled .text-inner {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.block-text--titled .text-body { max-width: none; }
.block-text--titled .text-head h2 { margin-bottom: 0; }

.block-text--centered .text-inner { max-width: 44rem; text-align: center; }
.block-text--centered .text-head { margin-inline: auto; }

.block-text--narrow .text-inner { max-width: 44rem; }

/* Columns -------------------------------------------------------------------------- */

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

.columns-item { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.columns-item h3 { margin-bottom: 0.35rem; }
.columns-item p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.columns-photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

.block-columns--cards .columns-item { padding: 0; overflow: hidden; transition: transform 0.2s ease; }
.block-columns--cards .columns-item:hover { transform: translateY(-3px); }
.block-columns--cards .columns-photo { border-radius: 0; }
.block-columns--cards .columns-body { padding: 1.4rem 1.5rem 1.6rem; }

.block-columns--plain .columns-photo { margin-bottom: 1rem; }

.columns-number {
	display: block;
	margin-bottom: 0.6rem;
	font: 700 clamp(2rem, 3vw, 2.6rem)/1 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--accent-text);
}

.block-columns--photos .columns-photo { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.block-columns--photos .columns-item h3 { font-size: 1.3rem; }

/* Gallery -------------------------------------------------------------------------- */

.gallery-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, 1fr);
}
.gallery-item { margin: 0; }
.gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
}
.gallery-item figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

.block-gallery--strip .gallery-grid {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.5rem;
}
.block-gallery--strip .gallery-item { flex: 0 0 min(22rem, 80%); scroll-snap-align: start; }

.block-gallery--mosaic .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.block-gallery--mosaic .gallery-item:first-child img { aspect-ratio: auto; }

/* Questions ------------------------------------------------------------------------ */

.faq-list { max-width: 48rem; }
.faq-item { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question { margin: 0; font-size: 1.1rem; font-weight: 600; font-family: var(--font); letter-spacing: 0; }
.faq-answer { margin-top: 0.5rem; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.block-faq--accordion .faq-question { cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.block-faq--accordion .faq-question::-webkit-details-marker { display: none; }
.block-faq--accordion .faq-question::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	font-weight: 500;
	color: var(--accent-text);
}
.block-faq--accordion .faq-item[open] .faq-question::after { content: "−"; }

.block-faq--columns .faq-list {
	max-width: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 3rem;
}
.block-faq--columns .faq-item,
.block-faq--columns .faq-item:last-child { padding: 0; border: 0; }

/* Testimonials --------------------------------------------------------------------- */

.testimonials-grid {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(3, 1fr);
}
.testimonials-item { margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.testimonials-quote { margin: 0; flex: 1; font-size: 1.05rem; }
.testimonials-quote::before { content: "“"; color: var(--accent-text); font-family: var(--font-display); }
.testimonials-quote::after { content: "”"; color: var(--accent-text); font-family: var(--font-display); }
.testimonials-who { display: flex; align-items: center; gap: 0.85rem; }
.testimonials-who img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.testimonials-person { display: grid; line-height: 1.3; }
.testimonials-name { font-weight: 600; }
.testimonials-role { font-size: 0.85rem; color: var(--muted); }

.block-testimonials--single .block-head { margin-inline: auto; text-align: center; }
.block-testimonials--single .testimonials-grid { grid-template-columns: 1fr; gap: 3rem; max-width: 44rem; margin-inline: auto; }
.block-testimonials--single .testimonials-item { align-items: center; text-align: center; }
.block-testimonials--single .testimonials-quote {
	font: 500 clamp(1.3rem, 2.4vw, 1.8rem)/1.35 var(--font-display);
	letter-spacing: -0.01em;
}
.block-testimonials--single .testimonials-person { justify-items: center; }

/* Team ----------------------------------------------------------------------------- */

.team-grid {
	display: grid;
	gap: 1.8rem 1.4rem;
	grid-template-columns: repeat(3, 1fr);
}
.team-member { display: flex; flex-direction: column; gap: 1rem; }
.team-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--radius);
}
.team-name { margin-bottom: 0.15rem; }
.team-role { margin: 0 0 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-text); }
.team-text { margin: 0; color: var(--muted); font-size: 0.97rem; }

.block-team--list .team-grid { grid-template-columns: 1fr; max-width: 44rem; gap: 1.5rem; }
.block-team--list .team-member { flex-direction: row; gap: 1.4rem; align-items: center; }
.block-team--list .team-photo { flex: none; width: 6rem; }
.block-team--list .team-photo img { border-radius: 50%; }

/* Plans ---------------------------------------------------------------------------- */

.pricing-grid {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
}
.plan { display: flex; flex-direction: column; }
.plan-name { margin-bottom: 0.6rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.plan-amount {
	font: 700 clamp(2rem, 3vw, 2.6rem)/1 var(--font-display);
	letter-spacing: -0.02em;
}
.plan-period { color: var(--muted); font-size: 0.95rem; }
.plan-features { flex: 1; line-height: 1.9; color: var(--muted); }
.plan-actions { margin-top: 1.5rem; }
.plan-actions .button { width: 100%; }
.plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.block-pricing--compact .pricing-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
.block-pricing--compact .plan {
	display: grid;
	grid-template-columns: 1fr auto 1.4fr auto;
	align-items: center;
	gap: 1.5rem;
	padding: 1.25rem clamp(1.4rem, 3vw, 2.2rem);
	border-bottom: 1px solid var(--line);
}
.block-pricing--compact .plan:last-child { border-bottom: 0; }
.block-pricing--compact .plan-name,
.block-pricing--compact .plan-price { margin: 0; }
.block-pricing--compact .plan-amount { font-size: 1.5rem; }
.block-pricing--compact .plan-features { line-height: 1.5; font-size: 0.95rem; }
.block-pricing--compact .plan-actions { margin: 0; }
.block-pricing--compact .plan-actions .button { width: auto; }
.block-pricing--compact .plan.is-featured { box-shadow: none; background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Numbers -------------------------------------------------------------------------- */

.stats-head { margin-inline: auto; text-align: center; }
.stats-grid {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	text-align: center;
}
.stat { display: grid; gap: 0.25rem; }
.stat-value {
	font: 700 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--accent-text);
}
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* Call to action ------------------------------------------------------------------- */

.cta-inner { max-width: 38rem; margin-inline: auto; text-align: center; }
.cta-copy p { color: var(--muted); }
.cta-copy > :last-child { margin-bottom: 0; }
.cta-actions { justify-content: center; }

.block-cta--boxed .cta-inner { max-width: 52rem; padding: clamp(2rem, 5vw, 3.5rem); }

.block-cta--split .cta-inner {
	max-width: none;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem 3rem;
	align-items: center;
	text-align: left;
}
.block-cta--split .cta-copy { max-width: 40rem; }
.block-cta--split .cta-actions { margin: 0; justify-content: flex-end; }

/* Contact details ------------------------------------------------------------------ */

.contact-grid {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: 1fr 1fr 1.2fr;
	align-items: stretch;
}
.contact-grid .card h3 { margin-bottom: 0.9rem; }
.contact-line { margin: 0 0 0.5rem; }
.contact-line a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.contact-hours { margin: 0; line-height: 1.9; }
.contact-more .actions { margin-top: 1rem; }
.contact-map,
.contact-photo { min-height: 14rem; }
.contact-map iframe,
.contact-photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 14rem;
	border: 0;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* Logos ---------------------------------------------------------------------------- */

.logos-title { margin-bottom: 1.8rem; font-size: 1rem; font-weight: 600; text-align: center; color: var(--muted); }
.logos-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.5rem clamp(2rem, 5vw, 4rem);
}
.logo { display: inline-flex; align-items: center; color: inherit; text-decoration: none; opacity: 0.55; transition: opacity 0.2s ease; }
.logo:hover { opacity: 1; }
.logo img { display: block; height: 2.5rem; width: auto; max-width: 10rem; object-fit: contain; }
.logo-name { font: 600 1.1rem/1 var(--font-display); letter-spacing: -0.01em; }

.block-logos--grid .logos-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.block-logos--grid .logo {
	justify-content: center;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

/* Quote ---------------------------------------------------------------------------- */

.quote-inner { max-width: 48rem; text-align: center; }
.quote-text {
	margin: 0 0 1.5rem;
	font: 500 clamp(1.5rem, 3vw, 2.3rem)/1.3 var(--font-display);
	letter-spacing: -0.02em;
}
.quote-text::before { content: "“"; color: var(--accent-text); }
.quote-text::after { content: "”"; color: var(--accent-text); }
.quote-who { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.quote-name { font-weight: 600; }
.quote-role { color: var(--muted); }
.quote-role::before { content: "·"; margin-right: 0.5rem; }

.block-quote--left .quote-inner { margin-inline: 0; text-align: left; }
.block-quote--left .quote-who { justify-content: flex-start; }

/* Video ---------------------------------------------------------------------------- */

.video-head { margin-inline: auto; text-align: center; }
.video-frame {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--text) 8%, var(--bg));
	box-shadow: var(--shadow);
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.block-video--boxed .video-frame { max-width: 52rem; margin-inline: auto; }

/* HTML: the one block the theme does not draw, so nothing here ----------------------- */

/* Narrow screens: every grid a single column ---------------------------------------- */

@media (max-width: 56rem) {
	.hero-inner,
	.block-hero--split .hero-inner,
	.photoText-inner,
	.block-text--titled .text-inner,
	.columns-grid,
	.block-faq--columns .faq-list,
	.testimonials-grid,
	.team-grid,
	.pricing-grid,
	.block-pricing--compact .plan,
	.contact-grid,
	.block-logos--grid .logos-row,
	.block-cta--split .cta-inner { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr 1fr; }
	.block-hero--photoLeft .hero-photo { order: 0; }
	.block-hero--split .hero-copy { padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
	.block-hero--split .hero-photo img { min-height: 40vh; }
	.block-cta--split .cta-inner { text-align: center; }
	.block-cta--split .cta-actions { justify-content: center; }
	.block-pricing--compact .plan { gap: 0.5rem; }
	.block-team--list .team-member { flex-direction: row; }
}
