/* ==========================================================================
   FDL Theme — presentation layer (Phase 3B)
   Shared sections, cards, galleries, testimonials, sidebar and page layouts.
   Every rule follows a preset setting (body classes fdl-cards-*, fdl-density-*,
   fdl-eyebrow-*, fdl-divider-*, fdl-buttons-*, fdl-titles-*, fdl-headings-*)
   or a design token, so editing a preset changes the layout.
   ========================================================================== */

/* ---------- Typography and buttons follow the preset ---------- */
h1, h2, h3, h4 { text-transform: var(--fdl-heading-transform, none); letter-spacing: var(--fdl-heading-letter-spacing, 0); }
.fdl-btn, .wp-element-button, button[type="submit"]:not(.fdl-search-form__submit), input[type="submit"] {
	text-transform: var(--fdl-button-transform, uppercase); letter-spacing: var(--fdl-button-letter-spacing, .1em);
}
.fdl-btn--primary { background: var(--fdl-color-button-bg); border-color: var(--fdl-color-button-bg); color: var(--fdl-color-button-text); }
.fdl-buttons-outline .fdl-btn--primary { background: transparent; border-color: var(--fdl-color-button-bg); color: var(--fdl-color-heading); }
.fdl-buttons-outline .fdl-btn--primary:hover { background: var(--fdl-color-button-bg); color: var(--fdl-color-button-text); }
.fdl-btn--secondary { background: transparent; color: var(--fdl-color-heading); border-color: currentColor; }
.fdl-btn--secondary:hover { background: var(--fdl-color-heading); border-color: var(--fdl-color-heading); color: var(--fdl-color-surface); }
.fdl-btn--light { background: #FFFFFF; border-color: #FFFFFF; color: var(--fdl-color-heading); }
.fdl-btn--light:hover { background: var(--fdl-color-button-hover-bg); border-color: var(--fdl-color-button-hover-bg); color: var(--fdl-color-button-hover-text); }
.fdl-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .85); color: #FFFFFF; }
.fdl-btn--ghost:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--fdl-color-heading); }
.fdl-btn--small { min-height: 40px; padding: .45em 1.2em; font-size: .75rem; }
.fdl-site a.fdl-btn--light, .fdl-site a.fdl-btn--ghost { text-decoration: none; }

/* ---------- Sections ---------- */
.fdl-sections { display: block; }
.fdl-section { position: relative; padding-block: var(--fdl-section-spacing); }
.fdl-section--alt { background: var(--fdl-color-alt-bg); }
.fdl-section__header { max-width: 760px; margin: 0 auto calc(48px * var(--fdl-space)); text-align: center; }
.fdl-titles-left .fdl-section__header { margin-left: 0; text-align: left; }
.fdl-section__eyebrow, .fdl-hero__eyebrow {
	margin: 0 0 .75em; font-family: var(--fdl-font-nav); font-size: .8125rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--fdl-color-accent);
}
.fdl-eyebrow-script .fdl-section__eyebrow, .fdl-eyebrow-script .fdl-hero__eyebrow {
	font-family: var(--fdl-font-accent); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 400;
	letter-spacing: 0; text-transform: none; line-height: 1.1; margin-bottom: .2em;
}
.fdl-section__title { margin-bottom: .35em; }
.fdl-section__divider { display: block; margin: 0 auto 1.1em; color: var(--fdl-color-primary); }
.fdl-divider-line .fdl-section__divider { width: 56px; height: 3px; background: var(--fdl-color-primary); }
.fdl-divider-ornament .fdl-section__divider .fdl-icon { width: 96px; height: 24px; }
.fdl-titles-left .fdl-section__divider { margin-left: 0; }
.fdl-section__intro { font-size: 1.0625rem; color: var(--fdl-color-muted); margin: 0; }
.fdl-section__more { margin: calc(40px * var(--fdl-space)) 0 0; text-align: center; }
.fdl-titles-left .fdl-section__more { text-align: left; }
.fdl-section--note { padding-block: 24px; }
.fdl-section-note { margin: 0; padding: 16px 20px; border: 1px dashed var(--fdl-color-border); border-radius: var(--fdl-radius); color: var(--fdl-color-muted); font-size: .9375rem; background: var(--fdl-color-surface); }

