/* ==========================================================================
   SALTIRE SKETCH — DESIGN SYSTEM
   Palette: ink slate, off-white, charcoal, cool architectural grey, verdigris,
   a single restrained Scottish blue used only as a line/accent, never a fill.
   Type: Fraunces (display + nav) + Inter (body, buttons, labels)
   Signature: hand-drawn blueprint elevation that draws itself in on load,
   and architectural "dimension lines" used as section dividers/eyebrows.
   ========================================================================== */

/* Self-hosted fonts (see /assets/fonts). Both are variable-weight files
   covering the whole range this site uses in a single request each, so
   there's no Google Fonts round trip and no separate file per weight. */
@font-face{
  font-family:'Fraunces';
  font-style:normal;
  font-weight:400 600;
  font-display:swap;
  src:url('/assets/fonts/fraunces-variable.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 600;
  font-display:swap;
  src:url('/assets/fonts/inter-variable.woff2') format('woff2');
}

:root{
  --navy:        #20262B;
  --navy-2:      #2A3138;
  --paper:       #F5F5F3;
  --paper-2:     #E3E7E1;
  --charcoal:    #1C1F1D;
  --grey:        #B9C0BC;
  --grey-line:   #D2D6D2;
  --sandstone:   #649B8C;
  --sandstone-text: #3C5D54;
  --muted:       #565F5A;
  --blue:        #4E7290;
  --white:       #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --gutter: 24px;

  --radius: 2px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--charcoal);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.1;
  margin:0 0 .5em;
  color:var(--navy);
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.4rem,5vw,4.4rem); font-weight:500; }
h2{ font-size:clamp(1.9rem,3.4vw,2.8rem); }
h3{ font-size:clamp(1.25rem,2vw,1.6rem); }
p{ margin:0 0 1em; }

.container{ max-width:var(--container); margin:0 auto; padding:0 var(--gutter); }

/* -------------------- Eyebrow / technical labels -------------------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--sandstone-text);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:28px; height:1px;
  background:var(--sandstone);
  display:inline-block;
}
.hero .eyebrow, .section-navy .eyebrow{ color:var(--sandstone); }

/* dimension-line divider - architectural drawing convention */
.dim-line{
  display:flex; align-items:center; gap:8px;
  color:var(--muted);
  font-family:var(--font-mono);
  font-size:.7rem;
  margin:0 0 40px;
}
.dim-line::before,.dim-line::after{ content:""; flex:1; height:1px; background:var(--grey-line); }

