/* ============================================================
   JYR ROOFING LLC — "Roof Pitch / Shingle Course" design system
   Deep charcoal, ridge copper + slate blue, Teko condensed
   display, gable chevrons, course-line texture, rise/run notes
   ============================================================ */

:root {
  --bg: #0c0e12;
  --bg2: #10131a;
  --panel: #161a22;
  --panel-hi: #1c212c;
  --edge: #2c3442;
  --edge-soft: #1a1f29;
  --cp: #cd7f4e;
  --cp-hi: #e3a06f;
  --cp-deep: #8a5230;
  --sl: #7d97b8;
  --sl-deep: #4a5f7a;
  --txt: #f0f1f4;
  --sub: #a6adb9;
  --dim: #5d6371;
  --disp: "Teko", "Arial Narrow", sans-serif;
  --body-f: "Karla", "Segoe UI", Arial, sans-serif;
  --mono: "Overpass Mono", "Consolas", monospace;
  --head-h: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--sub);
  font-family: var(--body-f);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cp); color: var(--bg); }

a { color: var(--cp); text-decoration: none; }
a:hover { color: var(--cp-hi); }

h1, h2, h3, h4 {
  font-family: var(--disp);
  color: var(--txt);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 44px; }

.k-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--cp);
}
.k-label.sl { color: var(--sl); }

/* ---------------- Header ---------------- */

.jhead {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--head-h);
  z-index: 300;
  background: var(--bg);
  border-bottom: 1px solid var(--edge-soft);
}

.jhead .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

/* gable mark logo */
.jlogo-gable {
  width: 46px; height: 46px;
  position: relative;
  display: grid;
  place-items: center;
}

.jlogo-gable::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cp);
  clip-path: polygon(50% 0, 100% 42%, 100% 56%, 50% 18%, 0 56%, 0 42%);
}

.jlogo-gable::after {
  content: "JYR";
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13px;
  color: var(--txt);
  margin-top: 16px;
}

.jlogo-name {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--txt);
  line-height: 1;
}

.jlogo-name small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--dim);
  margin-top: 5px;
  text-transform: uppercase;
}

.jnav { display: flex; align-items: center; gap: 4px; }

.jnav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sub);
  padding: 10px 14px;
  transition: color .2s;
}

.jnav a:hover { color: var(--txt); }
.jnav a.active { color: var(--cp); }

.jnav .bid-cta {
  color: var(--bg) !important;
  background: var(--cp);
  font-weight: 700;
  margin-left: 10px;
  padding: 12px 22px;
}

.jnav .bid-cta:hover { background: var(--cp-hi); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--edge);
  color: var(--txt);
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
}

.m-nav {
  display: none;
  position: fixed;
  top: var(--head-h);
  left: 0; right: 0;
  z-index: 290;
  background: var(--bg2);
  border-bottom: 1px solid var(--edge);
  padding: 8px 24px 22px;
}

.m-nav.open { display: block; }

.m-nav a {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sub);
  padding: 14px 0;
  border-bottom: 1px solid var(--edge-soft);
}
.m-nav a.active { color: var(--cp); }

main { padding-top: var(--head-h); }

/* ---------------- Hero — gable ---------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--edge-soft);
  overflow: hidden;
}

/* gable roofline silhouette */
.hero::before {
  content: "";
  position: absolute;
  right: -40px; top: 10%;
  width: 560px; height: 480px;
  border: 2px solid var(--edge);
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
  pointer-events: none;
}

/* shingle course lines inside gable */
.hero::after {
  content: "";
  position: absolute;
  right: -40px; top: 10%;
  width: 560px; height: 480px;
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
  background: repeating-linear-gradient(0deg, transparent 0 34px, var(--edge-soft) 34px 36px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 84px;
  max-width: 720px;
}

.hero .j-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero .j-eyebrow::before {
  content: "";
  width: 30px; height: 14px;
  background: var(--sl);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero h1 { font-size: clamp(56px, 8vw, 110px); }
.hero h1 em { font-style: normal; color: var(--cp); }
.hero h1 .s { color: var(--sl); }

.hero .lede { margin-top: 26px; font-size: 17px; max-width: 580px; }

.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-fill { background: var(--cp); color: var(--bg); }
.btn-fill:hover { background: var(--cp-hi); color: var(--bg); }
.btn-line { border: 1px solid var(--edge); color: var(--txt); }
.btn-line:hover { border-color: var(--cp); color: var(--cp); }

/* spec card */

.speccard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--edge);
  margin-top: 52px;
  max-width: 540px;
}

