/* ==========================================================================
   DSTV Installations Simon's Town — shared stylesheet
   Palette: Naval Harbour & Brass (flat / solid — no gradients, glows or glass)
   ========================================================================== */

:root{
  --navy:#1B3A5B;
  --navy-light:#22456B;
  --navy-dark:#0E2033;
  --brass:#C8A24B;
  --brass-bright:#E7C56B;
  --brass-deep:#7A5D18;
  --brass-soft:#F1E7CC;
  --ink:#1F2A36;
  --ink-soft:#4A5A6E;
  --ink-faint:#566373;
  --surface:#F4F7FA;
  --wash:#E9EFF5;
  --white:#FFFFFF;
  --line:#DCE3EB;
  --line-strong:#C3CEDA;

  --font-display:"Bricolage Grotesque",Georgia,serif;
  --font-body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;

  /* spacing scale */
  --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem; --s-5:1.5rem;
  --s-6:2rem; --s-7:2.75rem; --s-8:3.5rem; --s-9:5rem;
  --section-pad:clamp(2.6rem,6vw,4.75rem);
  --head-gap:clamp(1.35rem,3.4vw,2.25rem);

  --radius-sm:6px;
  --radius:8px;
  --radius-lg:10px;

  --shadow-sm:0 1px 2px rgba(14,32,51,.06);
  --shadow-md:0 1px 3px rgba(14,32,51,.08),0 4px 12px -6px rgba(14,32,51,.14);
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:76px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.62;
  color:var(--ink);
  background:var(--surface);
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%}
a{color:var(--navy)}
a:hover{color:var(--brass-deep)}
:focus-visible{outline:3px solid var(--navy);outline-offset:2px;border-radius:3px}
.site-header :focus-visible,
.hero--harbour :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.contact-panel :focus-visible,
.mobile-bar :focus-visible{outline-color:var(--brass-bright)}
.skip-link{position:absolute;left:-999px;top:0;z-index:200;background:var(--navy-dark);color:#fff;padding:.75rem 1.25rem;font-weight:600}
.skip-link:focus{left:0}
.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}

.container{width:min(1160px,100% - 2rem);margin-inline:auto}
.container-narrow{width:min(860px,100% - 2rem);margin-inline:auto}
@media (min-width:640px){
  .container{width:min(1160px,100% - 3rem)}
  .container-narrow{width:min(860px,100% - 3rem)}
}

h1,h2,h3{font-family:var(--font-display);color:var(--navy);line-height:1.18;letter-spacing:-.01em}
h1{font-size:clamp(1.85rem,4.2vw,3rem);font-weight:800;line-height:1.12}
h2{font-size:clamp(1.4rem,2.8vw,2.05rem);font-weight:700}
h3{font-size:1.14rem;font-weight:700}

