/* ==========================================================================
   Dagley's Plumbing and Heating Ltd — shared stylesheet
   Bridgewater, Nova Scotia · South Shore
   --------------------------------------------------------------------------
   Contents
   01. Tokens
   02. Reset & base
   03. Layout helpers
   04. Buttons
   05. Utility bar + nav
   06. Hero
   07. Emergency band
   08. Services grid
   09. Why choose us
   10. Service areas
   11. Reviews
   12. Contact + form
   13. Footer
   14. Motion / accessibility
   ========================================================================== */

/* 01. Tokens ============================================================== */

:root {
  /* Brand palette (sampled from the Dagley's logo) */
  --blue:        #3170B7;
  --blue-dark:   #255A95;
  --blue-darker: #1D497A;
  --blue-tint:   #EBF2F9;
  --navy:        #0F2A44;
  --navy-deep:   #0A1E33;
  --black:       #000000;
  --offwhite:    #F6F8FA;
  --white:       #FFFFFF;

  /* Derived neutrals */
  --ink:    #131E29;
  --body:   #43535F;
  --muted:  #6B7B89;
  --line:   #DCE3EA;
  --line-2: #C7D2DC;

  /* Type */
  --font-head: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space */
  --gutter: 20px;
  --section-y: 56px;
  --maxw: 1180px;

  /* Shape */
  --radius: 4px;
  --radius-lg: 6px;

  /* Shadow — restrained, no floaty startup cards */
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, .06);
  --shadow-md: 0 4px 16px rgba(15, 42, 68, .08);
  --shadow-lg: 0 12px 32px rgba(15, 42, 68, .12);

  --header-h: 118px; /* utility bar + nav, used for scroll offset */
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --section-y: 88px;
  }
}

/* 02. Reset & base ======================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* `img { display: block }` above would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2.25rem, 7vw, 4rem); color: var(--black); }
h2 { font-size: clamp(1.85rem, 4.6vw, 2.85rem); color: var(--black); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  font-weight: 600;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  text-decoration: none;
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Placeholder tokens — grep for class="ph" to find everything left to swap */
.ph { font-style: normal; }

/* 03. Layout helpers ====================================================== */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--offwhite); }
.section--navy { background: var(--navy); color: #C9D6E2; }
.section--navy h2,
.section--navy h3 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.0625rem; color: var(--body); margin-bottom: 0; }
.section--navy .section-head p { color: #B9C8D6; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
  flex: none;
}
.section-head--center .eyebrow { justify-content: center; }

.lede { font-size: 1.125rem; }

/* 04. Buttons ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}
.btn--ghost-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.btn--white:hover { background: #E8EEF4; border-color: #E8EEF4; color: var(--black); }

.btn--lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--blue);
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* 05. Utility bar + nav =================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(15, 42, 68, .13); }

/* -- Utility bar -- */
.utility-bar {
  background: var(--navy);
  color: #B9C8D6;
  font-size: .8125rem;
  line-height: 1.3;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-block: 6px;
}
.utility-bar__area {
  display: none;
  align-items: center;
  gap: 8px;
  letter-spacing: .01em;
}
.utility-bar__area svg { color: var(--blue); flex: none; }
.utility-bar__call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 7px 16px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .18s ease;
}
.utility-bar__call:hover { background: #4084CE; color: var(--white); text-decoration: none; }
.utility-bar__call svg { flex: none; }

@media (min-width: 700px) {
  .utility-bar__area { display: flex; }
}

/* -- Nav -- */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  object-fit: contain;
  flex: none;
}
.brand__text { display: block; line-height: 1.05; }
.brand__name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--blue);
}
.brand__tag {
  display: block;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--black);
}
@media (min-width: 420px) {
  .brand__name { font-size: 1.75rem; }
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__toggle:hover { border-color: var(--blue); color: var(--blue); }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }

.nav__menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 22px;
}
.nav__menu.is-open { display: block; }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--blue); text-decoration: none; }
.nav__cta { margin-top: 18px; }

/* -- Services dropdown --
   Mobile: an accordion inside the slide-down panel.
   Desktop: a hover/focus flyout. `is-open` (set by JS on click) forces it open at
   both sizes so keyboard and touch users get the same behaviour as a mouse. */
.nav__list li.has-sub { position: relative; }

.nav__sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.nav__sub-toggle:hover,
.nav__sub-toggle[data-current] { color: var(--blue); }
.nav__sub-toggle svg { flex: none; transition: transform .2s ease; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 4px 0 8px 14px;
  border-left: 2px solid var(--blue-tint);
}
.nav__sub.is-open { display: block; }
/* Scoped through .nav__list so these outrank the generic `.nav__list a` rules,
   which are defined later in the sheet and would otherwise win on equal specificity. */
