/* Pelsy Septic & Drain Cleaning — site styles
   Palette pulled from the truck photo: dusk sky, horizon pink, field tan, logo navy. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1f2b4d;          /* logo navy */
  --ink-soft: #4a5370;
  --dusk-top: #3b4c78;     /* sky, top of frame */
  --dusk-low: #5a6b95;     /* sky, lower */
  --horizon: #d8bbbd;      /* the pink line at the horizon */
  --field: #b88c73;        /* winter field */
  --blue: #2a5d9f;         /* logo blue, links */
  --paper: #f4f4f7;
  --white: #ffffff;
  --rule: #d9dbe4;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  --wrap: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: normal;
}

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

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--white);
  padding: 0.6rem 1rem; z-index: 50;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

h1, h2, h3 {
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.logo { flex: none; }
.logo img { width: 172px; height: auto; }

.nav { margin-left: auto; }
.nav ul {
  display: flex; gap: 0.25rem 1.5rem; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--field); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.btn-call {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--ink); color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem 0.55rem;
  border-radius: 6px;
  line-height: 1.15;
  flex: none;
}
.btn-call small { font-size: 0.78rem; font-weight: 500; opacity: 0.85; }
.btn-call strong { font-size: 1.08rem; font-stretch: 108%; font-weight: 750; font-variant-numeric: tabular-nums; }
.btn-call:hover { background: #2b3a66; }

/* ---------- Hero (dusk sky, horizon line) ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--dusk-top) 0%, var(--dusk-low) 100%);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.hero::after {
  /* horizon: a pink line of dusk light over the field */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 14px;
  background: linear-gradient(180deg, var(--horizon) 0 45%, var(--field) 45% 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p { color: #eef0f7; font-size: 1.12rem; }
.hero a:not(.phone-big) { color: var(--white); }

.phone-label {
  margin: 1.75rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e6e8f2;
}
.phone-big {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(2.1rem, 8.6vw, 4.1rem);
  font-stretch: 110%;
  white-space: nowrap;
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding-bottom: 0.08em;
  border-bottom: 4px solid var(--horizon);
}
.phone-big:hover { border-bottom-color: var(--white); }
.phone-note { margin-top: 0.9rem; font-size: 0.98rem; color: #e6e8f2; }

.hero-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(18, 24, 48, 0.6);
}
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Smaller hero on inner pages */
.hero--page .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.hero--page .phone-big { font-size: clamp(2.1rem, 8.6vw, 3.2rem); }
.hero--page .phone-label { margin-top: 0; }
.breadcrumb { font-size: 0.92rem; margin: 0 0 0.9rem; color: #dfe2ee; }
.breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--paper { background: var(--paper); }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

/* Services: name on the left, description on the right */
.services { margin-top: 2rem; border-top: 2px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.5rem 2.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.service h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { text-decoration: underline; }
.service p { margin-bottom: 0.5rem; }
.service .more { font-weight: 600; }

/* Service area */
.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.counties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 1.5rem;
}
.counties h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--field);
}
.counties ul { list-style: none; margin: 0; padding: 0; }
.counties li { padding-block: 0.12rem; }
.area-photo { margin: 0; }
.area-photo img { border-radius: 4px; width: 100%; }
.area-photo figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* FAQ */
.faq { max-width: 50rem; margin-top: 1.5rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.12rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0.25rem; top: 0.85rem;
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.1rem; }

/* Prose block on service and town pages */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.with-photo figure { margin: 0; }
.with-photo img { border-radius: 4px; }

/* Testimonials */
.quotes {
  columns: 2 22rem;
  column-gap: 2.5rem;
  margin-top: 2rem;
}
.quote {
  break-inside: avoid;
  margin: 0 0 2.25rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--horizon);
}
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; max-width: none; }
.quote figcaption { margin-top: 0.6rem; font-weight: 700; font-size: 0.95rem; }
.quote--lead blockquote p {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  font-stretch: 104%;
}

/* Resources */
.resources { list-style: none; padding: 0; margin: 1.25rem 0 0; max-width: 46rem; }
.resources li { padding-block: 0.6rem; border-bottom: 1px solid var(--rule); }
.resources span { color: var(--ink-soft); }

/* Call strip */
.call-strip {
  position: relative;
  background: var(--dusk-top);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.call-strip .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
}
.call-strip h2 { margin: 0; color: var(--white); max-width: 26ch; }
.call-strip .phone-big { font-size: clamp(2.1rem, 8.6vw, 3.2rem); }

/* ---------- Footer ---------- */

.site-footer {
  background: #182240;
  color: #d4d8e6;
  padding-block: 3rem 2.5rem;
  font-size: 0.97rem;
}
.site-footer a { color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.4fr 0.8fr;
  gap: 2rem;
}
.site-footer h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 0.15rem; }
.footer-name { font-size: 1.25rem; font-weight: 800; font-stretch: 112%; color: #fff; margin-bottom: 0.4rem; }
.copyright {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid #2f3a5c;
  font-size: 0.88rem; color: #aab1c8;
  max-width: none;
}

/* ---------- Mobile call bar ---------- */

.call-bar { display: none; }

@media (max-width: 52rem) {
  .hero .wrap,
  .hero--page .wrap,
  .area,
  .with-photo { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero--page .wrap { align-items: start; }
  .service { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 44rem) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0.4rem; }
  .logo img { width: 150px; }
  .site-header .btn-call { display: none; }
  .nav { margin-left: 0; width: 100%; }
  .nav ul { gap: 0.2rem 1.1rem; }
  .nav a { font-size: 0.95rem; }
  .counties { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }

  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
  .call-bar {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink); color: var(--white);
    text-decoration: none;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    font-weight: 750; font-stretch: 108%; font-size: 1.15rem;
    box-shadow: 0 -6px 18px -8px rgba(18, 24, 48, 0.5);
  }
  .call-bar span { font-weight: 500; opacity: 0.85; }
}

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

@media print {
  .call-bar, .nav, .skip { display: none !important; }
  .hero { background: none; color: var(--ink); }
  .hero h1, .hero p, .phone-big { color: var(--ink) !important; }
}

/* Town list in the footer runs long: two columns */
.footer-towns ul { columns: 2; column-gap: 1.25rem; }
