/* Ridgeline — Roofing template
   Palette: storm slate + alert red, on cloud gray
   Type: Barlow Condensed (display) / Work Sans (body) / JetBrains Mono (labels) */

:root {
  --ink: #20242b;
  --slate: #2f3541;
  --slate-deep: #1a1e25;
  --storm: #5c6b7d;
  --alert: #c1332b;
  --alert-deep: #9c2620;
  --cloud: #f1efe9;
  --white: #ffffff;
  --line: #dcd8cd;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-label: "JetBrains Mono", monospace;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cloud); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html{scroll-behavior:auto;} * { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.label { font-family: var(--font-label); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--alert); }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(32,36,43,.95); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: .01em; text-transform: uppercase; }
.logo .peak { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 14px solid var(--alert); }
nav.primary { display: flex; gap: 28px; }
nav.primary a { text-decoration: none; color: #cfd3da; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
nav.primary a:hover { color: var(--white); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--alert); color: var(--white); }
.btn--primary:hover { background: var(--alert-deep); }
.btn--outline-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-dark:hover { border-color: var(--white); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--alert); outline-offset: 2px; }

/* hero — roofline silhouette */
.hero { position: relative; background: linear-gradient(180deg, var(--ink), var(--slate-deep)); color: var(--white); overflow: hidden; }
.hero-inner { padding: 88px 0 0; max-width: 660px; }
.hero h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(42px,6vw,66px); line-height: .98; margin: 16px 0 20px; letter-spacing: .01em; }
.hero h1 span { color: var(--alert); }
.hero p.lede { font-size: 17px; line-height: 1.6; color: #b7bcc4; max-width: 46ch; margin-bottom: 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.roofline { display: block; width: 100%; height: auto; }

/* storm banner */
.storm-banner { background: var(--alert); color: var(--white); }
.storm-banner .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 28px; font-family: var(--font-label); font-size: 12.5px; letter-spacing: .04em; text-align: center; text-transform: uppercase; }

/* sections */
section { padding: 78px 0; }
.section-head { max-width: 620px; margin-bottom: 42px; }
.section-head .label { display: block; margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px,3.4vw,38px); margin: 0 0 12px; color: var(--slate-deep); letter-spacing: .01em; }
.section-head p { color: #52586a; line-height: 1.6; margin: 0; }

/* services — angled cards */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 2px; background: var(--line); }
.svc { background: var(--white); padding: 30px 26px; position: relative; }
.svc::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--alert); }
.svc h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 21px; margin: 14px 0 10px; color: var(--slate-deep); }
.svc p { margin: 0; font-size: 14px; line-height: 1.55; color: #52586a; }

/* warranty strip */
.warranty-strip { background: var(--slate-deep); color: var(--white); }
.warranty-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.warranty { padding: 30px 24px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.warranty:first-child { border-left: none; }
.warranty .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--alert); line-height: 1; }
.warranty .cap { font-family: var(--font-label); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #b7bcc4; margin-top: 8px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-card { background: var(--white); border: 1px solid var(--line); }
.gallery-photo { height: 170px; background: linear-gradient(135deg,#4d5b6b,#20242b); position: relative; }
.gallery-photo .tag { position: absolute; bottom: 10px; left: 10px; font-family: var(--font-label); font-size: 10.5px; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.35); padding: 3px 7px; }
.gallery-caption { padding: 14px 16px; font-size: 14px; color: #52586a; }

/* testimonials */
.testi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testi { background: var(--white); border-left: 3px solid var(--alert); padding: 24px; }
.testi p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.testi .who { font-family: var(--font-label); font-size: 12px; color: #52586a; }

/* inspection CTA */
.inspect-shell { background: var(--slate-deep); color: var(--white); padding: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.inspect-copy h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(26px,3.2vw,32px); margin: 12px 0 12px; }
.inspect-copy p { color: #b7bcc4; line-height: 1.6; margin: 0; }
.form-row { margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; font-family: var(--font-label); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #b7bcc4; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; font-family: var(--font-body); font-size: 14.5px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--white); }
.form-row input::placeholder, .form-row textarea::placeholder { color: #8b94a3; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--alert); outline-offset: 1px; }
.inspect-form .btn--primary { width: 100%; justify-content: center; margin-top: 4px; }

/* footer */
footer.site-footer { background: var(--ink); color: #9aa0ab; padding: 46px 0 26px; }
footer.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer.site-footer h4 { font-family: var(--font-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
footer.site-footer p, footer.site-footer a { font-size: 14px; line-height: 1.8; text-decoration: none; color: #9aa0ab; }
footer.site-footer a:hover { color: var(--alert); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--font-label); font-size: 11px; color: #5c6270; }

@media (max-width: 900px) {
  nav.primary { display: none; }
  .grid-services { grid-template-columns: 1fr 1fr; }
  .warranty-grid { grid-template-columns: 1fr 1fr; }
  .warranty { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .gallery-grid, .testi-row { grid-template-columns: 1fr; }
  .inspect-shell { grid-template-columns: 1fr; padding: 30px; }
  .two-col { grid-template-columns: 1fr; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}
