/* ==========================================================================
   Caliber Commercial Roofing
   Rebuild: light, photo-led, close to the print brand.
   ========================================================================== */

:root {
  --blue:       #1B6FBA;
  --blue-dark:  #135391;
  --navy:       #10314F;
  --navy-deep:  #0A2338;
  --sky:        #E8F1F9;
  --pale:       #F5F8FA;
  --line:       #DCE6EE;
  --white:      #FFFFFF;
  --gold:       #E0A526;

  --ink:        #17293A;
  --ink-soft:   #4E6478;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 46px);
  --shadow: 0 2px 4px rgba(16,49,79,0.05), 0 12px 28px rgba(16,49,79,0.08);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--navy);
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p  { margin: 0 0 1.05em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 780px; }

.eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .8rem;
}
.on-dark .eyebrow { color: #86BEEC; }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-soft); }
.on-dark .lede { color: rgba(255,255,255,.82); }

section { padding-block: clamp(52px, 6.5vw, 92px); }
.tone-pale { background: var(--pale); }
.tone-sky { background: var(--sky); }
.on-dark { background: var(--navy); color: rgba(255,255,255,.85); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark a { color: #9BCBF0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display);
  font-size: 1.02rem; font-weight: 700;
  padding: .92rem 1.65rem;
  border: 2px solid transparent; border-radius: 4px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(27,111,186,.28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 520px) { .btn-row { flex-direction: column; } .btn { width: 100%; } }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar .hide-sm { display: none; }

.masthead { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding-block: .8rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; color: var(--navy); }
.brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-top: 4px; white-space: nowrap; }

.nav { display: none; gap: 1.5rem; align-items: center; }
.nav a { font-family: var(--display); font-size: .98rem; font-weight: 600; color: var(--navy); text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }

.call { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.1; }
.call small { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.call strong { font-family: var(--display); font-size: 1.3rem; color: var(--navy); }
.call:hover strong { color: var(--blue); }

@media (min-width: 920px) { .nav { display: flex; } .topbar .hide-sm { display: inline; } }

/* ==========================================================================
   Photo frames. An <img> sits on a finished panel, so an image that has not
   been supplied yet still reads as deliberate rather than broken.
   ========================================================================== */

.shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(160deg, #2B7EC6 0%, var(--navy) 78%);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}
.shot::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px),
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.16), transparent 60%);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: relative; z-index: 2;
  width: 100%;
  padding: 14px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(to top, rgba(10,35,56,.86), rgba(10,35,56,0));
}
.shot-tall { aspect-ratio: 4/5; }
.shot-wide { aspect-ratio: 16/9; }
.shot-square { aspect-ratio: 1/1; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { background: var(--pale); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: clamp(30px, 4vw, 56px); align-items: center; padding-block: clamp(44px, 5.5vw, 80px); }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.02fr .98fr; } }

.hero h1 { max-width: 17ch; }
.hero h1 span { color: var(--blue); }
.hero p.lede { max-width: 48ch; }
.hero .btn-row { margin-top: 1.5rem; }

.hero-shot { aspect-ratio: 5/4; box-shadow: var(--shadow); }

.badges { display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.badges span { display: flex; align-items: center; gap: .45rem; }
.badges span::before { content: ""; width: 17px; height: 17px; background: var(--blue); flex: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.4 11.6 3 8.2l1.1-1.1 2.3 2.3 5.5-5.5L13 5z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.4 11.6 3 8.2l1.1-1.1 2.3 2.3 5.5-5.5L13 5z' fill='black'/></svg>") center/contain no-repeat; }

/* Interior banner */
.banner { background: var(--navy); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.banner .wrap { padding-block: clamp(42px, 5.5vw, 74px); position: relative; z-index: 2; }
.banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 88% 10%, rgba(43,126,198,.55), transparent 62%); }
.banner h1 { color: var(--white); max-width: 20ch; }
.banner p { color: rgba(255,255,255,.82); max-width: 58ch; font-size: 1.1rem; margin-bottom: 0; }
.crumbs { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 1.1rem; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trustbar { background: var(--navy); color: var(--white); }
.trustbar .wrap { display: grid; gap: 22px; padding-block: 30px; text-align: center; }
@media (min-width: 700px) { .trustbar .wrap { grid-template-columns: repeat(4, 1fr); } }
.trustbar b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--white); }
.trustbar span { font-size: .88rem; color: rgba(255,255,255,.72); }

