/* Clearway Home Services: shared styles. Mobile-first. */

:root {
  --slate: #30454a;
  --slate-dark: #22333a;
  --slate-soft: #55696e;
  --teal: #11aaaa;        /* accents and large elements only */
  --teal-dark: #0b6e70;   /* buttons, links, small text (passes AA on off-white) */
  --teal-darker: #085558;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --line: #dfddd6;
  --text: #2a2f36;
  --muted: #5b636d;
  --radius: 6px;
  --wrap: 1120px;
  --head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--teal-darker); }

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

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.25rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding: 56px 0; }
.section--tint { background: #eeece6; }
.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 0.5rem;
}
.lead { font-size: 1.125rem; color: var(--text); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--slate); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--slate); text-decoration: none;
}
.brand img { height: 56px; width: auto; }
.site-footer .brand img { height: 56px; }
.brand-name {
  font-family: var(--head); font-weight: 700; font-size: 1.6rem;
  letter-spacing: 0.06em; line-height: 1; display: block;
}
.brand-sub {
  font-family: var(--head); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.3em; line-height: 1; display: block; margin-top: 4px;
  color: var(--teal-dark);
}
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--slate);
  text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav .nav-phone { color: var(--teal-dark); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  background: var(--teal-dark); color: #fff;
  padding: 14px 26px; border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--teal-darker); color: #fff; }
.btn--ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--slate);
  /* Stock photo for now: swap /assets/photos/hero.jpg for a real project photo. */
  background-image: linear-gradient(rgba(34,51,58,.80), rgba(34,51,58,.80)), url("/assets/photos/hero.jpg");
  background-size: cover; background-position: center;
  color: #fff;
}
.hero::after {
  /* the "clear way": a teal path sweeping up through the hero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(17, 170, 170, 0.16) 62% 70%, transparent 70%),
    linear-gradient(115deg, transparent 0 74%, rgba(17, 170, 170, 0.08) 74% 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .eyebrow { color: var(--teal); }
.hero p.lead { color: #dbe3ea; max-width: 46ch; }
.hero--page .wrap { padding-top: 48px; padding-bottom: 52px; }
.hero--page h1 { max-width: 20ch; font-size: clamp(2.2rem, 7vw, 3.5rem); }
/* Dictionary-style definition under the home headline */
.defn {
  max-width: 34rem; margin-top: 22px; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--teal); color: #dde5e7;
}
.defn-word { margin: 0 0 6px; }
.defn-word dfn {
  font-family: Georgia, "Times New Roman", serif; font-style: normal; font-weight: 700;
  font-size: 1.5rem; color: #fff;
}
.defn-word span { font-family: Georgia, "Times New Roman", serif; font-style: italic; margin-left: 6px; color: #b9c6c9; }
.defn ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 1.05rem; line-height: 1.5; }
.defn li::marker { font-weight: 700; color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Audience split cards */
.split { margin-top: -36px; position: relative; z-index: 2; }
.split-grid { display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  color: var(--text); text-decoration: none;
  box-shadow: 0 6px 22px rgba(34, 51, 58, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 51, 58, 0.14); color: var(--text); }
.card h2 { font-size: clamp(1.7rem, 5vw, 2.1rem); margin-bottom: 0.35em; }
.card p { color: var(--muted); flex: 1; }
.card .go { font-weight: 600; color: var(--teal-dark); }
.card .go::after { content: " \2192"; }

/* Photo strip */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 14px; margin: 0 -16px;
  list-style: none;
}
.strip li { scroll-snap-align: center; }
.shot {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--slate-soft);
  display: flex; align-items: flex-end;
  color: #fff; font-family: var(--head); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 1rem;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot span {
  position: relative; width: 100%; padding: 36px 12px 10px;
  background: linear-gradient(transparent, rgba(34, 51, 58, 0.88));
}

/* Credibility band */
.cred { background: var(--slate); color: #fff; padding: 28px 0; }
.cred ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: 1.25rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cred li { display: flex; align-items: center; gap: 10px; }
.cred li::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: var(--teal); transform: rotate(45deg);
}

/* Steps */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.steps li::before {
  content: counter(step);
  font-family: var(--head); font-weight: 700; font-size: 2.4rem; line-height: 1;
  color: var(--teal-dark); display: block; margin-bottom: 6px;
}
.steps p { margin: 0; color: var(--muted); }

/* Check list */
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--teal); border-radius: var(--radius);
  padding: 16px 18px;
}
.checks strong { display: block; color: var(--slate); font-size: 1.05rem; }
.checks span { color: var(--muted); }

.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.95rem; font-weight: 500; color: var(--slate);
}

/* Forms */
.form-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 18px;
  box-shadow: 0 6px 22px rgba(34, 51, 58, 0.06);
}
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--slate); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text);
  width: 100%; min-height: 48px;
  padding: 11px 12px;
  background: #fff; border: 1px solid #b9b6ad; border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { padding: 9px 10px; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(17, 170, 170, 0.55); outline-offset: 0; border-color: var(--teal-dark);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-foot p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Thank-you */
.thanks { padding: 72px 0; text-align: left; }
.thanks .big-phone {
  font-family: var(--head); font-weight: 700; font-size: 2rem; text-decoration: none;
}

/* Footer */
.site-footer { background: var(--slate-dark); color: #c9d2db; padding: 40px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer h2 {
  color: #fff; font-size: 1.15rem; letter-spacing: 0.12em; margin-bottom: 0.6em;
}
.foot-grid { display: grid; gap: 28px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand-sub { color: var(--teal); }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 28px; padding-top: 18px; font-size: 0.85rem; color: #9fabb8; }

/* Wider screens */
@media (min-width: 720px) {
  .section { padding: 80px 0; }
  .hero .wrap { padding-top: 96px; padding-bottom: 112px; }
  .hero--page .wrap { padding-top: 64px; padding-bottom: 68px; }
  .split { margin-top: -56px; }
  .split-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .card { padding: 32px 30px 28px; }
  .strip {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    overflow: visible; padding: 0; margin: 0;
  }
  .cred ul { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .checks { grid-template-columns: 1fr 1fr; }
  .form-panel { padding: 36px 34px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

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