/* ---------- Hero ---------- */
.fdl-hero { padding-block: calc(var(--fdl-section-spacing) * .8); overflow: hidden; }
.fdl-hero__inner { display: grid; gap: calc(56px * var(--fdl-space)); align-items: center; }
.fdl-hero__title { font-size: var(--fdl-size-h1); margin-bottom: .3em; }
.fdl-hero__lead { font-size: 1.125rem; max-width: 34em; color: var(--fdl-color-text); }
.fdl-hero__price { font-family: var(--fdl-font-heading); font-size: 1.25rem; color: var(--fdl-color-heading); margin: -.25em 0 1.2em; }
.fdl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.fdl-hero__media { margin: 0; }
.fdl-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--fdl-radius); }

/* Split: text beside a photo. */
.fdl-hero--split { background: var(--fdl-color-alt-bg); }
.fdl-hero--split .fdl-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.fdl-hero--split.no-image .fdl-hero__inner { grid-template-columns: minmax(0, 760px); }

/* Overlay: full photo with centered text. */
.fdl-hero--overlay { min-height: clamp(520px, 80vh, 860px); display: grid; align-items: center; color: #FFFFFF; background: var(--fdl-color-heading); }
.fdl-hero__backdrop { position: absolute; inset: 0; }
.fdl-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; }
.fdl-hero__backdrop::after { content: ""; position: absolute; inset: 0; background: var(--fdl-color-hero-overlay); opacity: var(--fdl-hero-overlay-opacity, .45); }
.fdl-hero--overlay .fdl-hero__inner { position: relative; z-index: 1; justify-items: center; text-align: center; }
.fdl-hero--overlay .fdl-hero__text { max-width: 820px; }
.fdl-hero--overlay .fdl-hero__lead { margin-inline: auto; }
.fdl-hero--overlay .fdl-hero__actions { justify-content: center; }

/* Band: solid band, text left, photo right. */
.fdl-hero--band { background: var(--fdl-color-heading); color: #FFFFFF; }
.fdl-hero--band .fdl-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.fdl-hero--band .fdl-hero__media img { aspect-ratio: 16 / 11; }

.fdl-hero.is-dark .fdl-hero__title, .fdl-hero.is-dark .fdl-hero__price { color: #FFFFFF; }
.fdl-hero.is-dark .fdl-hero__lead { color: rgba(255, 255, 255, .9); }
.fdl-hero.is-dark .fdl-hero__eyebrow { color: rgba(255, 255, 255, .88); }
.fdl-hero.is-dark .fdl-hero__price span { color: inherit; }

/* Catalog: search and category tiles. */
.fdl-hero--catalog { background: var(--fdl-color-alt-bg); }
.fdl-hero--catalog .fdl-hero__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.fdl-hero__search { display: flex; max-width: 520px; margin-top: 1.4em; background: var(--fdl-color-surface); border: 1px solid var(--fdl-color-border); border-radius: var(--fdl-button-radius); overflow: hidden; }
.fdl-hero__search .fdl-search-form__field { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border: 0; background: transparent; font: inherit; color: var(--fdl-color-text); }
.fdl-hero__search .fdl-search-form__submit { min-width: 56px; border: 0; background: var(--fdl-color-button-bg); color: var(--fdl-color-button-text); cursor: pointer; }
.fdl-hero__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16px * var(--fdl-space) + 4px); }

