/* ==========================================================================
   S-A-P · Rénovation & aménagement
   ========================================================================== */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Allura"; src: url("../fonts/allura-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
	--navy-950: #08111e;
	--navy-900: #0b1626;
	--navy-800: #0f1d31;
	--navy-700: #17283f;
	--navy-600: #23395a;
	--gold-200: #f0d995;
	--gold-300: #e2c37a;
	--gold-500: #c9a24a;
	--gold-600: #b08a36;
	--gold-700: #8f6d24;
	--gold-grad: linear-gradient(135deg, #e9cf86 0%, #c9a24a 48%, #a8822f 100%);
	--ink: #18212e;
	--text: #3c4553;
	--muted: #6b7380;
	--line: #e7e2d8;
	--soft: #f6f4ef;
	--white: #fff;

	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--script: "Allura", "Brush Script MT", cursive;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
	--shadow: 0 18px 40px -22px rgba(11, 22, 38, .45);
	--shadow-sm: 0 6px 18px -10px rgba(11, 22, 38, .35);
	--header-h: 92px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.sap-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; font-weight: 600; }
.sap-skip:focus { top: 12px; }

.sap-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sap-container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.sap-center { text-align: center; }
.sap-section { padding: clamp(64px, 9vw, 110px) 0; }
.sap-section--soft { background: var(--soft); }

/* ---------- Typography ---------- */
.sap-script { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.05; }
.sap-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.01em; }
.sap-h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); }
.sap-lead { font-size: 16px; color: var(--muted); max-width: 52ch; }
.sap-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-700); }
.sap-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-500); }
.sap-eyebrow--light { color: var(--gold-300); }

/* ---------- Buttons ---------- */
.sap-btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 14px 28px; border: 1px solid var(--b); border-radius: var(--radius); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s; }
.sap-btn .sap-icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.sap-btn:hover .sap-icon { transform: translateX(4px); }
.sap-btn--gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 10px 24px -12px rgba(201, 162, 74, .8); }
.sap-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(201, 162, 74, .9); }
.sap-btn--ghost { --b: rgba(255, 255, 255, .35); color: var(--white); }
.sap-btn--ghost:hover { --b: var(--gold-300); color: var(--gold-200); }
.sap-btn--outline { --b: var(--navy-800); color: var(--navy-800); }
.sap-btn--outline:hover { background: var(--navy-800); color: var(--white); }
.sap-btn--outline-light { --b: var(--gold-500); color: var(--gold-200); }
.sap-btn--outline-light:hover { background: var(--gold-500); color: var(--navy-900); }
.sap-btn--block { width: 100%; white-space: normal; text-align: center; }
.sap-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.sap-link .sap-icon { width: 18px; transition: transform .25s var(--ease); }
.sap-link:hover .sap-icon { transform: translateX(4px); }
.sap-round-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy-800); transition: background .2s, color .2s, border-color .2s; }
.sap-round-btn:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold-300); }
.sap-round-btn .sap-icon { width: 20px; }

/* ---------- Brand ---------- */
.sap-brand { display: inline-flex; flex-direction: column; align-items: center; color: var(--gold-300); text-align: center; line-height: 1; }
.sap-logo-mark { width: 118px; height: auto; }
.sap-brand__name { margin-top: 6px; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .08em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sap-brand__tagline { margin-top: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--white); white-space: nowrap; }

/* ---------- Header ---------- */
.sap-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.sap-header__inner { display: flex; align-items: center; gap: 28px; max-width: calc(1440px + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); }
.sap-header .sap-brand { flex: none; }
.sap-header .sap-logo-mark { width: 92px; transition: width .35s var(--ease); }
.sap-header .sap-brand__name { font-size: 20px; }
.sap-header .sap-brand__tagline { font-size: 8px; }

.sap-header.is-scrolled { background: rgba(11, 22, 38, .96); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); backdrop-filter: blur(8px); }
.sap-header.is-scrolled .sap-header__inner { padding-top: 8px; padding-bottom: 8px; }
.sap-header.is-scrolled .sap-logo-mark { width: 64px; }
.sap-header.is-scrolled .sap-brand__tagline { display: none; }
.sap-header.is-scrolled .sap-brand__name { font-size: 16px; margin-top: 3px; }

