/* =========================================================
   Divine Flow Plumbing — styles
   Colors are sampled from the client's logo.
   ========================================================= */
:root {
  --navy: #002E7A;      /* wordmark */
  --blue: #0D469E;      /* drop */
  --blue-bright: #2E6FD1;
  --mist: #EEF3FA;
  --line: #D3DEEE;
  --ink: #12213D;
  --muted: #4A5872;
  --white: #FFFFFF;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-verse: "Cormorant Garamond", Georgia, serif;

  --wrap: 1120px;
  --gutter: 20px;
  --section-space: clamp(64px, 9vw, 112px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:hover { color: var(--navy); }

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--blue); color: var(--white); }
.btn-small { padding: 10px 16px; font-size: 0.95rem; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 28px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--navy);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font: 600 0.95rem var(--font-body);
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
}
.ripples {
  position: absolute;
  width: 900px;
  right: -260px;
  bottom: -420px;
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 14ch;
}
.hero-lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
}

/* The one bold move: the phone number set like van lettering */
.hero-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 11.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--blue);
  text-decoration: none;
  margin: 0.25em 0 0.3em;
  white-space: nowrap;
}
.hero-phone:hover { color: var(--navy); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-note {
  margin: 0;
  max-width: 32ch;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-logo { width: 100%; max-width: 380px; justify-self: end; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-space) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-tight { padding-top: clamp(40px, 6vw, 64px); }

/* ---------- Inner page header ---------- */
.page-header {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
}
.page-header h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); max-width: 18ch; }
.page-lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* ---------- Links ---------- */
.text-link {
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--navy); }

/* Current page in the menu */
.site-nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* ---------- Home: services overview ---------- */
.home-services-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.service-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}
.service-links a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--navy);
  text-decoration: none;
}
.service-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 760px) {
  .home-services-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- About page ---------- */
.about-page p { font-size: 1.15rem; max-width: 62ch; }

/* ---------- Call-to-action band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.2em; }
.cta-band p { color: #D6E1F3; font-size: 1.15rem; margin: 0; max-width: 44ch; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* ---------- Footer menu ---------- */
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 4px 0 14px; }
.section-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* ---------- Services ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  margin: 0;
  border-top: 2px solid var(--navy);
}
.service {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
/* Highlight the service someone clicked from the home page */
.service:target {
  background: var(--mist);
  box-shadow: -14px 0 0 var(--mist), 14px 0 0 var(--mist);
  border-bottom-color: var(--blue);
}
.service dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 6px;
}
.service dd { margin: 0; color: var(--muted); max-width: 48ch; }

@media (max-width: 700px) {
  .service-list { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.about-owner { color: var(--muted); font-weight: 500; }
.about-body p { font-size: 1.15rem; max-width: 58ch; }
.about-body p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Verse ---------- */
.verse {
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, var(--mist) 0%, var(--white) 70%);
}
.verse-inner { margin: 0 auto; }
.verse blockquote { margin: 0; }
.verse blockquote p {
  font-family: var(--font-verse);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--navy);
  max-width: 34ch;
  margin: 0 auto 0.8em;
}
.verse figcaption {
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
}

/* ---------- Service Area ---------- */
.area-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.area-list li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}
.area-note { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info p { font-size: 1.15rem; color: #D6E1F3; max-width: 40ch; }
.contact-methods { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-methods li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.15rem;
}
.contact-methods span { font-size: 0.85rem; color: #A9BCDD; }
.contact-methods a { color: var(--white); text-decoration: none; word-break: break-word; }
.contact-methods a:hover { text-decoration: underline; }

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: #A9BCDD; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible,
.field textarea:focus-visible { outline-color: #8DB5F5; }
.field .is-invalid { border-color: #FF9C9C; box-shadow: 0 0 0 2px #FF9C9C; }

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

.form-status { margin: 14px 0 0; min-height: 1.6em; font-weight: 500; }
.form-status.is-error { color: #FFC2C2; }
.form-status.is-success { color: #BFE6C6; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #001F55;
  color: #A9BCDD;
  padding: 36px 0;
  font-size: 0.95rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner p { margin: 0 0 6px; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}
.footer-copy { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