/* ---------- Tiles ---------- */
.fdl-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--fdl-grid-columns, 3), minmax(0, 1fr)); gap: calc(24px * var(--fdl-space)); }
.fdl-tile__link { position: relative; display: block; overflow: hidden; border-radius: var(--fdl-radius); color: #FFFFFF; text-decoration: none; background: var(--fdl-color-heading); }
.fdl-tile__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.fdl-tile__img--empty { background: var(--fdl-color-alt-bg); }
.fdl-tile__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 60%); }
.fdl-tile__name, .fdl-tile__count { position: absolute; left: 16px; right: 16px; z-index: 1; }
.fdl-tile__name { bottom: 34px; font-family: var(--fdl-font-heading); font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.fdl-tile__count { bottom: 14px; font-size: .8125rem; opacity: .9; }
.fdl-tiles .fdl-tile__name { bottom: 16px; }
a.fdl-tile__link:hover .fdl-tile__img, a.fdl-tile__link:focus-visible .fdl-tile__img { transform: scale(1.05); }

/* ---------- Cards ---------- */
.fdl-card-grid { display: grid; grid-template-columns: repeat(var(--fdl-grid-columns, var(--fdl-card-columns, 3)), minmax(0, 1fr)); gap: calc(40px * var(--fdl-space)) calc(32px * var(--fdl-space)); }
.fdl-card__media { display: block; position: relative; }
.fdl-card__placeholder { display: grid; place-items: center; aspect-ratio: var(--fdl-image-ratio); background: var(--fdl-color-alt-bg); color: var(--fdl-color-muted); }
.fdl-card__placeholder .fdl-icon { width: 48px; height: 48px; }
.fdl-card__body { padding: calc(24px * var(--fdl-space) + 4px); display: flex; flex-direction: column; flex: 1; }
.fdl-card__eyebrow { margin: 0 0 .5em; font-family: var(--fdl-font-nav); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fdl-color-muted); }
.fdl-card__title { font-size: var(--fdl-size-h4); margin: 0 0 .45em; }
.fdl-card__excerpt { margin: 0 0 1em; color: var(--fdl-color-muted); font-size: .9375rem; }
.fdl-card__price { margin: auto 0 0; font-family: var(--fdl-font-heading); color: var(--fdl-color-heading); font-size: 1.0625rem; }
.fdl-card__actions { margin: 1em 0 0; }
.fdl-card__more { font-weight: 700; text-decoration: none; }
.fdl-card__more::after { content: " →"; }

/* Centered presets: an incomplete last row of cards is centered, not left-aligned. */
.fdl-titles-center .fdl-card-grid { --fdl-gap: calc(32px * var(--fdl-space)); display: flex; flex-wrap: wrap; justify-content: center; }
.fdl-titles-center .fdl-card-grid > .fdl-card { flex: 0 1 calc((100% - (var(--fdl-grid-columns, 3) - 1) * var(--fdl-gap)) / var(--fdl-grid-columns, 3)); min-width: 0; }
@media (max-width: 1024px) { .fdl-titles-center .fdl-card-grid > .fdl-card { flex-basis: calc((100% - var(--fdl-gap)) / 2); } }
@media (max-width: 600px) { .fdl-titles-center .fdl-card-grid > .fdl-card { flex-basis: 100%; } .fdl-titles-center .fdl-card-grid--product > .fdl-card { flex-basis: calc((100% - 14px) / 2); } }

/* Portrait: tall arched photo, centered text, no box. */
.fdl-card--portrait { background: transparent; border: 0; border-radius: 0; text-align: center; overflow: visible; }
.fdl-card--portrait .fdl-card__media { overflow: hidden; border-radius: 999px 999px 0 0 / 220px 220px 0 0; }
.fdl-card--portrait .fdl-card__media img, .fdl-card--portrait .fdl-card__placeholder { aspect-ratio: 3 / 4; }
.fdl-card--portrait .fdl-card__body { padding: 22px 8px 0; align-items: center; }
.fdl-card--portrait .fdl-card__title { font-size: calc(var(--fdl-size-h4) * 1.15); }
.fdl-card--portrait .fdl-card__price { margin-top: 0; font-style: italic; }

