/* =========================================================================
   Agile Construction, style.css
   Architectural studio aesthetic: editorial type, hairline grids, index marks.
   Display: Merriweather · Body: Inter · Labels & eyebrows: Lato
   ========================================================================= */

:root {
    /* type */
    --font-display: "Merriweather", Georgia, "Times New Roman", serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-label:   "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* colour */
    --navy:        #042C53;
    --blue:        #185FA5;
    --blue-light:  #378ADD;
    --ink:         #15212B;
    --muted:       #5A6670;
    --paper:       #FAF8F4;   /* warm off-white page */
    --paper-2:     #F2EFE9;   /* concrete block */
    --tint:        #E9F1F9;   /* cool light-blue block */
    --white:       #FFFFFF;
    --line:        rgba(21,33,43,.10);   /* soft hairline */
    --line-soft:   rgba(21,33,43,.06);

    /* soft, elegant elevation instead of hard black frames */
    --shadow-sm:   0 1px 2px rgba(4,44,83,.05), 0 4px 12px rgba(4,44,83,.05);
    --shadow:      0 2px 6px rgba(4,44,83,.06), 0 18px 40px rgba(4,44,83,.08);

    --radius:      10px;
    --maxw:        1280px;
    --pad:         clamp(1.1rem, 4vw, 3rem);
    --gap:         clamp(1rem, 2.4vw, 1.75rem);
}

/* ------------------------------ reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.62;
    font-size: 17px;
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.06;
    color: var(--navy);
    margin: 0 0 .5em;
    letter-spacing: -.022em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
strong { font-weight: 600; }

/* technical label / kicker / mono caption */
.kicker, .mono-cap, .shead__index, .card__index, .card__cat,
.eyebrow, .pill, .breadcrumb, .contact__label, .project__facts dt,
.steps__num, .site-nav, .card__cta, .arrow-link, .service-card__more,
.nav-cta {
    font-family: var(--font-label);
}

