/* Connecticut Universal Roofing Company — Blackout + High-Vis
   navy #032852 · bone #F4F2ED · brand orange #FE6B11 (one hit per view)
   Clash Display (display) · General Sans (body) · IBM Plex Mono (spec voice) */

:root {
  --ink: #032852;
  --ink-2: #02203F;
  --bone: #F4F2ED;
  --org: #FE6B11;
  --org-press: #E4570A;
  --steel-d: #92A6C0;   /* secondary on ink */
  --steel-l: #55585C;   /* secondary on bone */
  --line-d: #0D3A68;
  --line-l: #E2DFD8;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: "General Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.eyebrow { color: var(--org); }

h1, h2, h3 { font-family: "Clash Display", "General Sans", sans-serif; font-weight: 600; line-height: .98; letter-spacing: -.015em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--org); }

.photo { filter: saturate(.66) contrast(1.09) brightness(.95); }
img[src*="roofs-dark"] { object-position: 50% 78%; }
img[src*="house-dusk"] { object-position: 50% 55%; }
img[src*="roofer-clear"] { object-position: 50% 26%; filter: saturate(.38) contrast(1.1) brightness(.9); }
img[src*="flat-day"] { object-position: 50% 40%; }
img[src*="silh-twilight"] { object-position: 50% 45%; }
img[src*="rope-safety"] { object-position: 50% 30%; }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-solid { background: rgba(3,25,52,.94); backdrop-filter: blur(10px); border-bottom-color: var(--line-d); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; }
.brand b { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 18px; letter-spacing: .015em; display: block; line-height: 1; }
.brand b .t1 { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 8.5px; letter-spacing: .46em; color: var(--org); margin-bottom: 4px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--steel-d); transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links .tel { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .04em; color: var(--bone); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent; border: 0; cursor: pointer;
  font: 700 14px/1 "General Sans", sans-serif; letter-spacing: .02em;
  padding: 14px 22px; border-radius: 8px;
  transition: background .18s, color .18s, transform .12s cubic-bezier(.22,1,.36,1);
}
.btn:active { transform: scale(.97); }
.btn-orange { background: var(--org); color: #1A0A00; }
.btn-orange:hover { background: var(--org-press); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-d); color: var(--bone); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--steel-d); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: #000; }
.nav-links .btn { padding: 11px 18px; font-size: 13px; }
.nav-links .btn-orange { color: #1A0A00; }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; z-index: 70; }
.burger span { display: block; width: 22px; height: 2px; background: var(--bone); margin: 5px auto; transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav {
  display: none; position: fixed; inset: 0; z-index: 60; background: var(--ink);
  flex-direction: column; justify-content: center; padding: 0 var(--pad); gap: 8px;
}
.mnav.is-open { display: flex; }
.mnav a { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: clamp(36px, 9.5vw, 56px); padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.mnav a em { font-style: normal; color: var(--org); }
.mnav .mnav-tel { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 16px; letter-spacing: .1em; color: var(--org); border: 0; margin-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(94svh, 980px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,25,52,.55) 0%, rgba(3,25,52,.20) 28%, rgba(3,25,52,.52) 66%, var(--ink) 100%),
    radial-gradient(ellipse 88% 52% at 50% 50%, rgba(3,25,52,.60) 0%, rgba(3,25,52,0) 72%); }
.hero-in { position: relative; width: 100%; text-align: center; padding: 110px 0 60px; animation: heroIn .85s cubic-bezier(.22,1,.36,1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(48px, 7.4vw, 100px); margin: 20px 0 18px; text-shadow: 0 2px 40px rgba(2,20,42,.5); }
.hero .sub { max-width: 52ch; margin: 0 auto; color: #C9CBCE; font-size: clamp(15px, 1.7vw, 19px); }
.hero .slogan { font-family: "Clash Display", sans-serif; font-weight: 600; font-style: italic; font-size: clamp(19px, 2.6vw, 27px); color: var(--org); margin: 18px 0 10px; }
.call-link { color: var(--bone); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--org); text-decoration-thickness: 2px; }
.call-link:hover { color: var(--org); }
.hero-bg img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1.0); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 38px; justify-content: center; }
.hero .h1-line { display: block; overflow: hidden; }
.hero .h1-line > span { display: inline-block; }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: mq 34s linear infinite; }
.marquee-track > span { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 13px; letter-spacing: .3em; color: var(--steel-d); white-space: nowrap; padding-right: 18px; }
.marquee-track > span i { font-style: normal; color: var(--org); padding-right: 18px; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- sections ---------- */
.sect { padding: clamp(96px, 14vw, 176px) 0; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(36px, 6vw, 64px); }
.sect-head h2 { font-size: clamp(34px, 5.4vw, 62px); }
.sect-head .mono { color: var(--steel-d); }

/* services: editorial rows */
.svc { border-top: 1px solid var(--line-d); }
.svc-row { display: grid; grid-template-columns: 72px 1fr 340px; gap: clamp(18px, 4vw, 48px); align-items: center;
  padding: clamp(26px, 4vw, 40px) 0; border-bottom: 1px solid var(--line-d); }
.svc-num { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 13px; letter-spacing: .2em; color: var(--org); }
.svc-row h3 { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 8px; }
.svc-row p { color: var(--steel-d); max-width: 56ch; font-size: 15px; }
.svc-ph { height: 168px; border-radius: 12px; overflow: hidden; }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; }

