/* Roof Repair Experts - Premium design system
   Mobile-first, no frameworks, minimal and fast. */

:root {
  --navy-900: #0b1f33;
  --navy-800: #10293f;
  --navy-700: #16344f;
  --gold-500: #c9a24b;
  --gold-600: #b08a35;
  --gold-100: #f3e9cf;
  --cream-50: #faf7f1;
  --cream-100: #f4eee2;
  --ink-900: #1b2733;
  --ink-600: #46586b;
  --ink-400: #7c8da0;
  --line: #e3dccb;
  --white: #ffffff;
  --success: #1f7a4d;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 31, 51, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.18);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--navy-700); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.2rem; color: var(--ink-600); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-md); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--gold-100); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: 1.12rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900);
  color: #d7e0ea;
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold-500); }
.topbar .dot { margin: 0 0.5rem; color: var(--gold-500); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy-900); line-height: 1.1; }
.brand__tag { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); }

.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-900); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--gold-600); }
.nav-cta { display: inline-flex; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.82) 0%, rgba(11, 31, 51, 0.68) 55%, rgba(11, 31, 51, 0.9) 100%),
    url("../img/hero-roof.jpg") center / cover no-repeat,
    var(--navy-800);
  overflow: hidden;
}
.hero .container { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #e8edf3; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 1.4rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-size: 0.95rem; color: #d7e0ea; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta svg { width: 1.05em; height: 1.05em; stroke: var(--gold-500); }
.hero__card {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(6px);
  max-width: 640px;
}
.hero__card strong { color: var(--gold-100); }

/* Breadcrumb */
.breadcrumb { font-size: 0.88rem; color: var(--ink-400); margin: 1.4rem 0 0; }
.breadcrumb a { color: var(--ink-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero { background: var(--navy-800); color: #fff; }
.page-hero .container { padding: 3rem 0 2.6rem; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #d7e0ea; }
.page-hero .breadcrumb { color: #9fb0c2; }
.page-hero .breadcrumb a { color: #d7e0ea; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 { margin-bottom: 0.3rem; font-size: 1.18rem; }
.card h3 a { color: var(--navy-900); text-decoration: none; }
.card h3 a:hover { color: var(--gold-600); }
.card p { color: var(--ink-600); font-size: 0.99rem; flex: 1; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-800); color: var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.4rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__link { font-weight: 700; color: var(--gold-600); text-decoration: none; font-size: 0.98rem; }
.card__link:hover { text-decoration: underline; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--cream-100);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400);
}
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / 60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.6rem; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.3rem; top: 1.3rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-500);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--ink-600); font-size: 0.99rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 85% -20%, rgba(201, 162, 75, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e0ea; max-width: 60ch; margin-inline: auto; }
.cta-band__phone { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.cta-band__phone a { color: var(--gold-500); text-decoration: none; }
.cta-band__phone a:hover { color: var(--gold-100); }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.8rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; color: var(--navy-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--cream-100); color: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; background: var(--gold-500); color: var(--navy-900); }
.faq .faq__answer { padding: 0 1.4rem 1.3rem; color: var(--ink-600); }
.faq summary:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Areas ---------- */
.area-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.area-pills a {
  display: inline-block; padding: 0.6rem 1.2rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy-800);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.area-pills a:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c6d2de; margin-top: 0; }
.site-footer .container { padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3, .site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #c6d2de; text-decoration: none; font-size: 0.96rem; }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.87rem; color: #93a5b8;
}

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
}
.sticky-call a {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: 1.05rem;
  text-decoration: none; border-radius: 999px; padding: 0.8rem;
}
.sticky-call svg { width: 1.2em; height: 1.2em; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--cream-50); color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(201, 162, 75, 0.4); border-color: var(--gold-500); background: #fff;
}
.form-note { font-size: 0.9rem; color: var(--ink-600); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.98rem; }
table.data th, table.data td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--navy-800); color: #fff; font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Misc ---------- */
.band--cream { background: var(--cream-100); }
.band--white { background: #fff; }
.band--navy { background: var(--navy-900); color: #e8edf3; }
.band--navy h2, .band--navy h3 { color: #fff; }
.band--navy p { color: #c6d2de; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.2rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold-500); color: var(--navy-900);
  padding: 0.7rem 1.2rem; font-weight: 700; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-500); outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-50); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 0.8rem 0.2rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .topbar .hide-mobile { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .sticky-call { display: block; }
  body { padding-bottom: 76px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