/* gable notch top */
.speccard::before {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 8px;
  background: var(--cp);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 0, 0 100%);
}

.speccard .sc-head {
  padding: 20px 30px 14px;
  border-bottom: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--sl);
  display: flex;
  justify-content: space-between;
}

.speccard .sc-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 30px;
  border-bottom: 1px dashed var(--edge-soft);
  font-size: 14px;
}

.speccard .sc-row:last-child { border-bottom: 0; }

.speccard .sc-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
  white-space: nowrap;
}

.speccard .sc-row .v { color: var(--txt); text-align: right; }

/* division strip */
.div-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--edge);
  background: var(--bg2);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.div-strip .ds {
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid var(--edge-soft);
}

.div-strip .ds:last-child { border-right: 0; }

.div-strip .ds b {
  display: block;
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--txt);
}

.div-strip .ds span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------- Sections ---------------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--edge-soft); }

.sec-pitch {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sec-pitch::before {
  content: "";
  width: 22px; height: 12px;
  background: var(--cp);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.sec-pitch::after { content: ""; flex: 1; height: 1px; background: var(--edge-soft); }

.sec-head { margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 72px); }
.sec-head h2 em { font-style: normal; color: var(--cp); }
.sec-head h2 .s { color: var(--sl); }
.sec-head .sub { margin-top: 18px; max-width: 620px; font-size: 16px; }

/* ---------------- Course cards ---------------- */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.crs {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 36px 32px;
  transition: transform .25s, border-color .25s, background .25s;
  position: relative;
}

/* course line accent */
.crs::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 5px;
  background: var(--cp);
}

.crs.sl::before { background: var(--sl); }

.crs:hover { transform: translateY(-5px); border-color: var(--cp-deep); background: var(--panel-hi); }

.crs .c-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cp);
  padding: 6px 12px;
  font-weight: 700;
}

.crs .c-tag.sl { background: var(--sl); }

.crs h3 { font-size: 26px; margin: 18px 0 10px; }
.crs p { font-size: 14px; }

.crs .c-line {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--edge-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 2;
}

/* ---------------- Spec rows ---------------- */

.specs { border-top: 1px solid var(--edge); }

.sp-row {
  display: grid;
  grid-template-columns: 140px 1.2fr 1.7fr;
  gap: 36px;
  padding: 30px 8px;
  border-bottom: 1px solid var(--edge-soft);
  align-items: baseline;
}

.sp-row .s-code {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cp);
  text-transform: uppercase;
}

.sp-row .s-code.sl { color: var(--sl); }

.sp-row h3 { font-size: 24px; }
.sp-row p { font-size: 14.5px; }

/* ---------------- Split ---------------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.duo h2 { font-size: clamp(36px, 4.6vw, 58px); }
.duo h2 em { font-style: normal; color: var(--cp); }
.duo h2 .s { color: var(--sl); }
.duo > div > p { margin-top: 18px; font-size: 15.5px; }

/* Pitch card */

.pitchcard {
  border: 1px solid var(--edge);
  background: var(--panel);
}

.pitchcard .pc-head {
  padding: 18px 30px;
  border-bottom: 2px solid var(--sl);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--sl);
  display: flex;
  justify-content: space-between;
}

.pitchcard .pc-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 30px;
  border-bottom: 1px dashed var(--edge-soft);
  font-size: 14px;
}

.pitchcard .pc-row:last-child { border-bottom: 0; }

.pitchcard .pc-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 4px;
  white-space: nowrap;
}

.pitchcard .pc-row .v { color: var(--txt); text-align: right; }

/* ---------------- Stats ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  border: 1px solid var(--edge);
  background: var(--bg2);
  padding: 40px 26px;
  text-align: center;
  position: relative;
}

/* gable tick */
.stat::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 10px;
  background: var(--sl);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.stat .n {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 58px;
  color: var(--txt);
  line-height: 1;
  margin-top: 10px;
}

.stat .n i { font-style: normal; color: var(--cp); }
.stat .n b { font-weight: 600; color: var(--sl); font-style: normal; }

.stat .c {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 14px;
}

/* ---------------- Quote ---------------- */

.quote-zone { padding: 96px 0; text-align: center; }

.quote-zone .qt {
  font-family: var(--disp);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--txt);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.25;
  letter-spacing: 1px;
}

.quote-zone cite {
  display: block;
  margin-top: 30px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sl);
}

/* ---------------- CTA ---------------- */