/* ==========================================================================
   Grids and cards
   ========================================================================== */

.grid { display: grid; gap: 26px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(16,49,79,.04);
  transition: box-shadow .16s ease, transform .16s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .shot { border-radius: 0; aspect-ratio: 16/10; min-height: 0; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

.warranty-tag {
  display: inline-flex; align-items: baseline; gap: .3rem;
  background: var(--sky); color: var(--navy);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 3px;
  align-self: flex-start; margin-bottom: .8rem;
}
.warranty-tag b { font-family: var(--display); font-size: 1.05rem; }

.ticks { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; color: var(--ink-soft); font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.4 11.6 3 8.2l1.1-1.1 2.3 2.3 5.5-5.5L13 5z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.4 11.6 3 8.2l1.1-1.1 2.3 2.3 5.5-5.5L13 5z' fill='black'/></svg>") center/contain no-repeat;
}
.on-dark .ticks li { color: rgba(255,255,255,.84); }
.on-dark .ticks li::before { background: #86BEEC; }

.card .more { margin-top: auto; font-family: var(--display); font-weight: 700; color: var(--blue); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

.split { display: grid; gap: clamp(30px,4.5vw,56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-top { align-items: start; }

/* ==========================================================================
   Process
   ========================================================================== */

.steps { display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5,1fr); gap: 16px; } }
.step { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px 24px; }
.step::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.step p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Heat comparison
   ========================================================================== */

.heat { display: grid; gap: 16px; }
@media (min-width: 560px) { .heat { grid-template-columns: 1fr 1fr; } }
.heat-card { border-radius: 8px; padding: 26px 24px; color: var(--white); }
.heat-hot { background: linear-gradient(150deg,#D4491F,#8E2B10); }
.heat-cool { background: linear-gradient(150deg,#2B7EC6,var(--navy)); }
.heat-card .temp { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem,7vw,3.9rem); line-height: .95; }
.heat-card .label { font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.heat-card p { margin: .8rem 0 0; font-size: .95rem; opacity: .92; }

/* ==========================================================================
   Tables, tags, quotes
   ========================================================================== */

.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .99rem; }
.compare thead th { font-family: var(--display); font-size: 1.08rem; color: var(--navy); background: var(--sky); }
.compare tbody th { font-weight: 600; color: var(--navy); width: 26%; }
.compare td { color: var(--ink-soft); }
.compare .yes { color: var(--navy); font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { font-weight: 600; font-size: .96rem; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); }
.on-dark .tags li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.24); color: var(--white); }

.quote { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; padding: 22px 24px; }
.quote p { font-size: 1.03rem; color: var(--ink); margin-bottom: .7rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .92rem; }

.note { background: #FFF6E1; border-left: 3px solid var(--gold); padding: 14px 16px; font-size: .95rem; color: #6D4E11; border-radius: 0 4px 4px 0; }

/* ==========================================================================
   CTA band + form + footer
   ========================================================================== */

.cta-band { background: var(--navy); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 130% at 85% 15%, rgba(43,126,198,.5), transparent 60%); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px,3.5vw,34px); box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--body); font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 116px; resize: vertical; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: .9rem; }

.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding-block: 52px 26px; font-size: .96rem; }
.footer h4 { color: var(--white); font-size: 1.1rem; margin: 0 0 .8rem; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .4rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.colophon { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between; }

.mobile-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -2px 12px rgba(0,0,0,.18); }
.mobile-call a { font-family: var(--display); font-weight: 700; font-size: 1rem; text-align: center; padding: .85rem .5rem; text-decoration: none; }
.mobile-call a:first-child { background: var(--navy); color: var(--white); }
.mobile-call a:last-child { background: var(--blue); color: var(--white); }
@media (min-width: 920px) { .mobile-call { display: none; } }
@media (max-width: 919px) { body { padding-bottom: 54px; } }

/* ==========================================================================
   v3 additions
   ========================================================================== */

/* --- Mobile navigation ---------------------------------------------------- */

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 44px;
  background: var(--white); border: 1px solid var(--line); border-radius: 5px;
  cursor: pointer; padding: 0;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: var(--navy); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
  transition: transform .18s ease, top .18s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a {
  display: block; padding: 14px 0;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: var(--navy); text-decoration: none;
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav .sub a { padding-left: 16px; font-weight: 400; font-family: var(--body); font-size: .98rem; color: var(--ink-soft); }
@media (min-width: 920px) { .nav-toggle, .mobile-nav { display: none !important; } }

/* --- FAQ accordion -------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: var(--white); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 8px 22px 0; margin: 0; color: var(--ink-soft); }
.faq details p + p { padding-top: 0; margin-top: -8px; }

/* --- Gallery -------------------------------------------------------------- */

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .shot { aspect-ratio: 4/3; min-height: 0; }

/* --- Certification / badge row -------------------------------------------- */

.creds { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds .wrap { display: grid; gap: 20px; padding-block: 26px; }
@media (min-width: 700px) { .creds .wrap { grid-template-columns: repeat(4, 1fr); } }
.cred { display: flex; gap: .7rem; align-items: flex-start; }
.cred svg { flex: none; margin-top: 2px; }
.cred b { display: block; font-family: var(--display); font-size: 1rem; color: var(--navy); line-height: 1.25; }
.cred span { font-size: .88rem; color: var(--ink-soft); }

/* --- Testimonials --------------------------------------------------------- */

.reviews { display: grid; gap: 22px; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: .8rem; }
.stars svg { flex: none; }
.review p { font-size: 1rem; color: var(--ink); }
.review footer { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.review footer b { display: block; color: var(--navy); font-family: var(--display); font-size: .98rem; }

/* --- Map ------------------------------------------------------------------ */

.map { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 0; }
.map iframe { width: 100%; height: 340px; border: 0; }

/* --- Inline CTA strip ----------------------------------------------------- */

.strip { background: var(--blue); color: var(--white); }
.strip .wrap { display: grid; gap: 18px; align-items: center; padding-block: 30px; }
@media (min-width: 820px) { .strip .wrap { grid-template-columns: 1fr auto; } }
.strip h2 { color: var(--white); margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.strip p { margin: .3rem 0 0; color: rgba(255,255,255,.88); }
.strip .btn-primary { background: var(--white); color: var(--blue); box-shadow: none; }
.strip .btn-primary:hover { background: var(--sky); color: var(--blue-dark); }

/* --- Area list ------------------------------------------------------------ */

.area-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; padding: 20px 22px; text-decoration: none;
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.area:hover { box-shadow: var(--shadow); border-color: var(--blue); transform: translateY(-2px); }
.area b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); margin-bottom: .2rem; }
.area span { font-size: .93rem; color: var(--ink-soft); }

/* --- Scroll reveal -------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Header fits on a phone: the number stays on one line, and drops out on the
   narrowest screens where the sticky call bar already covers it. */
.call strong { white-space: nowrap; }
@media (max-width: 899px) { .masthead .wrap { gap: .8rem; } .call strong { font-size: 1.15rem; } }
@media (max-width: 540px) { .call { display: none; } }

/* ==========================================================================
   v4 — visual weight. Full-bleed photo treatments with rich gradient
   fallbacks, so the page reads finished with or without photography.
   ========================================================================== */

.hero-full {
  position: relative;
  background:
    linear-gradient(105deg, rgba(6,26,45,.94) 0%, rgba(9,38,66,.86) 44%, rgba(16,72,122,.62) 100%),
    linear-gradient(160deg, #2E86D0 0%, #0B2942 70%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
  border-bottom: 0;
}
.hero-full.has-photo { background-image:
  linear-gradient(100deg, rgba(6,26,45,.95) 0%, rgba(8,33,56,.8) 45%, rgba(10,38,64,.16) 100%),
  url("img/hero-commercial-roof.jpg");
  background-position: center; }
.hero-full.has-photo::before { opacity: .3; }
.hero-full::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 26px);
}
.hero-full .wrap { position: relative; z-index: 2; display: grid; gap: clamp(28px,3.5vw,46px); align-items: center; padding-block: clamp(46px,6vw,88px); }
@media (min-width: 1000px) { .hero-full .wrap { grid-template-columns: 1.15fr .85fr; } }

.hero-full h1 { color: var(--white); max-width: 15ch; font-size: clamp(2.3rem, 5.1vw, 4rem); }
.hero-full h1 span { color: #6FC0FF; }
.hero-full .eyebrow { color: #8FCBF5; }
.hero-full p.lede { color: rgba(255,255,255,.85); max-width: 50ch; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px; padding: .38rem .85rem;
  font-size: .88rem; font-weight: 600; color: var(--white);
}
.hero-badges span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

.hero-form {
  background: var(--white); border-radius: 10px; padding: clamp(20px,2.6vw,28px);
  box-shadow: 0 20px 48px rgba(3,18,33,.4);
  border-top: 5px solid var(--gold);
}
.hero-form h2 { font-size: 1.4rem; margin-bottom: .2rem; }
.hero-form > p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.hero-form .field { margin-bottom: .7rem; }
.hero-form .field input, .hero-form .field select, .hero-form .field textarea { padding: .62rem .75rem; }
.hero-form .btn { width: 100%; }
.hero-form .fineprint { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }

/* Proof strip directly under the hero */
.proof { background: var(--navy-deep); color: rgba(255,255,255,.8); }
.proof .wrap { display: grid; gap: 16px; padding-block: 20px; align-items: center; }
@media (min-width: 760px) { .proof .wrap { grid-template-columns: repeat(4,1fr); } }
.proof div { display: flex; align-items: center; gap: .6rem; font-size: .93rem; font-weight: 600; }
.proof svg { flex: none; }

/* Photo-backed CTA */
.cta-photo {
  position: relative; color: var(--white);
  background:
    linear-gradient(100deg, rgba(6,26,45,.93), rgba(11,52,88,.78)),
    linear-gradient(150deg, #2E86D0, #0B2942);
  background-size: cover; background-position: center;
}
.cta-photo.has-photo { background-image:
  linear-gradient(100deg, rgba(6,26,45,.9), rgba(11,52,88,.55)), url("img/manufacturing-plant.jpg"); }
.cta-photo h2 { color: var(--white); }
.cta-photo p { color: rgba(255,255,255,.85); }

/* Banner gets the same depth as the hero */
.banner {
  background:
    linear-gradient(102deg, rgba(6,26,45,.95) 0%, rgba(10,44,74,.85) 50%, rgba(18,80,132,.6) 100%),
    linear-gradient(155deg, #2E86D0, #0B2942);
  background-size: cover; background-position: center;
}
.banner::after { display: none; }

/* Cards: photo lifts on hover, like a gallery rather than a brochure */
.card .shot img, .gallery .shot img { transition: transform .5s ease; }
.card:hover .shot img, .gallery .shot:hover img { transform: scale(1.06); }
.gallery .shot { cursor: zoom-in; }

/* Section heads get more presence */
.section-head { max-width: 780px; margin-bottom: clamp(28px,3.2vw,40px); }
.section-head h2 { margin-bottom: .5rem; }
.section-head .lede { margin-bottom: 0; }

/* Numbers with real weight */
.trustbar { background: linear-gradient(100deg, var(--navy), #164C7E); }
.trustbar b { font-size: clamp(2.1rem, 3.6vw, 2.8rem); }
.trustbar .wrap { padding-block: 38px; }
.trustbar div { position: relative; }
@media (min-width: 700px) {
  .trustbar div + div::before {
    content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
    width: 1px; background: rgba(255,255,255,.18);
  }
}

/* Real logo file drops in at assets/img/logo.svg (or .png). Until then the
   text lockup below stands in. Do not ship the stand-in mark to production. */
.brand-logo { max-height: 46px; width: auto; }
.brand-lockup { display: flex; align-items: center; gap: .55rem; }
.brand-lockup .brand-name { font-size: 1.6rem; letter-spacing: -.015em; }

/* ==========================================================================
   v6 — motion
   ========================================================================== */

/* Header condenses once you start scrolling */
.masthead { transition: padding .22s ease, box-shadow .22s ease; }
.masthead.stuck { box-shadow: 0 4px 18px rgba(16,49,79,.12); }
.masthead.stuck .wrap { padding-block: .45rem; }
.masthead.stuck .brand-logo { max-height: 36px; }
.masthead.stuck .brand-name { font-size: 1.3rem; }
.masthead.stuck .brand-sub { font-size: .54rem; }

/* Hero light drifts slowly, the way sun moves across a roof */
.hero-full::after {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(38% 46% at 70% 22%, rgba(111,192,255,.28), transparent 62%);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
.hero-full.has-photo::after { opacity: .55; }

/* Staggered entrance */
.reveal > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > *:nth-child(2) { transition-delay: .09s; }
.reveal.in > *:nth-child(3) { transition-delay: .18s; }
.reveal.in > *:nth-child(4) { transition-delay: .27s; }
.reveal.in > *:nth-child(5) { transition-delay: .36s; }
.reveal.in > *:nth-child(6) { transition-delay: .45s; }

/* Counters land rather than just sit there */
.trustbar b { font-variant-numeric: tabular-nums; }

/* Cards */
.card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card:hover { border-color: #BCD6EA; }
.card .more { position: relative; }
.card .more::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--blue); transition: width .22s ease;
}
.card:hover .more::after { width: 100%; }

/* Buttons get a little travel */
.btn-primary:hover, .btn-solid:hover { transform: translateY(-2px); }
.btn { transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }

/* Before / after drag slider. Both layers stay full size; the top one is
   clipped with clip-path so a photo never distorts as the divider moves. */
.ba {
  position: relative; overflow: hidden; border-radius: 8px;
  aspect-ratio: 16/10; user-select: none; touch-action: none;
  box-shadow: var(--shadow); cursor: ew-resize;
  --pos: 50%;
}
.ba-layer { position: absolute; inset: 0; }
.ba-before { background: linear-gradient(160deg, #7C8894, #333F4B); }
.ba-after  { background: linear-gradient(160deg, #2E86D0, #0B2942); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  background: var(--white); transform: translateX(-1.5px); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(10,35,56,.25); z-index: 4;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--white); box-shadow: 0 4px 14px rgba(10,35,56,.35);
}
.ba-handle::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 18px; height: 10px; margin: -5px 0 0 -9px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'><path d='M6 0 0 5l6 5zM12 0l6 5-6 5z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'><path d='M6 0 0 5l6 5zM12 0l6 5-6 5z' fill='black'/></svg>") center/contain no-repeat;
}
.ba:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ba-tag {
  position: absolute; bottom: 14px; z-index: 5;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: rgba(10,35,56,.72);
  padding: .3rem .7rem; border-radius: 3px;
}
.ba-tag-before { right: 14px; }
.ba-tag-after { left: 14px; }

/* Gallery lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6,20,33,.92);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 6px; }
.lightbox .lb-panel {
  width: min(900px, 100%); aspect-ratio: 4/3;
  background: linear-gradient(160deg, #2E86D0, #0B2942);
  border-radius: 6px; display: grid; place-items: center;
  color: rgba(255,255,255,.75); font-weight: 600; text-align: center; padding: 24px;
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: 0; color: var(--white);
  font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 6px 12px;
}
.lightbox .lb-cap {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.85); font-size: .95rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-full::after { animation: none; }
  .reveal > * { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
.lightbox .lb-body { width: min(980px, 100%); display: flex; justify-content: center; }

/* ==========================================================================
   v7 — brand header. Navy masthead to match the Caliber identity, with a
   recreated wordmark standing in until the print-shop vector arrives.
   ========================================================================== */

.masthead { background: var(--navy-deep, #0A2338); border-bottom: 1px solid rgba(255,255,255,.08); }
.masthead .nav a { color: rgba(255,255,255,.82); }
.masthead .nav a:hover { color: #fff; }
.masthead .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.masthead .call small { color: rgba(255,255,255,.55); }
.masthead .call strong { color: #fff; }
.masthead .nav-toggle { background: transparent; border-color: rgba(255,255,255,.3); }
.masthead .nav-toggle span, .masthead .nav-toggle span::before, .masthead .nav-toggle span::after { background: #fff; }
.masthead .nav-toggle[aria-expanded="true"] span { background: transparent; }
.masthead.stuck { box-shadow: 0 4px 18px rgba(3,14,26,.5); }

.brand-mark { display: block; height: 52px; width: auto; }
.masthead.stuck .brand-mark { height: 42px; }
.brand-mark text { font-family: var(--display); }
.brand-mark { height: 58px; }
.masthead.stuck .brand-mark { height: 46px; }

/* ==========================================================================
   v8 — blog / resources
   ========================================================================== */

.post-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.post-meta b { color: var(--navy); font-family: var(--display); }
.cat-chip { display: inline-block; background: var(--sky); color: var(--blue-dark); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .7rem; border-radius: 999px; }

.post { max-width: 760px; }
.post h2 { margin-top: 2.4rem; }
.post h3 { margin-top: 1.8rem; }
.post ul, .post ol { margin: 1rem 0 1.2rem 1.2rem; }
.post li { margin-bottom: .45rem; }
.post table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.post th, .post td { text-align: left; padding: .7rem .8rem; border: 1px solid var(--line); font-size: .97rem; }
.post th { background: var(--pale); font-family: var(--display); color: var(--navy); }

.cta-inline {
  background: var(--sky); border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 2rem 0;
}
.cta-inline p { margin: 0 0 .8rem; color: var(--ink); }
.cta-inline .btn { margin: 0; }

.post-grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue); }
.post-card .cat-chip { align-self: flex-start; margin-bottom: .8rem; }
.post-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: .5rem; }
.post-card p { color: var(--ink-soft); font-size: .95rem; flex-grow: 1; }
.post-card span { color: var(--blue); font-weight: 700; font-family: var(--display); margin-top: .9rem; }

.related { border-top: 1px solid var(--line); }

/* ==========================================================================
   v9 — assessment funnel
   ========================================================================== */

.funnel-overlay {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(6,20,33,.9);
  align-items: flex-start; justify-content: center;
  padding: 4vh 16px; overflow-y: auto;
}
.funnel-overlay.open { display: flex; }
.funnel {
  width: min(640px, 100%); background: var(--white);
  border-radius: 12px; border-top: 5px solid var(--gold);
  box-shadow: 0 24px 60px rgba(3,14,26,.5);
  padding: clamp(22px, 4vw, 36px);
  position: relative;
}
.funnel-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 1.9rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: 6px 10px;
}
.funnel-progress { height: 5px; background: var(--line); border-radius: 999px; margin: 6px 0 22px; overflow: hidden; }
.funnel-progress i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
.funnel h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.funnel .f-sub { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1.3rem; }
.f-opts { display: grid; gap: 10px; }
@media (min-width: 560px) { .f-opts.cols-2 { grid-template-columns: 1fr 1fr; } }
.f-opt {
  display: block; width: 100%; text-align: left;
  background: var(--pale); border: 2px solid var(--line); border-radius: 8px;
  padding: 14px 16px; cursor: pointer;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.f-opt:hover { border-color: var(--blue); background: var(--sky); transform: translateY(-1px); }
.f-opt b { display: block; font-family: var(--display); color: var(--navy); font-size: 1.04rem; }
.f-opt span { font-size: .88rem; color: var(--ink-soft); }
.f-back { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: .92rem; padding: 0; margin-top: 1.2rem; }
.f-back:hover { color: var(--blue); }
.funnel .field { margin-bottom: .8rem; }
.funnel .btn { width: 100%; margin-top: .4rem; }
.f-note { font-size: .85rem; color: var(--ink-soft); text-align: center; margin-top: .8rem; }
.f-emergency {
  background: #FDF2F2; border: 2px solid #E5484D; border-radius: 8px;
  padding: 18px 20px; margin-bottom: 1.2rem;
}
.f-emergency b { color: #C0272D; font-family: var(--display); font-size: 1.05rem; }
.f-result-tag {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 999px;
  padding: .35rem .9rem; margin-bottom: 1rem;
}
.f-result-tag.hi { background: #FDEBD2; color: #8A5A00; }
.f-result-tag.std { background: var(--sky); color: var(--blue-dark); }
.f-links { display: grid; gap: 10px; margin: 1.2rem 0; }
.f-links a {
  display: block; background: var(--pale); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 16px; text-decoration: none;
  font-family: var(--display); font-weight: 600; color: var(--navy);
}
.f-links a:hover { border-color: var(--blue); color: var(--blue); }
.hero-form .f-opts { margin-top: .4rem; }
.post-hero { margin: 0 0 1.8rem; }
.post-hero img { width: 100%; border-radius: 10px; display: block; }
