/* ============================================================
   Cardinal Roof Renewal — stylesheet
   ------------------------------------------------------------
   PLACEHOLDER BRAND. "Cardinal Roof Renewal" and every contact
   detail are stand-ins — see README.md for the swap list.
   Voice of the design: industrial high-tech. White space and
   gunmetal ink, engineering steel-blue accents, a thin line of
   safety amber, hard shadows, ruled sections.
   ============================================================ */

/* ----- Tokens ----- */
:root {
  --bg: #ffffff;           /* page background */
  --bg-2: #f3f5f7;         /* tinted sections (cool gray) */
  --bg-3: #f9fafb;         /* subtle raised fills */
  --ink: #12181f;          /* gunmetal black — headings, rules, structure */
  --black: #0c141d;        /* blue-black — footer / dark bands */
  --text: #3b434c;         /* body copy */
  --mid: #67717c;          /* captions, fine print */
  --gray: #87919c;         /* muted emphasis */
  --gray-2: #b8c0c9;       /* decorative numerals, hard-shadow gray */
  --rule: #e1e5e9;         /* hairlines */
  --steel: #0d5c96;        /* engineering blue — links, CTAs, accents */
  --steel-deep: #0a4675;   /* hover / emphasis blue */
  --steel-bright: #5fabe2; /* blue accents on dark backgrounds */
  --steel-tint: #e9f1f8;   /* highlight fills, table "us" column */
  --volt: #f7b500;         /* safety amber — small industrial punctuation */
  --display: "Space Grotesk", "Work Sans", system-ui, sans-serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);
  --pop: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--steel); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--steel-deep); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--steel); color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ----- Type ----- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: normal; font-weight: 700; color: var(--steel); }

.dek {  /* standfirst under a heading */
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  line-height: 1.65;
  color: var(--text);
  max-width: 62ch;
}

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--volt); }
.kicker .kicker-no { color: var(--steel); font-family: var(--display); font-size: .95rem; letter-spacing: .02em; }

.fine { font-size: .84rem; line-height: 1.55; color: var(--mid); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center .dek { margin-inline: auto; }

/* ----- Layout ----- */
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 44px); }
.wrap-tight { max-width: 840px; }