.kicker {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .76rem; text-transform: uppercase; letter-spacing: .18em;
    color: var(--blue); margin: 0 0 1.4rem; font-weight: 700;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.eyebrow {
    font-family: var(--font-label);
    text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700;
    color: var(--blue); margin: 0 0 1rem;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

/* ----------------------------- layout ---------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tint { background: var(--tint); }
.section--concrete { background: var(--paper-2); }

/* section head: mono index | title | optional action, over a refined rule.
   The rule is a soft hairline carrying a short blue accent tick (a drawing
   dimension marker) so section breaks feel detailed, not blunt. */
.shead {
    position: relative;
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 2rem;
    align-items: end; padding-top: 1.9rem; border-top: 1px solid var(--line);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.shead::before {
    content: ""; position: absolute; top: -1px; left: 0;
    width: 60px; height: 2px; background: var(--blue);
}
.shead__index { font-size: .78rem; color: var(--blue); padding-top: .3rem; letter-spacing: .08em; }
.shead__main { max-width: 30ch; }
.shead__main p { color: var(--muted); margin: .7rem 0 0; font-size: 1.02rem; }
.shead .arrow-link { align-self: center; white-space: nowrap; }

/* ----------------------------- buttons --------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1;
    padding: 1rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--navy);
    background: var(--navy); color: #fff; cursor: pointer; text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.02rem; }
.btn--small { padding: .7rem 1.05rem; font-size: .9rem; }

/* underlined arrow link (mono) */
.arrow-link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
    color: var(--navy); padding-bottom: .25rem;
    border-bottom: 1px solid var(--ink);
}
.arrow-link:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.arrow-link::after { content: "\2192"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------------------------- site header ------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); }
.brand__mark { display: inline-flex; }
.brand__mark img { width: 36px; height: 36px; object-fit: contain; display: block; }
.brand:hover { text-decoration: none; }
.brand__text { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__text strong { font-weight: 700; }

.site-nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; }
.site-nav a {
    display: inline-block; padding: .55rem .85rem; border-radius: var(--radius);
    color: var(--ink); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav a.is-active { color: var(--blue); }
.site-nav__cta { margin-left: .6rem; }
.site-nav__cta a { background: var(--navy); color: #fff; border-radius: var(--radius); }
.site-nav__cta a:hover { background: var(--blue); color: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--navy); transform: translate(-50%,-50%); transition: .2s ease; }
.nav-toggle__bar::before { transform: translate(-50%,-7px); }
.nav-toggle__bar::after  { transform: translate(-50%,5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translate(-50%,-1px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translate(-50%,-1px) rotate(-45deg); }

/* -------------------------------- hero --------------------------------- */
.hero { overflow: hidden; }

/* ------------------------------ hero slider ----------------------------- */
/* Splide structural CSS (splide-core) handles track/list mechanics; these
   rules supply all the visual styling for the slides. */
.hero-slider { position: relative; }
/* Fallback for before Splide mounts (and if the CDN ever fails): collapse to a
   single static hero showing the first slide. The extra specificity keeps these
   winning over splide-core until JS adds .is-active. */
.hero-slider:not(.is-active) .splide__list { display: block; }
.hero-slider:not(.is-active) .splide__slide { display: none; }
.hero-slider:not(.is-active) .splide__slide:first-child { display: block; }
.hero-slider:not(.is-active) .hero-slide { min-height: clamp(480px, 74vh, 720px); }

.hero-slide { position: relative; overflow: hidden; }
.hero-slide__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
/* Navy scrim so light text stays legible over any image. */
.hero-slide__scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(4,44,83,.92) 0%, rgba(4,44,83,.72) 45%, rgba(4,44,83,.35) 100%);
}
.hero-slide__inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.1rem;
    min-height: clamp(480px, 74vh, 720px);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.kicker--light { color: var(--blue-light); }
.kicker--light::before { background: var(--blue-light); }
.hero-slide__title {
    font-family: var(--font-display); color: #fff; font-weight: 500;
    font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em;
    max-width: 18ch; margin: 0;
}
.hero-slide__lead {
    color: rgba(255,255,255,.88); font-size: clamp(1.02rem, 2.2vw, 1.2rem);
    max-width: 46ch; margin: 0;
}
.hero-slide__actions { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
/* On the dark hero a navy button vanishes, use a white button instead. */
.hero-slide__actions .btn { background: #fff; border-color: #fff; color: var(--navy); }
.hero-slide__actions .btn:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--navy); }
.arrow-link--light { color: #fff; }
.arrow-link--light:hover { color: var(--blue-light); border-color: var(--blue-light); }

/* Pagination dots + prev/next arrows (Splide markup, themed here). */
.hero-slider .splide__pagination {
    position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vw, 1.6rem); z-index: 3;
    display: flex; justify-content: center; gap: .6rem; padding: 0; margin: 0; list-style: none;
}
.hero-slider .splide__pagination li { line-height: 0; }
.hero-slider .splide__pagination__page {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.45); transition: background .2s ease, transform .2s ease;
}
.hero-slider .splide__pagination__page.is-active { background: #fff; transform: scale(1.25); }
.hero-slider .splide__arrows { position: static; }
.hero-slider .splide__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.16); color: #fff;
    display: grid; place-items: center; transition: background .2s ease;
}
.hero-slider .splide__arrow:hover { background: rgba(255,255,255,.3); }
.hero-slider .splide__arrow svg { width: 18px; height: 18px; fill: currentColor; }
/* splide-core ships no theme, so flip the prev arrow to point left */
.hero-slider .splide__arrow--prev svg { transform: scaleX(-1); }
.hero-slider .splide__arrow--prev { left: clamp(.6rem, 2vw, 1.4rem); }
.hero-slider .splide__arrow--next { right: clamp(.6rem, 2vw, 1.4rem); }
@media (max-width: 640px) { .hero-slider .splide__arrow { display: none; } }