.cta-zone {
  padding: 104px 0;
  text-align: center;
  border-top: 1px solid var(--edge);
  background: var(--bg2);
}

.cta-zone .k-label { display: inline-block; margin-bottom: 22px; }
.cta-zone h2 { font-size: clamp(40px, 5.6vw, 76px); }
.cta-zone h2 em { font-style: normal; color: var(--cp); }
.cta-zone h2 .s { color: var(--sl); }
.cta-zone p { margin: 22px auto 40px; max-width: 560px; font-size: 16px; }

/* ---------------- Footer ---------------- */

.j-foot {
  border-top: 1px solid var(--edge);
  background: var(--bg2);
  padding: 68px 0 34px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--edge-soft);
}

.foot-grid h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 11px; font-size: 14px; }
.foot-grid li a { color: var(--sub); }
.foot-grid li a:hover { color: var(--cp); }

.foot-desc { margin-top: 16px; font-size: 13.5px; max-width: 360px; color: var(--dim); }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--dim);
}

.foot-bar a { color: var(--sub); }
.foot-bar a:hover { color: var(--cp); }

/* ---------------- Page hero ---------------- */

.page-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--edge-soft);
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -60px; top: 20%;
  width: 380px; height: 300px;
  border: 2px solid var(--edge-soft);
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
}

.page-hero .wrap { position: relative; }

.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}

.crumb a { color: var(--cp); }

.page-hero h1 { font-size: clamp(46px, 6.4vw, 84px); }
.page-hero h1 em { font-style: normal; color: var(--cp); }
.page-hero h1 .s { color: var(--sl); }
.page-hero .lede { margin-top: 24px; max-width: 640px; font-size: 17px; }

/* ---------------- Contact ---------------- */

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 62px;
  padding: 84px 0;
}

.pitch-card {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 22px 28px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
}

.pitch-card .fld {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--sl);
  padding-top: 5px;
}

.pitch-card .val {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--txt);
  line-height: 1.1;
}

.pitch-card .val a { color: var(--txt); }
.pitch-card .val a:hover { color: var(--cp); }

.pitch-card .nt { grid-column: 2; font-size: 13px; color: var(--dim); }

.bid-form {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 46px;
  position: relative;
}

.bid-form::before {
  content: "Bid · JYR-889";
  position: absolute;
  top: 0; left: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--cp);
  padding: 7px 14px;
}

.bid-form h2 { font-size: 32px; margin-bottom: 8px; margin-top: 10px; }
.bid-form > p { font-size: 13px; color: var(--dim); margin-bottom: 30px; font-family: var(--mono); }

.f-field { margin-bottom: 20px; }

.f-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}

.f-field input,
.f-field select,
.f-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--edge);
  color: var(--txt);
  font-family: var(--body-f);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
}

.f-field textarea { min-height: 140px; resize: vertical; }

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus { border-color: var(--cp); }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.f-note { font-size: 12px; color: var(--dim); margin-top: 16px; font-family: var(--mono); }

/* ---------------- Legal prose ---------------- */

.prose { max-width: 840px; padding: 76px 0 100px; }

.prose .policy-head {
  border: 1px solid var(--edge);
  border-left: 4px solid var(--sl);
  background: var(--panel);
  padding: 30px 34px;
  margin-bottom: 44px;
  font-size: 15.5px;
}

.prose .upd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cp);
  border: 1px solid var(--cp-deep);
  padding: 7px 14px;
  margin-bottom: 26px;
}

.prose h2 {
  font-size: 30px;
  margin: 54px 0 18px;
  padding-top: 38px;
  border-top: 1px solid var(--edge-soft);
}

.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 44px; }
.prose h3 { font-size: 22px; margin: 30px 0 10px; }
.prose p { margin-bottom: 15px; font-size: 15.5px; }
.prose ul { margin: 0 0 15px 22px; font-size: 15.5px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--txt); }

/* ---------------- Reveal ---------------- */

.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .jnav { display: none; }
  .burger { display: block; }
  .hero::before, .hero::after { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .duo, .contact-cols { grid-template-columns: 1fr; gap: 48px; }
  .sp-row { grid-template-columns: 110px 1fr; }
  .sp-row p { grid-column: 2; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .div-strip { grid-template-columns: 1fr 1fr; }
  .div-strip .ds { border-bottom: 1px solid var(--edge-soft); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 26px; }
  .bid-form { padding: 36px 24px; }
  .f-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat-grid, .div-strip { grid-template-columns: 1fr; }
}