.sap-nav { flex: 1; display: flex; justify-content: center; }
.sap-menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; }
.sap-menu > li { position: relative; display: flex; align-items: center; }
.sap-menu a { display: block; padding: 10px 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); white-space: nowrap; position: relative; }
.sap-menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.sap-menu > li > a:hover::after, .sap-menu > .current-menu-item > a::after, .sap-menu > .current-menu-ancestor > a::after, .sap-menu > .current_page_item > a::after { transform: scaleX(1); }
.sap-menu > .current-menu-item > a, .sap-menu > .current-menu-ancestor > a { color: var(--gold-300); }
.sap-submenu-toggle { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0; background: none; color: var(--white); }
.sap-submenu-toggle .sap-icon { width: 14px; transition: transform .25s; }
.sap-menu .sub-menu { position: absolute; top: 100%; left: -18px; min-width: 250px; padding: 10px 0; list-style: none; background: var(--navy-900); border-top: 2px solid var(--gold-500); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.sap-menu li:hover > .sub-menu, .sap-menu li:focus-within > .sub-menu, .sap-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sap-menu .sub-menu a { padding: 10px 20px; font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .85); }
.sap-menu .sub-menu a:hover { color: var(--gold-300); background: rgba(255, 255, 255, .04); }
.sap-nav__mobile-extra { display: none; }

.sap-header__actions { display: flex; align-items: center; gap: 22px; flex: none; }
.sap-header__phone { display: flex; align-items: center; gap: 10px; color: var(--white); }
.sap-header__phone .sap-icon { width: 22px; color: var(--gold-300); }
.sap-header__phone span { display: flex; flex-direction: column; line-height: 1.2; }
.sap-header__phone strong { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.sap-header__phone small { font-size: 11px; color: rgba(255, 255, 255, .65); }
.sap-header__cta { min-height: 46px; padding: 12px 22px; font-size: 12px; }
.sap-burger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); background: transparent; color: var(--white); place-items: center; }
.sap-burger .sap-icon { width: 22px; }
.sap-burger__close { display: none; }

/* ---------- Hero ---------- */
/* La diagonale suit le bloc de texte : --hero-pad (marge gauche) + --hero-copy (texte) + --hero-slant (biais). */
.sap-hero { --hero-pad: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); --hero-copy: clamp(420px, 34vw, 600px); --hero-slant: 230px; --hero-panel: calc(var(--hero-pad) + var(--hero-copy) + var(--hero-slant) * .72 + 30px);
	position: relative; display: grid; grid-template-columns: var(--hero-panel) 1fr; min-height: clamp(580px, 74svh, 740px); background: var(--navy-900); overflow: hidden; }
