/* SearchRoute Media — roof replacement campaign page
   No external fonts, no dependencies, mobile-first. */

:root {
  --ink:      #16262F;  /* deep slate — text and hero ground */
  --slate:    #2E4450;  /* secondary surface */
  --muted:    #4A5D68;  /* secondary text on light */
  --pale:     #C9D4DA;  /* secondary text on dark */
  --paper:    #F0F1EC;  /* page background */
  --white:    #FFFFFF;
  --line:     #D3D8D1;
  --signal:   #E4A11B;  /* call action only */
  --signal-d: #C88A0E;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --wrap: 62rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 60;
}
.skip:focus { left: 0; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand { display: flex; flex-direction: column; gap: 0.15rem; }

.brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-line {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--pale);
  max-width: 22ch;
}

.masthead-call {
  display: none;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-bottom: 3.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 2.25rem));
}

.hero-shingles {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}
.hero-shingles rect { fill: #6E8592; }

.hero-inner { position: relative; padding-top: 2.75rem; }

h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 800;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--pale);
  max-width: 34ch;
}

.hero-locale {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--pale);
}

.hero-qualifier {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--pale);
  max-width: 46ch;
  border-left: 3px solid var(--signal);
  padding-left: 0.85rem;
}

.hero-identity {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #93A7B2;
  max-width: 48ch;
}

/* ---------- Call buttons ---------- */

.call {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: var(--signal);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  border-bottom: 3px solid var(--signal-d);
}

.call:hover { background: #EDAE2C; }
.call:active { transform: translateY(1px); }

.call-label { font-size: 1.125rem; letter-spacing: -0.01em; }
.call-number { font-size: 1rem; font-weight: 700; }

.call-hero { margin-top: 1.75rem; }
.call-closer { margin-top: 1.5rem; }

/* ---------- Fit / qualification ---------- */

.fit { padding: 2.75rem 0 2.5rem; }

#fit-title { font-size: 1.5rem; font-weight: 700; }

.fit-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.fit-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 4px;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  position: relative;
  font-weight: 600;
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}

.fit-exclude {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: transparent;
  border: 1px dashed #B7BFB6;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Steps ---------- */

.steps {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0;
}

#steps-title { font-size: 1.5rem; font-weight: 700; }

.step-list {
  margin-top: 1.5rem;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.step-list li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9375rem;
}

.step-list h3 { font-size: 1.0625rem; font-weight: 700; }
.step-list p { margin-top: 0.3rem; color: var(--muted); font-size: 0.9688rem; }

/* ---------- Educational ---------- */

.learn { padding: 2.75rem 0; }

#learn-title { font-size: 1.5rem; font-weight: 700; }

.learn-inner { max-width: 44rem; }

.learn-intro {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.learn-list { margin-top: 1.75rem; display: grid; gap: 1.25rem; }

.learn-list > div { border-top: 1px solid var(--line); padding-top: 1rem; }

.learn-list dt { font-weight: 700; font-size: 1.0313rem; }

.learn-list dd {
  margin-top: 0.3rem;
  font-family: var(--serif);
  line-height: 1.65;
  color: var(--muted);
}

.learn-note {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 0.85rem;
}

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

.closer {
  background: var(--slate);
  color: var(--white);
  padding: 2.75rem 0;
}

#closer-title { font-size: 1.625rem; font-weight: 800; max-width: 18ch; }

.closer-sub {
  margin-top: 0.75rem;
  color: var(--pale);
  max-width: 42ch;
  font-size: 1rem;
}

.closer-qualifier {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--pale);
  max-width: 46ch;
}

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

.footer {
  background: var(--ink);
  color: var(--pale);
  padding: 2.5rem 0 6.5rem;
  font-size: 0.875rem;
}

.footer-top {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand { color: var(--white); font-weight: 700; font-size: 1rem; }
.footer-role { margin-top: 0.2rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { text-decoration: underline; text-underline-offset: 3px; }

.disclaimer {
  margin-top: 1.5rem;
  line-height: 1.6;
  color: #A9BAC4;
  max-width: 72ch;
}

.copyright { margin-top: 1.5rem; color: #7E939F; font-size: 0.8125rem; }

/* ---------- Sticky mobile call bar ---------- */

.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 38, 47, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stickybar[hidden] { display: none; }

.call-sticky {
  flex-direction: row;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
}

.call-sticky .call-label { font-size: 1rem; }
.call-sticky .call-number { font-size: 0.9375rem; }

/* ---------- Wider screens ---------- */

@media (min-width: 34rem) {
  .call { display: inline-flex; padding: 1.1rem 2rem; }
  .call-sticky { display: flex; }
  .fit-list { grid-template-columns: 1fr 1fr; }
  .footer-nav { flex-direction: row; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  .masthead-call { display: block; }
  .brand-line { max-width: none; font-size: 0.8125rem; }
  .hero { padding-bottom: 4.5rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5rem)); }
  .hero-inner { padding-top: 4rem; }
  .fit, .steps, .learn, .closer { padding-top: 4rem; padding-bottom: 4rem; }
  #fit-title, #steps-title, #learn-title { font-size: 1.875rem; }
  #closer-title { font-size: 2rem; }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .footer { padding-bottom: 3rem; }
  .stickybar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */

.brand-home { text-decoration: none; }
.brand-home:hover .brand-name { border-bottom: 2px solid var(--signal); }

.masthead-back {
  display: none;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 2px;
}

.legal { padding: 2.25rem 0 2.75rem; }

.legal-inner { max-width: 44rem; }

.legal h1 {
  font-size: 1.75rem;
  font-weight: 800;
  max-width: none;
}

.legal-updated {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal-intro {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal section { margin-top: 2rem; }

.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.legal section p {
  margin-top: 0.7rem;
  font-family: var(--serif);
  line-height: 1.65;
  color: var(--muted);
}

.legal section ul { margin-top: 0.7rem; display: grid; gap: 0.4rem; }

.legal section li {
  font-family: var(--serif);
  line-height: 1.6;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.legal section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--signal);
  border-radius: 50%;
}

.legal a { color: var(--ink); text-underline-offset: 3px; }

.legal-back {
  display: inline-block;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-legal .footer { padding-bottom: 2.5rem; }

@media (min-width: 48rem) {
  .masthead-back { display: block; }
  .legal { padding: 3.5rem 0 4rem; }
  .legal h1 { font-size: 2.125rem; }
}
