/* ============================================================
   Easy Roof Hub — Shared Stylesheet
   easyroofhub.com | Owned and operated by ClearLine Answering Services LLC
   ============================================================ */

/* --- Design tokens --- */
:root {
  --blue:        #1B4FCC;
  --blue-dark:   #1340A8;
  --blue-light:  #EEF3FD;
  --orange:      #F97316;
  --orange-dark: #E56010;
  --dark:        #111827;
  --body:        #374151;
  --muted:       #6B7280;
  --logo-roof:   #3DADD8; /* roof chevron icon color */
  --logo-navy:   #2B3787; /* "Easy Roof" wordmark color */
  --border:      #E5E7EB;
  --bg:          #F9FAFB;
  --white:       #FFFFFF;
  --radius:      8px;
  --max-w:       1080px;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section       { padding: 64px 0; }
.section--alt  { background: var(--bg); }
.section--blue { background: var(--blue); }
.section--dark { background: var(--dark); }

/* --- Type --- */
h1, h2, h3 { color: var(--dark); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.5vw, 34px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 6px; }
p  { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-align: center;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--blue   { background: var(--blue);   color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost  { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--lg { padding: 18px 36px; font-size: 18px; }
.btn--full { display: block; width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.header-phone-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
}
.header-phone-num:hover { text-decoration: none; color: var(--orange); }
.header-phone-avail {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: .9; }

.logo-icon {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  color: var(--logo-roof);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--logo-navy);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo-hub { color: var(--muted); }
.logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ============================================================
   CALL BUTTON — primary conversion action
   ============================================================ */
.btn--call {
  background: var(--orange);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  padding: 22px 56px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(249,115,22,.45);
  letter-spacing: .01em;
  transition: background .15s, box-shadow .15s, transform .12s;
  display: inline-block;
}
.btn--call:hover {
  background: var(--orange-dark);
  box-shadow: 0 10px 40px rgba(249,115,22,.6);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--white);
}
.btn--call:active { transform: scale(.97); box-shadow: 0 3px 16px rgba(249,115,22,.4); }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hero {
  background: linear-gradient(140deg, #0D2960 0%, var(--blue) 55%, #3B72F0 100%);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.07;
  font-weight: 800;
  margin: 0 auto 24px;
  max-width: 840px;
}
.hero .lead {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255,255,255,.95);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
  font-weight: 400;
}
.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-microcopy {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin: 0;
  margin-top: -4px;
}
.hero-number {
  font-size: 20px;
  color: rgba(255,255,255,.85);
  margin: 0;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero-support {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  margin-bottom: 0;
  letter-spacing: .01em;
}

/* ============================================================
   CALL MODAL — desktop prompt
   ============================================================ */
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.call-modal[hidden] { display: none; }
.call-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.call-modal-box {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  padding: 48px 44px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
}
.call-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  border-radius: 4px;
}
.call-modal-close:hover { color: var(--dark); background: var(--bg); }

/* "Call Now" eyebrow label */
.call-modal-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Dominant number */
.call-modal-number {
  display: block;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 16px;
  text-decoration: none;
}
.call-modal-number:hover { color: var(--orange); text-decoration: none; }

.call-modal-msg {
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 8px;
}
.call-modal-micro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Primary call button inside modal */
.call-modal-cta {
  font-size: 18px;
  padding: 16px 32px;
  border-radius: 50px;
  width: 100%;
  margin-bottom: 14px;
  text-decoration: none;
  display: block;
}
.call-modal-cta:hover { text-decoration: none; color: var(--white); }

/* Secondary copy button */
.call-modal-copy-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  width: 100%;
  transition: border-color .15s, color .15s;
}
.call-modal-copy-btn:hover { border-color: var(--dark); color: var(--dark); }

/* ============================================================
   HOW IT WORKS — 3 steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px;
  margin-top: 48px;
  text-align: center;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.benefit-card .icon { font-size: 26px; margin-bottom: 12px; }

/* ============================================================
   NEIGHBORHOOD GRID (homepage)
   ============================================================ */
.nbhd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.nbhd-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
a.nbhd-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,79,204,.08);
  text-decoration: none;
}
.nbhd-card .nbhd-name { font-weight: 700; color: var(--dark); font-size: 15px; }
.nbhd-card .nbhd-sub  { font-size: 13px; color: var(--muted); }
.nbhd-card .nbhd-link { font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 8px; }
.nbhd-card--soon { opacity: .5; cursor: default; }
a.nbhd-card--soon:hover { border-color: var(--border); box-shadow: none; pointer-events: none; }