.sap-hero__media { position: absolute; inset: 0 0 0 calc(var(--hero-panel) - var(--hero-slant) - 20px); }
.sap-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.sap-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 17, 30, .65) 0%, rgba(8, 17, 30, 0) 26%), linear-gradient(0deg, rgba(8, 17, 30, .55) 0%, rgba(8, 17, 30, 0) 40%); }
.sap-hero__signature { position: absolute; z-index: 2; right: clamp(20px, 5vw, 70px); bottom: clamp(26px, 6vw, 70px); margin: 0; font-size: clamp(34px, 3.4vw, 54px); color: var(--white); text-align: right; transform: rotate(-6deg); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.sap-hero__panel { position: relative; z-index: 3; grid-column: 1; display: flex; align-items: center; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 56px; }
.sap-hero__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%); clip-path: polygon(0 0, calc(100% - var(--hero-slant)) 0, 100% 100%, 0 100%); }
.sap-hero__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-300); opacity: .35; pointer-events: none; clip-path: polygon(calc(100% - var(--hero-slant)) 0, calc(100% - var(--hero-slant) + 1px) 0, 100% 100%, calc(100% - 1px) 100%); }
.sap-hero__content { width: var(--hero-copy); padding-left: var(--hero-pad); box-sizing: content-box; }
.sap-hero__title { margin: 0 0 26px; color: var(--white); }
.sap-hero__title-top { display: block; font-family: var(--sans); font-size: calc(var(--hero-copy) * .056); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.sap-hero__title-script { display: block; margin-top: 4px; padding-left: .45em; font-size: calc(var(--hero-copy) * .13); white-space: nowrap; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; transform: rotate(-4deg); transform-origin: left; padding-bottom: .1em; padding-right: .15em; }
.sap-hero__title-script::after { content: ""; display: block; width: 72%; height: 2px; margin-top: -4px; background: var(--gold-grad); border-radius: 2px; transform: rotate(-1deg); }
.sap-hero__text { max-width: 46ch; color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.sap-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Trust bar ---------- */
.sap-trust { background: var(--navy-900); border-top: 1px solid rgba(201, 162, 74, .25); color: var(--white); }
.sap-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sap-trust__item { display: flex; align-items: center; gap: 18px; padding: 30px 26px; }
.sap-trust__item + .sap-trust__item { border-left: 1px solid rgba(255, 255, 255, .12); }
.sap-trust__icon { flex: none; color: var(--gold-500); }
.sap-trust__icon .sap-icon { width: 44px; height: 44px; stroke-width: 1.2; }
.sap-trust__item p { margin: 0; display: flex; flex-direction: column; line-height: 1.45; }
.sap-trust__item strong { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sap-trust__item span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ---------- Section heads ---------- */
.sap-section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sap-section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.sap-section-head--split .sap-h2 { margin: 0; }
.sap-section-head--split .sap-lead { margin: 0; }
.sap-section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.sap-section-head--row .sap-lead { margin: 0; }
.sap-section-head--center { text-align: center; }
.sap-section-head--center .sap-eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold-500); }

/* ---------- Services ---------- */
.sap-services { background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%); }
.sap-services__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.sap-service-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.sap-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 162, 74, .5); }
.sap-service-card__link { display: flex; flex-direction: column; height: 100%; }
.sap-service-card__media { aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--soft); }
.sap-service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sap-service-card:hover .sap-service-card__media img { transform: scale(1.06); }
.sap-service-card__body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 16px 20px; text-align: center; }
.sap-service-card__icon { display: inline-grid; place-items: center; color: var(--gold-600); margin-bottom: 12px; }
.sap-service-card__icon .sap-icon { width: 38px; height: 38px; stroke-width: 1.2; }
.sap-service-card__title { margin: 0 0 10px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-800); }
.sap-service-card__text { flex: 1; margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.sap-service-card__more { color: var(--gold-600); }
.sap-service-card__more .sap-icon { width: 20px; transition: transform .3s var(--ease); }
.sap-service-card:hover .sap-service-card__more .sap-icon { transform: translateX(5px); }

/* ---------- About ---------- */
.sap-about { position: relative; overflow: hidden; background: var(--navy-900); color: rgba(255, 255, 255, .85); }
.sap-about__bg { position: absolute; inset: 0 0 0 38%; background-size: cover; background-position: center 30%; }
.sap-about__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(11, 22, 38, .6) 30%, rgba(11, 22, 38, .25) 100%); }
.sap-about::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 52%; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.sap-about__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }
.sap-about__brand { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(48px, 5vw, 66px); font-weight: 600; letter-spacing: .03em; color: var(--white); line-height: 1; }
.sap-about__brand small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.sap-checklist { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.sap-checklist li { display: flex; gap: 12px; align-items: center; color: var(--white); }
.sap-checklist .sap-icon { width: 20px; color: var(--gold-500); stroke-width: 2; }
.sap-about__signature { margin: 0 0 30px; font-size: clamp(30px, 2.8vw, 40px); color: var(--gold-300); transform: rotate(-4deg); transform-origin: left; }
.sap-about__visual { position: relative; }
.sap-about__compare-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--white); background: rgba(8, 17, 30, .6); padding: 8px 14px; border-radius: var(--radius); backdrop-filter: blur(6px); }
.sap-about__compare-link .sap-icon { width: 16px; color: var(--gold-300); }

