/* ============================================================
   Lucid Window Co — stylesheet
   Brand colours live in :root. Change them there, not below.
   ============================================================ */

:root {
  --deep:  #0f3247;
  --sky:   #2e7ba6;
  --sky-d: #24628a;
  --pane:  #e8f1f5;
  --white: #ffffff;
  --rule:  #c4d9e2;
  --muted: #52707f;
  --sun:   #e5a93c;

  --measure: 36rem;
  --page-max: 68rem;

  --step--1: 0.9375rem;
  --step-0:  1.0625rem;
  --step-1:  1.3rem;
  --step-2:  1.65rem;
  --step-3:  2.1rem;
  --step-4:  clamp(2.4rem, 7vw, 3.75rem);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--deep);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 105%; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--sky-d); text-underline-offset: 3px; }
a:hover { color: var(--deep); }

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

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- masthead ---------- */

.masthead { border-bottom: 1px solid var(--rule); }

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.75rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-weight: 700;
  font-stretch: 118%;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  color: var(--deep);
  text-decoration: none;
  margin-right: auto;
}

.nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: var(--step--1); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--deep); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--deep); font-weight: 600; }

.masthead-tel {
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  font-size: var(--step--1);
}

/* ---------- hero: light through a window ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--pane);
  background-image:
    linear-gradient(to right, rgba(15, 50, 71, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 50, 71, 0.09) 1px, transparent 1px);
  background-size: 9rem 9rem;
  background-position: center top;
  padding-block: clamp(3.5rem, 11vw, 6.5rem);
  border-bottom: 1px solid var(--rule);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 72% 8%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero h1 { max-width: 15ch; }

.hero-sub {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.8rem;
}

.hero-actions .tel { font-weight: 600; color: var(--deep); text-decoration: none; }
.hero-actions .tel:hover { text-decoration: underline; }

/* ---------- page header ---------- */

.pagehead { padding-block: clamp(2.5rem, 7vw, 4rem) 1.25rem; }
.pagehead p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; }

/* ---------- bands ---------- */

.band { padding-block: clamp(2.5rem, 7vw, 4.25rem); }
.band + .band { border-top: 1px solid var(--rule); }
.band-tint { background: var(--pane); border-top: 1px solid var(--rule); }

.lede { font-size: var(--step-1); line-height: 1.45; }

/* Ruled rows rather than floating cards. */
.entry {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem;
  display: grid;
  gap: 0.25rem 2.5rem;
}

.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.entry p { margin-bottom: 0; color: var(--muted); }

@media (min-width: 46rem) {
  .entry { grid-template-columns: 14rem 1fr; }
  .entry h3 { margin-bottom: 0; }
}

/* Checklist of what's included. */
.included { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }

.included li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.9rem;
  border-bottom: 1px solid var(--rule);
}

.included li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--sky);
  border-radius: 2px;
}

/* Numbered because it is genuinely a sequence. */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--rule);
  padding: 1.35rem 0 1.35rem 2.9rem;
  position: relative;
  max-width: var(--measure);
  color: var(--muted);
}

.steps li:last-child { border-bottom: 1px solid var(--rule); }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-weight: 700;
  font-stretch: 118%;
  font-size: var(--step-1);
  color: var(--sky);
  line-height: 1.2;
}

.steps strong { display: block; font-weight: 600; color: var(--deep); }

/* Service area */
.towns {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 44rem;
}

.towns li {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.3rem 0.7rem;
  font-size: var(--step--1);
  background: var(--white);
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  background: var(--deep);
  color: var(--white);
  padding: 0.85em 1.75em;
  border: 1px solid var(--deep);
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--sky-d); border-color: var(--sky-d); color: var(--white); }
.button[disabled] { opacity: 0.55; cursor: progress; }

/* ---------- call to action ---------- */

.cta { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 7vw, 4rem); }
.cta h2 { margin-bottom: 0.35em; }

/* ---------- form ---------- */

.form { max-width: 34rem; }

.field { margin-bottom: 1.35rem; }

.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .hint { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  font: inherit;
  color: var(--deep);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--sky); }

.field textarea { min-height: 7rem; resize: vertical; }

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

.form-status { margin-top: 1.1rem; max-width: var(--measure); font-weight: 600; }
.form-status:empty { margin-top: 0; }
.form-status[data-state="error"] { color: #a33224; }
.form-status[data-state="sent"] { color: var(--sky-d); }

/* ---------- contact details ---------- */

.details { color: var(--muted); }
.details dt { font-weight: 600; color: var(--deep); margin-top: 0.9rem; font-size: var(--step--1); }
.details dd { margin: 0.1rem 0 0; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  background: var(--deep);
  color: #b9cdd8;
  padding-block: 2.4rem;
  font-size: var(--step--1);
}

.footer a { color: var(--white); }
.footer p { max-width: none; margin-bottom: 0.35rem; }
.footer strong { color: var(--white); font-stretch: 112%; }

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