/* CB Plumbing: copper and verdigris. Built on base.css. */

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

:root {
  /* Brand palette: verdigris (copper's own patina) leads, bright copper is the accent */
  --primary:      #0F7A6A;
  --primary-mid:  #16A38C;
  --primary-dark: #0A4F45;
  --accent:       #B4531E;
  --accent-mid:   #E0803F;
  --accent-dark:  #8A3A12;
  --accent-light: #F6C9A6;

  /* Neutrals */
  --bg:         #F3FAF7;
  --surface:    #ffffff;
  --mint:       #DDF2EB;
  --border:     #CFE5DE;
  --text:       #12302A;
  --text-soft:  #44605A;
  --text-muted: #56706A;

  /* Typography */
  --font-display: 'Sora', 'Trebuchet MS', sans-serif;
  --font-body:    'Albert Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      10px;
  --radius-lg:   24px;
  --slant:       clamp(1.5rem, 4vw, 3.5rem);
  --header-h:    4.25rem;

  /* base.css hooks */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-muted: var(--text-soft);
  --color-accent: var(--accent);
  --color-accent-text: #ffffff;
  --color-line: var(--border);
  --focus: var(--primary-dark);
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
h3 { font-size: var(--step-1); font-weight: 600; }

a { color: var(--primary-dark); }
a:hover { color: var(--accent); }

.container {
  width: auto;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Email addresses only ever break at the @ */
a.email,
a.email[href^="mailto:"] {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8em 1.5em;
  border-width: 2px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--mint); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--accent-light); color: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-ghost:hover { background: #fff; color: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 8px 20px -14px rgba(10, 79, 69, 0.55); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }

.nav-toggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { border-color: var(--primary); background: var(--mint); }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.header-call {
  order: 2;
  min-height: 48px;
  padding: 0.6em 0.95em;
}
.header-call .call-number { display: none; }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 3px solid var(--accent-mid);
  box-shadow: 0 16px 24px -18px rgba(10, 79, 69, 0.6);
}
.nav-links { list-style: none; padding: 0.5rem 0; }
.nav-links a {
  display: block;
  padding: 0.85rem clamp(1rem, 5vw, 2rem);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--mint); color: var(--primary-dark); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent-mid);
}

