/* AUTO-GENERATED — do not edit.
   Source: css/theme.css + shared/base.css
   Regenerate: python3 scripts/build.py */

/* ============================================================
   Boise Roofing Pros — Theme
   Edit this file to change colors/branding.
   Run scripts/build.py to regenerate css/style.css.
   ============================================================ */

:root {
  /* Brand colors */
  --primary:       #0f1f3d;
  --primary-light: #1a3260;
  --accent:        #e85d04;
  --accent-hover:  #c94e00;

  /* Neutrals */
  --white:  #ffffff;
  --light:  #f4f6f9;
  --border: #dde1e9;
  --text:   #1c1c2e;
  --muted:  #5f6375;

  /* Shadows & shape */
  --shadow:    0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 36px rgba(0,0,0,0.13);
  --radius:    6px;
  --radius-lg: 12px;
  --max-w:     1160px;
  --header-h:  72px;

  /* Accent derivatives (used in base.css) */
  --hero-end:          #243b6e;
  --hero-badge-text:   #ffb380;
  --accent-alpha-20:   rgba(232,93,4,0.2);
  --accent-alpha-40:   rgba(232,93,4,0.4);
  --accent-glow:       0 4px 16px rgba(232,93,4,0.35);
  --accent-focus-ring: rgba(232,93,4,0.12);
  --area-pill-hover-bg: #fff3ee;
  --primary-shadow:    rgba(15,31,61,0.3);
}


/* ============================================================
   Roofing Sites — Shared Base Stylesheet
   DO NOT EDIT DIRECTLY. Edit shared/base.css in the source repo.
   Each site's css/theme.css sets the :root variables consumed here.
   ============================================================ */

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

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--accent-glow);
  text-decoration: none;
}
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); text-decoration: none; }
.btn-lg { padding: 17px 36px; font-size: 1.1rem; }

/* ----- Header ----- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}
.logo span { color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.logo:hover { text-decoration: none; }

/* ----- Nav ----- */
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--light); color: var(--accent); text-decoration: none; }

/* Services dropdown — hover area is continuous (no gap) so pointer can travel */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  background: transparent;
  z-index: 200;
  transition: visibility 0s linear 0.2s, opacity 0.15s ease;
}
.dropdown-menu-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px 0;
}
.nav-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
.dropdown-menu a { display: block; padding: 10px 20px; color: var(--text); font-weight: 500; border-radius: 0; font-size: 0.9rem; }
.dropdown-menu a:hover { background: var(--light); color: var(--accent); }

/* ----- Hero ----- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--hero-end) 100%);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-alpha-20);
  border: 1px solid var(--accent-alpha-40);
  color: var(--hero-badge-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: 1.1rem; opacity: 0.88; margin-bottom: 32px; max-width: 520px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; opacity: 0.9; }
.trust-item .icon {
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* Hero Form Card */
.hero-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-lg); color: var(--text); }
.form-card-title { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.form-card-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }

/* ----- Forms ----- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-focus-ring); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.75rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-success { display: none; background: #edfaf3; border: 1.5px solid #27ae60; border-radius: var(--radius); padding: 16px; text-align: center; color: #1a7a43; font-weight: 600; margin-top: 12px; }
.form-error { color: #dc2626; font-size: 0.85rem; margin-top: 8px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #dc2626; }

/* ----- Sections ----- */
section { padding: 72px 0; }
.section-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; color: var(--primary); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 600px; }
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ----- Services Grid ----- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--muted); flex: 1; margin-bottom: 20px; }
.service-card .card-link { font-size: 0.88rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.service-card .card-link:hover { text-decoration: underline; }

/* ----- How It Works ----- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { text-align: center; }
.step-circle { width: 72px; height: 72px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 20px; box-shadow: 0 4px 16px var(--primary-shadow); }
.how-step h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.how-step p { font-size: 0.9rem; color: var(--muted); }

/* ----- Why Us ----- */
.why-us { background: var(--light); }
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.why-item { flex: 0 1 calc(25% - 24px); min-width: 180px; text-align: center; }
.why-icon { width: 64px; height: 64px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.8rem; box-shadow: var(--shadow); }
.why-item h3 { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.why-item p { font-size: 0.88rem; color: var(--muted); }

/* ----- Stats Bar ----- */
.stats-bar { background: var(--accent); color: var(--white); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; }
.stat-label { font-size: 0.88rem; opacity: 0.88; font-weight: 600; margin-top: 4px; }

/* ----- Testimonials ----- */
.testimonials { background: var(--primary); color: var(--white); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-sub { color: rgba(255,255,255,0.7); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 28px 24px; }
.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 0.95rem; line-height: 1.65; opacity: 0.9; margin-bottom: 18px; }
.reviewer-name { font-weight: 700; font-size: 0.9rem; }
.reviewer-loc { font-size: 0.8rem; opacity: 0.6; margin-top: 2px; }

/* ----- Service Areas ----- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.area-pill { background: var(--light); border: 1.5px solid var(--border); border-radius: 100px; padding: 10px 20px; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--primary); transition: border-color 0.2s, background 0.2s; }
.area-pill:hover { border-color: var(--accent); background: var(--area-pill-hover-bg); color: var(--accent); text-decoration: none; }

/* ----- CTA Banner ----- */
.cta-banner { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); color: var(--white); padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-banner p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----- Page Hero (service pages) ----- */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 56px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; opacity: 0.7; margin-bottom: 18px; }
.breadcrumb a { color: var(--white); }
.breadcrumb span { opacity: 0.5; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.02em; }
.page-hero p { font-size: 1.05rem; opacity: 0.88; max-width: 620px; }

/* ----- Service Page Layout ----- */
.service-content { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.service-body h2 { font-size: 1.55rem; font-weight: 800; color: var(--primary); margin: 36px 0 14px; letter-spacing: -0.01em; }
.service-body h2:first-child { margin-top: 0; }
.service-body p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.service-body ul { list-style: none; margin-bottom: 20px; }
.service-body ul li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--muted); font-size: 0.95rem; }
.service-body ul li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* Sidebar Form */
.sidebar-form { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); }
.sidebar-form-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.sidebar-form-sub { font-size: 0.83rem; color: var(--muted); margin-bottom: 18px; }

/* ----- Process Steps ----- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { text-align: center; position: relative; }
.process-step::after { content: ''; position: absolute; top: 24px; left: calc(50% + 28px); width: calc(100% - 56px); height: 2px; background: var(--border); }
.process-step:last-child::after { display: none; }
.step-number { width: 48px; height: 48px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; margin: 0 auto 14px; position: relative; z-index: 1; }
.process-step h4 { font-size: 0.95rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.process-step p { font-size: 0.83rem; color: var(--muted); }

/* ----- Related Services ----- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--light); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; transition: border-color 0.2s, box-shadow 0.2s; }
.related-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.related-card h4 { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.related-card p { font-size: 0.85rem; color: var(--muted); }

/* ----- Footer ----- */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; }
.footer-nap { font-size: 0.88rem; line-height: 1.9; }
.footer-nap a { color: rgba(255,255,255,0.85); }
.footer-nap a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.88rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ----- Utilities ----- */
.bg-light { background: var(--light); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0 !important; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .why-grid         { gap: 24px; }
  .why-item         { flex-basis: calc(50% - 12px); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .service-content  { grid-template-columns: 1fr; }
  .sidebar-form     { position: static; }
  .process-steps    { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-form-card   { max-width: 480px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid       { grid-template-columns: repeat(3, 1fr); }
  .how-grid         { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  section { padding: 52px 0; }
  .hero { padding: 52px 0; }
  .main-nav { display: none; }
  .services-grid    { grid-template-columns: 1fr; }
  .why-item         { flex-basis: calc(50% - 12px); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .related-grid     { grid-template-columns: 1fr; }
  .areas-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .cta-actions      { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .why-item         { flex-basis: 100%; }
  .areas-grid       { grid-template-columns: 1fr 1fr; }
  .process-steps    { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
}