.nav__list .nav__sub a {
  font-size: 1.125rem;
  padding: 11px 2px;
  border-bottom: 0;
  letter-spacing: .04em;
}

@media (min-width: 1000px) {
  .nav__sub-toggle {
    width: auto;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
    font-size: 1.1875rem;
    letter-spacing: .07em;
  }
  .nav__sub-toggle:hover,
  .nav__sub-toggle[data-current] { border-bottom-color: var(--blue); }

  .nav__sub {
    display: block;
    position: absolute;
    top: calc(100% + 14px);
    left: -20px;
    z-index: 20;
    min-width: 268px;
    margin: 0;
    padding: 8px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  /* Bridges the gap between the toggle and the panel so the pointer can travel
     down without the flyout closing underneath it. */
  .nav__sub::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -17px;
    height: 17px;
  }
  .has-sub:hover .nav__sub,
  .has-sub:focus-within .nav__sub,
  .nav__sub.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list .nav__sub a {
    padding: 10px 22px;
    font-size: 1.0625rem;
    white-space: nowrap;
    border-bottom: 0;
  }
  .nav__list .nav__sub a:hover,
  .nav__list .nav__sub a[aria-current="page"] { background: var(--offwhite); color: var(--blue); }
  .nav__list .nav__sub li:first-child a {
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
    padding-bottom: 12px;
  }
}

@media (min-width: 1000px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex;
    position: static;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .nav__list { display: flex; align-items: center; gap: 28px; }
  .nav__list a {
    padding: 6px 0;
    border: 0;
    border-bottom: 3px solid transparent;
    font-size: 1.1875rem;
    letter-spacing: .07em;
  }
  .nav__list a:hover,
  .nav__list a[aria-current="page"] { border-bottom-color: var(--blue); }
  .nav__cta { margin-top: 0; }
  .nav__cta .btn { padding: 13px 24px; }
}

/* 06. Hero ================================================================ */

.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--navy);
  /* Placeholder photo — drop a real plumbing/heating shot at assets/hero.jpg.
     Renders as a clean navy field until the file exists. */
  background-image:
    linear-gradient(105deg, rgba(10, 30, 51, .95) 0%, rgba(15, 42, 68, .88) 45%, rgba(15, 42, 68, .70) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  color: #C9D6E2;
  border-bottom: 5px solid var(--blue);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 15% 0%, rgba(49, 112, 183, .30), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  padding-block: 64px 52px;
  max-width: 820px;
}
@media (min-width: 900px) {
  .hero__inner { padding-block: 108px 92px; }
}