@media (min-width: 560px) {
  .header-call .call-number { display: inline; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    margin-left: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-links { display: flex; gap: 0.25rem; padding: 0; }
  .nav-links a {
    position: relative;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
  }
  .nav-links a[aria-current="page"] {
    background: var(--mint);
    color: var(--primary-dark);
    box-shadow: inset 0 -3px 0 var(--accent-mid);
  }
  .brand { margin-right: 0; }
  .header-call { order: 4; margin-left: 0.75rem; }
}

/* ---------- Hero (split screen with drawn pipe) ---------- */
.hero {
  position: relative;
  display: grid;
  background: var(--bg);
  overflow: hidden;
}

.pipe-svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.pipe-svg .pipe { fill: none; stroke: var(--accent-mid); stroke-width: 3.5; stroke-linecap: butt; stroke-linejoin: round; }
.pipe-svg .shine { fill: none; stroke: var(--accent-light); stroke-width: 1; stroke-linecap: butt; }
.pipe-svg .fitting { fill: var(--accent); }
.pipe-svg .tee { fill: var(--accent); }

.hero-copy {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 2.75rem var(--space-xl) calc(clamp(1rem, 5vw, 2rem) + 2.25rem);
}
.hero-copy > * + * { margin-top: var(--space-m); }
.hero-copy h1 { max-width: 15ch; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 34rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.3;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.hero-actions .btn { width: fit-content; }
.hero-alt { color: var(--text-soft); }
.hero-alt a { font-weight: 600; }

.hero-media {
  position: relative;
  z-index: 0;
  height: clamp(13rem, 40svh, 20rem);
  background: linear-gradient(135deg, #D07440 0%, #A64A1B 60%, #7A3412 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-page .hero-media img { object-position: 60% 50%; }

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    min-height: min(calc(100svh - var(--header-h)), 48rem);
  }
  .hero-page { min-height: min(calc(78svh - var(--header-h)), 36rem); }
  .hero-copy {
    align-self: center;
    padding-block: var(--space-2xl);
    padding-left: calc(max(2rem, (100vw - var(--container)) / 2 + 2rem) + 3rem);
    padding-right: var(--space-xl);
  }
  .hero-media {
    height: auto;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Phone and tablet: copper strip across the top of the hero, tighter copy so the photo comes up the screen */
@media (max-width: 1023.98px) {
  .hero {
    background:
      linear-gradient(var(--accent-mid), var(--accent-mid)) top left / 100% 6px no-repeat,
      var(--bg);
  }
  .hero-copy { padding-top: var(--space-l); padding-bottom: var(--space-l); }
  .hero-copy > * + * { margin-top: var(--space-s); }
  .hero-copy .lede { font-size: 1.1rem; line-height: 1.55; }
  .hero-copy .hero-actions { margin-top: var(--space-m); }
  .hero-media { height: clamp(14rem, 42svh, 22rem); }
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  gap: var(--space-s);
  margin-bottom: var(--space-xl);
}
.section-head p { color: var(--text-soft); font-size: var(--step-1); line-height: 1.6; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-xl); }
}

/* ---------- Verdigris band with angled edges ---------- */
.band {
  --focus: #ffffff;
  background: var(--primary);
  color: #fff;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding-block: calc(var(--section-pad) + var(--slant)) calc(var(--section-pad) * 0.9 + var(--slant));
}
.band h2 { color: #fff; }
.band .section-head p { color: #E3F5EF; }
.band-foot { margin-top: var(--space-xl); }

/* Manifold of service tiles: a pipe runs along and drops into each tile */
.jobs {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--space-m);
  padding-left: 2rem;
}
.jobs::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-mid);
  transform-origin: top;
  transition: transform 0.3s ease-out;
}
.jobs::after {
  content: "";
  position: absolute;
  left: calc(0.45rem - 5px);
  bottom: 0;
  width: 13px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent-light);
}
.job { position: relative; }
.job::before {
  content: "";
  position: absolute;
  left: calc(-2rem + 0.45rem);
  top: 1.9rem;
  width: calc(2rem - 0.45rem);
  height: 3px;
  background: var(--accent-mid);
  transform-origin: left;
  transition: transform 0.15s ease-out 0.2s;
}
.job::after {
  content: "";
  position: absolute;
  left: -7px;
  top: calc(1.9rem - 6px);
  width: 5px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent-light);
}
.job-card {
  height: 100%;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: var(--space-m);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.job-card h3 { font-size: var(--step-1); }
.job-card p { color: var(--text-soft); line-height: 1.55; }

.icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border-radius: 50%;
  background: #FCEBDD;
  color: var(--accent);
  flex: none;
}
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 768px) and (max-width: 1023px) {
  .job-card { grid-template-columns: auto 1fr; column-gap: var(--space-s); }
  .job-card .icon { grid-row: span 2; }
}

@media (min-width: 1024px) {
  .jobs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-left: 0;
    align-items: start;
  }
  .jobs::before {
    left: 2rem;
    right: calc((100% - 4 * var(--space-m)) / 5 - 2rem - 3px);
    top: 0;
    bottom: auto;
    width: auto;
    height: 3px;
    transform-origin: left;
  }
  .jobs::after {
    left: auto;
    right: calc((100% - 4 * var(--space-m)) / 5 - 2rem - 8px);
    top: -5px;
    bottom: auto;
    width: 5px;
    height: 13px;
  }
  .job { padding-top: var(--drop, 2rem); }
  .job:nth-child(1) { --drop: 2rem; }
  .job:nth-child(2) { --drop: 5rem; }
  .job:nth-child(3) { --drop: 3rem; }
  .job:nth-child(4) { --drop: 6rem; }
  .job:nth-child(5) { --drop: 3.5rem; }
  .job::before {
    left: 2rem;
    top: 0;
    width: 3px;
    height: var(--drop);
    transform-origin: top;
  }
  .job::after {
    left: calc(2rem - 6px);
    top: calc(var(--drop) - 6px);
    width: 15px;
    height: 5px;
  }
}

/* ---------- Split section (home) ---------- */
.split { padding-block: var(--section-pad) calc(var(--section-pad) * 0.7); }
.split-inner { display: grid; gap: var(--space-xl); align-items: center; }
.split-media {
  position: relative;
  margin: 0 0 14px 14px;
}
.split-media::before {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 55%;
  height: 70%;
  border-left: 3px solid var(--accent-mid);
  border-bottom: 3px solid var(--accent-mid);
  border-bottom-left-radius: 22px;
}
.split-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 55svh;
  border-radius: var(--radius);
  background: #E6EEEB;
}
.split-copy > * + * { margin-top: var(--space-m); }
.split-copy h3 { margin-top: var(--space-l); }
.split-copy p { color: var(--text-soft); }

