/* Rocket Roof Repair — orange / charcoal, mobile-first */
:root {
  --orange: #F15A22;
  --orange-deep: #D94C18;
  --orange-soft: #FF8A5B;
  --charcoal: #1C1C1C;
  --charcoal-2: #262626;
  --charcoal-3: #333333;
  --paper: #F3F0EB;
  --paper-2: #E8E4DD;
  --ink: #1C1C1C;
  --muted: #5C5C5C;
  --line: rgba(28, 28, 28, 0.12);
  --line-light: rgba(243, 240, 235, 0.16);
  --header-h: 4.25rem;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(28, 28, 28, 0.12);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 4.5rem;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-deep); }
h1, h2, h3, .logo-name, .logo-sub, .eyebrow, .card-kicker, .footer-name {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -40px;
  background: var(--orange);
  color: var(--charcoal);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-primary {
  background: var(--orange);
  color: var(--charcoal);
  border-color: var(--orange);
}
.btn-primary:hover { background: #ff6a33; }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 240, 235, 0.45);
}
.btn-ghost:hover { border-color: var(--orange); color: #fff; }
.btn-header {
  background: var(--orange);
  color: var(--charcoal);
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.05rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 28, 0.94);
  color: var(--paper);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.logo-mark { color: var(--orange); display: flex; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.logo-sub { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-soft); }

.nav { display: none; gap: 1.15rem; }
.nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.88;
}
.nav a:hover, .nav a:focus-visible { color: var(--orange); opacity: 1; }

.hero {
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(241, 90, 34, 0.28), transparent 55%),
    linear-gradient(180deg, var(--charcoal) 0%, #161616 100%);
  color: var(--paper);
  padding: 3.25rem 0 4rem;
}
.hero-inner { max-width: 42rem; }
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
}
.lede { margin: 0 0 1.75rem; font-size: 1.125rem; color: rgba(243, 240, 235, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  line-height: 1.15;
  font-weight: 700;
}
.section-head p:last-child { margin: 0; color: var(--muted); }

.services { padding: 4rem 0 3.5rem; }
.division-grid {
  display: grid;
  gap: 1.15rem;
}
.division-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.card-kicker {
  margin: 0 0 0.45rem;
  color: var(--orange-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.division-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.28rem;
  line-height: 1.25;
}
.division-card p { margin: 0 0 1.1rem; color: #3a3a3a; }
.support-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.support-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}

.roof-types {
  padding: 3.5rem 0;
  background: var(--charcoal);
  color: var(--paper);
}
.roof-types .section-head p:last-child { color: rgba(243, 240, 235, 0.72); }
.roof-types h2 { color: #fff; }
.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.type-card {
  background: var(--charcoal-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.15rem;
}
.type-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--orange);
  text-transform: none;
}
.type-card p { margin: 0; color: rgba(243, 240, 235, 0.82); font-size: 0.95rem; }

.gallery { padding: 4rem 0; }
.gallery-grid {
  display: grid;
  gap: 1.15rem;
}
.gallery-tile {
  margin: 0;
  background: #fff;
  border: 1px dashed #b9b3a9;
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
  background:
    repeating-linear-gradient(
      -45deg,
      #e8e4dd,
      #e8e4dd 8px,
      #efece6 8px,
      #efece6 16px
    );
}
.ba-before, .ba-after {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ba-before { border-right: 2px dashed rgba(28, 28, 28, 0.2); }
.ba-before span, .ba-after span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(28, 28, 28, 0.82);
  color: var(--paper);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.ba-after span { background: var(--orange); color: var(--charcoal); }
.gallery-tile figcaption {
  padding: 0.85rem 1rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: var(--charcoal);
}

.faq {
  padding: 3.5rem 0 4rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.02rem;
  padding: 1rem 2.6rem 1rem 1.1rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange-deep);
  font-size: 1.4rem;
  font-weight: 600;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.15rem;
  color: #3a3a3a;
}
.faq-item summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

.contact {
  padding: 4rem 0;
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(241, 90, 34, 0.22), transparent 60%),
    var(--charcoal);
  color: var(--paper);
  text-align: center;
}
.contact-inner { max-width: 38rem; }
.contact h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: #fff;
}
.contact p { color: rgba(243, 240, 235, 0.86); }
.contact .btn { margin: 0.5rem 0 1rem; }
.fine-print { font-size: 0.85rem; color: rgba(243, 240, 235, 0.55) !important; }

.site-footer {
  background: #121212;
  color: rgba(243, 240, 235, 0.75);
  padding: 2rem 0 2.25rem;
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 1rem; }
.footer-name {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer p { margin: 0.15rem 0; }
.site-footer a { color: var(--orange-soft); text-decoration: none; }
.copyright { font-size: 0.85rem; color: rgba(243, 240, 235, 0.5); }

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(28, 28, 28, 0.96);
  border-top: 1px solid var(--line-light);
  z-index: 40;
}
.mobile-cta .btn { width: 100%; }

@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .division-grid, .type-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 5rem 0 5.5rem; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .division-grid { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .ba-split { min-height: 220px; }
}

@media (max-width: 419px) {
  .btn-header { font-size: 0.8rem; padding: 0.5rem 0.7rem; }
}
