/* ==========================================================================
   Summit Roofing & Exteriors — art direction: "weather-forged"
   Slate and storm, one copper accent. Architectural, heavy, structural.
   Display type is set tight and large; the grid leans on a hard diagonal
   roofline motif rather than a card grid.
   ========================================================================== */

:root {
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-weight: 800;
  --display-tracking: -0.035em;

  --bg: #0c1116;
  --bg-2: #121a22;
  --paper: #f1ede6;
  --paper-2: #e6e0d6;

  --ink: #eef3f7;
  --ink-soft: #9fb0be;
  --ink-faint: var(--ink-soft);

  --accent: #e0824a;
  --accent-text: var(--accent);
  --accent-ink: #1a0f07;
  --accent-deep: #b9612f;

  --hairline: rgba(159, 176, 190, .18);
  --hairline-strong: rgba(159, 176, 190, .34);
  --danger: #ff8080;
  --focus: var(--accent);

  --masthead-bg: rgba(12, 17, 22, .82);
  --panel-bg: #0c1116;
  --input-bg: rgba(255, 255, 255, .04);
  --input-radius: 4px;
  --btn-radius: 3px;
  --sim-bg: rgba(224, 130, 74, .08);

  --flag-bg: rgba(224, 130, 74, .12);
  --flag-ink: #f0a877;
  --flag-border: rgba(224, 130, 74, .4);
  --demo-bar-bg: #171f27;
  --demo-bar-ink: #b9c8d4;

  --measure: 1200px;
}

/* Sections on paper invert the token set rather than fighting it. */
.on-paper {
  background: var(--paper);
  --ink: #16202a;
  --ink-soft: #4e5f6d;
  --ink-faint: var(--ink-soft);
  --accent-text: #995128;
  --danger: #b03a2e;
  --hairline: rgba(22, 32, 42, .16);
  --hairline-strong: rgba(22, 32, 42, .3);
  --input-bg: #fff;
  --sim-bg: rgba(224, 130, 74, .1);
  color: var(--ink);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 3.5rem;
  overflow: hidden;
  background: var(--bg-2);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Fallback art: a drawn roofline that stands on its own if the photographic
   asset is unavailable. Never a broken image, never an empty box. */
.hero__media .fallback-art {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 80% at 70% 10%, #2b3a49 0%, #141d26 55%, #0c1116 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(12,17,22,.96) 0%, rgba(12,17,22,.72) 34%, rgba(12,17,22,.18) 68%, rgba(12,17,22,.45) 100%);
}

.hero .shell { position: relative; z-index: 2; }

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 8.4vw, 6.6rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}

.hero__caption {
  margin-top: 2.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: .82rem;
  color: var(--ink-faint);
  max-width: 62ch;
  letter-spacing: .02em;
}

/* --- Section furniture -------------------------------------------------- */

.band { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.kicker {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.band h2 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  max-width: 20ch;
}

.band__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-top: 1.4rem;
  line-height: 1.55;
}

/* --- Problem list: numbered editorial stack, not cards ------------------ */

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.problem-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem 1.4rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
@media (min-width: 820px) {
  .problem-list li { grid-template-columns: 5rem 22ch 1fr; gap: 2.5rem; align-items: baseline; }
}

.problem-list .num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: .04em;
  padding-top: .25rem;
}

.problem-list h3 { font-size: clamp(1.25rem, 3vw, 1.7rem); }

.problem-list p {
  color: var(--ink-soft);
  font-size: 1rem;
  grid-column: 2 / -1;
}
@media (min-width: 820px) {
  .problem-list p { grid-column: 3; font-size: 1.03rem; }
}

/* --- Services: editorial accordion -------------------------------------- */

.services { border-top: 1px solid var(--hairline); }

.service { border-bottom: 1px solid var(--hairline); }