.elbow-list { list-style: none; display: grid; gap: 0.7rem; }
.elbow-list li { position: relative; padding-left: 2rem; }
.elbow-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.1em;
  width: 0.95rem;
  height: 0.8rem;
  border-left: 3px solid var(--accent-mid);
  border-bottom: 3px solid var(--accent-mid);
  border-bottom-left-radius: 7px;
}

@media (min-width: 1024px) {
  .split-inner { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 6vw, 6rem); }
  .split-media img { aspect-ratio: 5 / 6; max-height: 34rem; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
}

/* ---------- Pipe divider ---------- */
.divider-wrap { padding-block: var(--space-l); }
.pipe-divider { width: 100%; height: auto; overflow: visible; }
.pipe-divider path { fill: none; stroke: var(--accent-mid); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.4s ease-out; }
.pipe-divider rect { fill: var(--accent); }


/* ---------- Copper call band ---------- */
.cta {
  --focus: #ffffff;
  background: var(--accent);
  color: #fff;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  padding-block: calc(var(--section-pad) * 0.8 + var(--slant)) calc(var(--section-pad) * 0.8);
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta-inner { display: grid; gap: var(--space-l); align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.cta p { color: #FFF1E6; }
.cta a:not(.btn) { color: #fff; font-weight: 600; }
.cta a:not(.btn):hover { color: #FFE2CC; }
.cta-copy > * + * { margin-top: var(--space-s); }
/* the pipe runs on into the call band */
.cta-copy {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent-light);
}
.cta-copy::before,
.cta-copy::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 13px;
  height: 5px;
  border-radius: 2px;
  background: #fff;
}
.cta-copy::before { top: 0; }
.cta-copy::after { bottom: 0; }
@media (min-width: 1024px) {
  .cta-inner { grid-template-columns: 1.2fr auto; gap: var(--space-2xl); }
}

/* ---------- Services page: central riser ---------- */
.run-section { padding-block: var(--section-pad) calc(var(--section-pad) * 0.6); }
.run {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--space-l);
  padding-left: 2.25rem;
}
.run::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-mid);
  transform-origin: top;
  transition: transform 0.35s ease-out;
}
.run-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem var(--space-s);
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-m);
}
.run-item h3 { align-self: center; }
.run-item p { color: var(--text-soft); grid-column: 1 / -1; line-height: 1.55; }
.run-item::before {
  content: "";
  position: absolute;
  left: calc(-2.25rem + 0.5rem);
  top: 2.6rem;
  width: calc(2.25rem - 0.5rem);
  height: 3px;
  background: var(--accent-mid);
}
.run-item::after {
  content: "";
  position: absolute;
  left: -7px;
  top: calc(2.6rem - 6px);
  width: 5px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent-light);
}
@media (min-width: 1024px) {
  .run {
    grid-template-columns: 1fr 1fr;
    column-gap: 7rem;
    row-gap: var(--space-l);
    padding-left: 0;
  }
  .run::before { left: calc(50% - 1.5px); }
  .run-item:nth-child(odd) { grid-column: 1; }
  .run-item:nth-child(even) { grid-column: 2; }
  .run-item:nth-child(1) { grid-row: 1 / span 2; }
  .run-item:nth-child(2) { grid-row: 2 / span 2; }
  .run-item:nth-child(3) { grid-row: 3 / span 2; }
  .run-item:nth-child(4) { grid-row: 4 / span 2; }
  .run-item:nth-child(5) { grid-row: 5 / span 2; }
  .run-item:nth-child(6) { grid-row: 6 / span 2; }
  .run-item:nth-child(odd)::before { left: 100%; width: 3.5rem; }
  .run-item:nth-child(odd)::after { left: auto; right: -7px; }
  .run-item:nth-child(even)::before { left: -3.5rem; width: 3.5rem; }
}
.run-note { margin-top: var(--space-xl); color: var(--text-soft); max-width: 44rem; }
.run-note a { font-weight: 600; }