/* ---------- Compare (avant / après) ---------- */
.sap-compare { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); user-select: none; touch-action: pan-y; }
.sap-compare--framed { border: 6px solid var(--white); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); }
.sap-compare__img { position: absolute; inset: 0; }
.sap-compare__img img { width: 100%; height: 100%; object-fit: cover; }
.sap-compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sap-compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.sap-compare__handle { position: absolute; z-index: 2; top: 50%; left: var(--pos); display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--white); color: var(--navy-800); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); pointer-events: none; }
.sap-compare__handle .sap-icon { width: 22px; }
.sap-compare__label { position: absolute; z-index: 2; top: 14px; padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--white); background: rgba(8, 17, 30, .65); pointer-events: none; }
.sap-compare__label--before { left: 14px; }
.sap-compare__label--after { right: 14px; }
.sap-compare__range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.sap-compare__range:focus-visible + .sap-compare__handle, .sap-compare:focus-within .sap-compare__handle { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ---------- Works carousel ---------- */
.sap-works .sap-section-head { margin-bottom: 36px; }
.sap-carousel-nav { display: flex; gap: 10px; flex: none; }
.sap-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 80vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2)) 30px; scrollbar-width: none; overscroll-behavior-x: contain; }
.sap-carousel::-webkit-scrollbar { display: none; }
.sap-carousel > * { scroll-snap-align: start; }
.sap-works .sap-center { margin-top: 18px; }

.sap-real-card { position: relative; overflow: hidden; background: var(--navy-800); box-shadow: var(--shadow-sm); }
.sap-real-card__link { display: block; position: relative; }
.sap-real-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.sap-real-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.sap-real-card:hover .sap-real-card__media img { transform: scale(1.06); }
.sap-real-card__caption { position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; background: linear-gradient(0deg, rgba(8, 17, 30, .92) 0%, rgba(8, 17, 30, .5) 60%, rgba(8, 17, 30, 0) 100%); color: var(--white); }
.sap-real-card__tag { display: inline-block; margin-bottom: 8px; padding: 3px 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900); background: var(--gold-grad); }
.sap-real-card__title { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--white); }
.sap-real-card__city { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.sap-real-card__city .sap-icon { width: 15px; color: var(--gold-300); }

.sap-works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }

.sap-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.sap-filters a { padding: 9px 18px; border: 1px solid var(--line); border-radius: 40px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-800); transition: all .2s; }
.sap-filters a:hover { border-color: var(--gold-500); color: var(--gold-700); }
.sap-filters a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold-300); }
.sap-empty { text-align: center; color: var(--muted); }

.sap-pagination { margin-top: 50px; }
.sap-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.sap-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); font-weight: 600; color: var(--navy-800); }
.sap-pagination .page-numbers.current, .sap-pagination .page-numbers:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold-300); }
.sap-pagination .sap-icon { width: 18px; }

/* ---------- Reviews ---------- */
.sap-reviews { background: var(--soft); }
.sap-reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.sap-review { position: relative; margin: 0; padding: 34px 30px 28px; background: var(--white); border-top: 3px solid var(--gold-500); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.sap-review__quote { position: absolute; top: 22px; right: 24px; color: rgba(201, 162, 74, .35); }
.sap-review__quote .sap-icon { width: 40px; height: 40px; }
.sap-stars { display: inline-flex; gap: 2px; font-size: 17px; color: #d8d3c8; margin-bottom: 14px; }
.sap-stars .is-on { color: var(--gold-500); }
.sap-review blockquote { flex: 1; margin: 0 0 20px; font-size: 15px; font-style: italic; color: var(--text); }
.sap-review blockquote p:last-child { margin: 0; }
.sap-review figcaption { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--line); }
.sap-review figcaption strong { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.sap-review figcaption span { font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.sap-cta { position: relative; overflow: hidden; color: var(--white); background: var(--navy-900); }
.sap-cta__bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 40%; }
.sap-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 17, 30, .72) 0%, rgba(8, 17, 30, .4) 34%, rgba(8, 17, 30, 0) 55%, rgba(8, 17, 30, 0) 74%, rgba(8, 17, 30, .35) 100%), linear-gradient(0deg, rgba(8, 17, 30, .4) 0%, rgba(8, 17, 30, 0) 35%); }
.sap-cta__inner { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: clamp(30px, 3.5vw, 50px); align-items: center; min-height: 500px; padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); }
.sap-cta__title { margin: 0 0 18px; font-size: clamp(40px, 4vw, 60px); white-space: nowrap; color: var(--white); transform: rotate(-4deg); transform-origin: left; }
.sap-cta__intro { padding-right: 20px; }
.sap-cta__intro p { max-width: 36ch; color: rgba(255, 255, 255, .85); margin: 0; }
.sap-cta__contact .sap-btn { margin-top: 24px; }
.sap-cta__card { width: 260px; padding: 34px 26px; text-align: center; background: rgba(11, 22, 38, .88); border: 1px solid rgba(201, 162, 74, .45); box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .8); }
.sap-cta__card .sap-logo-mark { width: 110px; margin: 0 auto; }
.sap-cta__card p { margin: 18px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }

.sap-contact-list { list-style: none; display: grid; gap: 12px; }
.sap-contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.sap-contact-list .sap-icon { flex: none; width: 20px; margin-top: 2px; color: var(--gold-500); }
.sap-contact-list a:hover { color: var(--gold-300); }
.sap-contact-list--large { gap: 16px; font-size: 16px; }

/* ---------- Footer ---------- */
.sap-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: 14px; }
.sap-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.sap-footer__brand .sap-brand { align-items: flex-start; text-align: left; }
.sap-footer__brand .sap-logo-mark { width: 96px; }
.sap-footer__brand p { margin-top: 20px; max-width: 34ch; }
.sap-footer__title { margin: 0 0 18px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.sap-footer ul { list-style: none; }
.sap-footer__menu li, .sap-footer__services li { margin-bottom: 9px; }
.sap-footer__menu a:hover, .sap-footer__services a:hover { color: var(--gold-300); }
.sap-footer .sap-menu { display: block; }
.sap-footer .sap-menu a { padding: 0 0 9px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; }
.sap-footer .sap-menu a::after { display: none; }
.sap-footer__social { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sap-footer__social .sap-footer__title { margin-bottom: 10px; }
.sap-footer__social p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .65); }
.sap-socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sap-socials a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 12px; border-radius: 999px; border: 1px solid rgba(201, 162, 74, .5); color: var(--gold-300); font-size: 13.5px; letter-spacing: .02em; transition: all .2s; }
.sap-socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.sap-socials .sap-icon { width: 20px; height: 20px; flex: none; }
.sap-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.sap-footer__bottom .sap-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 22px; padding-bottom: 22px; }
.sap-footer__bottom p { margin: 0; }
.sap-legal-menu { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.sap-legal-menu a:hover { color: var(--gold-300); }

/* ---------- Inner pages ---------- */
.sap-page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.sap-page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 45%; opacity: .7; }
.sap-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy-900) 15%, rgba(11, 22, 38, .55) 100%); }
.sap-page-hero__inner { position: relative; z-index: 1; padding-top: calc(var(--header-h) + clamp(70px, 8vw, 110px)); padding-bottom: clamp(56px, 8vw, 96px); }
.sap-page-hero__title { max-width: 22ch; margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); color: var(--white); }
.sap-page-hero__intro { max-width: 60ch; margin: 18px 0 0; font-size: 17px; color: rgba(255, 255, 255, .82); }

.sap-prose { font-size: 16.5px; }
.sap-prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
.sap-prose h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin-top: 1.4em; }
.sap-prose > :first-child { margin-top: 0; }
.sap-prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.sap-prose ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.sap-prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--gold-500); }
.sap-prose a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.sap-prose img { border-radius: var(--radius); }
.sap-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-500); font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); }

.sap-services-list { display: grid; gap: clamp(50px, 7vw, 90px); }
.sap-service-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sap-service-row.is-reversed .sap-service-row__media { order: 2; }
.sap-service-row__media { display: block; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: var(--shadow); }
.sap-service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.sap-service-row:hover .sap-service-row__media img { transform: scale(1.04); }
.sap-service-row .sap-h3 a:hover { color: var(--gold-700); }

.sap-service-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.sap-service-detail__media { position: sticky; top: 110px; box-shadow: var(--shadow); }
.sap-service-detail__media img { width: 100%; }

