/*
Theme Name: Chaboun Construction
Author: Arius Automation
Description: Custom theme for Chaboun Constructions Ltd in the company's own branding. No page builder; motion by GSAP.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: chaboun
*/

/* ---------- Brand tokens (sampled from the Chaboun logo and current site) ---------- */
:root {
    --navy: #1f2f63;          /* logo navy */
    --navy-900: #101a3b;
    --navy-800: #16224a;
    --blue: #1377bd;          /* logo / site blue */
    --blue-600: #0e5f99;
    --blue-100: #e3f0fa;
    --yellow: #ffbc13;        /* site accent */
    --yellow-600: #eaa800;
    --ink: #16203a;
    --muted: #5a6682;
    --bg: #ffffff;
    --bg-soft: #f3f7fb;
    --line: #dfe6f0;
    --white: #ffffff;
    --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1240px;
    --gutter: clamp(18px, 4vw, 44px);
    --space: clamp(64px, 9vw, 128px);
    --r-sm: 10px;
    --r: 18px;
    --r-lg: 28px;
    --shadow: 0 24px 60px -28px rgba(16, 26, 59, .38);
    --shadow-sm: 0 10px 30px -18px rgba(16, 26, 59, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 118px;
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; color: var(--navy); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 200; top: 8px; left: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }

.h-xl { font-size: clamp(1.9rem, 4vw, 3.1rem); text-transform: uppercase; letter-spacing: 0; }
.h-lg { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .76rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.2em; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }
.eyebrow--light { color: #bfe0f7; }
.accent { color: var(--yellow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 2px solid transparent; border-radius: 999px; font: 700 .93rem/1.1 var(--font-head); letter-spacing: .01em; cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--accent { background: var(--yellow); color: var(--navy-900); box-shadow: 0 12px 26px -12px rgba(255, 188, 19, .9); }
.btn--accent:hover { background: #ffc93f; }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 12px 26px -14px rgba(19, 119, 189, .9); }
.btn--blue:hover { background: var(--blue-600); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem var(--font-head); color: var(--blue); }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span, .card:hover .card__more span { transform: translateX(6px); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--yellow); transform: scaleX(0); transform-origin: left; }

/* ---------- Header (overlays the hero, turns solid on scroll) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white); transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.site-header.is-stuck { background: rgba(16, 26, 59, .96); box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); }
.site-header.is-stuck .topbar { margin-top: -38px; }
.site-header.is-hidden { transform: translateY(-100%); }
.topbar { background: var(--blue); font-size: .8rem; height: 38px; transition: margin .35s var(--ease); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar a:hover { color: var(--yellow); }
.topbar svg { width: 14px; height: 14px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 60px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__menu > ul { display: flex; gap: 2px; }
.nav__menu > ul > li { position: relative; }
.nav__menu > ul > li > a { display: block; padding: 28px 13px; font: 700 .8rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; position: relative; }
.nav__menu > ul > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 20px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__menu > ul > li:hover > a::after, .nav__menu > ul > li.is-current > a::after { transform: scaleX(1); }
.sub { position: absolute; top: calc(100% - 8px); left: 0; min-width: 250px; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 16px 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s, transform .22s var(--ease), visibility .22s; box-shadow: var(--shadow); }
.sub--mega { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 14px; left: -160px; padding: 22px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 600; }
.sub a:hover { background: var(--blue-100); color: var(--blue-600); }
.sub__title { font: 800 .7rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 12px 8px; }
.nav__cta { padding: 12px 22px; font-size: .86rem; }
.nav__toggle { display: none; }

/* ---------- Hero: always exactly one screen ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; max-height: 1000px; display: flex; flex-direction: column; color: var(--white); background: var(--navy-900); overflow: hidden; }
.hero__bg, .hero__slide { position: absolute; inset: 0; }
/* Slides get z-indexes while they wipe; keep them inside their own layer, under the tint and the copy. */
.hero__bg { z-index: 0; isolation: isolate; }
.hero__grid, .hero__foot { z-index: 1; }
.hero__slide { opacity: 0; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(100deg, rgba(16, 26, 59, .93) 0%, rgba(16, 26, 59, .78) 42%, rgba(19, 60, 110, .42) 100%), linear-gradient(0deg, rgba(16, 26, 59, .85) 0%, transparent 34%); }
.hero__grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: var(--header-h); }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font: 700 .74rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; margin-bottom: clamp(10px, 2vh, 22px); backdrop-filter: blur(6px); }
.hero__badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255, 188, 19, .25); }
.hero__headlines { display: grid; }
.hero__headline { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.hero__headline.is-active { opacity: 1; visibility: visible; }
.hero__title { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: clamp(2rem, min(6vw, 9.2vh), 4.9rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 clamp(8px, 1.6vh, 18px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 50ch; font-size: clamp(.98rem, min(1.35vw, 2.4vh), 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .88); margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(14px, 3vh, 30px); }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(12px, 2.4vh, 24px); font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks svg { width: 18px; height: 18px; color: var(--yellow); }
.hero__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(12px, 2.2vh, 22px); border-top: 1px solid rgba(255, 255, 255, .16); }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 46px; height: 5px; border-radius: 5px; border: 0; padding: 0; background: rgba(255, 255, 255, .28); overflow: hidden; cursor: pointer; }
.hero__dot span { display: block; height: 100%; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero__stats { display: flex; gap: clamp(18px, 3.4vw, 54px); }
.hero__stat { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hero__stat strong { font: 800 clamp(1.25rem, 2.2vw, 1.9rem)/1 var(--font-head); color: var(--white); }
.hero__stat strong em { font-style: normal; color: var(--yellow); }
.hero__stat span { font-size: .78rem; color: rgba(255, 255, 255, .75); }

/* Quote card (hero on desktop, enquiry sections elsewhere) */
.quote-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 2.2vw, 30px); box-shadow: var(--shadow); display: grid; gap: 12px; scroll-margin-top: 130px; }
.quote-card__title { font-size: 1.3rem; margin: 0; }
.quote-card__sub { font-size: .88rem; color: var(--muted); margin: -6px 0 2px; }
.quote-card label { display: grid; gap: 5px; font: 700 .74rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.quote-card input, .quote-card select, .quote-card textarea { width: 100%; font: 400 .98rem var(--font-body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus { outline: 0; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(19, 119, 189, .16); }
.quote-card .btn { width: 100%; }
.quote-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-card__small { font-size: .76rem; color: var(--muted); margin: 0; text-align: center; }
.quote-card__small a { text-decoration: underline; }
.form__trap { position: absolute; left: -9999px; }
.form__notice { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; }
.form__notice--ok { background: #e2f4e6; color: #17592a; }
.form__notice--error { background: #fde7e2; color: #8a2a12; }
.hero__form { display: none; }

.marquee { background: var(--blue); color: var(--white); overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee span { font: 700 .86rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; padding-inline: 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section--tight { padding-block: calc(var(--space) * .55); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: rgba(255, 255, 255, .86); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4.5vw, 56px); flex-wrap: wrap; }
.section__head .h-xl, .section__head .h-lg { margin: 0; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 26, 59, .55), transparent 55%); opacity: 0; transition: opacity .4s; }
.card:hover .card__media::after { opacity: 1; }
.card__tag { position: absolute; z-index: 1; top: 14px; left: 14px; background: var(--white); color: var(--navy); font: 700 .66rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font: 700 .7rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.card__title { font-size: 1.22rem; margin-bottom: 10px; }
.card__text { font-size: .92rem; color: var(--muted); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { margin-top: auto; font: 700 .86rem var(--font-head); color: var(--blue); display: inline-flex; gap: 8px; }
.card__more span { transition: transform .25s var(--ease); }

.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.collage { position: relative; padding: 0 12% 14% 0; }
.collage__a, .collage__b { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.collage__a { aspect-ratio: 4 / 5; }
.collage__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--white); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__badge { position: absolute; top: 8%; right: 2%; background: var(--yellow); color: var(--navy-900); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow-sm); text-align: center; }
.collage__badge strong { display: block; font: 800 2.2rem/1 var(--font-head); }
.collage__badge span { font: 700 .7rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.ticks { display: grid; gap: 12px; margin: 22px 0 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks svg { width: 24px; height: 24px; flex: none; color: var(--blue); background: var(--blue-100); border-radius: 50%; padding: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: clamp(20px, 2.6vw, 34px); }
.stat__num, .stat__suffix { font: 800 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--font-head); color: var(--white); }
.stat__suffix { color: var(--yellow); }
.stat p { margin: 10px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .72); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); counter-reset: step; position: relative; }
.steps__line { position: absolute; left: 6%; right: 6%; top: 34px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.steps__line span { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num { counter-increment: step; width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--white); border: 3px solid var(--blue); color: var(--blue); font: 800 1.3rem var(--font-head); position: relative; z-index: 1; transition: background .3s, color .3s; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step:hover .step__num { background: var(--blue); color: var(--white); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Horizontal project strip (pinned and scrubbed by GSAP on desktop). */
.strip { background: var(--navy-900); color: var(--white); padding-block: var(--space); overflow: hidden; }
.strip h2 { color: var(--white); }
.strip__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); }
.strip__head .h-xl { margin: 0; }
.strip__viewport { overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
.strip__viewport::-webkit-scrollbar { display: none; }
.motion .strip.is-pinned .strip__viewport { overflow: visible; }
.strip__track { display: flex; gap: clamp(16px, 2.2vw, 30px); width: max-content; }
.strip__item { position: relative; width: clamp(260px, 30vw, 430px); flex: none; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-800); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip__item:hover img { transform: scale(1.07); }
.strip__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 26, 59, .92) 0%, rgba(16, 26, 59, .1) 55%); }
.strip__meta { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 24px; }
.strip__index { display: inline-block; font: 800 .72rem var(--font-head); letter-spacing: .12em; background: var(--yellow); color: var(--navy-900); padding: 5px 11px; border-radius: 999px; }
.strip__meta h3 { color: var(--white); font-size: 1.45rem; margin: 12px 0 6px; }
.strip__meta p { color: rgba(255, 255, 255, .78); font-size: .9rem; margin: 0; }
.strip__item--end { display: grid; place-items: center; text-align: center; background: var(--blue); font: 800 1.25rem var(--font-head); padding: 24px; }
.strip__item--end::after { display: none; }
.strip__item--end:hover { background: var(--yellow); color: var(--navy-900); }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.why__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 6; box-shadow: var(--shadow); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__media figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(255, 255, 255, .95); border-radius: var(--r); padding: 16px 20px; display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--navy); backdrop-filter: blur(6px); }
.why__media figcaption svg { width: 38px; height: 38px; color: var(--blue); flex: none; }
.accordion { display: grid; gap: 12px; margin-top: 26px; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.accordion__item.is-open { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.accordion__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: 0; text-align: left; cursor: pointer; font: 700 1.02rem var(--font-head); color: var(--navy); }
.accordion__icon { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue-100); position: relative; transition: background .3s, transform .4s var(--ease); }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--blue); transition: transform .3s var(--ease), background .3s; }
.accordion__icon::after { transform: rotate(90deg); }
.is-open .accordion__icon { background: var(--blue); transform: rotate(180deg); }
.is-open .accordion__icon::before, .is-open .accordion__icon::after { background: var(--white); }
.is-open .accordion__icon::after { transform: rotate(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.quote { margin: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 20px; transition: transform .35s var(--ease), background .35s; }
.quote:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); }
.quote__mark { width: 40px; height: 40px; color: var(--yellow); }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: .86rem; color: rgba(255, 255, 255, .65); }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font: 800 1rem var(--font-head); flex: none; }
.quote figcaption strong { display: block; color: var(--white); font-family: var(--font-head); font-size: .98rem; }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.area { position: relative; border-radius: var(--r); padding: 28px 24px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 34px; overflow: hidden; transition: color .35s, transform .35s var(--ease), box-shadow .35s; }
.area::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateY(101%); transition: transform .45s var(--ease); }
.area:hover::before { transform: none; }
.area:hover { color: var(--white); transform: translateY(-6px); box-shadow: var(--shadow); }
.area > * { position: relative; }
.area svg { width: 34px; height: 34px; color: var(--blue); transition: color .35s; }
.area:hover svg { color: var(--yellow); }
.area__name { font: 800 1.35rem var(--font-head); color: var(--navy); transition: color .35s; display: block; }
.area:hover .area__name { color: var(--white); }
.area__more { font: 700 .82rem var(--font-head); color: var(--blue); transition: color .35s; }
.area:hover .area__more { color: var(--yellow); }