/* -------------------- Buttons -------------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:15px 26px;
  border:1px solid transparent;
  border-radius:var(--radius);
  cursor:pointer;
  transition:all .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--navy); color:var(--paper); }
.btn-primary:hover{ background:var(--sandstone); color:var(--navy); }
.hero .btn-primary, .section-navy .btn-primary, .mobile-cta-bar .btn-primary{ border-color:rgba(245,245,243,.4); }
.hero .btn-primary:hover, .section-navy .btn-primary:hover, .mobile-cta-bar .btn-primary:hover{ border-color:var(--sandstone); }
.btn-secondary{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-secondary:hover{ background:var(--navy); color:var(--paper); }
.btn-ghost{ background:transparent; color:var(--paper); border-color:rgba(245,245,243,.4); }
.btn-ghost:hover{ border-color:var(--sandstone); color:var(--sandstone); }
.btn-arrow{ transition:transform .25s var(--ease); }
.btn:hover .btn-arrow{ transform:translateX(3px); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--sandstone);
  outline-offset:3px;
}

/* -------------------- Header / Nav -------------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(245,245,243,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--grey-line);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; height:86px; }
.logo{ font-family:var(--font-display); font-size:1.6rem; font-weight:600; color:var(--navy); display:flex; align-items:center; gap:10px; }
.logo .mark{ color:var(--sandstone); }
.logo-icon{ height:46px; width:auto; display:block; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{ font-family:var(--font-display); font-size:1.02rem; color:var(--navy); position:relative; padding:4px 0; }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--sandstone);
  transition:width .25s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-dropdown{ position:relative; }
.nav-dropdown-menu{
  position:absolute; top:100%; left:0; margin-top:10px;
  min-width:230px; z-index:110;
  background:var(--paper); border:1px solid var(--grey-line); border-radius:var(--radius);
  box-shadow:0 16px 32px rgba(32,38,43,.12);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  display:flex; flex-direction:column; overflow:hidden;
}
.nav-dropdown-menu a{
  font-family:var(--font-display); font-size:.96rem; color:var(--navy);
  padding:10px 16px; border-bottom:1px solid var(--grey-line);
}
.nav-dropdown-menu a:last-child{ border-bottom:none; }
.nav-dropdown-menu a:hover{ background:#DCEAE5; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-cta{ font-family:var(--font-mono); font-size:.76rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; background:var(--navy); color:var(--paper); padding:12px 20px; border-radius:var(--radius); }
.nav-cta:hover{ background:var(--sandstone); color:var(--navy); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; transition:.25s; }

.mobile-panel{ display:none; }

@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav-cta.desktop-only{ display:none; }
  .nav-toggle{ display:block; }
  .mobile-panel{
    display:block; position:fixed; top:0; right:0; bottom:0; left:0; background:var(--paper);
    transform:translateX(100%); transition:transform .3s var(--ease); z-index:99;
    overflow-y:auto;
  }
  .mobile-panel.open{ transform:translateX(0); }
  .mobile-panel-inner{ padding:calc(86px + 32px) var(--gutter) 32px; display:flex; flex-direction:column; gap:26px; min-height:100%; }
  .mobile-panel a{ font-family:var(--font-display); font-size:1.5rem; color:var(--navy); }
  .mobile-panel .btn{ align-self:flex-start; }
  .mobile-panel .btn-primary{ background:var(--sandstone); color:var(--navy); }
  .mobile-panel .btn-primary:hover{ background:var(--navy); color:var(--paper); }
}

/* sticky mobile quote bar */
.mobile-cta-bar{ display:none; }
@media (max-width:900px){
  .mobile-cta-bar{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:98;
    background:var(--navy); padding:12px var(--gutter);
    padding-bottom:calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-cta-bar a{ flex:1; text-align:center; }
  body{ padding-bottom:64px; }
}

/* -------------------- Hero -------------------- */
.hero{
  position:relative;
  background:var(--navy);
  color:var(--paper);
  overflow:hidden;
  padding:100px 0 90px;
}
@media (max-width:900px){ .hero{ padding:56px 0 60px; } }
.hero h1{ color:var(--paper); }
.hero .lede{ font-size:1.15rem; color:#CDD3CE; max-width:46ch; margin-bottom:34px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-text{ max-width:900px; }
.hero-text .lede, .hero-text .hero-ctas{ max-width:640px; }
.hero-media h1{ font-size:clamp(2.2rem,4.2vw,3.6rem); }

/* hero background video: scoped to .hero-media (the text block) only, not
   the full hero section, so it never reaches down into the trust strip.
   On mobile it's a dim full-bleed backdrop behind the text; on desktop it's
   confined to the right side, clear of the text, and shown at much fuller
   visibility since it no longer needs to fight for contrast with anything
   sitting on top of it */
.hero-media{ position:relative; }
.hero-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:0;
  opacity:.4; filter:saturate(.55) brightness(.85);
}
.hero-video-overlay{
  position:absolute; inset:0; z-index:1;
  background:rgba(32,38,43,.9);
}
.hero-media > .container{ position:relative; z-index:2; }
@media (prefers-reduced-motion: reduce){ .hero-video{ display:none; } }

@media (min-width:900px){
  .hero-video{
    left:auto; right:0; width:48%;
    opacity:.9; filter:saturate(.8) brightness(1);
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, black 18%);
    mask-image:linear-gradient(90deg, transparent 0%, black 18%);
  }
  .hero-video-overlay{
    background:linear-gradient(90deg, rgba(32,38,43,1) 0%, rgba(32,38,43,1) 48%, rgba(32,38,43,.15) 66%, rgba(32,38,43,0) 80%);
  }
}