/* ------------------------------ page head ------------------------------ */
.page-head { border-bottom: 1px solid var(--line); padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.page-head__lead { font-size: 1.18rem; color: var(--muted); max-width: 52ch; margin: 1.4rem 0 0; }

/* --------------------------- service cards (home) ---------------------- */
.service-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card {
    display: flex; flex-direction: column; gap: .5rem; padding: clamp(1.6rem, 3vw, 2.2rem);
    background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
/* Full-bleed banner: negative margins pull it out to the card edges. */
.service-card__media {
    display: block; overflow: hidden; background: var(--tint);
    margin: calc(-1 * clamp(1.6rem, 3vw, 2.2rem)) calc(-1 * clamp(1.6rem, 3vw, 2.2rem)) .4rem;
    aspect-ratio: 16 / 9;
}
.service-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__no { font-family: var(--font-label); font-size: .78rem; color: var(--blue); letter-spacing: .06em; font-weight: 700; }
.service-card h3 { font-size: 1.4rem; margin: .15rem 0 0; }
.service-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.service-card__more { margin-top: auto; padding-top: 1.2rem; color: var(--navy); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; display: inline-flex; gap: .5rem; }
.service-card:hover .service-card__more { color: var(--blue); }

/* ----------------------------- card grid ------------------------------- */
.card-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem) var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); counter-reset: card; }