/* Tools band (services) */
.tools { padding-block: calc(var(--section-pad) * 0.6) var(--section-pad); }
.tools-inner { display: grid; }
.tools-media { position: relative; margin-top: 14px; }
.tools-media::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 50%;
  height: 60%;
  border-left: 3px solid var(--accent-mid);
  border-top: 3px solid var(--accent-mid);
  border-top-left-radius: 22px;
}
.tools-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 50svh;
  border-radius: var(--radius);
  background: #6B4A33;
}
.tools-panel {
  --focus: #ffffff;
  position: relative;
  margin: -2.5rem 0.75rem 0;
  padding: var(--space-l);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--accent-mid);
}
.tools-panel > * + * { margin-top: var(--space-s); }
.tools-panel h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.tools-panel p { color: #E3F5EF; }
.tools-panel .btn { margin-top: var(--space-m); }
@media (min-width: 1024px) {
  .tools-inner { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .tools-media { grid-column: 1 / 9; grid-row: 1; }
  .tools-media img { aspect-ratio: 16 / 9; max-height: 30rem; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
  .tools-panel { grid-column: 7 / 13; grid-row: 1; margin: 4rem 0 0; padding: var(--space-xl); }
}

/* ---------- Contact page ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-xl) var(--section-pad);
}
.contact-grid { position: relative; z-index: 2; display: grid; gap: var(--space-xl); }
.contact .pipe-svg { z-index: 1; }
.contact-copy {
  position: relative;
  z-index: 2;
  padding-left: 2.25rem;
  padding-right: 2.75rem;
}
.contact-copy > * + * { margin-top: var(--space-m); }
.contact-copy h1 { max-width: 16ch; }
.detail { width: fit-content; max-width: 100%; }
.detail-label { display: block; font-weight: 600; color: var(--text-soft); font-size: var(--step--1); }
.detail-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem);
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}
a.detail-value:hover { color: var(--accent); text-decoration: underline; }

.form-panel {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--accent-mid);
  padding: var(--space-l) clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 24px 40px -32px rgba(10, 79, 69, 0.6);
}
.form-panel h2 { font-size: var(--step-2); margin-bottom: var(--space-m); }
.field + .field { margin-top: var(--space-m); }
.field input, .field textarea { background: var(--bg); border: 1.5px solid var(--border); }
.field input:hover, .field textarea:hover { border-color: var(--primary-mid); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary); border-color: var(--primary); }
.field .optional { font-weight: 400; color: var(--text-soft); }
.field-hint { margin-top: 0.4rem; font-size: var(--step--1); color: var(--text-soft); }
.form-note { margin-top: var(--space-m); font-size: var(--step--1); color: var(--text-soft); }
.contact-form .btn { width: 100%; margin-top: var(--space-l); }
.thanks h2 { margin-bottom: var(--space-s); }
.thanks p { color: var(--text-soft); }
.thanks:focus { outline: none; }
.thanks .elbow-mark { width: 3rem; height: 3rem; margin-bottom: var(--space-m); }

@media (min-width: 1024px) {
  .contact { padding-block: var(--space-2xl) var(--section-pad); }
  .contact::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40%;
    background: var(--primary);
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
  }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .contact-copy { padding-left: 3rem; padding-right: 0; padding-top: var(--space-l); }
}

/* ---------- Privacy ---------- */
.page-head { padding-block: var(--space-2xl) var(--space-m); }
.page-head p { color: var(--text-soft); margin-top: var(--space-s); }
.prose { padding-bottom: var(--section-pad); max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-xl); }
.prose p, .prose ul { margin-top: var(--space-s); color: var(--text-soft); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  --focus: #ffffff;
  background: var(--primary-dark);
  color: #D5EDE6;
  border-top: 4px solid var(--accent-mid);
  padding-block: var(--space-2xl) var(--space-l);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.footer-inner { display: grid; gap: var(--space-xl); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: #fff; }
.footer-brand p + p { margin-top: 0.4rem; }
.footer-heading { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: 0.6rem; font-size: var(--step-0); }
.footer-links { list-style: none; display: grid; gap: 0.35rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact p + p { margin-top: 0.4rem; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 3px solid var(--accent-mid);
  font-size: var(--step--1);
  position: relative;
}
/* copper run across the foot of the page, with two fittings */
.footer-base::before,
.footer-base::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 6px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent-light);
}
.footer-base::before { left: 20%; }
.footer-base::after { left: calc(20% + 2.25rem); }
.footer-name::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.8rem;
  margin-right: 0.6rem;
  border-left: 3px solid var(--accent-mid);
  border-top: 3px solid var(--accent-mid);
  border-top-left-radius: 7px;
  transform: rotate(180deg) scaleX(-1);
}
.credit a { color: #D5EDE6; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* ---------- Mobile navigation: kept last so nothing can show the links by accident ---------- */
@media (max-width: 767.98px) {
  .site-header .site-nav,
  .site-header.scrolled .site-nav,
  .site-header .site-nav .nav-links {
    display: none;
  }
  .site-header .site-nav.open,
  .site-header.scrolled .site-nav.open {
    display: block;
  }
  .site-header .site-nav.open .nav-links {
    display: block;
  }
}
