/* CRE Roofing - design system "Oklahoma sky" (2026-08-24)
   Warm paper canvas, deep navy structure, CRE blue action, sun gold accent.
   Archivo display + Inter text. ASCII only. */

:root {
  --ink: #0c1420;
  --navy: #132238;
  --navy-2: #1b3050;
  --paper: #f8f6f2;
  --paper-2: #efece5;
  --white: #ffffff;
  --body: #3c4756;
  --muted: #6b7684;
  --line: #e2ddd3;
  --line-dark: rgba(255,255,255,0.14);
  --sky: #1668cc;
  --sky-deep: #0d4c9e;
  --sky-soft: #e8f0fb;
  --sun: #f5b125;
  --sun-deep: #d9930c;
  --ok-green: #1f7a4d;
  --shadow-s: 0 1px 2px rgba(12,20,32,.06), 0 4px 12px rgba(12,20,32,.06);
  --shadow-m: 0 2px 6px rgba(12,20,32,.08), 0 18px 40px rgba(12,20,32,.12);
  --display: "Archivo", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
  --r: 14px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .display { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); line-height: 1.06; font-weight: 800; max-width: 17ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.14; font-weight: 700; margin-bottom: 16px; max-width: 24ch; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
p { max-width: 68ch; }
p + p { margin-top: 14px; }
strong { color: var(--ink); font-weight: 650; }

.kicker { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 14px; }
.answer { font-size: 1.19rem; line-height: 1.6; color: var(--ink); max-width: 60ch; }
.lede { font-size: 1.15rem; line-height: 1.62; max-width: 62ch; }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 34px; }

section { padding: clamp(56px, 8vw, 96px) 0; }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.band { background: var(--paper-2); }
.band-dark { background: var(--navy); color: rgba(255,255,255,.82); }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .kicker { color: var(--sun); }
.band-dark .answer { color: rgba(255,255,255,.9); }
.band-dark a { color: var(--sun); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  text-decoration: none !important;
}
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 6px 18px rgba(22,104,204,.32); }
.btn-primary:hover { background: var(--sky-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,104,204,.4); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(245,177,37,.3); }
.btn-sun:hover { background: var(--sun-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 19px 38px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(248,246,242,.92);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand img { width: 38px; height: 38px; }
.brand .bn { font-family: var(--display); font-weight: 800; font-size: 1.32rem; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.brand .bt { display: block; white-space: nowrap; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }
.nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav a { font-size: .93rem; font-weight: 550; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--sky-deep); }
.header-phone { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1rem; white-space: nowrap; text-decoration: none !important; }
.header-phone:hover { color: var(--sky-deep); }
.header-cta { padding: 11px 20px; font-size: .92rem; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 42px; font-size: 1.3rem; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media picture { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 22%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,16,26,.92) 0%, rgba(9,16,26,.76) 40%, rgba(9,16,26,.34) 70%, rgba(9,16,26,.12) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(64px, 9vw, 118px); padding-bottom: clamp(40px, 6vw, 70px); }
.hero h1 { color: #fff; }
.hero .kicker { color: var(--sun); }
.hero .lede { color: rgba(255,255,255,.88); margin: 20px 0 30px; max-width: 54ch; }
.hero-cta { display: flex; }
.hero-note { margin-top: 14px; font-size: .92rem; color: rgba(255,255,255,.62); }

/* Trust Index review summary block */
.rev-summary {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 26px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 12px 22px 12px 18px; backdrop-filter: blur(6px);
}
.rev-summary .stars { color: var(--sun); font-size: 1.05rem; letter-spacing: 2px; line-height: 1; }
.rev-summary .score { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: #fff; line-height: 1; }
.rev-summary .meta { font-size: .88rem; color: rgba(255,255,255,.78); line-height: 1.35; }
.rev-summary .meta b { color: #fff; font-weight: 650; }
.rev-summary .verified { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: #9fe0b8; font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); color: rgba(255,255,255,.8); padding: 0; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 28px; padding-top: 22px; padding-bottom: 22px; }
.trust-strip .ti { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; line-height: 1.4; }
.trust-strip .ti svg { flex: 0 0 20px; margin-top: 2px; color: var(--sun); }
.trust-strip .ti b { display: block; color: #fff; font-weight: 650; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.narrow-left { grid-template-columns: .92fr 1.08fr; }
.split .media picture { display: block; }
.split .media img { border-radius: var(--r); box-shadow: var(--shadow-m); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-s); }
.card p { font-size: .97rem; color: var(--body); }
.card .num { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--sky); display: block; margin-bottom: 10px; }
.band-dark .card { background: rgba(255,255,255,.05); border-color: var(--line-dark); box-shadow: none; }
.band-dark .card p { color: rgba(255,255,255,.76); }

.tile picture { display: block; }
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-s); }
.tile img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,16,26,0) 34%, rgba(9,16,26,.86) 100%); }
.tile .tc { position: absolute; left: 20px; right: 20px; bottom: 17px; z-index: 2; }
.tile .tc h3 { color: #fff; margin-bottom: 4px; }
.tile .tc p { color: rgba(255,255,255,.82); font-size: .9rem; margin: 0; }
.tile.tall img { height: 340px; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 800;
  display: grid; place-items: center; font-size: 1rem;
}
.step p { font-size: .96rem; }

/* ---------- Review cards ---------- */
.rev-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-s); }
.rev-card .stars { color: var(--sun); letter-spacing: 2px; margin-bottom: 10px; }
.rev-card blockquote { font-size: 1rem; color: var(--ink); line-height: 1.6; }
.rev-card cite { display: block; margin-top: 14px; font-style: normal; font-size: .86rem; color: var(--muted); }
#trustindex-widget:empty { display: none; }

/* ---------- Gallery ---------- */
.gal picture { display: block; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal img { width: 100%; height: 210px; object-fit: cover; border-radius: 10px; }
.gal .wide { grid-column: span 2; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sky); font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 12px; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas a { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .93rem; font-weight: 550; color: var(--ink); text-decoration: none; }
.areas a:hover { border-color: var(--sky); color: var(--sky-deep); }
.band-dark .areas a { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--sky-deep), var(--sky)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0 auto 28px; max-width: 54ch; }
.cta-band .btn-sun { box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ---------- Form ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-m); }
.form label { display: block; font-size: .87rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .f { margin-bottom: 16px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--text); font-size: 1rem; color: var(--ink); background: var(--paper);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--sky); background: #fff; }
.form .fine { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ---------- Page hero (inner pages) ---------- */
.phero { background: var(--navy); color: #fff; padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 62px); }
.phero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.phero .lede { color: rgba(255,255,255,.84); margin-top: 18px; }
.phero .crumbs, .phero .crumbs a { color: rgba(255,255,255,.55); }
.phero .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 60px 0 30px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 42px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .84rem; color: rgba(255,255,255,.45); }
.lic { display: inline-block; margin-top: 12px; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1060px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav {
    display: flex; position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 0 16px; z-index: 59;
  }
  body.nav-open .nav a { padding: 14px 24px; width: 100%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand .bn { font-size: 1.18rem; }
  .brand .bt { font-size: .56rem; letter-spacing: .1em; }
  .nav-toggle { margin-left: auto; }
}
@media (max-width: 760px) {
  .split, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split.rev-order .media { order: -1; }
  h1 { max-width: none; }
  .rev-summary { border-radius: 16px; padding: 14px 18px; }
  .gal .wide { grid-column: span 1; }
  body { padding-bottom: 66px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(248,246,242,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 14px;
  }
  .callbar .btn { width: 100%; padding: 13px 10px; font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }
