/* St. George Spray Foam — Shared Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #E8521A;
  --orange-dark: #C43E0E;
  --navy: #1A2340;
  --slate: #2C3654;
  --sand: #F5F0E8;
  --white: #FFFFFF;
  --text: #222222;
  --muted: #6B7280;
  --radius: 8px;
  --max: 1100px;
}

body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.65; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── TOP BAR ─────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
  padding: .4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar a { color: #fff; }

/* ── HEADER ──────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo { display: flex; flex-direction: column; }
.logo strong { font-size: 1.35rem; color: var(--navy); letter-spacing: -.3px; }
.logo span { font-size: .8rem; color: var(--muted); }
nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--navy); font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--orange); text-decoration: none; }
.btn-call {
  background: var(--orange);
  color: #fff !important;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}
.btn-call:hover { background: var(--orange-dark); text-decoration: none !important; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 55%, var(--slate) 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.8rem; opacity: .9; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); text-decoration: none; color: #fff; }
.btn-secondary {
  background: transparent;
  color: #fff;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.6);
  display: inline-block;
}
.btn-secondary:hover { border-color: #fff; text-decoration: none; color: #fff; }

/* ── TRUST BAR ───────────────────────────────────── */
.trustbar {
  background: var(--orange);
  color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  padding: .8rem 1.8rem;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-right: 1px solid rgba(255,255,255,.3);
}
.trust-item:last-child { border-right: none; }
.trust-item svg { flex-shrink: 0; }

/* ── SECTIONS ────────────────────────────────────── */
section { padding: 3.5rem 1.5rem; }
.container { max-width: var(--max); margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}
.bg-sand { background: var(--sand); }

/* ── CARDS ───────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.card-icon { font-size: 2rem; margin-bottom: .8rem; }
.card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ── SERVICE BLOCKS ──────────────────────────────── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width:700px){ .service-block { grid-template-columns: 1fr; } }
.service-block h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 1rem; }
.service-block ul { padding-left: 1.2rem; }
.service-block li { margin-bottom: .5rem; color: var(--muted); }
.service-cta { margin-top: 1.5rem; }

/* ── STATS ───────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--orange); }
.stat-label { color: var(--navy); font-size: .9rem; font-weight: 600; margin-top: .25rem; }

/* ── WHY CARDS ───────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
  background: var(--orange);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.why-item h4 { color: var(--navy); margin-bottom: .25rem; }
.why-item p { color: var(--muted); font-size: .9rem; }

/* ── REVIEWS ─────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card {
  background: #fff;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.stars { color: #F59E0B; font-size: 1rem; margin-bottom: .5rem; }
.review-card p { color: var(--text); font-size: .95rem; font-style: italic; margin-bottom: .8rem; }
.reviewer { font-weight: 700; color: var(--navy); font-size: .9rem; }

/* ── CTA BANNER ──────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--slate));
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .8rem; }
.cta-banner p { opacity: .85; margin-bottom: 1.8rem; font-size: 1.05rem; }

/* ── FORM ────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; color: var(--navy); }
input, select, textarea {
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
}
textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: .5rem; }
.form-submit .btn-primary { width: 100%; padding: .9rem; font-size: 1.05rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .5rem; text-align: center; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid #E5E7EB; padding: 1.1rem 0; }
.faq-q {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-a { color: var(--muted); font-size: .95rem; padding-top: .6rem; display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .2s; flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
footer h4 { color: #fff; margin-bottom: .8rem; font-size: .95rem; letter-spacing: .5px; text-transform: uppercase; }
footer ul { list-style: none; }
footer li { margin-bottom: .4rem; font-size: .9rem; }
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: .8rem;
}

/* ── PAGE BANNER ─────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 60%, var(--slate));
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-banner h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
.page-banner h1 span { color: var(--orange); }
.page-banner p { opacity: .85; font-size: 1rem; max-width: 580px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; margin-bottom: .8rem; opacity: .65; }
.breadcrumb a { color: rgba(255,255,255,.8); }

/* ── CONTENT PAGE ────────────────────────────────── */
.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
@media(max-width:750px){ .content-layout { grid-template-columns: 1fr; } }
.content-body h2 { color: var(--navy); font-size: 1.4rem; margin: 1.8rem 0 .7rem; }
.content-body p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.content-body ul { padding-left: 1.3rem; color: var(--muted); margin-bottom: 1rem; }
.content-body li { margin-bottom: .4rem; }
.sidebar-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid #E5E7EB;
  position: sticky;
  top: 20px;
}
.sidebar-box h3 { color: var(--navy); margin-bottom: 1rem; font-size: 1.1rem; }
.sidebar-box .btn-primary { width: 100%; text-align: center; display: block; margin-bottom: .8rem; }
.sidebar-phone {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: .8rem 0;
}
.sidebar-phone a { color: var(--navy); }
.sidebar-ul { list-style: none; padding: 0; margin-top: 1rem; }
.sidebar-ul li { padding: .4rem 0; border-bottom: 1px solid #E5E7EB; font-size: .9rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.sidebar-ul li::before { content: "✓"; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ── MOBILE ──────────────────────────────────────── */
@media(max-width:600px){
  .topbar { justify-content: center; text-align: center; }
  header { justify-content: center; }
  nav { justify-content: center; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
}