.hero .eyebrow { color: #7FB0E4; }
.hero .eyebrow::before { background: #7FB0E4; }

.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: #7FB0E4;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #C3D2E0;
  max-width: 60ch;
  margin-bottom: 30px;
}
@media (min-width: 900px) {
  .hero__sub { font-size: 1.25rem; }
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}
@media (min-width: 560px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #DCE7F1;
}
.hero__badges svg { color: #7FB0E4; flex: none; }

/* 07. Emergency band ====================================================== */

.emergency {
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--blue);
}
.emergency__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block: 22px;
}
.emergency__msg {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.emergency__msg svg { color: var(--white); flex: none; }
.emergency__msg strong { color: #7FB0E4; font-weight: 700; }
.emergency .btn { flex: none; }

@media (min-width: 860px) {
  .emergency__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
  .emergency__msg { font-size: 1.5rem; }
}

/* 08. Services grid ======================================================= */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: var(--blue);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  flex: none;
}
.card:hover .card__icon { background: var(--blue); }

.card h3 {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.card p { font-size: .9375rem; color: var(--body); }
.card__foot { margin-top: auto; padding-top: 18px; }

/* 09. Why choose us ======================================================= */

.trust {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  height: 100%;
}
.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  flex: none;
}
.trust h3 {
  margin: 0;
  font-size: 1.3125rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.trust p { font-size: .9375rem; margin: 0; }

/* 10. Service areas ======================================================= */

.areas {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .areas { grid-template-columns: 1fr 1.05fr; gap: 64px; }
}

.areas__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  /* Closes off the last (partial) row so it doesn't end ragged */
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.areas__list li:last-child { border-bottom-color: transparent; }
@media (min-width: 560px) {
  .areas__list { grid-template-columns: repeat(3, 1fr); }
}
.areas__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
}
.areas__list svg { color: #7FB0E4; flex: none; }

.areas__note {
  padding: 22px 24px;
  background: rgba(255, 255, 255, .06);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
  color: #C3D2E0;
}
.areas__note strong { color: var(--white); }

/* 11. Reviews ============================================================= */

.reviews__flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 8px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0; /* <figure> carries a UA margin of 1em 40px */
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.review__stars { display: flex; gap: 3px; color: var(--blue); }
.review blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.review blockquote::before { content: "\201C"; }
.review blockquote::after { content: "\201D"; }
.review figcaption {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.review figcaption span {
  display: block;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

/* 12. Contact + form ====================================================== */

.contact {
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) {
  .contact { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
}

.contact__points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact__points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact__points svg { color: var(--blue); flex: none; margin-top: 3px; }
.contact__points strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__points li > span { color: var(--ink); font-weight: 600; }
.contact__points a { color: var(--blue); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px 24px 32px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 620px) { .form-card { padding: 36px 34px 38px; } }

.form-card h3 {
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.form-card__intro { font-size: .9375rem; margin-bottom: 24px; }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 620px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.field label .req { color: var(--blue); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F2A44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 112, 183, .18);
}
.field input::placeholder,
.field textarea::placeholder { color: #9AA8B4; }

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot { margin-top: 24px; }
.form-note {
  margin: 14px 0 0;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  background: var(--blue-tint);
  color: var(--ink);
  font-size: .9375rem;
}
.form-status.is-visible { display: block; }

/* 13. Footer ============================================================== */

.site-footer {
  background: var(--navy-deep);
  color: #A9BBCB;
  font-size: .9375rem;
}
.site-footer a { color: #CFDCE8; }
.site-footer a:hover { color: var(--white); }

.footer__top {
  display: grid;
  gap: 40px;
  padding-block: 56px 44px;
}
@media (min-width: 760px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__top { grid-template-columns: 1.35fr 1fr 1fr 1.1fr; gap: 44px; } }

.footer__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--white);
  padding: 8px;
}
.footer__brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer__brand-fallback {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  color: var(--blue);
}
.footer__brand-fallback span {
  display: block;
  font-size: .5rem;
  letter-spacing: .08em;
  color: var(--black);
  border-top: 1px solid var(--black);
  margin-top: 3px;
  padding-top: 3px;
}

.footer h2 {
  font-size: 1.1875rem;
  color: var(--white);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__col h2 {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__list--split { grid-template-columns: repeat(2, 1fr); gap: 11px 18px; }

.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 11px; }
.footer__contact svg { color: var(--blue); flex: none; margin-top: 3px; }
.footer__contact strong { display: block; color: var(--white); font-weight: 600; }

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 18px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  font-weight: 600;
}
.footer__social:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 22px 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem;
  color: #8496A6;
}
.footer__bottom p { margin: 0; }
@media (min-width: 760px) {
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* 14. Motion / accessibility ============================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 15. Interior pages ======================================================
   Used by services / service-areas / about / contact / 404.
   ========================================================================== */

/* -- Interior page hero -- */
.page-hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(105deg, rgba(10, 30, 51, .96) 0%, rgba(15, 42, 68, .90) 50%, rgba(15, 42, 68, .76) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  color: #C3D2E0;
  border-bottom: 5px solid var(--blue);
}
.page-hero__inner { padding-block: 40px 46px; max-width: 800px; }
@media (min-width: 900px) { .page-hero__inner { padding-block: 56px 64px; } }

.page-hero h1 {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  margin-bottom: 16px;
  text-wrap: balance;
}
.page-hero p {
  font-size: 1.0625rem;
  color: #C3D2E0;
  max-width: 62ch;
  margin-bottom: 0;
}
@media (min-width: 900px) { .page-hero p { font-size: 1.1875rem; } }
.page-hero .eyebrow { color: #7FB0E4; }
.page-hero .eyebrow::before { background: #7FB0E4; }

/* -- Breadcrumbs -- */
.breadcrumb { font-size: .8125rem; margin-bottom: 20px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: #93AAC1; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: #5C748C; }
.breadcrumb a { color: #9FC3EA; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* -- Shared bits -- */
.section--tight { padding-block: 44px; }

.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h3 {
  margin-top: 1.7em;
  margin-bottom: .5em;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.split { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .split--lead-left { grid-template-columns: 1.25fr 1fr; }
  .split--lead-right { grid-template-columns: 1fr 1.25fr; }
}

.factbox {
  padding: 24px 26px;
  background: var(--offwhite);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
}
.factbox h3 {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section--tint .factbox { background: var(--white); }
.section--navy .factbox {
  background: rgba(255, 255, 255, .06);
  color: #C3D2E0;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* Block + absolutely-positioned icon rather than flex: keeps mixed inline content
   (text plus [PLACEHOLDER] spans) on one wrapping run instead of splitting it into
   separate flex items. */
.checklist li {
  display: block;
  position: relative;
  padding-left: 27px;
  font-size: .9375rem;
  line-height: 1.55;
}
.checklist svg { position: absolute; left: 0; top: 5px; color: var(--blue); }
.section--navy .checklist { color: #C3D2E0; }
.section--navy .checklist svg { color: #7FB0E4; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
}
.section--tint .pills li { background: var(--white); }

.note-flag {
  display: inline-block;
  position: relative;
  margin: 0 0 24px;
  padding: 10px 15px 10px 38px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.4;
}
.note-flag svg { position: absolute; left: 15px; top: 13px; }

/* -- Quick jump nav (services page) -- */
.quicknav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.quicknav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.quicknav a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.quicknav svg { color: var(--blue); flex: none; }

/* -- Service detail blocks -- */
.service-block {
  display: grid;
  gap: 30px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.service-block:first-of-type { border-top: 0; padding-top: 8px; }
@media (min-width: 900px) {
  .service-block {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    padding-block: 64px;
    align-items: start; /* let the panel hug its content instead of stretching */
  }
}

.service-block__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  opacity: .55;
  margin-bottom: 10px;
}
.service-block h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.service-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  margin: 0 0 16px;
  font-size: 1.1875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.section--tint .panel { background: var(--white); }

/* -- Numbered process steps -- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding-top: 56px; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 62px;
  right: 0;
  height: 2px;
  background: var(--line);
}
@media (max-width: 619px) { .steps li::after { display: none; } }
.steps li:last-child::after { display: none; }
.steps h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.steps p { font-size: .9375rem; margin: 0; }

/* -- FAQ -- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__body { padding: 0 2px 24px; max-width: 72ch; font-size: .9375rem; }

/* -- Area cards -- */
.area-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.area-card__head svg { color: var(--blue); flex: none; }
.area-card__head h3 { margin: 0; text-transform: uppercase; letter-spacing: .03em; }
.area-card__meta {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--muted);
}

/* -- Map placeholder -- */
.map-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #EDF1F6 0 14px, #E5EBF2 14px 28px);
  color: var(--muted);
  font-size: .875rem;
}
.map-ph svg { color: var(--blue); }
.map-ph strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* -- Hours -- */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.hours li:last-child { border-bottom: 0; }
.hours .day {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
}
.hours .time { color: var(--ink); font-weight: 600; text-align: right; }
.hours li.is-emergency .time { color: var(--blue); }

/* -- People -- */
.person { text-align: left; }
.person__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-tint);
  border: 1px dashed var(--line-2);
  color: var(--blue);
}
.person h3 { margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.person__role {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -- Job photos: gallery + before/after --
   Every shot is a real Dagley's job, so they're content images with descriptive
   alt text, not decoration. Portrait phone photos and landscape ones are mixed,
   so a fixed aspect-ratio box keeps the grid tidy. */
.shot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.shot:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--offwhite);
}
.shot--tall img { aspect-ratio: 3 / 4; }
.shot figcaption {
  padding: 18px 20px 20px;
  font-size: .9375rem;
  color: var(--body);
  border-top: 1px solid var(--line);
}
.shot figcaption strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}
.section--navy .shot figcaption { background: var(--white); }

/* Before / after pairs */
.ba {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba__side { position: relative; margin: 0; min-width: 0; }
.ba__side + .ba__side { border-left: 1px solid var(--line); }
.ba__side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  background: var(--offwhite);
  display: block;
}
.ba__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15, 42, 68, .88);
  backdrop-filter: blur(2px);
}
.ba__tag--after { background: var(--blue); }
.ba figcaption {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.ba figcaption strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 479px) {
  /* Side by side gets too cramped to read on a small phone */
  .ba__pair { grid-template-columns: 1fr; }
  .ba__side + .ba__side { border-left: 0; border-top: 1px solid var(--line); }
  .ba__side img { aspect-ratio: 4 / 3; }
}

/* -- Reusable CTA band -- */
.cta-band {
  background: var(--navy);
  color: #C3D2E0;
  border-top: 5px solid var(--blue);
}
.cta-band__inner { display: grid; gap: 26px; padding-block: 52px; }
@media (min-width: 940px) {
  .cta-band__inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    gap: 48px;
  }
}
.cta-band h2 {
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}
.cta-band p { margin-bottom: 0; max-width: 58ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -- 404 -- */
.error-page { text-align: center; padding-block: 72px 84px; }
.error-page__code {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  line-height: .9;
  color: var(--blue);
  opacity: .22;
  margin-bottom: 8px;
}
.error-page h1 { text-transform: uppercase; }
.error-page p { max-width: 56ch; margin-inline: auto; }
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

@media print {
  .site-header, .emergency, .site-footer, .form-card { box-shadow: none; }
  .hero, .page-hero { background: none; color: #000; }
  .cta-band { background: none; color: #000; }
}
