/* ===========================================================================
   Plumbing Solutions — shared stylesheet
   Design system: "Trustworthy & Modern"  (navy + warm amber)
   =========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy:      #0E2A47;
  --navy-700:  #163a5f;
  --navy-800:  #0a2038;
  --blue:      #1E6FB8;
  --blue-600:  #195e9d;
  --accent:    #F2711C;
  --accent-600:#d85e0e;
  --success:   #1F9D55;
  --ink:       #14202B;
  --muted:     #5B6B79;
  --surface:   #FFFFFF;
  --surface-2: #F4F7FA;
  --surface-3: #EAF1F7;
  --line:      #E2E8ED;

  --r:    14px;
  --r-sm: 9px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16,42,71,.06), 0 2px 6px rgba(16,42,71,.06);
  --shadow:    0 1px 2px rgba(16,42,71,.06), 0 10px 28px rgba(16,42,71,.10);
  --shadow-lg: 0 24px 60px rgba(16,42,71,.18);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(52px, 8vw, 100px);

  --ease: cubic-bezier(.25,.46,.45,.94);
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ---------- Grain texture overlay (subtle) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}
img, svg, video { max-width: 100%; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); }
.section--alt { background: var(--surface-2); }
.section--navy { background: var(--navy); color: #dbe6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.map-embed { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600);
  margin-bottom: .8rem;
}
.section--navy .eyebrow { color: #ffb37a; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #b7c6d6; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .92rem 1.5rem; border-radius: var(--r-sm); border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(242,113,28,.32); }
.btn--primary:hover { background: var(--accent-600); box-shadow: 0 12px 26px rgba(242,113,28,.4); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--surface-2); }
.btn--on-navy { background: #fff; color: var(--navy); }
.btn--on-navy:hover { background: #eef4fa; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { height: 46px; width: auto; max-width: 210px; border-radius: 6px; }
/* Logo is a full wordmark — hide the redundant text lockup beside it */
.brand span { display: none; }
.brand span small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a, .nav-drop-btn { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--navy-700); transition: color .15s; }
.nav > a:hover, .nav > a[aria-current="page"], .nav-drop-btn:hover, .nav-drop.current .nav-drop-btn { color: var(--accent-600); }

/* Areas dropdown */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer; padding: 0; }
.nav-drop-btn svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: .4rem; min-width: 190px; display: grid; gap: 2px; opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 60;
}
.nav-drop.open .nav-drop-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drop-menu a { display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy-700); }
.nav-drop-menu a:hover { background: var(--surface-2); color: var(--accent-600); }
.nav-drop-menu a svg { width: 16px; height: 16px; color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; }
.header-contact { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--navy); flex: none; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Compact "Get quote" / "Call" pair shown in place of desktop's CTAs once the hamburger appears */
.header-mobile-cta { display: none; align-items: center; gap: .4rem; }
.header-mobile-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  padding: .5rem .7rem; border-radius: var(--r-sm); border: 2px solid transparent;
  white-space: nowrap; line-height: 1; transition: transform .15s var(--ease), background .15s var(--ease);
}
.header-mobile-cta__btn svg { width: 14px; height: 14px; flex: none; }
.header-mobile-cta__btn:active { transform: scale(.96); }
.header-mobile-cta__btn--quote { background: transparent; color: var(--navy); border-color: var(--line); }
.header-mobile-cta__btn--call { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(242,113,28,.3); }

/* "Get quote" / "Call" row inside the open mobile nav menu */
.nav-cta-row { display: none; }
.nav-cta-row__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .95rem 1rem; border-radius: var(--r-sm); border: 2px solid transparent;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.nav-cta-row__btn svg { width: 18px; height: 18px; flex: none; }
.nav-cta-row__btn:active { transform: scale(.97); }
.nav-cta-row__btn--quote { background: transparent; color: var(--navy); border-color: var(--line); }
.nav-cta-row__btn--quote:hover { border-color: var(--navy); background: var(--surface-2); }
.nav-cta-row__btn--call { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(242,113,28,.32); }
.nav-cta-row__btn--call:hover { background: var(--accent-600); }

@media (max-width: 1050px) {
  .nav-toggle { display: inline-flex; }
  .header-call { display: none; }
  .header-mobile-cta { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta-row { display: flex; gap: .7rem; margin-top: 1.1rem; }
  .header-cta .btn--ghost { display: none; }
  /* dropdown flattens into inline links on mobile */
  .nav-drop { display: block; }
  .nav-drop-btn { display: none; }
  .nav-drop-menu { position: static; opacity: 1; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; background: none; }
  .nav-drop-menu a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; border-radius: 0; }
  .nav-drop-menu a svg { display: none; }
}