.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.enquiry__list { display: grid; gap: 18px; margin-top: 26px; }
.enquiry__list li { display: flex; gap: 16px; align-items: center; }
.enquiry__list svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--yellow); flex: none; }
.enquiry__list small { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.enquiry__list a, .enquiry__list span { font: 700 1.08rem var(--font-head); color: var(--white); }
.enquiry__list a:hover { color: var(--yellow); }

.cta-band { position: relative; background: var(--blue); color: var(--white); padding-block: clamp(44px, 6vw, 80px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .14; background: linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 100% 36px, linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 36px 100%; }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band__title { color: var(--white); font-size: clamp(1.6rem, 3.6vw, 2.7rem); text-transform: uppercase; margin: 0; max-width: 20ch; }
.cta-band .eyebrow { color: var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-top: clamp(52px, 7vw, 88px); font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.site-footer .brand img { height: 92px; }
.site-footer address { margin-top: 20px; line-height: 1.9; }
.site-footer__title { font: 800 .74rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer li { padding: 4px 0; }
.site-footer a { transition: color .2s, padding .25s var(--ease); }
.site-footer nav a:hover { color: var(--yellow); padding-left: 6px; }
.site-footer address a:hover { color: var(--yellow); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; }

/* Sticky call / quote bar on phones */
.mobile-bar { display: none; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background: linear-gradient(rgba(255, 255, 255, .8) 1px, transparent 1px) 0 0 / 100% 40px, linear-gradient(90deg, rgba(255, 255, 255, .8) 1px, transparent 1px) 0 0 / 40px 100%; }
.page-hero__media { position: absolute; inset: -12% 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16, 26, 59, .94) 0%, rgba(16, 26, 59, .72) 55%, rgba(19, 60, 110, .5) 100%); }
.page-hero__inner { position: relative; z-index: 1; padding-block: calc(var(--header-h) + clamp(40px, 7vw, 96px)) clamp(40px, 6vw, 80px); }
.page-hero h1, .page-hero__title { color: var(--white); font-size: clamp(1.9rem, 5vw, 3.6rem); text-transform: uppercase; max-width: 22ch; margin: 0; }
.page-hero .eyebrow { color: #bfe0f7; }
.page-hero__intro { margin: 18px 0 0; max-width: 58ch; color: rgba(255, 255, 255, .84); font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .6; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.22rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.06rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 30px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231377bd' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.prose ol { margin: 0 0 1.4em; padding: 0; counter-reset: item; display: grid; gap: 10px; }
.prose ol li { counter-increment: item; padding-left: 40px; }
.prose ol li::before { content: counter(item); top: .1em; width: 26px; height: 26px; background: var(--blue); color: var(--white); font: 700 .78rem/26px var(--font-head); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .94rem; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); display: block; overflow-x: auto; }
.prose thead th { background: var(--navy); color: var(--white); font: 700 .8rem var(--font-head); letter-spacing: .04em; text-align: left; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }
.aside-cta { position: sticky; top: 110px; background: var(--navy-900); color: rgba(255, 255, 255, .82); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.aside-cta h2 { font-size: 1.4rem; color: var(--white); }
.aside-cta p { font-size: .93rem; }
.aside-cta .eyebrow { color: #bfe0f7; }
.aside-cta .btn { width: 100%; }
.aside-cta__phone { display: block; text-align: center; margin-top: 14px; font: 800 1.15rem var(--font-head); color: var(--white); }
.aside-cta__phone:hover { color: var(--yellow); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.photo-grid__item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--blue-100); cursor: zoom-in; position: relative; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo-grid__item:hover img { transform: scale(1.08); }
.photo-grid__item::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 2.4rem var(--font-head); color: var(--white); background: rgba(19, 119, 189, .55); opacity: 0; transition: opacity .3s; }
.photo-grid__item:hover::after { opacity: 1; }
.photo-grid--masonry .photo-grid__item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10, 16, 38, .95); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; line-height: 1; }

.project-list { display: grid; gap: clamp(40px, 6vw, 96px); }
.project-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.project-row:nth-child(even) .project-row__media { order: 2; }
.project-row__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--blue-100); box-shadow: var(--shadow); }
.project-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-row:hover img { transform: scale(1.05); }
.project-row__body p { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 700 .92rem var(--font-head); border-top: 1px solid var(--line); padding-top: 26px; }
.pager a:hover { color: var(--blue); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pill { padding: 10px 20px; border: 1.5px solid var(--line); border-radius: 999px; font: 700 .84rem var(--font-head); transition: background .2s, color .2s, border-color .2s; }
.pill:hover, .pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination { margin-top: 44px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font: 700 .9rem var(--font-head); }
.pagination .page-numbers { min-width: 44px; text-align: center; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; }
.pagination .current, .pagination a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact dl { margin: 0 0 26px; display: grid; gap: 14px; }
.contact__item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.contact__item svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--blue-100); color: var(--blue); flex: none; }
.contact dt { font: 700 .7rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: 2px 0 0; font: 700 1.02rem var(--font-head); color: var(--navy); }

