/* ==========================================================
   DEBO BUILDERS — Brand tokens + site styles
   Monarch orange · Night black · Parchment cream
   Chamfered corners echo the cut-corner lettering in the logo.
   ========================================================== */
:root {
  --orange: #ff6a00;
  --orange-hot: #ff8a2b;
  --orange-deep: #c94f00;
  --black: #0b0a09;
  --char: #161412;
  --char-2: #211e1b;
  --cream: #f6eedc;
  --cream-2: #e9dfc7;
  --ink-soft: #b9ad98;

  --f-display: "Chakra Petch", "Arial Narrow", sans-serif;
  --f-numeric: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;

  --cut: 18px;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; left: -9999px; }

/* Chamfer helper — cut corners like the DEBO lettering */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.cut-sm { --cut: 10px; }

/* grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- buttons ---------- */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 15px; text-decoration: none;
  padding: 17px 28px; border: 0; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .2s, background .2s, color .2s;
}
.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover { background: var(--cream); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--black); }
.btn svg { width: 18px; height: 18px; }

/* ---------- storm banner ---------- */
.alert {
  background: var(--orange); color: var(--black);
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: 13px; letter-spacing: .08em; text-align: center; padding: 9px var(--gutter);
}
.alert a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,10,9,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff14;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 30px; align-items: center; }
.nav__links a {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: 14px; letter-spacing: .08em; text-decoration: none; position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px;
  background: var(--orange); transition: right .25s;
}
.nav__links a:not(.btn):hover::after { right: 0; }
.nav__links .btn { padding: 12px 20px; font-size: 14px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--cream); cursor: pointer; padding: 8px; }
.nav__toggle svg { width: 30px; height: 30px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 120px) 0 clamp(120px, 14vw, 200px);
  background:
    radial-gradient(900px 600px at 82% 30%, #ff6a0033, transparent 65%),
    linear-gradient(180deg, var(--black), var(--char));
}
/* shingle pattern */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background:
    radial-gradient(circle at 50% 100%, transparent 0 22px, #ffffff0d 23px 24px, transparent 25px) 0 0 / 56px 32px,
    radial-gradient(circle at 50% 100%, transparent 0 22px, #ffffff0d 23px 24px, transparent 25px) 28px 16px / 56px 32px;
  mask-image: linear-gradient(115deg, transparent 20%, #000 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: 13px; color: var(--orange);
}
.eyebrow::before { content: ""; width: 38px; height: 4px; background: var(--orange); }
.hero h1 { font-size: clamp(52px, 9vw, 128px); margin: 22px 0 26px; }
.hero h1 em { font-style: normal; color: var(--orange); display: block; }
.hero h1 span.outline { color: transparent; -webkit-text-stroke: 2px var(--cream); }
.hero__lede { max-width: 540px; font-size: 20px; color: var(--cream-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__mark { position: relative; }
.hero__mark img {
  width: 100%; filter: drop-shadow(0 30px 60px #ff6a0040);
  animation: hover 7s ease-in-out infinite;
}
@keyframes hover { 0%,100% { transform: translateY(0) rotate(-1deg);} 50% { transform: translateY(-14px) rotate(1deg);} }

/* roof-pitch divider */
.pitch { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 130px); }
.pitch svg { width: 100%; height: 100%; display: block; }

/* load-in */
.rise { opacity: 0; transform: translateY(26px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.rise:nth-child(2) { animation-delay: .12s; } .rise:nth-child(3) { animation-delay: .24s; }
.rise:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- ticker ---------- */
.ticker { background: var(--cream); color: var(--black); overflow: hidden; border-block: 4px solid var(--black); }
.ticker__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker span {
  font-family: var(--f-numeric); font-weight: 800; text-transform: uppercase;
  font-size: 30px; padding: 12px 30px; white-space: nowrap; letter-spacing: .02em;
}
.ticker span::after { content: "◆"; color: var(--orange); margin-left: 60px; font-size: 18px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(40px, 6vw, 84px); }
.sec-head h2 em { font-style: normal; color: var(--orange); }
.sec-head p { color: var(--ink-soft); max-width: 460px; justify-self: end; }

/* services */
.services { background: var(--char); }
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.svc {
  grid-column: span 4; position: relative; padding: 34px 30px 30px;
  background: var(--char-2); border: 0; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s, background .3s;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  overflow: hidden;
}
.svc::before { /* orange fill rises on hover */
  content: ""; position: absolute; inset: 0; background: var(--orange);
  transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1); z-index: 0;
}
.svc > * { position: relative; z-index: 1; transition: color .3s; }
.svc:hover::before { transform: translateY(0); }
.svc:hover { transform: translateY(-4px); }
.svc:hover h3, .svc:hover p, .svc:hover .svc__num { color: var(--black); }
.svc:hover .svc__icon { color: var(--black); }
.svc--wide { grid-column: span 6; }
.svc--feature { grid-column: span 6; background: var(--orange); }
.svc--feature::before { background: var(--cream); }
.svc--feature h3, .svc--feature p, .svc--feature .svc__num, .svc--feature .svc__icon { color: var(--black); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc__num { font-family: var(--f-numeric); font-weight: 800; font-size: 22px; color: var(--orange); letter-spacing: .05em; }
.svc__icon { width: 54px; height: 54px; color: var(--cream); }
.svc h3 { font-size: 30px; margin: 40px 0 10px; }
.svc p { color: var(--ink-soft); font-size: 16.5px; }

/* storm / insurance */
.storm { background: var(--cream); color: var(--black); }
.storm .sec-head p { color: #4d453a; }
.storm .sec-head h2 em { color: var(--orange-deep); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 4px solid var(--black); }
.step { padding: 30px 26px 10px 0; position: relative; counter-increment: s; }
.step + .step { padding-left: 26px; border-left: 2px solid #0b0a0922; }
.step::before {
  content: "0" counter(s); font-family: var(--f-numeric); font-weight: 900;
  font-size: 92px; line-height: 1; color: var(--orange);
  -webkit-text-stroke: 0; display: block; margin-bottom: 8px;
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: #4d453a; font-size: 16.5px; }
.storm__callout {
  margin-top: 60px; background: var(--black); color: var(--cream);
  padding: 34px 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.storm__callout h3 { font-size: clamp(24px, 3vw, 38px); }
.storm__callout h3 em { font-style: normal; color: var(--orange); }

/* why */
.why { background: var(--black); overflow: hidden; }
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.why__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.why__art::before {
  content: ""; position: absolute; inset: 6%; background: var(--orange);
  clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); /* house silhouette */
}
.why__art img { position: relative; width: 78%; transform: translateY(8%); }
.why ul { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.why li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid #ffffff22; }
.why li:last-child { border-bottom: 1px solid #ffffff22; }
.why li svg { width: 40px; height: 40px; color: var(--orange); }
.why li h4 { font-size: 22px; margin-bottom: 4px; }
.why li p { color: var(--ink-soft); font-size: 16.5px; }
.why h2 { font-size: clamp(40px, 5.5vw, 76px); }
.why h2 em { font-style: normal; color: var(--orange); }

/* contact */
.contact { background: var(--orange); color: var(--black); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.contact h2 { font-size: clamp(44px, 7vw, 104px); }
.contact__lede { margin-top: 22px; font-size: 20px; max-width: 460px; font-weight: 500; }
.contact__info { margin-top: 36px; display: grid; gap: 14px; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact__info a { font-size: clamp(24px, 3vw, 36px); text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }
form.quote { background: var(--black); color: var(--cream); padding: 38px; display: grid; gap: 18px; }
form.quote h3 { font-size: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--char-2); color: var(--cream); border: 0;
  border-bottom: 3px solid #ffffff30; padding: 14px; font: inherit; border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); background: #2a2623; }
.field textarea { min-height: 100px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 14px; color: var(--ink-soft); }
.form-ok { display: none; color: var(--black); background: var(--cream); padding: 14px; font-weight: 600; }

/* footer */
footer { background: var(--black); padding: 56px 0 36px; border-top: 6px solid var(--orange); }
.foot { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.foot img { height: 64px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { font-family: var(--f-display); text-transform: uppercase; font-size: 13px; letter-spacing: .1em; text-decoration: none; color: var(--ink-soft); }
.foot nav a:hover { color: var(--orange); }
.legal { margin-top: 36px; font-size: 14px; color: #7d7465; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .sec-head, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .hero__mark { max-width: 420px; order: -1; }
  .svc, .svc--wide, .svc--feature { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .why__art { max-width: 380px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 4px solid var(--orange);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav__links.open { max-height: 420px; }
  .nav__links a { padding: 18px var(--gutter); border-top: 1px solid #ffffff14; }
  .nav__links .btn { margin: 16px var(--gutter); justify-content: center; }
  .svc, .svc--wide, .svc--feature { grid-column: span 12; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0 8px; border-left: 0; }
  .row2 { grid-template-columns: 1fr; }
  form.quote { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}