.card { counter-increment: card; background: transparent; }
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.card__link:hover { text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease; }
.card__link:hover .card__media { box-shadow: var(--shadow); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s ease; filter: saturate(1.02); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__tag { position: absolute; top: 0; left: 0; z-index: 2; background: var(--navy); color: #fff; font-family: var(--font-label); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .7rem; }
.card__tag--inline { position: static; display: inline-block; }

.card__body { padding: 1rem .1rem 0; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__top { display: flex; align-items: baseline; gap: .8rem; }
.card__index { font-size: .76rem; color: var(--blue); letter-spacing: .05em; }
.card__index::before { content: counter(card, decimal-leading-zero); }
.card__cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin: .1rem 0 0; color: var(--navy); }
.card__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.card__cta { margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--navy); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }
.card__link:hover .card__cta { color: var(--blue); }
.card__cta::after { content: "\2192"; transition: transform .15s ease; }
.card__link:hover .card__cta::after { transform: translateX(4px); }

.card-grid__empty { text-align: center; color: var(--muted); padding: 3rem 1rem; font-family: var(--font-label); }

/* ----------------------------- filter bar ------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pill {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid var(--line); background: transparent; color: var(--ink);
    padding: .6rem 1.05rem; border-radius: var(--radius);
    font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
    cursor: pointer; transition: .14s ease;
}
.pill:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill__count { font-size: .68rem; opacity: .65; }
.pill.is-active .pill__count { opacity: .85; }

.card-grid[data-filter="estimates"] .card:not([data-category="estimates"]),
.card-grid[data-filter="render"]    .card:not([data-category="render"]),
.card-grid[data-filter="permit"]    .card:not([data-category="permit"]) { display: none; }

/* ---------------------------- service detail --------------------------- */
.service-detail { display: flex; flex-direction: column; }
.service-detail__row { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.4rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.service-detail__no { font-family: var(--font-label); font-size: .8rem; color: var(--blue); letter-spacing: .08em; }
.service-detail__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 13px; background: var(--tint); color: var(--blue);
}
.service-detail__icon .icon { width: 28px; height: 28px; }
.service-detail__intro h2 { margin: .8rem 0 1rem; }
.service-detail__lead { font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 1.3rem; line-height: 1.25; }
.service-detail__intro p:not(.service-detail__lead) { color: var(--muted); }
.service-detail__list { list-style: none; display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.service-detail__list li { position: relative; padding: .85rem 0 .85rem 2.4rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.service-detail__list li::before { content: counter(svc, decimal-leading-zero); counter-increment: svc; position: absolute; left: 0; top: .9rem; font-family: var(--font-label); font-size: .72rem; color: var(--blue); }
.service-detail__list { counter-reset: svc; }

/* -------------------------------- steps -------------------------------- */
.steps { list-style: none; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps__item { padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--white); border-radius: var(--radius); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--tint); color: var(--blue); font-family: var(--font-label); font-weight: 900; font-size: .95rem; margin-bottom: 1.2rem; letter-spacing: .02em; }
.steps__item h3 { margin-bottom: .4rem; font-size: 1.2rem; }
.steps__item p { color: var(--muted); margin: 0; font-size: .96rem; }
.steps__note { margin-top: 1.8rem; color: var(--muted); }

/* ------------------------------ process -------------------------------- */
.process { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); list-style: none; }
.process__step { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.process__icon-wrap { position: relative; margin-bottom: .5rem; }
.process__icon { width: 72px; height: 72px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--blue); }
.process__icon svg { width: 36px; height: 36px; }
.process__no {
    position: absolute; top: -10px; left: -10px; width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy); color: #fff; font-family: var(--font-label); font-weight: 700; font-size: .84rem;
    display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--paper-2);
}
.process__step h3 { margin: 0; font-size: 1.18rem; }
.process__step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ------------------------------ tools (capability + image) ------------- */
.tools { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: stretch; }
.tools__main { display: flex; flex-direction: column; }
/* The capability list: tech stack on the left, each item with a line icon. */
.tools__list {
    display: grid; gap: clamp(.7rem, 1.6vw, 1rem);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); list-style: none;
}
.tool {
    display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem;
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool__icon {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tint); color: var(--blue);
}
.tool__icon .icon { width: 24px; height: 24px; }
.tool__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.tool__name { font-family: var(--font-display); font-weight: 500; font-size: 1.04rem; color: var(--navy); letter-spacing: -.01em; }
.tool__use { font-family: var(--font-label); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* The image placeholder on the right. */
.tools__media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-sm); min-height: 280px; }
.tools__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --------------------------------- CTA --------------------------------- */
/* Light cool-blue banner with a faint architectural grid wash, shared by every page. */
.cta { position: relative; overflow: hidden; background: var(--tint); color: var(--ink); border-top: 0; }
.cta::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(4,44,83,.05) 1px, transparent 1px);
    background-size: 100% 2.6rem;
    -webkit-mask-image: linear-gradient(transparent, #000 60%);
            mask-image: linear-gradient(transparent, #000 60%);
}
.cta .container { position: relative; z-index: 1; }   /* keep content above the wash */
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; flex-wrap: wrap; padding-block: clamp(3rem, 6vw, 5rem); }
.cta h2 { color: var(--navy); line-height: 1.14; margin: 0 0 .5rem; max-width: 18ch; }
.cta p { color: var(--muted); margin: 0; }
.cta .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Home CTA: richer, editorial layout on the shared light banner. */
.cta-home__inner { display: grid; gap: clamp(2.2rem, 5vw, 4rem); padding-block: clamp(3.5rem, 7vw, 6rem); align-items: center; }
.cta-home__lead { max-width: 46ch; }
.cta--home h2 { color: var(--navy); line-height: 1.16; font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20ch; margin: .8rem 0 0; }
.cta-home__sub { color: var(--muted); font-size: 1.1rem; margin: 1.2rem 0 0; }
.cta-home__actions { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2rem); flex-wrap: wrap; margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.cta--home .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta--home .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.cta-home__phone { display: inline-flex; flex-direction: column; gap: .15rem; color: var(--navy); line-height: 1.15; }
.cta-home__phone:hover { text-decoration: none; }
.cta-home__phone-label { font-family: var(--font-label); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.cta-home__phone-num { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -.01em; }
.cta-home__phone:hover .cta-home__phone-num { text-decoration: underline; text-underline-offset: 3px; }

.cta-home__points { list-style: none; display: grid; align-content: start; border-top: 1px solid var(--line); }
.cta-home__points li { display: grid; gap: .25rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.cta-home__points strong { font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 1.12rem; }
.cta-home__points span { color: var(--muted); font-size: .96rem; }

/* ------------------------------ breadcrumb ----------------------------- */
.breadcrumb { border-bottom: 1px solid var(--line); font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb .container { display: flex; gap: .6rem; align-items: center; padding-block: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-hidden] { color: var(--line); }
.breadcrumb [aria-current] { color: var(--navy); }

/* ------------------------------- project ------------------------------- */
.project__grid { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); padding-block: clamp(2.4rem, 5vw, 3.6rem); align-items: start; }
.project__head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .8rem 0 1.2rem; }
.project__meta { font-family: var(--font-label); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 1.4rem; }
.project__desc { font-size: 1.12rem; color: var(--muted); }
.project__facts { display: flex; gap: 0; flex-wrap: wrap; margin: 1.8rem 0; border-top: 1px solid var(--line); }
.project__facts div { padding: 1rem 2rem 1rem 0; }
.project__facts dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.project__facts dd { margin: .3rem 0 0; font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 1.05rem; }
.project__hero { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.project__hero img { width: 100%; }

.project__sample { background: var(--paper-2); border-block: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.project__sample-title { margin-bottom: 1.4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.project__sample-note { margin-top: 1rem; font-family: var(--font-label); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.project__sample-note a { color: var(--navy); }

.pdf-viewer { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.pdf-viewer__frame { width: 100%; height: min(82vh, 900px); border: 0; display: block; }
.pdf-viewer__fallback { padding: 3rem 1.5rem; text-align: center; }
.pdf-viewer__fallback p { color: var(--muted); }

.image-sample { margin: 0; }
.image-sample__btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--white); position: relative; box-shadow: var(--shadow-sm); }
.image-sample__hint { position: absolute; bottom: 0; right: 0; background: var(--navy); color: #fff; padding: .4rem .7rem; font-family: var(--font-label); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }

.project__nav { padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.project__nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: center; }
.project__nav-link { display: flex; flex-direction: column; gap: .3rem; color: var(--ink); }
.project__nav-link span { font-family: var(--font-label); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.project__nav-link strong { font-family: var(--font-display); font-weight: 500; color: var(--navy); }
.project__nav-link:hover { text-decoration: none; }
.project__nav-link:hover strong { color: var(--blue); }
.project__nav-link--next { text-align: right; }
.project__nav-all { justify-self: center; font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--navy); }

/* -------------------------------- forms -------------------------------- */
.contact { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.form__row { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.form__grid { display: grid; gap: 0 1.4rem; grid-template-columns: 1fr 1fr; }
.form label { font-family: var(--font-label); font-weight: 700; color: var(--navy); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.form .req { color: var(--blue); }
.form .muted { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: .9rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
    transition: border-color .14s ease, box-shadow .14s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(4,44,83,.12); }
.form [aria-invalid="true"] { border-color: #B23A2E; }
.form__err { color: #B23A2E; font-size: .85rem; margin: 0; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.form__fineprint { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border: 1px solid; border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; }
.alert h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.alert--ok { background: #ECF6EF; border-color: #BBE0C8; }
.alert--ok h2 { color: #1E7B45; }
.alert--err { background: #FBECE9; border-color: #EEC4BC; color: #8E2A1E; }

.contact__aside { background: var(--navy); color: rgba(255,255,255,.82); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); }
.contact__aside h2 { color: #fff; font-size: 1.3rem; }
.contact__aside h3 { color: #fff; font-size: 1rem; }
.contact__aside a { color: #fff; }
.contact__list { list-style: none; display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-light); font-weight: 700; margin-bottom: .25rem; }
.contact__promise { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.4rem; }
.contact__promise ul { list-style: none; display: grid; gap: .55rem; }
.contact__promise li { position: relative; padding-left: 1.4rem; color: rgba(255,255,255,.8); font-size: .95rem; }
.contact__promise li::before { content: "\2192"; position: absolute; left: 0; color: var(--blue-light); }

/* ------------------------------- footer -------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); }
.site-footer__inner { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__heading { font-family: var(--font-label); color: var(--blue-light); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; font-family: var(--font-label); font-size: .82rem; }
.brand--footer .brand__text { color: #fff; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 500; }
.site-footer__tagline { color: rgba(255,255,255,.55); font-size: .92rem; margin-top: .8rem; max-width: 32ch; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.16); font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer__bar .container { padding-block: 1.2rem; }
.site-footer__bar p { margin: 0; color: rgba(255,255,255,.5); }

/* ------------------------------ lightbox ------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7,18,30,.94); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 92vh; border: 1px solid rgba(255,255,255,.2); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.12); }

/* ------------------------------- about --------------------------------- */
.about-intro { display: grid; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: center; }
.about-intro__body p { color: var(--muted); font-size: 1.04rem; }
.about-intro__body p:first-child { color: var(--ink); font-size: 1.18rem; }
.about-intro__body p:last-child { margin-bottom: 0; }
.about-intro__media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }

.stats { list-style: none; display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { border-top: 2px solid var(--blue); padding-top: 1.1rem; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stat__label { display: block; font-family: var(--font-label); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-top: .7rem; max-width: 22ch; }

.values { list-style: none; display: grid; gap: clamp(1.2rem, 2.4vw, 1.8rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.value { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.value__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.value h3 { color: var(--navy); margin-bottom: .5rem; }
.value p { color: var(--muted); margin: 0; font-size: .98rem; }

.gallery { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem) var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--paper-2); }
.gallery figcaption { font-size: .94rem; color: var(--muted); margin-top: .9rem; }
.gallery figcaption strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; color: var(--navy); margin-bottom: .25rem; }

/* ---------------------------- responsive ------------------------------- */
@media (min-width: 800px) {
    .about-intro { grid-template-columns: 1.05fr .95fr; }
    .cta-home__inner { grid-template-columns: 1.35fr .65fr; }
    .cta-home__points { border-left: 1px solid rgba(255,255,255,.2); border-top: 0; padding-left: clamp(2rem, 4vw, 3.5rem); }
    .cta-home__points li:first-child { padding-top: 0; }
    .project__grid { grid-template-columns: 1.05fr .95fr; }
    .tools { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
    .tools__list { margin-top: auto; }
    .contact { grid-template-columns: 1.6fr 1fr; }
    .service-detail__row { grid-template-columns: 12ch 1fr 1fr; align-items: start; }
    .site-footer__inner { grid-template-columns: 2fr 1fr 1.3fr; }
}

@media (max-width: 799px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: 74px 0 auto 0; background: var(--paper);
        border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden;
        transition: max-height .25s ease; visibility: hidden;
    }
    .site-nav.is-open { max-height: 85vh; visibility: visible; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1rem; }
    .site-nav a { padding: 1rem .2rem; border-bottom: 1px solid var(--line); }
    .site-nav__cta { margin: .8rem 0 0; }
    .site-nav__cta a { text-align: center; border: 1px solid var(--navy); }
    .shead { grid-template-columns: 1fr; gap: .8rem; }
    .shead .arrow-link { justify-self: start; }
    .project__nav-inner { grid-template-columns: 1fr; }
    .project__nav-link--next { text-align: left; }
    .project__nav-all { justify-self: start; }
    .form__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* =========================================================================
   FAQ chat widget (assets/js/chatbot.js, includes/chatbot.php)
   ========================================================================= */
.chat-widget {
    position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
    z-index: 1000; font-family: var(--font-body);
}

/* launcher */
.chat-fab {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .7rem 1.1rem .7rem .85rem; border: 0; cursor: pointer;
    background: var(--navy); color: var(--white);
    border-radius: 999px; box-shadow: var(--shadow);
    font-family: var(--font-label); font-weight: 700; font-size: .95rem;
    letter-spacing: -.01em; transition: transform .15s ease, background .15s ease;
}
.chat-fab:hover { background: var(--blue); transform: translateY(-1px); }
.chat-fab:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.chat-fab__icon { display: inline-flex; }
.chat-widget.is-open .chat-fab { display: none; }

/* panel */
.chat-panel {
    position: absolute; right: 0; bottom: 0;
    width: min(360px, calc(100vw - 2rem));
    height: min(540px, calc(100vh - 2rem));
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    animation: chat-in .18s ease;
}
/* The display:flex above would otherwise beat the [hidden] attribute, so the
   panel must explicitly collapse when hidden (same for the whole widget). */
.chat-widget[hidden], .chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chat-panel__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .95rem 1.1rem; background: var(--navy); color: var(--white);
}
.chat-panel__eyebrow {
    margin: 0; font-family: var(--font-label); font-weight: 700;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
    color: var(--blue-light);
}
.chat-panel__title { margin: .1rem 0 0; font-size: 1.15rem; color: var(--white); }
.chat-panel__close {
    display: inline-flex; padding: .35rem; border: 0; cursor: pointer;
    color: var(--white); background: transparent; border-radius: 6px; opacity: .85;
}
.chat-panel__close:hover { opacity: 1; background: rgba(255,255,255,.12); }
.chat-panel__close:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 1px; }

/* message log */
.chat-log {
    flex: 1; overflow-y: auto; padding: 1.1rem; display: flex;
    flex-direction: column; gap: .7rem; background: var(--paper);
}
.chat-msg { display: flex; flex-direction: column; gap: .4rem; max-width: 85%; }
.chat-msg--user { align-self: flex-end; align-items: flex-end; }
.chat-msg--bot  { align-self: flex-start; }

.chat-bubble {
    padding: .65rem .85rem; border-radius: 14px; font-size: .95rem;
    line-height: 1.5; box-shadow: var(--shadow-sm); white-space: pre-wrap;
}
.chat-msg--bot  .chat-bubble { background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg--user .chat-bubble { background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }

/* typing indicator */
.chat-bubble--typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-bubble--typing span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
    animation: chat-blink 1s infinite ease-in-out both;
}
.chat-bubble--typing span:nth-child(2) { animation-delay: .15s; }
.chat-bubble--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* answer CTAs + suggestion chips */
.chat-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-cta {
    display: inline-flex; padding: .45rem .8rem; border-radius: 999px;
    background: var(--tint); color: var(--navy); border: 1px solid var(--line);
    font-family: var(--font-label); font-weight: 700; font-size: .82rem;
    text-decoration: none;
}
.chat-cta:hover { background: var(--blue); color: var(--white); border-color: var(--blue); text-decoration: none; }

.chat-suggest { display: flex; flex-direction: column; gap: .4rem; align-self: stretch; margin-top: .2rem; }
.chat-suggest__chip {
    text-align: left; padding: .55rem .8rem; cursor: pointer;
    background: var(--white); color: var(--blue); border: 1px solid var(--line);
    border-radius: 10px; font-family: var(--font-body); font-size: .9rem;
    transition: border-color .15s ease, background .15s ease;
}
.chat-suggest__chip:hover { border-color: var(--blue); background: var(--tint); }
.chat-suggest__chip:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 1px; }

/* input row */
.chat-form {
    display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line);
    background: var(--white);
}
.chat-form__input {
    flex: 1; padding: .6rem .8rem; border: 1px solid var(--line);
    border-radius: 999px; font: inherit; font-size: .95rem; color: var(--ink);
    background: var(--paper);
}
.chat-form__input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.chat-form__send {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: 0 0 auto; border: 0; cursor: pointer;
    background: var(--navy); color: var(--white); border-radius: 50%;
}
.chat-form__send:hover { background: var(--blue); }
.chat-form__send:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

@media (max-width: 480px) {
    .chat-widget { right: 0; bottom: 0; left: 0; }
    .chat-fab { position: absolute; right: 1rem; bottom: 1rem; }
    .chat-panel {
        position: fixed; inset: 0; width: 100%; height: 100%;
        border: 0; border-radius: 0;
    }
}