/* ---------- Motion start states (only when motion is allowed) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(32px); }
.motion [data-reveal="left"] { transform: translateX(-40px); }
.motion [data-reveal="right"] { transform: translateX(40px); }
.motion [data-reveal="zoom"] { transform: scale(.92); }
.motion [data-wipe] { clip-path: inset(0 0 100% 0 round 18px); }
.motion [data-split] .word > span { display: inline-block; transform: translateY(110%); }
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.motion .hero__headline .line > span { transform: translateY(110%); }
.motion .hero__headline .hero__lead { opacity: 0; }
.motion [data-hero-fade] { opacity: 0; transform: translateY(18px); }
/* The hero's first appearance is pure CSS, so the headline and buttons show
   even if the script is slow or never runs. The script takes over afterwards. */
.motion .hero--intro .hero__headline.is-active .line > span { animation: hero-rise 1s var(--ease) .1s both; }
.motion .hero--intro .hero__headline.is-active .line:nth-child(2) > span { animation-delay: .22s; }
.motion .hero--intro .hero__headline.is-active .hero__lead { animation: hero-fade .7s var(--ease) .45s both; }
.motion .hero--intro [data-hero-fade] { animation: hero-fade .7s var(--ease) .55s both; }
.motion .hero--intro .hero__badge { animation-delay: 0s; }
@keyframes hero-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) and (min-height: 640px) {
    .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(330px, 400px); }
    .hero__form { display: block; }
}
@media (min-width: 1100px) and (max-height: 760px) {
    .hero .quote-card { gap: 9px; padding: 20px 22px; }
    .hero .quote-card input, .hero .quote-card select { padding: 9px 12px; }
    .hero .quote-card__sub { display: none; }
}
@media (max-height: 660px) {
    .hero__ticks { display: none; }
}
@media (max-width: 1180px) {
    :root { --header-h: 76px; }
    .topbar { display: none; }
    .nav { height: 76px; }
    .site-header:not(.is-stuck) { background: linear-gradient(180deg, rgba(16, 26, 59, .7), transparent); }
    .brand img { height: 52px; }
    .nav__toggle { display: grid; gap: 6px; width: 48px; height: 48px; place-content: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; cursor: pointer; position: relative; z-index: 2; }
    .nav__toggle span:not(.screen-reader-text) { width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s var(--ease); }
    .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
    .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
    .nav__menu { position: fixed; inset: 0; background: var(--navy-900); flex-direction: column; align-items: stretch; gap: 0; padding: 92px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
    .nav__menu.is-open { transform: none; visibility: visible; }
    .nav__menu > ul { flex-direction: column; }
    .nav__menu > ul > li > a { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .nav__menu > ul > li > a::after { display: none; }
    .sub, .sub--mega { position: static; display: block; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; color: rgba(255, 255, 255, .8); padding: 8px 0 8px 6px; min-width: 0; }
    .sub a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
    .sub--mega > div + div { margin-top: 10px; }
    .sub__title { color: var(--yellow); }
    .nav__cta { margin-top: 22px; padding: 16px; }
    .card-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .layout-aside { grid-template-columns: 1fr; }
    .aside-cta { position: static; }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .about, .why, .contact, .project-row, .enquiry { grid-template-columns: 1fr; }
    .project-row:nth-child(even) .project-row__media { order: 0; }
    .why__media { aspect-ratio: 4 / 3; }
    .stats { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .steps__line { display: none; }
    .hero__stat:nth-child(n + 4) { display: none; }
    .hero__dots { display: none; }
    .hero__foot { justify-content: center; }
    .collage { max-width: 520px; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; padding-bottom: 62px; }
    .card-grid, .quotes, .quote-card__row { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 0; padding: 15px 12px; font-size: .88rem; }
    .hero__stats { width: 100%; justify-content: space-between; gap: 10px; }
    .hero__stat { flex-direction: column; gap: 3px; align-items: flex-start; }
    .hero__stat span { font-size: .68rem; }
    .cta-band__actions, .cta-band__actions .btn { width: 100%; }
    .mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.3fr; box-shadow: 0 -10px 30px -12px rgba(16, 26, 59, .5); }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 62px; font: 800 .88rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
    .mobile-bar a:first-child { background: var(--navy-900); color: var(--white); }
    .mobile-bar a:last-child { background: var(--yellow); color: var(--navy-900); }
    .mobile-bar svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    @view-transition { navigation: none; }
}