/* trust strip */
.trust-strip{ border-top:1px solid rgba(245,245,243,.14); margin-top:66px; padding-top:30px; }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:760px){ .trust-grid{ grid-template-columns:repeat(2,1fr); } }
.trust-item{ font-family:var(--font-mono); font-size:.78rem; letter-spacing:.03em; color:#BCC2BD; display:flex; align-items:center; gap:10px; }
.trust-item::before{ content:"—"; color:var(--sandstone); }

/* Areas We Cover hero: a small line-drawn map of Scotland (background already
   removed from the source image) sitting to the right of the text. */
.hero-map-img{ display:none; }
@media (min-width:900px){
  .hero-map-row{ display:grid; grid-template-columns:1fr auto; gap:40px; align-items:center; }
  .hero-map-img{ display:block; width:auto; height:auto; max-height:340px; max-width:420px; }
}

/* -------------------- Sections -------------------- */
.section{ padding:96px 0; }
.section-tight{ padding:64px 0; }
.section-navy{ background:var(--navy); color:var(--paper); }
.section-navy h2{ color:var(--paper); }
.section-paper2{ background:var(--paper-2); }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* -------------------- Cards: services -------------------- */
.service-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--grey-line); border:1px solid var(--grey-line); }
@media (max-width:1100px){ .service-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .service-grid{ grid-template-columns:1fr; } }
.service-card{ background:var(--paper); padding:44px 36px; display:flex; flex-direction:column; min-height:340px; transition:background .3s var(--ease); }
.service-card:hover{ background:#DCEAE5; }
.service-num{ font-family:var(--font-mono); font-weight:600; color:var(--sandstone-text); font-size:.78rem; margin-bottom:26px; }
.service-card h3{ margin-bottom:14px; }
.service-card p{ color:#454A46; flex:1; }
.service-link{ font-family:var(--font-mono); font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; display:inline-flex; align-items:center; gap:8px; color:var(--navy); margin-top:18px; }
.service-card:hover .service-link{ color:var(--sandstone-text); }

/* -------------------- Process steps -------------------- */
/* steps run left-to-right in a row rather than stacking, so a short intro
   next to them doesn't leave a tall block of empty space underneath it */
.process-list{ display:grid; grid-template-columns:repeat(5,1fr); gap:28px; }
@media (max-width:900px){ .process-list{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .process-list{ grid-template-columns:1fr; } }
.process-item{ display:block; border-top:2px solid var(--sandstone); padding:20px 0 0; }
.process-num{ font-family:var(--font-mono); font-weight:600; font-size:1.6rem; color:var(--sandstone); margin-bottom:14px; display:block; }
.process-item h3{ color:var(--paper); margin-bottom:8px; font-size:1.05rem; }
.process-item p{ color:#BCC2BD; }
.process-intro{ max-width:760px; margin-bottom:48px; }

/* -------------------- Why / benefits -------------------- */
.benefit-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:36px 48px; }
@media (max-width:760px){ .benefit-grid{ grid-template-columns:1fr; } }
.benefit{ padding-left:24px; border-left:2px solid var(--sandstone); }
.benefit h3{ margin-bottom:8px; font-size:1.15rem; }
.benefit p{ color:#454A46; margin:0; }

/* before/after example plans, shown small side by side under intro copy */
.alterations-example{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; align-items:end; }
.alterations-example img{ width:100%; height:211px; max-width:100%; object-fit:contain; object-position:bottom; }
.alterations-example.is-large img{ height:236px; }

/* -------------------- Testimonials -------------------- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:900px){ .testi-grid{ grid-template-columns:1fr; } }
.testi-card{ background:var(--white); border:1px solid var(--grey-line); padding:32px; display:flex; flex-direction:column; gap:18px; }
.testi-quote{ font-family:var(--font-display); font-size:1.15rem; color:var(--navy); flex:1; }
.testi-meta{ font-family:var(--font-mono); font-size:.74rem; color:var(--muted); letter-spacing:.03em; }
.testi-placeholder-flag{ font-family:var(--font-mono); font-weight:600; font-size:.65rem; text-transform:uppercase; letter-spacing:.08em; color:var(--sandstone-text); background:#DCEAE5; padding:4px 8px; align-self:flex-start; }

/* Reviews section: distinct cool sage-mist wash instead of the shared
   paper-2 tan tone, so it doesn't clash with the slate/verdigris system */
.section-reviews{ background:#E3E7E1; }

/* -------------------- Project grid -------------------- */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:44px; }
.filter-btn{ font-family:var(--font-mono); font-size:.74rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; padding:9px 16px; border:1px solid var(--grey-line); background:transparent; cursor:pointer; color:var(--navy); }
.filter-btn.active{ background:var(--navy); color:var(--paper); border-color:var(--navy); }
.filter-btn:hover{ background:var(--sandstone); color:var(--navy); border-color:var(--sandstone); }
.project-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
@media (max-width:900px){ .project-grid{ grid-template-columns:1fr; } }
.project-card{ display:block; }
.project-thumb{ aspect-ratio:4/3; background:var(--paper-2); position:relative; overflow:hidden; margin-bottom:16px; }
.project-thumb svg{ width:100%; height:100%; }
.project-card h3{ font-size:1.1rem; margin-bottom:4px; }
.project-meta{ font-family:var(--font-mono); font-size:.75rem; color:var(--muted); }
.project-card[hidden]{ display:none; }

/* -------------------- FAQ -------------------- */
.faq-item{ border-top:1px solid var(--grey-line); }
.faq-item:last-child{ border-bottom:1px solid var(--grey-line); }
.faq-q{ width:100%; text-align:left; background:none; border:none; padding:24px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; cursor:pointer; font-family:var(--font-display); font-size:1.05rem; color:var(--navy); }
.faq-q .plus{ font-family:var(--font-mono); font-weight:600; font-size:1.2rem; color:var(--sandstone-text); flex-shrink:0; transition:transform .25s var(--ease); }
.faq-item[open] .plus{ transform:rotate(45deg); }
.faq-a{ padding:0 0 24px; color:#454A46; max-width:70ch; }

/* -------------------- Forms -------------------- */
.field{ margin-bottom:22px; }
.field label{ display:block; font-family:var(--font-mono); font-weight:600; font-size:.74rem; text-transform:uppercase; letter-spacing:.05em; color:var(--navy); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; padding:14px 16px; border:1px solid var(--grey-line); background:var(--white);
  font-family:var(--font-body); font-size:1rem; color:var(--charcoal); border-radius:var(--radius);
}
.field textarea{ resize:vertical; min-height:140px; }
.field .error{ color:#B0413E; font-size:.82rem; margin-top:6px; font-family:var(--font-mono); display:none; }
.field.invalid input,.field.invalid textarea{ border-color:#B0413E; }
.field.invalid .error{ display:block; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:600px){ .field-row{ grid-template-columns:1fr; } }

/* option cards for quote step 1 */
.option-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:700px){ .option-grid{ grid-template-columns:repeat(2,1fr); } }
.option-card{ border:1px solid var(--grey-line); padding:22px 16px; text-align:left; background:var(--white); cursor:pointer; transition:all .2s var(--ease); }
.option-card:hover{ border-color:var(--sandstone); }
.option-card.selected{ border-color:var(--navy); background:var(--navy); color:var(--paper); }
.option-card .opt-label{ font-family:var(--font-display); font-size:1.05rem; }

/* quote progress */
.quote-progress{ display:flex; gap:6px; margin-bottom:44px; }
.quote-progress span{ flex:1; height:3px; background:var(--grey-line); }
.quote-progress span.done{ background:var(--sandstone); }
.quote-step{ display:none; }
.quote-step.active{ display:block; }
.upload-drop{ border:1px dashed var(--grey); padding:44px 20px; text-align:center; font-family:var(--font-mono); font-size:.85rem; color:var(--muted); cursor:pointer; }
.upload-drop:hover{ border-color:var(--sandstone); }
.file-list{ margin-top:14px; font-family:var(--font-mono); font-size:.8rem; }
.file-list li{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--grey-line); }
.quote-nav{ display:flex; justify-content:space-between; margin-top:36px; }
.confirm-screen{ text-align:center; padding:60px 0; }
.confirm-mark{ width:56px; height:56px; border:1px solid var(--sandstone); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 24px; color:var(--sandstone-text); font-family:var(--font-mono); }

/* -------------------- Footer -------------------- */
.site-footer{ background:var(--navy); color:#FFFFFF; padding:76px 0 32px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr; gap:40px; margin-bottom:60px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
.footer-grid h4{ font-family:var(--font-mono); font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--sandstone); margin-bottom:18px; }
.footer-grid a{ display:block; color:#FFFFFF; font-size:.92rem; padding:6px 0; }
.footer-grid a:hover{ color:var(--sandstone); }
.footer-logo{ font-family:var(--font-display); font-size:1.3rem; color:var(--paper); margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.footer-logo .logo-icon{ height:27px; width:auto; display:block; }
.footer-bottom{ border-top:1px solid rgba(245,245,243,.14); padding-top:26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-family:var(--font-mono); font-size:.72rem; color:#8A9089; }

/* -------------------- Breadcrumb -------------------- */
.breadcrumb{ font-family:var(--font-mono); font-size:.74rem; color:var(--muted); padding:22px 0; }
.breadcrumb a:hover{ color:var(--sandstone-text); }

/* -------------------- Misc -------------------- */
.placeholder-note{ font-family:var(--font-mono); font-weight:600; font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:var(--sandstone-text); background:#DCEAE5; display:inline-block; padding:5px 10px; margin-bottom:10px; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
@media (max-width:860px){ .two-col{ grid-template-columns:1fr; gap:36px; } }
.stat{ font-family:var(--font-display); font-size:2.4rem; color:var(--navy); }
.stat-label{ font-family:var(--font-mono); font-weight:600; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* -------------------- Utilities --------------------
   Shared classes for patterns that were previously repeated as one-off
   inline styles across many pages. */
.text-center{ text-align:center; }
.btn-block{ width:100%; }
.footer-tagline{ max-width:32ch; font-size:.9rem; }
.cta-lede{ max-width:50ch; margin:0 auto 32px; color:var(--muted); }
.faq-list{ max-width:760px; }
.eyebrow.center{ justify-content:center; }
.hero-ctas.center{ justify-content:center; }
.dim-line.narrow{ max-width:600px; margin-top:20px; }
.plain-list{ color:var(--muted); padding-left:20px; margin-bottom:1em; }
.benefit-grid.single-col{ grid-template-columns:1fr; }
.on-navy-heading{ color:var(--paper); }
.on-navy-text{ color:#FFFFFF; }
.benefit p.on-navy-text{ color:#FFFFFF; }
.benefit.accent{ border-color:var(--sandstone); }
.project-thumb.wide{ aspect-ratio:16/7; margin-bottom:0; }

/* current-page nav indicator */
.nav-links a[aria-current="page"],
.mobile-panel a[aria-current="page"]{ color:var(--sandstone-text); }
.nav-links a[aria-current="page"]::after{ width:100%; }

/* pressed / active feedback */
.btn:active{ transform:scale(.97); }
.service-card:active,.option-card:active,.project-card:active{ transform:scale(.99); }
.filter-btn:active{ transform:scale(.96); }
@media (prefers-reduced-motion: reduce){
  .btn:active,.service-card:active,.option-card:active,.project-card:active,.filter-btn:active{ transform:none; }
}

/* subtle paper-grain texture on dark (navy) surfaces, to break up otherwise
   perfectly flat colour fields */
.hero, .section-navy, .site-footer{ position:relative; }
.hero::after, .section-navy::after, .site-footer::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:1;
  opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-media > .container, .hero > .trust-strip{ position:relative; z-index:2; }
.section-navy > .container{ position:relative; z-index:2; }
.site-footer > .container{ position:relative; z-index:2; }

/* -------------------- Chat widget -------------------- */
.chat-launcher{
  position:fixed; right:24px; bottom:24px; z-index:120;
  width:58px; height:58px; border-radius:50%;
  background:var(--navy); color:var(--paper); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(32,38,43,.28);
  transition:transform .2s var(--ease), background .2s var(--ease);
}
.chat-launcher:hover{ background:var(--sandstone); transform:translateY(-2px); }
.chat-launcher svg{ width:24px; height:24px; }
.chat-launcher .chat-close-icon{ display:none; }
.chat-launcher.open .chat-open-icon{ display:none; }
.chat-launcher.open .chat-close-icon{ display:block; }
.chat-badge{
  position:absolute; top:-2px; right:-2px; width:12px; height:12px; border-radius:50%;
  background:var(--sandstone); border:2px solid var(--paper);
}
@media (max-width:900px){ .chat-launcher{ bottom:84px; right:16px; width:52px; height:52px; } }

.chat-panel{
  position:fixed; right:24px; bottom:94px; z-index:119;
  width:360px; max-width:calc(100vw - 32px); height:min(520px, 72vh);
  background:var(--paper); border:1px solid var(--grey-line);
  box-shadow:0 20px 50px rgba(32,38,43,.22);
  display:flex; flex-direction:column; overflow:hidden;
  transform:translateY(12px) scale(.98); opacity:0; pointer-events:none;
  transition:all .22s var(--ease);
}
.chat-panel.open{ transform:none; opacity:1; pointer-events:auto; }
@media (max-width:900px){ .chat-panel{ bottom:148px; right:16px; } }

.chat-head{
  background:var(--navy); color:var(--paper); padding:18px 20px;
  display:flex; align-items:center; gap:12px; flex-shrink:0;
}
.chat-head-mark{
  width:34px; height:34px; border:1px solid var(--sandstone); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:.95rem; color:var(--sandstone); flex-shrink:0;
}
.chat-head-title{ font-family:var(--font-display); font-size:1rem; line-height:1.2; }
.chat-head-sub{ font-family:var(--font-mono); font-size:.68rem; color:#B9C2CC; text-transform:uppercase; letter-spacing:.05em; margin-top:2px; }

.chat-messages{
  flex:1; overflow-y:auto; padding:18px 16px; display:flex; flex-direction:column; gap:12px;
  background:var(--paper);
}
.chat-bubble{
  max-width:82%; padding:11px 14px; font-size:.9rem; line-height:1.45; border-radius:2px;
}
.chat-bubble.bot{ background:var(--paper-2); color:var(--charcoal); align-self:flex-start; border-left:2px solid var(--sandstone); }
.chat-bubble.user{ background:var(--navy); color:var(--paper); align-self:flex-end; }
.chat-bubble a{ color:var(--sandstone); text-decoration:underline; }
.chat-bubble.bot a{ color:var(--navy); font-weight:600; }

.chat-quick-replies{ display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 14px; flex-shrink:0; }
.chat-quick-replies button{
  font-family:var(--font-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.04em;
  padding:8px 12px; border:1px solid var(--grey-line); background:var(--white); color:var(--navy);
  cursor:pointer; border-radius:2px; transition:all .2s var(--ease);
}
.chat-quick-replies button:hover{ border-color:var(--sandstone); color:var(--sandstone-text); }

.chat-input-row{
  display:flex; gap:8px; padding:14px 16px; border-top:1px solid var(--grey-line); flex-shrink:0; background:var(--white);
}
.chat-input-row input{
  flex:1; border:1px solid var(--grey-line); padding:11px 12px; font-family:var(--font-body); font-size:.9rem; border-radius:2px;
}
.chat-input-row button{
  background:var(--navy); color:var(--paper); border:none; padding:0 16px; border-radius:2px; cursor:pointer;
  font-family:var(--font-mono); font-size:.72rem; text-transform:uppercase;
}
.chat-input-row button:hover{ background:var(--sandstone); }
.chat-typing{ display:flex; gap:4px; padding:4px 2px; }
.chat-typing span{ width:5px; height:5px; border-radius:50%; background:var(--grey); animation:chatTyping 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2){ animation-delay:.15s; }
.chat-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes chatTyping{ 0%,60%,100%{ opacity:.3; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }
@media (prefers-reduced-motion: reduce){ .chat-typing span{ animation:none; opacity:.7; } }