.section{padding:var(--section-pad) 0}
.section-tint{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{max-width:46rem;margin-bottom:var(--head-gap)}
.section-head .rule{width:44px;height:3px;margin-bottom:.85rem;background:var(--brass)}
.section-head p{margin-top:.7rem;color:var(--ink-soft)}
.section-sub{margin-top:.5rem;color:var(--ink-faint)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-weight:700;font-size:.97rem;line-height:1.2;
  padding:.75rem 1.35rem;border-radius:var(--radius);border:2px solid transparent;
  text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.btn svg{width:18px;height:18px;flex:none}
.btn-brass{background:var(--brass);color:var(--navy-dark);border-color:var(--brass)}
.btn-brass:hover{background:#B48F38;border-color:#B48F38;color:var(--navy-dark)}
.btn-navy{background:var(--navy);color:#fff;border-color:var(--navy)}
.btn-navy:hover{background:var(--navy-dark);border-color:var(--navy-dark);color:#fff}
.btn-outline,.btn-ghost{background:transparent;color:var(--navy);border-color:var(--line-strong)}
.btn-outline:hover,.btn-ghost:hover{background:var(--navy);border-color:var(--navy);color:#fff}
/* outline variant on dark bands */
.cta-band .btn-ghost,.contact-panel .btn-ghost{color:#fff;border-color:rgba(255,255,255,.45)}
.cta-band .btn-ghost:hover,.contact-panel .btn-ghost:hover{background:#fff;border-color:#fff;color:var(--navy-dark)}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}

/* ---------- Header (flat dark bar) ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:var(--navy-dark);
  border-bottom:1px solid rgba(255,255,255,.1);
}
.site-header.scrolled{box-shadow:0 2px 10px rgba(14,32,51,.28)}
.header-inner{display:flex;align-items:center;gap:1.25rem;height:64px}
@media (min-width:901px){.header-inner{height:72px}}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:#fff;min-width:0}
.brand:hover{color:#fff}
.brand-mark{
  width:36px;height:36px;flex:none;border-radius:var(--radius-sm);display:grid;place-items:center;
  background:var(--navy-light);
}
.brand-mark svg{width:22px;height:22px}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text b{font-family:var(--font-display);font-weight:800;font-size:.98rem;letter-spacing:.01em;color:#fff}
.brand-text span{font-size:.65rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--brass)}
.main-nav{margin-left:auto}
.main-nav ul{display:flex;gap:1.7rem;list-style:none}
.main-nav a{
  position:relative;display:inline-block;
  font-size:.8rem;font-weight:700;letter-spacing:.1em;text-decoration:none;color:#E2E9F1;
  padding:.4rem 0;
}
.main-nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--brass);
  opacity:0;transition:opacity .15s ease;
}
.main-nav a:hover{color:#fff}
.main-nav a:hover::after,.main-nav a[aria-current="page"]::after{opacity:1}
.main-nav a[aria-current="page"]{color:#fff}
@media (prefers-reduced-motion:reduce){.main-nav a::after{transition:none}}
.header-call{flex:none;padding:.6rem 1.1rem;font-size:.9rem}
.nav-toggle{display:none;margin-left:auto;background:none;border:0;cursor:pointer;padding:.5rem;color:#fff}
.nav-toggle svg{width:26px;height:26px}
@media (max-width:900px){
  .main-nav{
    position:absolute;top:64px;left:0;right:0;margin:0;
    background:var(--navy-dark);border-bottom:1px solid rgba(255,255,255,.12);
    display:none;
  }
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:0;padding:.25rem 1rem .75rem}
  .main-nav a{display:block;padding:.8rem .25rem;font-size:.92rem;border-bottom:1px solid rgba(255,255,255,.1)}
  .main-nav a::after{display:none}
  .nav-toggle{display:block}
  .header-call{display:none}
}

/* ---------- Hero (light, flat, compact) ---------- */
.hero{
  background:var(--wash);
  border-bottom:1px solid var(--line);
  padding:clamp(1.85rem,5vw,3.75rem) 0 clamp(2rem,5vw,4rem);
}
.hero-inner{max-width:46rem}
.hero-kicker{
  display:block;
  font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--brass-deep);
  margin-bottom:.55rem;
}
.hero p.lead{margin-top:.7rem;font-size:1.04rem;line-height:1.6;color:var(--ink-soft);max-width:40rem}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem}
.hero-badges{display:flex;flex-wrap:wrap;gap:.4rem 1.5rem;margin-top:1.15rem;padding:0;list-style:none}
.hero-badges li{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.9rem;font-weight:600;color:var(--ink-soft);
}
.hero-badges svg{width:16px;height:16px;color:var(--brass-deep)}

/* compact hero for inner pages */
.hero--page{padding:clamp(1.5rem,4vw,2.75rem) 0 clamp(1.85rem,4.5vw,3rem)}
.hero--page .hero-inner{max-width:48rem}

/* ---------- Hero: harbour band (homepage only) ----------
   Solid naval navy block with a brass waterline rule and a single-colour
   wave silhouette. Flat throughout: no gradients, blur, glass or glow. */
.hero--harbour{
  position:relative;
  background:var(--navy-dark);
  border-bottom:0;
  padding:clamp(2.1rem,5.2vw,3.9rem) 0 clamp(3.4rem,6.5vw,5rem);
}
.hero--harbour::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--brass);
}
.hero--harbour .container{position:relative;z-index:1}
.hero--harbour h1{color:#fff}
.hero--harbour .hero-kicker{
  display:inline-flex;align-items:center;gap:.6rem;
  letter-spacing:.18em;color:var(--brass);margin-bottom:.7rem;
}
.hero--harbour .hero-kicker::before{content:"";width:30px;height:2px;background:var(--brass);flex:none}
.hero--harbour p.lead{color:#C7D3E0}
.hero--harbour .hero-badges{gap:.5rem;margin-top:1.4rem}
.hero--harbour .hero-badges li{
  background:#16324E;border:1px solid #2A4E73;border-radius:var(--radius-sm);
  padding:.42rem .75rem;color:#EAF0F7;font-size:.86rem;font-weight:600;
}
.hero--harbour .hero-badges svg{color:var(--brass)}
/* button variants re-paired for the dark band */
.hero--harbour .btn-navy{background:var(--navy-light);border-color:#33587F;color:#fff}
.hero--harbour .btn-navy:hover{background:#2C5581;border-color:#4C749D;color:#fff}
.hero--harbour .btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.hero--harbour .btn-ghost:hover{background:#fff;border-color:#fff;color:var(--navy-dark)}

/* solid single-colour waterline divider */
.hero-wave{position:absolute;left:0;right:0;bottom:-1px;line-height:0;pointer-events:none}
.hero-wave svg{display:block;width:100%;height:clamp(24px,3.2vw,44px);fill:var(--surface)}

/* Mobile: no dead columns, tight stack, full-width CTAs */
@media (max-width:640px){
  .hero{padding:1.5rem 0 1.75rem}
  .hero--page{padding:1.15rem 0 1.5rem}
  .hero--harbour{padding:1.6rem 0 2.6rem}
  .hero p.lead{margin-top:.55rem;font-size:1rem}
  .hero-ctas{display:grid;grid-template-columns:1fr;gap:.5rem;margin-top:1rem;width:100%}
  .hero-ctas .btn{width:100%}
  .hero-badges{gap:.3rem 1.1rem;margin-top:.9rem}
  .hero-badges li{font-size:.86rem}
  .hero--harbour .hero-badges{gap:.4rem;margin-top:1rem}
  .hero--harbour .hero-badges li{font-size:.82rem;padding:.36rem .65rem}
}

/* ---------- Breadcrumbs ---------- */
.crumbs{margin-bottom:1rem}
.crumbs ol{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;font-size:.82rem;font-weight:600}
.crumbs li{display:inline-flex;align-items:center;gap:.35rem;color:var(--ink-faint)}
.crumbs li+li::before{content:"/";color:var(--line-strong);font-weight:600}
.crumbs a{color:var(--navy);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs [aria-current="page"]{color:var(--ink-faint)}

/* ---------- Cards: services ---------- */
.services-grid{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr)}
.service-card{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem 1.4rem;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;gap:.65rem;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.service-card:hover,.service-card:focus-within{border-color:var(--navy);box-shadow:var(--shadow-md)}
.service-card .icon{
  width:42px;height:42px;border-radius:var(--radius-sm);margin-bottom:.15rem;
  background:var(--wash);display:grid;place-items:center;
}
.service-card .icon svg{width:23px;height:23px;color:var(--navy)}
.service-card p{color:var(--ink-soft);font-size:.95rem}
.service-card.wide{grid-column:1/-1;flex-direction:row;align-items:flex-start;gap:1.25rem}
.service-card.wide .body{flex:1}
.service-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}
.service-tags span{
  background:var(--wash);color:var(--navy);border:1px solid var(--line);
  font-size:.82rem;font-weight:600;padding:.3rem .6rem;border-radius:var(--radius-sm);
}
.card-cta{
  display:inline-flex;align-items:center;gap:.4rem;margin-top:auto;padding-top:.5rem;
  font-size:.88rem;font-weight:700;text-decoration:none;color:var(--navy);
}
.card-cta::before{content:"";position:absolute;inset:0;border-radius:inherit}
.card-cta svg{width:16px;height:16px;color:var(--brass-deep)}
.card-cta:hover{color:var(--navy-dark);text-decoration:underline}
@media (max-width:820px){
  .services-grid{grid-template-columns:1fr}
  .service-card.wide{flex-direction:column;gap:.65rem}
}

/* ---------- Pricing ---------- */
.pricing-grid{display:grid;gap:1rem;grid-template-columns:repeat(4,1fr)}
.price-card{
  position:relative;background:#fff;border:1px solid var(--line);
  border-top:3px solid var(--brass);border-radius:var(--radius);
  padding:1.4rem 1.3rem;display:flex;flex-direction:column;gap:.35rem;
  box-shadow:var(--shadow-sm);
}
.price-card h3{font-size:1rem}
.price-card .amount{
  font-family:var(--font-display);font-weight:800;font-size:1.95rem;color:var(--navy);
  line-height:1;margin:.3rem 0 .4rem;
}
.price-card .amount small{
  font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-faint);display:block;margin-bottom:.3rem;
}
.price-card p{color:var(--ink-soft);font-size:.92rem;padding-top:.5rem;border-top:1px solid var(--line)}
.pricing-note{margin-top:1.2rem;font-size:.88rem;color:var(--ink-faint)}
@media (max-width:1020px){.pricing-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.pricing-grid{grid-template-columns:1fr}}

/* inline price reference (service pages) */
.price-ref{
  display:flex;flex-wrap:wrap;align-items:center;gap:1rem;
  background:#fff;border:1px solid var(--line);border-left:3px solid var(--brass);
  border-radius:var(--radius);padding:1.2rem 1.4rem;box-shadow:var(--shadow-sm);
}
.price-ref .amount{font-family:var(--font-display);font-weight:800;font-size:2rem;color:var(--navy);line-height:1}
.price-ref .amount small{display:block;font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-faint);margin-bottom:.25rem}
.price-ref .blurb{flex:1;min-width:220px;color:var(--ink-soft);font-size:.94rem}
.price-ref .blurb b{color:var(--navy)}
.price-ref a{white-space:nowrap}
.price-ref + .prose{margin-top:var(--s-6)}
@media (max-width:560px){
  .price-ref{gap:.75rem}
  .price-ref a{width:100%}
}

/* ---------- Areas ---------- */
.areas .chips{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none}
.areas .chips li{
  background:#fff;border:1px solid var(--line);color:var(--navy);
  font-weight:600;font-size:.89rem;padding:.42rem .8rem;border-radius:var(--radius-sm);
  display:inline-flex;align-items:center;gap:.4rem;
}
.areas .chips svg{width:14px;height:14px;color:var(--brass-deep)}

/* ---------- CTA band (the one flat dark band) ---------- */
.cta-band{background:var(--navy-dark)}
.cta-band .container{text-align:center;max-width:52rem}
.cta-band .section-head{max-width:none;margin-bottom:0}
.cta-band h2{color:#fff}
.cta-band .rule{margin-inline:auto}
.cta-band p{color:#C7D3E0;margin-top:.75rem;font-size:1.02rem}
.cta-band .price-line{margin-top:.65rem;font-weight:700;color:var(--brass);font-size:.94rem}
.cta-band .hero-ctas{justify-content:center;margin-top:1.35rem}

/* ---------- Why choose ---------- */
.why-grid{display:grid;gap:1rem;grid-template-columns:repeat(4,1fr)}
.why-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem 1.3rem;box-shadow:var(--shadow-sm);
}
.why-card .icon{
  width:42px;height:42px;border-radius:var(--radius-sm);margin-bottom:.8rem;
  background:var(--wash);display:grid;place-items:center;
}
.why-card .icon svg{width:22px;height:22px;color:var(--navy)}
.why-card p{color:var(--ink-soft);font-size:.92rem;margin-top:.45rem}
@media (max-width:1020px){.why-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.why-grid{grid-template-columns:1fr}}

/* ---------- Testimonials ---------- */
.testimonials{background:var(--wash);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rating-line{display:flex;align-items:center;gap:.55rem;margin-top:.7rem;font-weight:700;color:var(--navy);font-size:.95rem}
.stars{display:inline-flex;gap:.1rem}
.stars svg{width:18px;height:18px;color:var(--brass)}
.testimonial-grid{display:grid;gap:1rem;grid-template-columns:repeat(3,1fr)}
.t-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.35rem 1.3rem;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;gap:.85rem;
}
.t-card blockquote{font-size:.95rem;color:var(--ink-soft);line-height:1.6}
.t-card footer{margin-top:auto;display:flex;align-items:center;gap:.7rem;padding-top:.8rem;border-top:1px solid var(--line)}
.t-avatar{
  width:38px;height:38px;flex:none;border-radius:var(--radius-sm);
  background:var(--navy);color:#fff;font-weight:700;font-family:var(--font-display);
  display:grid;place-items:center;font-size:.88rem;
}
.t-meta b{display:block;color:var(--navy);font-size:.92rem}
.t-meta span{font-size:.81rem;color:var(--ink-faint)}
@media (max-width:1020px){.testimonial-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.testimonial-grid{grid-template-columns:1fr}}

/* single pulled testimonial on service pages */
.t-pull{max-width:50rem}
.t-pull + .t-pull{margin-top:1rem}

/* ---------- FAQ ---------- */
.faq-list{max-width:50rem}
.faq-item{
  border:1px solid var(--line);border-radius:var(--radius);background:#fff;
  margin-bottom:.6rem;overflow:hidden;
}
.faq-item h3{font-size:1rem}
.faq-q{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem;
  text-align:left;background:none;border:0;cursor:pointer;
  font:inherit;font-family:var(--font-display);font-weight:700;color:var(--navy);
  padding:.95rem 1.1rem;font-size:inherit;
}
.faq-q:hover{color:var(--navy-dark)}
.faq-q .chev{flex:none;width:20px;height:20px;color:var(--brass-deep);transition:transform .2s ease}
.faq-q[aria-expanded="true"] .chev{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.faq-q .chev{transition:none}}
.faq-a{padding:0 1.1rem 1rem;color:var(--ink-soft);font-size:.95rem}
.faq-item:has(.faq-q[aria-expanded="true"]){border-color:var(--line-strong)}

/* ---------- Gallery ---------- */
.gallery-grid{display:grid;gap:.75rem;grid-template-columns:repeat(5,1fr)}
.g-tile{
  position:relative;aspect-ratio:4/3;border-radius:var(--radius);overflow:hidden;
  display:flex;align-items:flex-end;border:1px solid var(--line);
}
.g-tile .glyph{position:absolute;inset:0;display:grid;place-items:center}
.g-tile .glyph svg{width:38px;height:38px;color:rgba(255,255,255,.55)}
.g-tile figcaption{
  position:relative;z-index:1;width:100%;
  padding:.45rem .7rem;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:#fff;background:rgba(14,32,51,.72);
}
.g-a{background:#1B3A5B}
.g-b{background:#2A4E73}
.g-c{background:#0E2033}
.g-d{background:#8A6A1F}
.g-e{background:#16344F}
@media (max-width:1020px){.gallery-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:600px){.gallery-grid{grid-template-columns:repeat(2,1fr)}}

/* ---------- Service page content ---------- */
.prose{max-width:46rem}
.prose h2{margin-top:var(--s-6);margin-bottom:var(--s-3)}
.prose h2:first-child{margin-top:0}
.prose p{margin-bottom:var(--s-4);color:var(--ink-soft)}
.prose p b,.prose p strong{color:var(--navy)}
.prose ul{margin:0 0 var(--s-4) 1.15rem;color:var(--ink-soft)}
.prose li{margin-bottom:.35rem}

.check-list{list-style:none;display:grid;gap:.6rem;grid-template-columns:repeat(2,1fr);margin:0 0 var(--s-6)}
.check-list li{
  display:flex;align-items:flex-start;gap:.6rem;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:.75rem .9rem;font-size:.94rem;color:var(--ink-soft);
}
.check-list svg{width:19px;height:19px;flex:none;margin-top:.12rem;color:var(--brass-deep)}
@media (max-width:640px){.check-list{grid-template-columns:1fr}}

/* hub cards */
.hub-grid{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr)}
.hub-grid .service-card:nth-child(1){grid-column:span 2;flex-direction:row;align-items:flex-start;gap:1.25rem}
.hub-grid .service-card:nth-child(1) .body{flex:1}
@media (max-width:680px){
  .hub-grid{grid-template-columns:1fr}
  .hub-grid .service-card:nth-child(1){grid-column:span 1;flex-direction:column;align-items:flex-start}
}

/* ---------- Forms ---------- */
.form-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.15rem,3.5vw,1.9rem);box-shadow:var(--shadow-sm);
}
.form-grid{display:grid;gap:.9rem;grid-template-columns:repeat(2,1fr)}
.form-grid .field-full{grid-column:1/-1}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
.field label{display:block;font-weight:700;font-size:.9rem;color:var(--navy);margin-bottom:.35rem}
.field label .req{color:var(--brass-deep)}
.field input,.field select,.field textarea{
  width:100%;font:inherit;font-size:1rem;color:var(--ink);
  background:#fff;border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  padding:.7rem .85rem;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(27,58,91,.18);
}
.field input::placeholder,.field textarea::placeholder{color:#6E7E92}
.field .hint{font-size:.82rem;color:var(--ink-faint);margin-top:.3rem}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:#A33B2E}
.field .error{display:none;font-size:.84rem;font-weight:600;color:#A33B2E;margin-top:.3rem}
.field.invalid .error{display:block}
.form-note{font-size:.87rem;color:var(--ink-faint);margin-top:.85rem}
.form-status{display:none;margin-top:.9rem;padding:.8rem 1rem;border-radius:var(--radius-sm);font-weight:600;font-size:.93rem}
.form-status.ok{display:block;background:var(--wash);color:var(--navy);border:1px solid var(--line-strong)}

.contact-cols{display:grid;gap:1.5rem;grid-template-columns:1.25fr .9fr;align-items:start}
@media (max-width:900px){.contact-cols{grid-template-columns:1fr}}
.contact-panel{
  background:var(--navy-dark);color:#C7D3E0;border-radius:var(--radius);
  padding:clamp(1.15rem,3.5vw,1.75rem);
}
.contact-panel h2{color:#fff;font-size:1.25rem}
.contact-panel ul{list-style:none;margin-top:1.1rem;display:flex;flex-direction:column;gap:.85rem}
.contact-panel li{display:flex;align-items:flex-start;gap:.6rem;font-size:.94rem}
.contact-panel li svg{width:17px;height:17px;flex:none;margin-top:.22rem;color:var(--brass)}
.contact-panel a{color:#fff;text-decoration:none;font-weight:600}
.contact-panel a:hover{color:var(--brass)}
.contact-panel .hours{margin-top:1.2rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.15);font-size:.89rem;color:#9DAEC1}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-dark);
  color:#C7D3E0;padding:2.75rem 0 1.5rem;
  border-top:3px solid var(--brass);
}
.footer-grid{display:grid;gap:1.75rem;grid-template-columns:1.3fr 1fr 1.2fr;margin-bottom:1.75rem}
.site-footer h3{color:#fff;font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.85rem}
.site-footer h3::after{content:"";display:block;width:28px;height:2px;background:var(--brass);margin-top:.45rem}
.footer-brand .brand-mark{background:var(--brass)}
.footer-brand p{margin-top:.9rem;font-size:.9rem;max-width:26rem;color:#9DAEC1}
.site-footer ul{list-style:none;display:flex;flex-direction:column;gap:.45rem}
.site-footer ul a{color:#C7D3E0;text-decoration:none;font-size:.92rem}
.site-footer ul a:hover{color:var(--brass)}
.footer-contact li{display:flex;align-items:flex-start;gap:.55rem}
.footer-contact svg{width:16px;height:16px;flex:none;margin-top:.25rem;color:var(--brass)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:1.2rem;font-size:.83rem;color:#8095AC;text-align:center}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr;gap:1.5rem}}

/* ---------- Sticky mobile bar ---------- */
.mobile-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:110;
  display:none;grid-template-columns:1fr 1fr 1fr;
  background:var(--navy-dark);border-top:2px solid var(--brass);
  padding-bottom:env(safe-area-inset-bottom);
}
.mobile-bar a{
  display:flex;flex-direction:column;align-items:center;gap:.15rem;
  padding:.55rem .3rem .5rem;text-decoration:none;color:#fff;
  font-size:.7rem;font-weight:700;letter-spacing:.03em;
}
.mobile-bar a svg{width:19px;height:19px;color:var(--brass)}
.mobile-bar a:hover,.mobile-bar a:focus-visible{background:var(--navy);color:#fff}
@media (max-width:767px){
  .mobile-bar{display:grid}
  body{padding-bottom:60px}
}

/* ---------- Blog ---------- */
.post-grid{display:grid;gap:1rem;grid-template-columns:repeat(3,1fr)}
.post-card{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  border-top:3px solid var(--brass);
  padding:1.35rem 1.3rem;display:flex;flex-direction:column;gap:.6rem;
  box-shadow:var(--shadow-sm);
  transition:border-color .15s ease,box-shadow .15s ease;
}
.post-card:hover,.post-card:focus-within{border-color:var(--navy);border-top-color:var(--brass);box-shadow:var(--shadow-md)}
.post-card h3{font-size:1.06rem;line-height:1.3}
.post-card h3 a{color:var(--navy);text-decoration:none}
.post-card h3 a::before{content:"";position:absolute;inset:0;border-radius:inherit}
.post-card:hover h3 a,.post-card h3 a:hover{color:var(--navy-dark);text-decoration:underline}
.post-card p{color:var(--ink-soft);font-size:.94rem}
.post-card .more{
  margin-top:auto;padding-top:.35rem;
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.87rem;font-weight:700;color:var(--navy);
}
.post-card .more svg{width:15px;height:15px;color:var(--brass-deep)}
.post-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;
  font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint);
}
.post-meta .tag{
  background:var(--wash);border:1px solid var(--line);color:var(--navy);
  border-radius:var(--radius-sm);padding:.18rem .5rem;letter-spacing:.05em;
}
.post-card.featured{grid-column:1/-1;flex-direction:row;align-items:flex-start;gap:1.5rem}
.post-card.featured .body{flex:1;display:flex;flex-direction:column;gap:.6rem}
.post-card.featured h3{font-size:1.4rem}
.post-card.featured .side{
  flex:none;width:15rem;align-self:stretch;
  background:var(--navy-dark);border-radius:var(--radius-sm);
  display:flex;flex-direction:column;justify-content:center;gap:.35rem;
  padding:1.1rem 1.15rem;color:#C7D3E0;
}
.post-card.featured .side b{
  display:block;font-family:var(--font-display);font-size:.78rem;font-weight:800;
  letter-spacing:.14em;text-transform:uppercase;color:var(--brass);
}
.post-card.featured .side span{font-size:.88rem;line-height:1.5}
@media (max-width:1020px){.post-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:860px){
  .post-card.featured{flex-direction:column;gap:1rem}
  .post-card.featured .side{width:100%}
}
@media (max-width:620px){.post-grid{grid-template-columns:1fr}}

/* article body */
.article{max-width:46rem}
.article .post-meta{margin-bottom:1.1rem}
.article h2{margin-top:var(--s-6);margin-bottom:var(--s-3)}
.article h2:first-of-type{margin-top:0}
.article h3{margin-top:var(--s-5);margin-bottom:var(--s-2)}
.article p{margin-bottom:var(--s-4);color:var(--ink-soft)}
.article p b,.article p strong,.article li b{color:var(--navy)}
.article ul,.article ol{margin:0 0 var(--s-4) 1.2rem;color:var(--ink-soft)}
.article li{margin-bottom:.4rem}
.article a{color:var(--navy);font-weight:600}
.article a:hover{color:var(--brass-deep)}
.pull-note{
  background:#fff;border:1px solid var(--line);border-left:3px solid var(--brass);
  border-radius:var(--radius);padding:1.1rem 1.25rem;margin:0 0 var(--s-5);
  box-shadow:var(--shadow-sm);
}
.pull-note p{margin-bottom:0;font-size:.95rem}
.pull-note b{color:var(--navy)}
.article-foot{
  max-width:46rem;margin-top:var(--s-6);padding-top:1.25rem;border-top:1px solid var(--line);
}
.article-foot h2{font-size:1.05rem;margin-bottom:.75rem}
.article-foot ul{list-style:none;display:grid;gap:.5rem;grid-template-columns:repeat(2,1fr)}
.article-foot li a{
  display:flex;align-items:center;gap:.5rem;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:.65rem .85rem;font-size:.92rem;font-weight:600;color:var(--navy);text-decoration:none;
}
.article-foot li a:hover{border-color:var(--navy);color:var(--navy-dark)}
.article-foot li a svg{width:15px;height:15px;flex:none;color:var(--brass-deep)}
@media (max-width:640px){.article-foot ul{grid-template-columns:1fr}}

/* ---------- Legal pages ---------- */
.legal{max-width:46rem}
.legal .updated{
  font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-faint);margin-bottom:1.35rem;
}
.legal h2{
  margin-top:var(--s-6);margin-bottom:var(--s-3);font-size:1.2rem;
  padding-bottom:.5rem;border-bottom:1px solid var(--line);
}
.legal h2:first-of-type{margin-top:0}
.legal h3{margin-top:var(--s-5);margin-bottom:var(--s-2);font-size:1.02rem}
.legal p{margin-bottom:var(--s-4);color:var(--ink-soft);font-size:.96rem}
.legal ul{margin:0 0 var(--s-4) 1.2rem;color:var(--ink-soft);font-size:.96rem}
.legal li{margin-bottom:.4rem}
.legal a{color:var(--navy);font-weight:600}
.legal a:hover{color:var(--brass-deep)}
.legal-toc{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.15rem 1.3rem;margin-bottom:var(--s-6);box-shadow:var(--shadow-sm);
}
.legal-toc h2{
  margin:0 0 .7rem;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;
  border-bottom:0;padding-bottom:0;
}
.legal-toc ol{margin:0 0 0 1.15rem;font-size:.93rem;color:var(--ink-soft)}
.legal-toc li{margin-bottom:.3rem}

/* ==========================================================================
   Image slots
   Every slot reserves its box with an aspect-ratio that matches the exact
   width/height attributes on the <img>, so nothing shifts as images load.
   Sizes are documented in IMAGES.md and generated by scripts/build-images.py.
   ========================================================================== */

/* --- homepage hero visual: fixed 400px column, renders 1:1 at >=1024px --- */
.hero-media{display:none;margin:0}
.hero-media img{
  width:100%;height:auto;aspect-ratio:400/480;object-fit:cover;
  border-radius:var(--radius);border:1px solid #2A4E73;
}
@media (min-width:1024px){
  .hero--harbour .container{
    display:grid;grid-template-columns:minmax(0,1fr) 400px;
    gap:2.5rem;align-items:center;
  }
  .hero-media{display:block;width:400px}
}

/* --- service card media: full-bleed strip across the top of the card --- */
.card-media{
  margin:-1.5rem -1.4rem .15rem;line-height:0;overflow:hidden;
  border-radius:var(--radius) var(--radius) 0 0;
}
.card-media img{width:100%;height:auto;aspect-ratio:570/228;object-fit:cover}
/* wide cards lay out as a row, so the media becomes a fixed side image */
.service-card.wide .card-media,
.hub-grid .service-card:nth-child(1) .card-media{
  flex:none;width:380px;align-self:flex-start;
  margin:-1.5rem 1.25rem -1.5rem -1.4rem;
  border-radius:var(--radius) 0 0 var(--radius);
}
.service-card.wide .card-media img,
.hub-grid .service-card:nth-child(1) .card-media img{aspect-ratio:380/260}
@media (max-width:820px){
  .service-card.wide .card-media{
    width:auto;margin:-1.5rem -1.4rem .15rem;
    border-radius:var(--radius) var(--radius) 0 0;
  }
}
@media (max-width:680px){
  .hub-grid .service-card:nth-child(1) .card-media{
    width:auto;margin:-1.5rem -1.4rem .15rem;
    border-radius:var(--radius) var(--radius) 0 0;
  }
}

/* --- page header banner (service pages, blog posts) --- */
.page-banner{margin:0 0 var(--s-6);line-height:0}
.page-banner img{
  width:100%;height:auto;aspect-ratio:1160/435;object-fit:cover;
  border-radius:var(--radius);border:1px solid var(--line);
}
/* slim variant for the utility pages */
.page-banner--slim img{aspect-ratio:1160/260}

/* --- homepage trust / about band --- */
.trust-band{margin:0 0 var(--head-gap);line-height:0}
.trust-band img{
  width:100%;height:auto;aspect-ratio:1160/360;object-fit:cover;
  border-radius:var(--radius);border:1px solid var(--line);
}

/* --- blog listing thumbnails --- */
.post-media{
  margin:-1.35rem -1.3rem .15rem;line-height:0;overflow:hidden;
  border-radius:var(--radius) var(--radius) 0 0;
}
.post-media img{width:100%;height:auto;aspect-ratio:374/210;object-fit:cover}
.post-card.featured .post-media{
  flex:none;width:400px;align-self:flex-start;
  margin:-1.35rem 0 -1.35rem -1.3rem;
  border-radius:var(--radius) 0 0 var(--radius);
}
.post-card.featured .post-media img{aspect-ratio:400/300}
@media (max-width:860px){
  .post-card.featured .post-media{
    width:auto;margin:-1.35rem -1.3rem .15rem;
    border-radius:var(--radius) var(--radius) 0 0;
  }
}

/* --- in-post figure --- */
.article-figure{max-width:46rem;margin:0 0 var(--s-5)}
.article-figure img{
  width:100%;height:auto;aspect-ratio:736/414;object-fit:cover;
  border-radius:var(--radius);border:1px solid var(--line);
}
.article-figure figcaption{
  margin-top:.5rem;font-size:.85rem;color:var(--ink-faint);line-height:1.5;
}

/* --- contact panel image --- */
.contact-media{margin:0 0 1.15rem;line-height:0}
.contact-media img{
  width:100%;height:auto;aspect-ratio:420/315;object-fit:cover;
  border-radius:var(--radius-sm);border:1px solid #2A4E73;
}

/* --- gallery tiles now carry real photography --- */
.g-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease}
  .js .reveal.in{opacity:1;transform:none}
}