/* Phone header: shrink logo + compact CTAs so the hamburger always fits */
@media (max-width: 620px) {
  .header-inner { gap: .5rem; }
  .header-cta { gap: .4rem; }
  .brand img { height: 38px; max-width: 148px; }
  .header-contact { padding: .62rem .9rem; font-size: .9rem; }
  .header-mobile-cta { gap: .3rem; }
  .header-mobile-cta__btn { padding: .44rem .55rem; font-size: .76rem; }
}
@media (max-width: 360px) {
  .header-mobile-cta__btn--quote { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(10,32,56,.94) 0%, rgba(14,42,71,.86) 45%, rgba(14,42,71,.55) 100%);
}
.hero__inner { padding-block: clamp(56px, 9vw, 118px); max-width: 730px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: #ffb37a; font-family: var(--font-serif); font-style: italic; font-weight: 600; letter-spacing: 0; }
.hero__sub { font-size: clamp(1.05rem, 1.9vw, 1.28rem); color: #cfdcea; max-width: 56ch; margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.7rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero__trust .ti { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: #e6eef6; }
.hero__trust .ti svg { width: 20px; height: 20px; color: #ffb37a; flex: none; }
.hero__trust .ti strong { color: #fff; }

/* Hero wave divider */
.hero__divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; pointer-events: none; }
.hero__divider svg { display: block; width: 100%; height: clamp(40px, 6vw, 80px); }
.hero__divider .wave-fill { fill: var(--surface); }
.hero--to-alt .hero__divider .wave-fill { fill: var(--surface-2); }

/* Hero floating review card (desktop only) */
.hero__float { display: none; }
@media (min-width: 1080px) {
  .hero__float {
    display: block; position: absolute; right: clamp(24px, 5vw, 72px); bottom: 96px; z-index: 2;
    width: 290px; background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
    border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem;
    transform: rotate(-2deg); transition: transform .3s var(--ease);
  }
  .hero__float:hover { transform: rotate(0) translateY(-3px); }
  .hero__float .stars { font-size: 1rem; }
  .hero__float p { font-family: var(--font-serif); font-style: italic; font-size: .98rem; color: var(--ink); margin: .4rem 0 .6rem; line-height: 1.45; }
  .hero__float .by { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--muted); }
  .hero__float .by span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; }
}

/* ---------- Trust bar (auto-scroll marquee) ---------- */
.trustbar { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: 1.4rem; }
.trustbar__inner { display: flex; align-items: center; gap: clamp(1rem,3vw,2rem); }
.trustbar__rating { flex: none; display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-head); padding-right: clamp(1rem,3vw,2rem); border-right: 1px solid var(--line); }
.trustbar__rating b { font-size: 1.5rem; color: var(--navy); }
.trustbar__rating span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.trustbar__marquee { flex: 1; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trustbar__track { display: flex; align-items: center; gap: clamp(2rem,5vw,4rem); width: max-content; animation: marquee 26s linear infinite; }
.trustbar__marquee:hover .trustbar__track { animation-play-state: paused; }
.trustbar__track img { height: 50px; width: auto; object-fit: contain; opacity: .92; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 620px) {
  .trustbar__inner { flex-direction: column; }
  .trustbar__rating { border-right: 0; padding-right: 0; align-items: center; text-align: center; padding-bottom: .4rem; }
}
.stars { color: #f5a623; letter-spacing: 1px; }

/* ---------- Section head ---------- */
.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

/* ---------- Grid helpers ---------- */
/* grid/flex items shrink instead of forcing the page wider than the viewport */
.grid > *, .case-grid > *, .reviews > *, .contact-cards > *, .steps-scroll > *,
.split > *, .contact-grid > *, .contact-card > div, .footer-grid > * { min-width: 0; }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid--bento { grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid--bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid--bento { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  /* Homepage services are 3-up groups — a 2-up grid leaves an empty cell, so stack them instead */
  #services .grid-3, #services .grid--bento { grid-template-columns: 1fr; }
}

/* ---------- Service cards ---------- */
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd9e2; }
.svc-card__icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--blue); margin-bottom: 1rem; }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: .4rem; }
.svc-card p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.svc-card .card-link { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--accent-600); display: inline-flex; align-items: center; gap: .35rem; }
.svc-card .card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.svc-card:hover .card-link svg { transform: translateX(3px); }
.svc-card--emergency { border-color: var(--accent); background: linear-gradient(180deg,#fff7f1,#fff); }
.svc-card--emergency .svc-card__icon { background: #ffe6d4; color: var(--accent-600); }
.badge-247 { position: absolute; top: 1rem; right: 1rem; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .05em; padding: .3rem .55rem; border-radius: 6px; }
.svc-card { position: relative; }
@media (max-width: 620px) {
  .svc-card { padding: 1.1rem 1rem; }
  .svc-card__icon { width: 42px; height: 42px; margin-bottom: .7rem; }
  .svc-card__icon svg { width: 22px; height: 22px; }
  .svc-card h3 { font-size: 1rem; }
  .svc-card p { font-size: .85rem; line-height: 1.5; margin-bottom: .7rem; }
  .svc-card .card-link { font-size: .82rem; }
  .badge-247 { top: .7rem; right: .7rem; font-size: .6rem; padding: .2rem .4rem; }
}

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  /* About keeps the photo beside the text on mobile (not a giant stacked square) */
  .split--about { grid-template-columns: 38% 1fr; gap: 1.1rem; align-items: start; }
  .split--about .split__media { position: sticky; top: 88px; }
  .split--about .split__media img { aspect-ratio: 3/4; }
  .split--about h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .split--about .tick-list { gap: .5rem; margin: .9rem 0 1.1rem; }
  .split--about .tick-list li { font-size: .82rem; gap: .5rem; }
  .split--about .tick-list svg { width: 18px; height: 18px; }
  .split--about .quote-line { font-size: 1.02rem; }
  .split--about .btn { width: 100%; }
}
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.tick-list { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: .75rem; }
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.tick-list svg { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 2px; }
.quote-line { border-left: 4px solid var(--accent); padding: .3rem 0 .3rem 1.1rem; font-family: var(--font-serif); font-style: italic; color: var(--navy-700); font-size: 1.28rem; line-height: 1.45; margin: 1.4rem 0; }

/* ---------- Process steps ---------- */
.steps-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); margin-top: 1.9rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 1.4rem 1.4rem; box-shadow: var(--shadow-sm); }
.step__num { position: absolute; top: -20px; left: 1.4rem; width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step h3 { margin: .6rem 0 .3rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
/* Mobile: swipeable horizontal carousel (C1 → scroll right → C4) */
@media (max-width: 700px) {
  .steps-scroll {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: .8rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding-top: 26px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .steps-scroll::-webkit-scrollbar { display: none; }
  .steps-scroll .step { scroll-snap-align: start; }
}

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1.8rem; }
.filter-btn { font-family: var(--font-head); font-weight: 700; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; color: var(--navy-700); cursor: pointer; transition: all .18s var(--ease); }
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .hide { display: none !important; }

/* Work cards */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2vw,1.4rem); }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
/* Mobile: bigger photo, shorter card, tap View for a popup instead of inline dropdown */
@media (max-width: 620px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .case-card__img { aspect-ratio: 4/3; }
  .case-card__tag { font-size: .62rem; padding: .22rem .5rem; top: .5rem; left: .5rem; }
  .case-card__body { padding: .75rem .8rem .85rem; }
  .case-card__body h3 { font-size: .92rem; margin-bottom: .2rem; line-height: 1.25; }
  .case-card__body p { font-size: .78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .case-card__view { font-size: .78rem; margin-top: .5rem; }
  .case-card__detail { display: none; }
}
.case-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.06); }
.case-card__tag { position: absolute; top: .7rem; left: .7rem; background: rgba(14,42,71,.9); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; backdrop-filter: blur(4px); }
.case-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.case-card__body h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.case-card__body p { color: var(--muted); font-size: .92rem; margin: 0; }
.case-card__view { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; margin-top: .8rem; font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--accent-600); background: none; border: 0; padding: 0; cursor: pointer; }
.case-card__view svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.case-card__view[aria-expanded="true"] svg { transform: rotate(180deg); }
.case-card:hover .case-card__view { gap: .55rem; }
.case-card__detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease), opacity .25s var(--ease), margin-top .3s var(--ease); margin-top: 0; }
.case-card__detail > div { overflow: hidden; }
.case-card__detail p { padding-top: .7rem; border-top: 1px solid var(--line); font-size: .88rem; }
.case-card.is-open .case-card__detail { grid-template-rows: 1fr; opacity: 1; margin-top: .7rem; }