.sec { padding-block: clamp(58px, 8vw, 104px); }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--rule); }
.band { background: var(--black); color: #c6ced6; }
.band h2, .band h3 { color: #fff; }
.band .kicker { color: #fff; }
.band .kicker::before { background: var(--volt); }
.band .fine { color: #8b97a3; }

.sec-top { max-width: 700px; margin-bottom: clamp(34px, 5vw, 54px); }
.sec-top .dek { margin-top: 14px; }
.sec-top.center { margin-inline: auto; }

.page-top { padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-top .dek { margin-top: 18px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  letter-spacing: .01em;
  padding: 15px 26px; border-radius: 4px;
  border: 2px solid var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: var(--pop);
}
.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn-solid { background: var(--steel); border-color: var(--steel); color: #fff; }
.btn-solid:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--gray-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--steel); border-color: var(--steel); color: #fff; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--gray-2); }
.btn-paper { background: #fff; color: var(--ink); border-color: #fff; }
.btn-paper:hover { background: #fff; color: var(--steel-deep); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(6, 30, 51, .55); }
.btn-big { padding: 18px 32px; font-size: 1.06rem; }
.btn-full { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ----- Header ----- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.head-in { display: flex; align-items: center; gap: 26px; padding-block: 15px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1.05; letter-spacing: -.02em; }
.brand-word em { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: .65rem; letter-spacing: .26em; text-transform: uppercase; color: var(--steel); }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 9px 13px; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .98rem; border-radius: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--steel-deep); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--steel-deep); font-weight: 600; border-bottom-color: var(--steel); border-radius: 4px 4px 0 0; }

.head-cta { display: flex; align-items: center; gap: 18px; }
.head-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: .98rem; }
.head-phone svg { width: 17px; height: 17px; color: var(--steel); }
.head-phone:hover { color: var(--steel-deep); }

.menu-btn {
  display: none; margin-left: auto;
  background: var(--bg); border: 2px solid var(--ink); border-radius: 4px;
  padding: 9px 16px; font-weight: 600; color: var(--ink);
  font-family: var(--display);
}
.menu-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }

.mobile-panel { display: none; border-top: 1px solid var(--rule); background: var(--bg); }
.mobile-panel a {
  display: block; padding: 15px clamp(20px, 4.5vw, 44px);
  border-bottom: 1px solid var(--rule);
  color: var(--ink); font-weight: 500; text-decoration: none; font-size: 1.05rem;
}
.mobile-panel a[aria-current="page"] { color: var(--steel-deep); font-weight: 700; }
.mobile-panel .m-cta { padding: 18px clamp(20px, 4.5vw, 44px); border-bottom: 2px solid var(--ink); display: grid; gap: 12px; }

@media (max-width: 920px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-panel:not([hidden]) { display: block; }
}

/* ----- Hero ----- */
.hero { padding-block: clamp(48px, 7vw, 92px); }
.hero-in { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy .dek { margin: 22px 0 30px; }
.hero-copy .actions { margin-bottom: 26px; }

.meta-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; list-style: none; }
.meta-ticks li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.meta-ticks svg { width: 16px; height: 16px; color: var(--steel); flex: none; }

@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-fig { max-width: 540px; }
}

/* ----- Figures & placeholders ----- */
.fig {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}
.fig figcaption {
  margin-top: 14px; padding-top: 11px;
  border-top: 1px solid var(--rule);
  font-size: .85rem; color: var(--mid); letter-spacing: .01em;
}

.ph {
  display: grid; place-items: center; text-align: center;
  min-height: 320px; padding: 30px;
  background: var(--bg-3);
  border: 2px dashed #c3cad1; border-radius: 8px;
  color: var(--gray);
}
.ph strong { display: block; font-family: var(--display); font-size: 1.05rem; color: #525b64; margin-bottom: 6px; }
.ph .fine { max-width: 30ch; margin-inline: auto; }

/* ----- Ruled grids (editorial columns) ----- */
.ruled { display: grid; gap: 26px 40px; padding: 0; list-style: none; }
.ruled > * { border-top: 2px solid var(--ink); padding-top: 22px; }
.ruled h3 { margin-bottom: 9px; }
.ruled p { font-size: .99rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.bignum {
  font-family: var(--display); font-weight: 700; font-size: 2rem;
  color: var(--steel); line-height: 1; display: block; margin-bottom: 12px;
}

/* ----- Split rows ----- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: center; }
.duo-wide { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .duo, .duo-wide { grid-template-columns: 1fr; } }
.duo h2 { margin-bottom: 16px; }
.duo .ticklist { margin-top: 20px; }

/* ----- Tick lists ----- */
.ticklist { list-style: none; padding: 0; display: grid; gap: 13px; }
.ticklist li { display: flex; gap: 12px; align-items: flex-start; }
.ticklist svg { width: 20px; height: 20px; flex: none; color: var(--steel); margin-top: 4px; }
.ticklist b { color: var(--ink); }
.ticklist.sage svg { color: var(--steel); }

/* ----- Tables ----- */
.t-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--ink); }
.compare th, .compare td { padding: 15px 18px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: .98rem; }
.compare thead th {
  font-family: var(--display); font-size: 1.02rem; color: var(--ink);
  border-bottom: 2px solid var(--ink); background: var(--bg-2);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare .hl { background: var(--steel-tint); }
.compare thead .hl { color: var(--steel-deep); }
.compare .hl b { color: var(--steel-deep); }

/* ----- Dark ledger band ----- */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; list-style: none; }
.ledger li { padding: 10px 30px; border-left: 1px solid rgba(255, 255, 255, .16); }
.ledger li:first-child { border-left: 0; padding-left: 0; }
.ledger b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; line-height: 1.1; letter-spacing: -.02em; }
.ledger b em { font-style: normal; color: var(--volt); }
.ledger span { font-size: .92rem; color: #95a1ad; }
@media (max-width: 800px) {
  .ledger { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .ledger li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ----- Pull quotes ----- */
.pull-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 760px) { .pull-grid { grid-template-columns: 1fr; } }
.pull { border-left: 4px solid var(--steel); padding-left: 24px; }
.pull p {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.16rem, 2vw, 1.38rem); line-height: 1.5; color: var(--ink);
  letter-spacing: -.012em;
}
.pull footer { margin-top: 14px; font-size: .92rem; font-weight: 600; color: var(--text); }
.pull footer span { display: block; font-weight: 400; color: var(--mid); font-size: .85rem; }

/* ----- Timeline ----- */
.timeline { list-style: none; padding: 0; display: grid; gap: 0; max-width: 720px; }
.timeline li { position: relative; padding: 0 0 34px 66px; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px;
  width: 2px; background: var(--rule);
}
.t-dot {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--steel);
}
.timeline h3 { margin-bottom: 6px; }
.timeline .t-when { display: inline-block; margin-left: 10px; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
.timeline p { font-size: .99rem; max-width: 56ch; }

/* ----- FAQ (native details) ----- */
.qa { border-top: 2px solid var(--ink); }
details.qa-item { border-bottom: 1px solid var(--rule); }
.qa-q {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 21px 4px;
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
  letter-spacing: -.012em;
}
.qa-q::-webkit-details-marker { display: none; }
.qa-q::after { content: "+"; font-family: var(--sans); font-weight: 500; font-size: 1.5rem; color: var(--steel); line-height: 1; transition: transform .18s ease; }
details[open] .qa-q::after { transform: rotate(45deg); }
.qa-q:hover { color: var(--steel-deep); }
.qa-a { padding: 0 4px 24px; max-width: 66ch; }
.qa-a p + p { margin-top: 10px; }

/* ----- Big CTA block ----- */
.big-cta {
  background: linear-gradient(135deg, #0e5f9b 0%, #093a62 100%);
  color: #d3e4f2;
  border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 8px 8px 0 var(--gray-2);
  padding: clamp(38px, 6vw, 68px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.big-cta h2 { color: #fff; margin-bottom: 14px; }
.big-cta p { max-width: 56ch; margin: 0 auto 28px; }
.big-cta .actions { justify-content: center; }
.big-cta .or-call { color: #a9c9e4; font-weight: 500; }
.big-cta .or-call a { color: #fff; font-weight: 700; }

/* ----- Forms ----- */
.lead-form { display: grid; gap: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); padding: clamp(24px, 3.5vw, 38px); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.f-field { display: grid; gap: 7px; }
.f-field label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.f-field label .opt { color: var(--mid); font-weight: 500; text-transform: none; letter-spacing: 0; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg-3); border: 1.5px solid #ccd3da; border-radius: 4px;
  padding: 13px 14px;
}
.f-field textarea { min-height: 120px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(13, 92, 150, .18);
}
.form-ok {
  background: var(--steel-tint); border: 2px solid var(--steel); border-radius: 6px;
  padding: 15px 18px; color: var(--steel-deep); font-weight: 600;
}
.form-ok .fine { color: #44627a; font-weight: 400; }

/* ----- Contact layout ----- */
.contact-cols { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-cols { grid-template-columns: 1fr; } }

.info-stack { display: grid; gap: 22px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row svg { width: 22px; height: 22px; color: var(--steel); flex: none; margin-top: 4px; }
.info-row h3 { font-size: 1.05rem; margin-bottom: 2px; }
.info-row a { color: var(--text); }
.info-row a:hover { color: var(--steel-deep); }

/* ----- Tags (service area) ----- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.tag { border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; padding: 7px 14px; font-weight: 500; font-size: .94rem; color: var(--ink); }

/* ----- Footer ----- */
.site-foot { background: var(--black); color: #aeb9c4; margin-top: clamp(56px, 8vw, 96px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 38px; padding-block: clamp(44px, 6vw, 64px) 38px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h3 { color: #fff; font-size: .95rem; font-family: var(--display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 15px; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-foot a { color: #c4cdd6; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand .brand-word { color: #fff; }
.foot-brand .brand-word em { color: var(--steel-bright); }
.foot-brand p { margin-top: 14px; font-size: .94rem; max-width: 34ch; }
.foot-base {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: .85rem; color: #8b97a3;
}
.foot-base a { color: #8b97a3; }

/* ----- Hero diagram animation ----- */
@keyframes drip {
  0% { transform: translateY(-8px); opacity: 0; }
  25% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
.drop-a, .drop-b, .drop-c { animation: drip 2.6s ease-in infinite; }
.drop-b { animation-delay: .85s; }
.drop-c { animation-delay: 1.7s; }

/* ----- Utilities ----- */
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 44px; }
.gap-after { margin-bottom: 26px; }