/* ============================================================
   LEAD FORM (shared — used on homepage & neighborhood pages)
   ============================================================ */
.form-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 6px 32px rgba(0,0,0,.13);
  padding: 32px 28px;
  border-top: 4px solid var(--orange);
}
.form-card .form-title { font-size: 21px; color: var(--dark); margin-bottom: 4px; font-weight: 800; }
.form-card .form-sub   { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.field       { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,79,204,.1);
}
.field textarea { resize: vertical; min-height: 80px; }
.optional { font-weight: 400; color: var(--muted); }
.form-disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Thank-you state */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success .ty-icon { font-size: 48px; margin-bottom: 14px; }
.form-success h3 { color: var(--dark); font-size: 22px; margin-bottom: 8px; }

/* ============================================================
   NEIGHBORHOOD LANDING PAGE
   ============================================================ */

/* Hero */
.nbhd-hero {
  background: linear-gradient(140deg, #0D2960 0%, var(--blue) 100%);
  color: var(--white);
  padding: 48px 24px 56px;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--white); text-decoration: none; }
.nbhd-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(30px, 5vw, 48px); }
.nbhd-hero .subhead {
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 2.5vw, 19px);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.nbhd-hero .hero-cta { margin-bottom: 36px; }

/* Stats bar — clean grid of 3 */
.stats-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  overflow: hidden;
  max-width: 520px;
}
.stat {
  flex: 1 1 0;
  padding: 14px 20px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--white); line-height: 1.2; }
.stat span   { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; display: block; }

/* Two-column body — form LEFT, content RIGHT */
.nbhd-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 24px 72px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: start;
}
.nbhd-sidebar { position: sticky; top: 76px; }
.nbhd-main { }
.nbhd-main h2 { font-size: 24px; margin-bottom: 12px; }
.nbhd-main h3 { font-size: 16px; font-weight: 700; margin: 28px 0 8px; color: var(--dark); text-transform: uppercase; letter-spacing: .04em; }

/* Authority + urgency callout */
.authority-box {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #1e3a8a;
  line-height: 1.55;
}
.urgency-line {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: #92400E;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Info box */
.info-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.info-box .ib-icon { font-size: 17px; flex-shrink: 0; padding-top: 2px; }
.info-box p { margin: 0; color: #166534; font-size: 14px; line-height: 1.55; }

/* Check list */
.check-list { list-style: none; margin: 0 0 8px; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--body);
  line-height: 1.4;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.55);
  padding: 48px 24px 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo .logo-icon { color: var(--logo-roof); }
.footer-brand .logo .logo-name { color: var(--white); }
.footer-brand .logo .logo-hub  { color: rgba(255,255,255,.6); }
.footer-brand .logo .logo-tagline { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: 14px; max-width: 240px; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: 14px; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .logo-tagline { display: none; }
  .logo-icon { height: 34px; }

  /* Header — hide phone number on mobile, keep call button compact */
  .header-phone { display: none; }
  .btn--call { font-size: 16px; padding: 14px 28px; border-radius: 50px; box-shadow: 0 4px 16px rgba(249,115,22,.35); }

  .section { padding: 48px 0; }
  .hero { padding: 56px 20px 52px; }
  .hero-number { display: none; }
  .hero .lead { font-size: clamp(16px, 4.5vw, 18px); }

  /* Stack: form first on mobile, content below */
  .nbhd-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nbhd-sidebar { position: static; order: -1; } /* form appears first */
  .nbhd-main    { order: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .form-card { padding: 24px 20px; }

  .stats-row { max-width: 100%; }
  .stat { flex: 1 1 33%; padding: 12px 14px; }
}

@media (max-width: 480px) {
  .steps    { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .nbhd-grid { grid-template-columns: 1fr 1fr; }
}