/* Bordered: square corners, compact text, a "Learn more" link. */
.fdl-card--bordered { border: 1px solid var(--fdl-color-border); border-radius: var(--fdl-radius); box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
.fdl-card--bordered:hover { border-color: var(--fdl-color-accent); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.fdl-card--bordered .fdl-card__media img, .fdl-card--bordered .fdl-card__placeholder { aspect-ratio: 16 / 9; }
.fdl-card--bordered .fdl-card__title { font-size: 1.1875rem; }
.fdl-card--bordered .fdl-card__price { font-family: var(--fdl-font-body); font-weight: 700; font-size: .9375rem; color: var(--fdl-color-accent); margin-top: auto; }

/* Product: square photo, price and button. */
.fdl-card--product { border: 1px solid var(--fdl-color-border); }
.fdl-card--product .fdl-card__media img, .fdl-card--product .fdl-card__placeholder { aspect-ratio: 1 / 1; }
.fdl-card--product .fdl-card__body { padding: calc(16px * var(--fdl-space) + 6px); }
.fdl-card--product .fdl-card__title { font-size: 1rem; text-transform: none; letter-spacing: 0; }
.fdl-card--product .fdl-card__excerpt { font-size: .875rem; }
.fdl-card--product .fdl-card__price { font-family: var(--fdl-font-body); font-weight: 700; color: var(--fdl-color-accent); }
.fdl-card--product .fdl-card__actions .fdl-btn { width: 100%; }

/* ---------- Gallery ---------- */
.fdl-gallery { list-style: none; margin: 0; padding: 0; }
.fdl-gallery figure { margin: 0; position: relative; }
.fdl-gallery img { display: block; width: 100%; object-fit: cover; border-radius: var(--fdl-radius); }
.fdl-gallery__link { display: block; overflow: hidden; border-radius: var(--fdl-radius); }
.fdl-gallery__link img { transition: transform .4s ease; }
.fdl-gallery__link:hover img, .fdl-gallery__link:focus-visible img { transform: scale(1.04); }
.fdl-gallery--grid, .fdl-gallery--captioned { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(20px * var(--fdl-space) + 4px); }
.fdl-gallery--grid img { aspect-ratio: 4 / 3; }
.fdl-gallery--masonry { columns: 3; column-gap: calc(20px * var(--fdl-space) + 4px); }
.fdl-gallery--masonry .fdl-gallery__item { break-inside: avoid; margin-bottom: calc(20px * var(--fdl-space) + 4px); }
.fdl-gallery--masonry .fdl-gallery__item--0 img { aspect-ratio: 3 / 4; }
.fdl-gallery--masonry .fdl-gallery__item--1 img { aspect-ratio: 4 / 3; }
.fdl-gallery--masonry .fdl-gallery__item--2 img { aspect-ratio: 1 / 1; }
.fdl-gallery--captioned img { aspect-ratio: 16 / 10; }
.fdl-gallery__caption { padding-top: 12px; }
.fdl-gallery--grid .fdl-gallery__caption, .fdl-gallery--masonry .fdl-gallery__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fdl-gallery__title { display: block; font-family: var(--fdl-font-heading); font-weight: 700; color: var(--fdl-color-heading); }
.fdl-gallery__meta { display: block; font-size: .875rem; color: var(--fdl-color-muted); }

/* ---------- Proof row ---------- */
.fdl-proof { padding-block: calc(var(--fdl-section-spacing) * .55); }
.fdl-proof__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.fdl-proof__item { padding: 4px 24px; border-left: 1px solid var(--fdl-color-border); }
.fdl-proof__item:first-child { border-left: 0; padding-left: 0; }
.fdl-proof__value { display: block; font-family: var(--fdl-font-heading); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--fdl-color-heading); line-height: 1.1; }
.fdl-proof__label { display: block; margin-top: 4px; color: var(--fdl-color-muted); font-size: .9375rem; }

/* ---------- Introduction ---------- */
.fdl-intro__content { font-size: 1.0625rem; }
.fdl-intro__content > p:first-child { font-size: 1.25rem; color: var(--fdl-color-heading); }
.fdl-titles-center .fdl-intro__content { text-align: center; }

/* ---------- How it works ---------- */
.fdl-process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--fdl-grid-columns, 4), minmax(0, 1fr)); gap: calc(32px * var(--fdl-space)); counter-reset: none; }
.fdl-process__step { padding-top: 20px; border-top: 2px solid var(--fdl-color-primary); }
.fdl-process__num { display: block; font-family: var(--fdl-font-heading); font-size: 2rem; font-weight: 700; color: var(--fdl-color-accent); line-height: 1; margin-bottom: 12px; }
.fdl-process__name { font-size: 1.1875rem; margin: 0 0 .4em; }
.fdl-process__text { margin: 0; color: var(--fdl-color-muted); font-size: .9375rem; }
.fdl-titles-center .fdl-process__step { text-align: center; }