/* Mobile "View" popup — small centered card, not the inline dropdown */
.case-popup { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.1rem; }
.case-popup.is-open { display: flex; }
.case-popup__backdrop { position: absolute; inset: 0; background: rgba(14,42,71,.55); opacity: 0; transition: opacity .22s var(--ease); }
.case-popup.is-open .case-popup__backdrop { opacity: 1; }
.case-popup__card { position: relative; width: 100%; max-width: 340px; max-height: 82vh; overflow-y: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); transform: scale(.94); opacity: 0; transition: transform .22s var(--ease), opacity .2s var(--ease); }
.case-popup.is-open .case-popup__card { transform: scale(1); opacity: 1; }
.case-popup__close { position: absolute; top: .55rem; right: .55rem; width: 30px; height: 30px; border-radius: 50%; background: rgba(14,42,71,.85); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.case-popup__close svg { width: 15px; height: 15px; }
.case-popup__img { aspect-ratio: 4/3; overflow: hidden; }
.case-popup__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-popup__body { padding: 1rem 1.1rem 1.2rem; }
.case-popup__tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .35rem; }
.case-popup__body h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.case-popup__summary { color: var(--ink); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.case-popup__detail { color: var(--muted); font-size: .86rem; margin: 0; padding-top: .5rem; border-top: 1px solid var(--line); }
html.case-popup-open { overflow: hidden; }
@media (min-width: 621px) { .case-popup { display: none !important; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent-600); transition: transform .2s var(--ease); line-height: 1; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-600); }
.faq-item .faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-item .faq-a p { margin: 0; }

