/* ============================================================
   SUNRISE ROOFERS LLC — Design System
   Desert-construction aesthetic · Tucson, AZ
   ============================================================ */

:root {
  /* Surfaces */
  --sand:       #FBF7F0;   /* warm white page bg */
  --sand-deep:  #F1E8D9;   /* secondary band bg */
  --paper:      #FFFFFF;   /* cards */
  --ink:        #20292F;   /* deep charcoal-navy — dark sections */
  --ink-2:      #2A343B;

  /* Ink / text */
  --text:       #232D34;
  --text-soft:  #4E5961;
  --text-mute:  #79838B;
  --on-dark:    #F4EFE6;
  --on-dark-soft:#B9BEC2;

  /* Accent — terracotta */
  --terra:      #C65A2E;
  --terra-rgb:  198,90,46;
  --terra-700:  #A8461F;
  --terra-300:  #E08A60;
  --terra-tint: #F7E7DC;

  /* Secondary — desert slate / muted green */
  --slate:      #5C6B70;
  --green:      #3E5641;

  /* Lines & shadows */
  --line:       #E6DCCB;
  --line-dark:  rgba(255,255,255,.12);
  --shadow-sm:  0 1px 2px rgba(40,30,15,.06), 0 2px 6px rgba(40,30,15,.05);
  --shadow-md:  0 4px 14px rgba(40,30,15,.08), 0 12px 30px rgba(40,30,15,.07);
  --shadow-lg:  0 10px 24px rgba(40,30,15,.10), 0 30px 60px rgba(40,30,15,.12);

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body:    "Barlow", system-ui, sans-serif;

  --radius:   10px;
  --radius-lg:16px;
  --maxw:     1240px;
  --gutter:   clamp(20px, 5vw, 64px);
  --nav-h:    clamp(66px, 15vw, 80px);   /* fluid header height — logo & hero overlay follow it */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Mobile hardening: kill accidental horizontal scroll without breaking
   position:sticky (clip, not hidden). */
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--sand);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
video, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--terra); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.deep { background: var(--sand-deep); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--terra); display: inline-block;
}
.eyebrow--center { justify-content: center; }
.dark .eyebrow { color: var(--terra-300); }
.dark .eyebrow::before { background: var(--terra-300); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
.h-display {
  font-weight: 800;
  font-size: clamp(40px, 6.6vw, 86px);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: -.012em;
}
.h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; text-transform: uppercase; line-height: 1; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-soft); line-height: 1.55; max-width: 60ch; }
.dark .lead { color: var(--on-dark-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 28px; border: 2px solid transparent; border-radius: var(--radius);
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(var(--terra-rgb),.32); }
.btn--primary:hover { background: var(--terra-700); box-shadow: 0 10px 24px rgba(var(--terra-rgb),.38); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--on-dark:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 15px; color: var(--terra); white-space: nowrap;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Roofline chevron motif ---------- */
.roofline { display: block; width: 100%; height: 14px; color: var(--terra); }
.roofline svg { display: block; width: 100%; height: 100%; }

/* utility */
.eyebrow-mark { color: var(--terra); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; font-size: 12.5px;
  padding: 5px 11px; border-radius: 6px;
  background: var(--terra-tint); color: var(--terra-700);
}
.tag--dark { background: rgba(255,255,255,.1); color: var(--on-dark); }

/* image slots */
image-slot {
  --is-bg: #ECE3D3;
  --is-fg: #9a9082;
  background: #ECE3D3;
  border: 1px dashed #cdbfa6;
}
.dark image-slot { background: #2f3942; border-color: rgba(255,255,255,.18); }

/* ===== Boot splash — crawlable internal-link graph + branded loading state.
   Rendered inside #root in the static HTML; React replaces it on mount so
   crawlers (and users on slow connections) get real links + content first. ===== */
.boot{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center;padding:56px 20px;font-family:'Barlow',system-ui,sans-serif;color:#20292F}
.boot__brand{display:flex;flex-direction:column;gap:8px}
.boot__mark{font-family:'Barlow Condensed','Barlow',sans-serif;font-weight:800;font-size:36px;letter-spacing:1px;color:#F0801C}
.boot__tag{font-size:15px;color:#5b6168}
.boot__cta{font-size:15px;font-weight:600}
.boot__cta a,.boot__nav a{color:#C2620E;text-decoration:none}
.boot__nav{display:flex;flex-wrap:wrap;gap:30px;justify-content:center;max-width:920px}
.boot__col{display:flex;flex-direction:column;gap:5px;text-align:left;font-size:13px}
.boot__col b{color:#20292F;margin-bottom:4px;text-transform:uppercase;letter-spacing:.4px;font-size:12px}
.boot__loading{font-size:13px;color:#9aa0a6;letter-spacing:.6px}
@media (max-width:600px){.boot__mark{font-size:27px}.boot__nav{gap:20px}.boot{min-height:70vh}}