.sap-project__layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 56px); align-items: start; }
.sap-project__main > * + * { margin-top: 40px; }
.sap-project__aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.sap-project__facts { margin: 0; padding: 22px 24px; background: var(--soft); border-left: 3px solid var(--gold-500); display: grid; gap: 12px; }
.sap-project__facts div { display: flex; justify-content: space-between; gap: 16px; }
.sap-project__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sap-project__facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.sap-project__facts a { color: var(--gold-700); }
.sap-backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.sap-backlink .sap-icon { width: 16px; }
.sap-backlink:hover { color: var(--ink); }

.sap-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sap-gallery__item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.sap-gallery__item.is-featured { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.sap-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sap-gallery__item:hover img { transform: scale(1.05); }
.sap-gallery__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; background: rgba(8, 17, 30, .7); color: var(--white); opacity: 0; transition: opacity .25s; }
.sap-gallery__zoom .sap-icon { width: 18px; }
.sap-gallery__item:hover .sap-gallery__zoom, .sap-gallery__item:focus-visible .sap-gallery__zoom { opacity: 1; }

.sap-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 10, 18, .95); }
.sap-lightbox[open] { display: grid; place-items: center; }
.sap-lightbox::backdrop { background: rgba(5, 10, 18, .9); }
.sap-lightbox img:not([src]) { visibility: hidden; }
.sap-lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sap-lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(8, 17, 30, .6); color: var(--white); }
.sap-lightbox button:hover { border-color: var(--gold-500); color: var(--gold-300); }
.sap-lightbox .sap-icon { width: 24px; }
.sap-lightbox__close { top: 20px; right: 20px; }
.sap-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.sap-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.sap-contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.sap-contact__aside { position: sticky; top: 110px; display: grid; gap: 26px; }
.sap-contact__card { padding: 36px 30px; background: var(--navy-900); color: rgba(255, 255, 255, .88); box-shadow: var(--shadow); }
.sap-contact__card .sap-brand { width: 100%; margin-bottom: 26px; }
.sap-contact__card small { color: rgba(255, 255, 255, .6); }
.sap-contact__legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.sap-contact__legal p { margin: 0; }
.sap-contact__legal .sap-contact__legal-title { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.sap-contact__legal a { color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px; }
.sap-contact__legal a:hover { color: var(--gold-300); }
.sap-form { display: grid; gap: 18px; }
.sap-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sap-field { display: grid; gap: 7px; }
.sap-field > span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-800); }
.sap-field input, .sap-field select, .sap-field textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid #d9d3c7; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.sap-field textarea { resize: vertical; min-height: 150px; }
.sap-field input:focus, .sap-field select:focus, .sap-field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); }
.sap-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.sap-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-600); flex: none; }
.sap-check a { color: var(--gold-700); text-decoration: underline; }
.sap-form .sap-btn { justify-self: start; }
.sap-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sap-notice { margin-bottom: 20px; padding: 14px 18px; border-left: 3px solid; font-weight: 500; }
.sap-notice--success { background: #eef7ee; border-color: #3f8f4f; color: #24572f; }
.sap-notice--error { background: #fbefec; border-color: #b6452c; color: #7a2b1b; }
.sap-404 { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
	.js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1400px) {
	.sap-header__phone { display: none; }
	.sap-header__inner { gap: 20px; }
	.sap-menu { gap: 16px; }
	.sap-menu a { letter-spacing: .08em; }
	.sap-header__cta { padding: 12px 16px; letter-spacing: .08em; }
	.sap-header__cta .sap-icon { display: none; }
}

@media (max-width: 1100px) {
	:root { --header-h: 76px; }
	.sap-burger { display: grid; }
	.sap-header__cta { display: none; }
	.sap-header .sap-logo-mark, .sap-header.is-scrolled .sap-logo-mark { width: 58px; }
	.sap-header .sap-brand__name { font-size: 15px; margin-top: 3px; }
	.sap-header .sap-brand__tagline { display: none; }
	.sap-header__inner { justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
	.has-hero-header .sap-header { background: linear-gradient(180deg, rgba(8, 17, 30, .85), rgba(8, 17, 30, 0)); }
	.has-hero-header .sap-header.is-scrolled, .nav-open .sap-header { background: rgba(11, 22, 38, .98); }

	.sap-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: -1; display: block; padding: 20px var(--gutter) 40px; overflow-y: auto; background: var(--navy-900); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
	.nav-open .sap-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav-open .sap-burger__open { display: none; }
	.nav-open .sap-burger__close { display: block; }
	.sap-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.sap-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.sap-menu > li > a { flex: 1; padding: 18px 0; font-size: 15px; }
	.sap-menu > li > a::after { display: none; }
	.sap-submenu-toggle { width: 48px; height: 48px; }
	.sap-submenu-toggle .sap-icon { width: 20px; }
	.is-open > .sap-submenu-toggle .sap-icon { transform: rotate(180deg); }
	.sap-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 12px 14px; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.sap-menu li.is-open > .sub-menu { display: block; }
	.sap-menu .sub-menu a { padding: 10px 0; font-size: 14px; }
	.sap-nav__mobile-extra { display: grid; gap: 16px; margin-top: 30px; }
	.sap-nav__phone { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; color: var(--white); }
	.sap-nav__phone .sap-icon { color: var(--gold-300); }

	.sap-hero { --hero-copy: 560px; grid-template-columns: 1fr; min-height: 0; }
	.sap-hero__media { position: relative; inset: auto; height: 62vw; max-height: 520px; min-height: 340px; order: 1; }
	.sap-hero__media::before { background: linear-gradient(180deg, rgba(8, 17, 30, .7) 0%, rgba(8, 17, 30, 0) 40%); }
	.sap-hero__panel { order: 2; margin: -60px 0 0; padding: 100px 0 56px; }
	.sap-hero__panel::before { clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); }
	.sap-hero__panel::after { display: none; }
	.sap-hero__content { width: auto; max-width: 640px; padding: 0 var(--gutter); }
	.sap-hero__title-top { font-size: clamp(20px, 4.6vw, 30px); }
	.sap-hero__title-script { font-size: clamp(46px, 11vw, 72px); }
	.sap-hero__signature { bottom: 90px; font-size: 32px; }

	.sap-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.sap-trust__item:nth-child(3) { border-left: 0; }
	.sap-trust__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }

	.sap-services__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

	.sap-about::before { width: 100%; clip-path: none; opacity: .9; }
	.sap-about__bg { inset: 0; }
	.sap-about__inner { grid-template-columns: 1fr; }

	.sap-cta__inner { grid-template-columns: 1fr 1fr; min-height: 0; }
	.sap-cta__bg { background-position: 68% 40%; }
	.sap-cta__spacer, .sap-cta__card { display: none; }

	.sap-footer__top { grid-template-columns: 1fr 1fr; }

	.sap-project__layout, .sap-contact, .sap-service-detail { grid-template-columns: minmax(0, 1fr); }
	.sap-project__aside, .sap-contact__aside, .sap-service-detail__media { position: static; }
}

@media (max-width: 760px) {
	.sap-section-head--split { grid-template-columns: 1fr; gap: 16px; }
	.sap-section-head--row { flex-direction: column; align-items: flex-start; }
	.sap-carousel-nav { display: none; }
	.sap-trust__grid { grid-template-columns: 1fr; }
	.sap-trust__item { padding: 20px 4px; }
	.sap-trust__item + .sap-trust__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
	.sap-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sap-service-card__body { padding: 16px 10px; }
	.sap-service-card__title { font-size: 12px; letter-spacing: .05em; }
	.sap-service-card__text { font-size: 12.5px; }
	.sap-service-row, .sap-service-row.is-reversed { grid-template-columns: 1fr; }
	.sap-service-row.is-reversed .sap-service-row__media { order: 0; }
	.sap-cta__inner { grid-template-columns: 1fr; }
	.sap-footer__top { grid-template-columns: 1fr; gap: 34px; }
	.sap-form__row { grid-template-columns: 1fr; }
	.sap-gallery { grid-template-columns: repeat(2, 1fr); }
	.sap-hero__buttons .sap-btn { flex: 1 1 auto; }
	.sap-hero__title-top { white-space: normal; }
	.sap-cta__title { white-space: normal; font-size: 44px; }
	.sap-cta__bg::after { background: linear-gradient(180deg, rgba(8, 17, 30, .72) 0%, rgba(8, 17, 30, .5) 45%, rgba(8, 17, 30, .72) 100%); }
	.sap-lightbox__prev, .sap-lightbox__next { top: auto; bottom: 20px; transform: none; }
}