.service__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service__trigger h3 {
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  transition: color .25s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.service__trigger:hover h3 { color: var(--accent-text); }
@media (min-width: 900px) {
  .service__trigger:hover h3 { transform: translateX(10px); }
}

.service__sign {
  width: 40px; height: 40px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 50%;
  position: relative;
  flex: none;
  transition: background-color .25s ease, border-color .25s ease;
}
.service__sign::before,
.service__sign::after {
  content: "";
  position: absolute;
  inset: 50% 28% auto 28%;
  height: 1.6px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .3s ease, opacity .2s ease;
}
.service__sign::after { transform: translateY(-50%) rotate(90deg); }
[aria-expanded="true"] .service__sign { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); }
[aria-expanded="true"] .service__sign::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.service__panel { padding: 0 0 clamp(1.6rem, 3vw, 2.4rem); }
.service__panel[hidden] { display: none; }

.service__body {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .service__body { grid-template-columns: minmax(0, 52ch) 1fr; gap: 3.5rem; }
}

.service__body p { color: var(--ink-soft); font-size: 1.05rem; }

.spec {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .55rem;
  align-content: start;
}
.spec li {
  display: flex;
  gap: .7rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.spec li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: .52em;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
}

/* --- Process: stepped rule ---------------------------------------------- */

.process {
  display: grid;
  gap: 0;
  counter-reset: step;
}
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); }
}

.process__step {
  padding: 2rem 0 2rem;
  border-top: 2px solid var(--hairline);
  position: relative;
}
@media (min-width: 900px) {
  .process__step { padding: 2.2rem 2rem 0 0; }
  .process__step:not(:last-child) { padding-right: 2.5rem; }
}

.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--accent-text);
  margin-bottom: .9rem;
}

.process__step h3 { font-size: 1.28rem; margin-bottom: .6rem; }
.process__step p { color: var(--ink-soft); font-size: .97rem; }

/* --- Assessment feature ------------------------------------------------- */

.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 940px) {
  .feature { grid-template-columns: 1fr 1fr; }
}

.feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-2);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media .fallback-art {
  width: 100%; height: 100%;
  background: linear-gradient(140deg, #263441 0%, #131c25 60%, #0c1116 100%);
}

.checklist {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: .1rem;
}
@media (min-width: 560px) {
  .checklist { grid-template-columns: 1fr 1fr; gap: .1rem 2rem; }
}
.checklist li {
  display: flex;
  gap: .8rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: .96rem;
  color: var(--ink-soft);
}
.checklist svg { flex: none; margin-top: .22em; color: var(--accent-text); }

/* --- Receptionist call-out ---------------------------------------------- */

.receptionist {
  position: relative;
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
}
.receptionist::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,0) 55%);
}
.receptionist .shell { position: relative; }

.receptionist__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .receptionist__grid { grid-template-columns: 1.5fr 1fr; gap: 4rem; }
}

.receptionist h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  max-width: 18ch;
}
.receptionist p {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  max-width: 50ch;
  color: rgba(26, 15, 7, .82);
}
.receptionist .btn {
  background: var(--bg);
  color: var(--ink);
}
.receptionist .btn:hover { background: #060a0e; }

.receptionist__note {
  margin-top: 1.2rem;
  font-size: .86rem;
  color: rgba(26, 15, 7, .72);
  max-width: 44ch;
}

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

.booking {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (min-width: 940px) {
  .booking { grid-template-columns: .85fr 1.15fr; }
}

.booking__aside h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.booking__aside p { color: var(--ink-soft); margin-top: 1.1rem; }

.booking__panel {
  background: var(--paper-2);
  border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.contact-line {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: .35rem;
}
.contact-line a {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
.contact-line a:hover { color: var(--accent-deep); }
.contact-line span { font-size: .86rem; color: var(--ink-faint); }

/* --- Diagonal roofline divider ------------------------------------------ */

.roofline {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 88px);
  color: var(--paper);
}
.roofline--up { color: var(--bg); }

/* --- Accordion heading --------------------------------------------------
   The <button> is wrapped by a real <h3> and takes its accessible name from
   the visible span inside it. There is no duplicate hidden heading and
   nothing user-visible is aria-hidden. */
.service__heading { margin: 0; font-size: inherit; letter-spacing: inherit; }

.service__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  line-height: 1.04;
  transition: color .25s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.service__trigger:hover .service__title { color: var(--accent-text); }
@media (min-width: 900px) {
  .service__trigger:hover .service__title { transform: translateX(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .service__trigger:hover .service__title { transform: none; }
}

.contact-line__number {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
