/* Chattanooga Spray Foam — clean energy / home comfort */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --bg: #f3f8fb;
  --surface: #ffffff;
  --surface-2: #e8f2f6;
  --surface-3: #dceaf1;
  --text: #1a2b33;
  --muted: #5a6f7a;
  --accent: #1a7a9c;
  --accent-hover: #156782;
  --accent-2: #2bb89a;
  --accent-soft: rgba(26, 122, 156, 0.1);
  --mint-soft: rgba(43, 184, 154, 0.14);
  --border: #c9dde6;
  --warn: #9a6b12;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1100px;
  --font: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --shadow: 0 18px 40px rgba(26, 43, 51, 0.08);
  --shadow-soft: 0 8px 24px rgba(26, 122, 156, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* picture must be a real box so height:100%/object-fit fill parents work */
picture {
  display: block;
  width: 100%;
  height: 100%;
}
.feature-asymm__media picture,
.hero-editorial__photo picture,
.hero-bleed__bg picture,
.photo-band__bg picture,
.hero-comfort__visual picture,
.hero-media picture,
.media-card picture,
.zig__media picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--accent); }
.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.05rem; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn-call {
  background: linear-gradient(135deg, var(--accent) 0%, #1f8fb0 100%);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: var(--shadow-soft);
}
.nav .btn-call:hover { background: var(--accent-hover); }

/* Hero: soft wash + overlapping quote card */
.hero-comfort {
  position: relative;
  padding: 2.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(43, 184, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(26, 122, 156, 0.12), transparent 50%),
    linear-gradient(180deg, #eaf4f8 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-comfort__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}
.hero-comfort__copy { padding-bottom: 1rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--mint-soft);
  border: 1px solid rgba(43, 184, 154, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero-comfort h1,
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.95rem, 4.4vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 700;
}
.hero-comfort .lead, .hero .lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1f8fb0 55%, var(--accent-2) 140%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-comfort__visual {
  position: relative;
  margin: 0;
}
.hero-comfort__visual img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}
.hero-float-card {
  position: absolute;
  left: -1.5rem;
  bottom: -2.25rem;
  width: min(100%, 280px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-float-card--soft p { margin: 0 !important; }
.hero-float-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.hero-float-card p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-float-card .btn { width: 100%; text-align: center; padding: 0.65rem 1rem; font-size: 0.9rem; }

/* Inner page hero */
.hero {
  padding: 2.75rem 0 2.25rem;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Soft trust pills */
.trust-pills {
  margin-top: -1.75rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}
.trust-pills__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.trust-pills__row span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(26, 43, 51, 0.05);
}
.trust-pills__row span b { color: var(--accent); font-weight: 800; }

.section { padding: 3rem 0; }
.section-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 0.85rem;
  line-height: 1.2;
}
.section p, .section li { color: var(--muted); }
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem;
  box-shadow: 0 2px 0 rgba(26, 43, 51, 0.03);
}
.section-band .card { background: var(--bg); }
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--text);
  font-family: var(--display);
}
.card p { margin: 0; font-size: 0.95rem; }
.comfort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.comfort-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.comfort-tile__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.comfort-tile h3 { margin: 0 0 0.3rem; font-size: 1rem; font-family: var(--display); color: var(--text); }
.comfort-tile p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Full-bleed photo band */
.photo-band {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.photo-band__bg {
  position: absolute;
  inset: 0;
}
.photo-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 40, 50, 0.88) 0%, rgba(15, 40, 50, 0.55) 55%, rgba(15, 40, 50, 0.25) 100%);
}
.photo-band .wrap {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
  max-width: 520px;
  color: #eef6f9;
}
.photo-band h2 {
  font-family: var(--display);
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.photo-band p { color: #c5d8e0; margin: 0 0 1.25rem; }

.media-card { padding: 0; overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.media-card .card-body { padding: 1.25rem 1.35rem; }

.callout {
  background: var(--accent-soft);
  border: 1px solid #b7d4e0;
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  margin: 0 0 1.75rem;
}
.callout p { margin: 0; color: var(--text); }

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.towns span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  padding: 0.95rem 1.15rem;
}
.faq summary { cursor: pointer; font-weight: 800; color: var(--text); }
.faq details p { margin: 0.7rem 0 0; }

/* Final CTA — single ask zone (homepage bottom) */
.cta-final {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(43, 184, 154, 0.16), transparent 55%),
    linear-gradient(180deg, var(--surface-2) 0%, #dceaf1 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-final__inner { max-width: 40rem; margin-inline: auto; }
.cta-final h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0 0 0.85rem;
  color: var(--text);
}
.cta-final__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  line-height: 1.7;
}
.btn-lg {
  padding: 1.1rem 2.5rem !important;
  font-size: 1.12rem !important;
}
.cta-final .btn-lg {
  box-shadow: 0 14px 36px rgba(26, 122, 156, 0.28);
}
.cta-final__call {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 800;
}
.cta-final__call a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.35rem;
}
.cta-final__call a:hover { color: var(--accent-hover); text-decoration: underline; }

.quote-form,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.quote-form .btn { width: 100%; text-align: center; }
.placeholder-note { font-size: 0.8rem; color: var(--warn); margin-top: 0.3rem; }
.phone-big {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--display);
}
.phone-big a { color: inherit; text-decoration: none; }

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-status[hidden] { display: none !important; }
.form-status.is-success {
  background: var(--mint-soft);
  border: 1px solid var(--accent-2);
  color: var(--text);
}
.form-status.is-error {
  background: #f8e8e8;
  border: 1px solid #b85c5c;
  color: var(--text);
}
.form-status.is-setup {
  background: #f7efd8;
  border: 1px solid var(--warn);
  color: var(--text);
}
.quote-form .btn[disabled] { opacity: 0.65; cursor: wait; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

.site-footer {
  background: #143642;
  color: #d5e4ea;
  padding: 2.4rem 0 1.4rem;
  margin-top: 0;
}
.site-footer a { color: #9fd0e0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.site-footer h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--display);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer p { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #2a5564;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #8eacb8;
}
.legal { max-width: 720px; }
.legal h2 { font-family: var(--display); margin-top: 2rem; }

@media (max-width: 900px) {
  .hero-comfort__grid,
  .comfort-grid { grid-template-columns: 1fr; }
  .hero-float-card {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 1rem;
  }
  .hero-comfort { padding-bottom: 2.5rem; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 0.75rem; }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .split, .footer-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