/* statement (bone inversion) */
.statement { background: var(--bone); color: var(--ink); }
.statement .in { padding: clamp(100px, 15vw, 180px) 0; }
.statement h2 { font-size: clamp(36px, 5.6vw, 68px); max-width: 24ch; }
.statement h2 em { font-style: normal; color: var(--org); }
.statement .mono { color: var(--steel-l); margin-top: 26px; display: block; }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; border: 1px solid var(--line-d); border-radius: 16px; padding: 32px 28px 30px; background: var(--ink-2); transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s; }
.step:hover { transform: translateY(-5px); border-color: rgba(254,107,17,.55); }
.step-ic { width: 66px; height: 66px; border-radius: 15px; background: rgba(254,107,17,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.step-ic svg { width: 34px; height: 34px; }
.step-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.step-n { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .22em; color: var(--org); }

.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--steel-d); font-size: 14.5px; }

/* work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.05); } }
.svc-ph { transition: transform .5s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) { .svc-row:hover .svc-ph { transform: scale(1.03); } }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(17,18,20,.85));
  font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 11px; letter-spacing: .24em; }
.tile figcaption i { font-style: normal; color: var(--org); }
.work-more { margin-top: 34px; text-align: center; }

/* texture band */
.band { position: relative; min-height: 320px; display: flex; align-items: center; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,25,52,.9), rgba(3,25,52,.66) 50%, rgba(3,25,52,.9)); }
.band .in { position: relative; z-index: 1; width: 100%; text-align: center; }
.band .mono { color: #fff; letter-spacing: .34em; font-size: clamp(12px,1.5vw,15px); text-shadow: 0 2px 20px rgba(2,16,36,.8); }

/* CTA (the orange field) */
.cta { background: var(--org); color: #160B04; }
.cta .in { padding: clamp(76px, 11vw, 130px) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { font-size: clamp(40px, 6.6vw, 84px); max-width: 12ch; }
.cta .side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta .tel-big { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: clamp(18px, 2.6vw, 26px); letter-spacing: .06em; color: #160B04; }
.cta .mono { color: #7A3A12; }

/* footer */









/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: 170px 0 84px; overflow: hidden; }
.page-hero.has-img { min-height: min(62svh, 640px); display: flex; align-items: flex-end; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(17,18,20,.3), rgba(17,18,20,.92) 85%, var(--ink)); }
.page-hero .in { position: relative; width: 100%; }
.page-hero h1 { font-size: clamp(48px, 8.6vw, 108px); margin-top: 16px; }
.page-hero h1 em { font-style: normal; color: var(--org); }
.page-hero .sub { max-width: 52ch; color: var(--steel-d); margin-top: 16px; font-size: 17px; }

.prose { max-width: 66ch; }
.prose p { color: var(--steel-d); margin-bottom: 22px; font-size: 16.5px; }
.prose p b { color: var(--bone); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split .ph { border-radius: 12px; overflow: hidden; }
.split h2 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 20px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 90px); align-items: start; }
.contact-grid h1 { font-size: clamp(44px, 7vw, 88px); }
.c-list { margin-top: 34px; display: grid; gap: 0; }
.c-item { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-d); }
.c-item .k { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 11px; letter-spacing: .26em; color: var(--steel-d); padding-top: 4px; }
.c-item .v { text-align: right; font-size: 15.5px; }
.c-item .v a { color: var(--org); }
.c-item .v .small { color: var(--steel-d); font-size: 13px; }

.form-card { border: 1px solid var(--line-d); background: var(--ink-2); border-radius: 14px; padding: clamp(24px, 4vw, 38px); }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card .lede { color: var(--steel-d); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-d); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-d); border-radius: 8px;
  color: var(--bone); font: 500 15px/1.5 "Archivo", sans-serif; padding: 13px 14px;
  transition: border-color .18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--org); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { display: none; color: #FF7A66; font-size: 12.5px; margin-top: 6px; }
.field.is-bad input, .field.is-bad textarea { border-color: #FF7A66; }
.field.is-bad .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-ok { display: none; text-align: center; padding: 34px 10px; }
.form-ok.is-on { display: block; }
.form-ok .mk { width: 54px; margin: 0 auto 18px; }
.form-ok h3 { font-size: 24px; margin-bottom: 8px; }
.form-ok p { color: var(--steel-d); font-size: 14.5px; }

/* reveal */
.rv { opacity: 1; transform: none; }
@keyframes rvReveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rvReveal both linear; animation-timeline: view(); animation-range: entry 8% cover 26%; }
  }
}
.steps .step:nth-child(2), .grid .tile:nth-child(3n+2) { transition-delay: .08s; }
.steps .step:nth-child(3), .grid .tile:nth-child(3n) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hero-in { animation: none; } }
.qa .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.qa .marquee-track { animation: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-ph { grid-column: 2; height: 180px; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta .in { flex-direction: column; align-items: flex-start; }
  
}

/* footer (rebuilt) */
.foot { border-top: 3px solid var(--org); padding: 0 0 40px; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: clamp(40px,6vw,64px) 0; border-bottom: 1px solid var(--line-d); }
.foot-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--org); margin-bottom: 12px; }
.foot-cta h2 { font-size: clamp(28px,4.4vw,48px); line-height: 1.05; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 34px; padding: 46px 0 40px; }
.foot-brandcol .brand img { width: 50px; height: 50px; }
.foot-slogan { font-style: italic; color: var(--steel-d); font-size: 14px; margin-top: 16px; max-width: 26ch; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-h { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); margin-bottom: 4px; }
.foot-col a, .foot-col span { color: var(--steel-d); font-size: 14px; }
.foot-col a:hover { color: var(--org); }
.foot-phone { font-family: "IBM Plex Mono", monospace; color: var(--bone) !important; font-size: 15px !important; letter-spacing: .04em; }
.foot-lic { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; }
.legal { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line-d);
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .1em; color: var(--steel-d); }
@media (max-width: 780px) { .foot-in { grid-template-columns: 1fr 1fr; gap: 26px; } .foot-brandcol { grid-column: 1 / -1; } }