/* ---------- Testimonials ---------- */
.fdl-quotes { display: grid; gap: calc(32px * var(--fdl-space)); }
.fdl-quote { margin: 0; }
.fdl-quote .fdl-icon--quote { width: 32px; height: 32px; color: var(--fdl-color-primary); }
.fdl-quote__text { margin: 12px 0 16px; }
.fdl-quote__text p { margin: 0; }
.fdl-quote__name { display: block; font-weight: 700; color: var(--fdl-color-heading); }
.fdl-quote__about { display: block; font-size: .875rem; color: var(--fdl-color-muted); }
.fdl-quotes--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fdl-quotes--columns .fdl-quote__text { font-family: var(--fdl-font-heading); font-size: 1.3125rem; line-height: 1.5; color: var(--fdl-color-heading); }
.fdl-quotes--spotlight { max-width: 860px; margin-inline: auto; text-align: center; }
.fdl-quotes--spotlight .fdl-icon--quote { width: 48px; height: 48px; }
.fdl-quotes--spotlight .fdl-quote__text { font-family: var(--fdl-font-heading); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.35; color: var(--fdl-color-heading); }
.fdl-quotes--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fdl-quotes--cards .fdl-quote { padding: 28px; background: var(--fdl-color-surface); border: 1px solid var(--fdl-color-border); border-radius: var(--fdl-radius); }
.fdl-quotes--cards .fdl-quote__text { font-size: 1rem; }
.fdl-quotes--strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fdl-quotes--strip .fdl-quote { padding: 20px; background: var(--fdl-color-surface); border-radius: var(--fdl-radius); }
.fdl-quotes--strip .fdl-icon--quote { width: 24px; height: 24px; }
.fdl-quotes--strip .fdl-quote__text { font-size: .9375rem; }

/* ---------- Call to action band ---------- */
.fdl-cta { background: var(--fdl-color-heading); color: #FFFFFF; overflow: hidden; }
.fdl-cta__backdrop { position: absolute; inset: 0; }
.fdl-cta__backdrop img { width: 100%; height: 100%; object-fit: cover; }
.fdl-cta__backdrop::after { content: ""; position: absolute; inset: 0; background: var(--fdl-color-hero-overlay); opacity: .62; }
.fdl-cta__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.fdl-titles-center .fdl-cta__inner { flex-direction: column; text-align: center; }
.fdl-cta__title { color: #FFFFFF; margin-bottom: .3em; }
.fdl-cta__lead { margin: 0; color: rgba(255, 255, 255, .88); max-width: 40em; }
.fdl-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.fdl-titles-center .fdl-cta__actions { justify-content: center; }
.fdl-site .fdl-cta__phone { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF; font-weight: 700; text-decoration: none; }
.fdl-cta__phone .fdl-icon { width: 20px; height: 20px; }

/* ---------- Service pages: lists ---------- */
.fdl-checklist { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.fdl-titles-left .fdl-checklist { margin-left: 0; }
.fdl-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; }
.fdl-checklist .fdl-icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--fdl-color-accent); }

/* ---------- Content and sidebar layout ---------- */
.fdl-layout { display: grid; gap: calc(56px * var(--fdl-space)); align-items: start; padding-block: calc(var(--fdl-section-spacing) * .7) var(--fdl-section-spacing); }
.fdl-layout--right { grid-template-columns: minmax(0, 1fr) 300px; }
.fdl-layout--left { grid-template-columns: 300px minmax(0, 1fr); }
.fdl-layout--left .fdl-sidebar { order: -1; }
.fdl-archive .fdl-layout { padding-block: 0 var(--fdl-section-spacing); }
.fdl-entry--in-layout { padding: 0; }
.fdl-sidebar { display: grid; gap: 24px; }
.fdl-sidebar__block { padding: 24px; background: var(--fdl-color-surface); border: 1px solid var(--fdl-color-border); border-radius: var(--fdl-radius); }
.fdl-sidebar__title { font-size: 1.0625rem; margin-bottom: .8em; }
.fdl-sidebar__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fdl-sidebar__list a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; text-decoration: none; color: var(--fdl-color-text); }
.fdl-sidebar__list a:hover, .fdl-sidebar__list a[aria-current="page"] { color: var(--fdl-color-accent); font-weight: 700; }
.fdl-sidebar__count { color: var(--fdl-color-muted); font-size: .875rem; }
.fdl-sidebar__contact p { font-size: .9375rem; }
.fdl-sidebar__phone { display: flex; align-items: center; gap: 8px; margin: 0; }
.fdl-sidebar__phone .fdl-icon { width: 18px; height: 18px; color: var(--fdl-color-accent); }

/* Plain page layouts. */
.fdl-entry--standard .fdl-entry__content { max-width: 900px; }
.fdl-entry--narrow .fdl-entry__header { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.fdl-card-grid, .fdl-tiles { grid-template-columns: repeat(min(var(--fdl-grid-columns, 3), 2), minmax(0, 1fr)); }
	.fdl-card-grid--product { grid-template-columns: repeat(min(var(--fdl-grid-columns, 3), 3), minmax(0, 1fr)); }
	.fdl-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fdl-quotes--cards, .fdl-quotes--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fdl-layout--right, .fdl-layout--left { grid-template-columns: minmax(0, 1fr); }
	.fdl-layout--left .fdl-sidebar { order: 0; }
}
@media (max-width: 900px) {
	.fdl-hero--split .fdl-hero__inner, .fdl-hero--band .fdl-hero__inner, .fdl-hero--catalog .fdl-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.fdl-hero--overlay { min-height: 460px; }
	.fdl-gallery--grid, .fdl-gallery--captioned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fdl-gallery--masonry { columns: 2; }
	.fdl-proof__list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
	.fdl-proof__item:nth-child(odd) { border-left: 0; padding-left: 0; }
	.fdl-checklist, .fdl-quotes--columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.fdl-card-grid, .fdl-tiles, .fdl-process__steps, .fdl-quotes--cards, .fdl-quotes--strip { grid-template-columns: minmax(0, 1fr); }
	.fdl-card-grid--product, .fdl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.fdl-card-grid--product .fdl-card__excerpt { display: none; }
	.fdl-gallery--grid, .fdl-gallery--captioned { grid-template-columns: minmax(0, 1fr); }
	.fdl-gallery--masonry { columns: 2; column-gap: 12px; }
	.fdl-gallery--masonry .fdl-gallery__item { margin-bottom: 12px; }
	.fdl-hero__actions .fdl-btn { flex: 1 1 100%; }
	.fdl-cta__actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.fdl-card__media img, .fdl-tile__img, .fdl-gallery__link img { transition: none; }
}

/* ---------- Call and request bar (phones) ---------- */
.fdl-mobile-bar { display: none; }
@media (max-width: 600px) {
	.fdl-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--fdl-color-surface); border-top: 1px solid var(--fdl-color-border); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
	.fdl-mobile-bar .fdl-btn { flex: 1; }
	.fdl-site .fdl-mobile-bar__call { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--fdl-color-heading); border-radius: var(--fdl-button-radius); color: var(--fdl-color-heading); font-weight: 700; text-decoration: none; }
	.fdl-mobile-bar__call .fdl-icon { width: 18px; height: 18px; }
	body:has(.fdl-mobile-bar) { padding-bottom: 72px; }
	body:has(.fdl-mobile-bar) .fdl-talk { bottom: 84px; }
}