/* ---------- Swipeable card carousel (mobile): reviews + homepage service groups ---------- */
@media (max-width: 620px) {
  .js .is-carousel { display: block; position: relative; overflow: hidden; touch-action: pan-y; }
  .js .swipe-track { display: flex; }
  .js .swipe-track.is-animating { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
  .js .swipe-track > * { flex: 0 0 100%; width: 100%; }
}
.swipe-dots { display: none; }
.swipe-counter { display: none; }
@media (max-width: 620px) {
  .js .swipe-dots { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-top: 1.2rem; }
  .js .swipe-counter { display: block; text-align: center; margin-top: .6rem; font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--muted); }
}
.swipe-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--line); cursor: pointer; }
.swipe-dot.is-active { width: 20px; border-radius: 4px; background: var(--accent); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }
.review { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.review::before { content: "\201C"; position: absolute; top: -.35em; right: .2em; font-family: var(--font-serif); font-style: italic; font-size: 6rem; line-height: 1; color: var(--surface-3); z-index: 0; }
.review .stars { font-size: 1.05rem; margin-bottom: .7rem; position: relative; z-index: 1; }
.review p { font-size: .97rem; color: var(--ink); margin-bottom: 1rem; position: relative; z-index: 1; }
.review .review__by { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; position: relative; z-index: 1; }
.review .review__by svg { width: 18px; height: 18px; color: #fff; background: var(--success); border-radius: 50%; padding: 3px; flex: none; }

/* ---------- Area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.area-list span { background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: .5rem 1rem; font-weight: 600; font-size: .92rem; color: var(--navy-700); }

/* ---------- Emergency band ---------- */
.emergency { background: var(--navy); color: #fff; text-align: center; }
.emergency .container { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.emergency h2 { color: #fff; max-width: 20ch; }
.emergency p { color: #b7c6d6; max-width: 52ch; }
.hfh-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .9rem; color: #ffb37a; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-3); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card b { font-family: var(--font-head); color: var(--navy); display: block; }
.contact-card a { color: var(--blue-600); font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.contact-card small { color: var(--muted); }
.socials { display: flex; gap: .7rem; margin-top: .3rem; }
.socials a { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background .18s; }
.socials a:hover { background: var(--accent); }
.socials svg { width: 20px; height: 20px; }

form.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem,3vw,2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B79' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.4rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.form-success { display: none; background: #e9f7ef; border: 1px solid #b6e2c8; color: #14663a; border-radius: var(--r); padding: 1rem 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.form-success.show { display: block; }
.form-error { display: none; background: #fdecec; border: 1px solid #f3b8b6; color: #8a1f1a; border-radius: var(--r); padding: 1rem 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #a9bccf; padding-block: clamp(2.6rem,5vw,3.6rem) 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer-brand img { height: 42px; border-radius: 6px; }
.footer-brand b { font-family: var(--font-head); color: #fff; font-size: 1.15rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid .fcontact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-grid .fcontact svg { width: 18px; height: 18px; color: #ffb37a; flex: none; margin-top: 3px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.footer-badges img { height: 38px; background: #fff; border-radius: 6px; padding: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.3rem; font-size: .84rem; color: #7f97ac; }
.footer-bottom a { color: #a9bccf; }

/* ---------- Sticky mobile call bar (retired — replaced by header "Contact us") ---------- */
.callbar { display: none !important; }

/* ---------- Reveal animation (JS toggles .is-in; fallback = visible) ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-accent { color: var(--accent-600); }
.hide-sm { }
@media (max-width: 620px) { .hide-sm { display: none !important; } }
