/* All American Carpet Care — clone of sioux-fallscarpetcleaning.com layout */
:root {
  --font-sans: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --color-primary: #1e3848;
  --color-primary-light: color-mix(in srgb, #1e3848 80%, #fff);
  --color-primary-dark: color-mix(in srgb, #1e3848 80%, #000);
  --color-cta: #abd0d2;
  --color-cta-dark: color-mix(in srgb, #abd0d2 80%, #000);
  --color-forest: var(--color-primary);
  --color-forest-light: var(--color-primary-light);
  --color-forest-dark: var(--color-primary-dark);
  --color-amber: var(--color-cta);
  --color-amber-dark: var(--color-cta-dark);
  --color-cream: #eef1f4;
  --color-ink: #22262e;
  --color-muted: #6a6e76;
  --color-border: #e7e7e4;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --text-fluid-xs: 0.75rem;
  --text-fluid-sm: clamp(1rem, 0.975rem + 0.125vw, 1.0625rem);
  --text-fluid-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-fluid-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-fluid-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-fluid-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-fluid-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-fluid-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
  --text-fluid-5xl: clamp(2.75rem, 2rem + 3.75vw, 3.75rem);
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --max: 72rem;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: #fff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

address {
  font-style: normal;
}

.fluid-xs { font-size: var(--text-fluid-xs); }
.fluid-sm { font-size: var(--text-fluid-sm); }
.fluid-base { font-size: var(--text-fluid-base); }
.fluid-lg { font-size: var(--text-fluid-lg); }
.fluid-xl { font-size: var(--text-fluid-xl); }
.fluid-2xl { font-size: var(--text-fluid-2xl); }
.fluid-3xl { font-size: var(--text-fluid-3xl); }
.fluid-4xl { font-size: var(--text-fluid-4xl); }
.fluid-5xl { font-size: var(--text-fluid-5xl); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--color-forest);
  font-size: 1.075rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.desktop-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  color: #57534e;
  font-weight: 500;
  transition: background 0.15s;
}

.desktop-nav a:hover {
  background: var(--color-stone-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.95); }

.btn-primary {
  background: var(--color-forest);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--color-forest);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-stone-100);
  opacity: 1;
}

.btn-call {
  background: var(--color-forest);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.btn-call span {
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-right: -0.25rem;
  color: var(--color-stone-600);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-stone-200);
  background: #fff;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  font-size: 0.975rem;
}

.mobile-menu a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-stone-100);
  color: var(--color-stone-700);
  font-weight: 500;
}

/* Layout */
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-lg { max-width: 64rem; }
.wrap-md { max-width: 56rem; }
.wrap-sm { max-width: 48rem; }
.wrap-xs { max-width: 42rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-md { padding: 4rem 0; }
.section-lg { padding: 6rem 0; }

.bg-cream { background: var(--color-cream); }
.text-center { text-align: center; }
.text-forest { color: var(--color-forest); }
.text-muted { color: var(--color-muted); }
.text-stone { color: var(--color-stone-600); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(107, 107, 101, 0.3);
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.eyebrow-cta {
  border-color: color-mix(in srgb, var(--color-amber) 40%, transparent);
  color: var(--color-amber);
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  color: var(--color-forest);
  font-weight: 700;
  font-size: var(--text-fluid-4xl);
  letter-spacing: -0.025em;
}

.section-head p.lede {
  margin-top: 0.75rem;
  color: var(--color-stone-500);
  font-size: var(--text-fluid-base);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

.link-accent {
  color: #1E3848;
  font-weight: 600;
  font-size: var(--text-fluid-sm);
}

.link-accent:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 8rem;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.hero h1 {
  color: var(--color-forest);
  font-weight: 700;
  font-size: var(--text-fluid-5xl);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.hero .subhead {
  color: var(--color-forest);
  font-weight: 500;
  font-size: var(--text-fluid-xl);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.375;
}

.hero .lede {
  color: var(--color-muted);
  font-size: var(--text-fluid-base);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.625;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.cta-row .btn {
  padding: 1rem 2rem;
  font-size: var(--text-fluid-base);
}

.trust-strip {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--text-fluid-sm);
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip svg { color: var(--color-forest); flex-shrink: 0; }

.hero-image {
  margin-top: 3rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  height: clamp(240px, 35vw, 480px);
}

.page-hero {
  padding: 5rem 0;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-forest);
  font-weight: 700;
  font-size: var(--text-fluid-5xl);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.page-hero .lede {
  color: var(--color-muted);
  font-size: var(--text-fluid-xl);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.625;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step {
  border-left: 2px solid var(--color-forest);
  padding-left: 1.25rem;
}

.step-num {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-forest);
  margin-bottom: 0.75rem;
}

.step h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-stone-600);
  line-height: 1.625;
  font-size: var(--text-fluid-sm);
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split h2 {
  color: var(--color-forest);
  font-weight: 700;
  font-size: var(--text-fluid-4xl);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.split .copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: var(--text-fluid-lg);
  color: var(--color-stone-600);
  line-height: 1.625;
  margin-bottom: 3rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat {
  border-top: 2px solid var(--color-forest);
  padding-top: 1rem;
}

.stat strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: var(--text-fluid-sm);
  color: var(--color-muted);
}

.split-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.split-image img {
  width: 100%;
  object-fit: cover;
  height: clamp(320px, 45vw, 560px);
}

/* Services list */
.service-list {
  max-width: 56rem;
  margin: 0 auto;
}

.service-item {
  padding: 2rem 0 2rem 1.25rem;
  border-left: 2px solid var(--color-forest);
  border-bottom: 1px solid var(--color-stone-100);
}

.service-item:last-of-type { border-bottom: none; }

.service-item h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-item h3 a:hover { text-decoration: underline; }

.service-item > p {
  color: var(--color-stone-600);
  line-height: 1.625;
  margin-bottom: 0.75rem;
}

.service-item ul {
  color: var(--color-stone-700);
  margin-bottom: 0.75rem;
  font-size: var(--text-fluid-sm);
}

.service-item li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.service-item li svg {
  flex-shrink: 0;
  margin-top: 0.375rem;
  color: var(--color-forest);
}

.service-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.service-cta-row .btn {
  padding: 1rem 2rem;
}

.numbered-service {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-stone-100);
}

.numbered-service .num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.numbered-service h2 {
  font-size: var(--text-fluid-2xl);
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.numbered-service p {
  color: var(--color-stone-600);
  margin-bottom: 0.75rem;
  line-height: 1.625;
}

/* Problem cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.problem-card {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-stone-200);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.problem-card:hover {
  border-color: var(--color-stone-300);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.problem-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-stone-100);
}

.problem-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.problem-card:hover img { transform: scale(1.05); }

.problem-card .label {
  padding: 0.75rem 1rem;
}

.problem-card .label p {
  font-size: var(--text-fluid-sm);
  font-weight: 600;
  color: var(--color-forest);
  line-height: 1.375;
}

.problem-card:hover .label p { text-decoration: underline; }

.problem-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-stone-100);
}

.problem-row h2 {
  font-size: var(--text-fluid-xl);
  color: var(--color-forest);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}

.badge-soon {
  background: #fef3c7;
  color: #92400e;
}

.badge-now {
  background: #fee2e2;
  color: #991b1b;
}

.badge-monitor {
  background: #e0f2fe;
  color: #075985;
}

/* FAQ */
.faq-list {
  max-width: 56rem;
  margin: 0 auto;
}

details.faq {
  border-bottom: 1px solid var(--color-stone-200);
  padding: 1.25rem 0;
}

details.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-stone-800);
  font-size: var(--text-fluid-sm);
  line-height: 1.375;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary .chevron {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--color-stone-400);
  transition: transform 0.2s;
}

details.faq[open] summary .chevron { transform: rotate(180deg); }

details.faq p {
  margin-top: 0.75rem;
  font-size: var(--text-fluid-base);
  color: var(--color-stone-600);
  line-height: 1.625;
}

/* Mid CTA */
.mid-cta {
  padding: 4rem 0;
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
}

.mid-cta-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.mid-cta h2 {
  font-size: 1.5rem;
  color: var(--color-forest);
  margin-bottom: 0.25rem;
}

.mid-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mid-cta-actions .btn {
  padding: 1rem 2rem;
}

/* Area chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.chip {
  font-size: var(--text-fluid-sm);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid #d5d1cb;
  color: var(--color-muted);
  transition: border-color 0.15s;
}

.chip:hover { border-color: var(--color-stone-400); }

.area-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-xl);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.area-card:hover {
  border-color: var(--color-stone-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.area-card h2 {
  color: var(--color-forest);
  font-size: var(--text-fluid-lg);
  margin-bottom: 0.5rem;
}

.area-card p {
  color: var(--color-stone-600);
  font-size: var(--text-fluid-sm);
  line-height: 1.625;
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Quote */
.quote-section {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 5rem;
}

.quote-grid {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.quote-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: var(--text-fluid-sm);
  font-weight: 600;
  color: var(--color-stone-700);
  margin-bottom: 0.375rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-stone-300);
  font-size: var(--text-fluid-base);
  outline: none;
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-cta) 35%, transparent);
}

.form-error {
  display: none;
  color: #b91c1c;
  font-size: var(--text-fluid-sm);
  margin-bottom: 0.75rem;
}

.form-error.show { display: block; }

.quote-card .btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: var(--text-fluid-base);
}

.form-note {
  margin-top: 0.75rem;
  font-size: var(--text-fluid-xs);
  color: var(--color-stone-400);
  line-height: 1.625;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success.show { display: block; }

.success-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-forest);
  color: #fff;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-brand p.name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-brand .tag {
  font-size: var(--text-fluid-sm);
  opacity: 0.7;
  margin-bottom: 1rem;
  max-width: 20rem;
}

.footer-brand address {
  font-size: var(--text-fluid-sm);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  line-height: 1.625;
}

.footer-phone,
.footer-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-fluid-sm);
  font-weight: 600;
  opacity: 0.9;
  color: var(--color-amber);
  line-height: 1.625;
  margin-bottom: 0.5rem;
}

.footer-email {
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.footer-phone:hover,
.footer-email:hover { opacity: 1; }

.footer-col h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: var(--text-fluid-sm);
  opacity: 0.8;
}

.footer-col nav a:hover { opacity: 1; }

.footer-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  font-size: var(--text-fluid-sm);
  opacity: 0.7;
  line-height: 1.625;
}

.footer-areas a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-pills {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-pills span {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.4;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Chat */
.chat-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--color-forest);
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s;
}

.chat-trigger:hover { transform: scale(1.05); }

.chat-panel {
  display: none;
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 50;
  width: 20rem;
  max-width: calc(100vw - 2rem);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-panel.open { display: flex; }

.chat-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-primary);
}

.chat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #4ade80;
  flex-shrink: 0;
}

.chat-header p {
  color: #fff;
  font-size: var(--text-fluid-sm);
  font-weight: 600;
  line-height: 1;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-top: 0.125rem;
  display: block;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  overflow-y: auto;
  background: #fff;
  min-height: 180px;
  max-height: 280px;
}

.bubble-row {
  display: flex;
}

.bubble-row.user { justify-content: flex-end; }
.bubble-row.bot { justify-content: flex-start; }

.bubble {
  font-size: var(--text-fluid-sm);
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  max-width: 85%;
  line-height: 1.375;
}

.bubble.user {
  background: var(--color-forest);
  color: #fff;
}

.bubble.bot {
  background: #f0edea;
  color: #1a1a18;
}

.typing {
  background: #f0edea;
  color: #6b6b65;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--text-fluid-sm);
}

.typing span {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--color-stone-400);
  animation: bounce 1s infinite;
  margin-right: 0.2rem;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 100% { transform: translateY(-25%); }
  50% { transform: none; }
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--color-stone-100);
  background: #fff;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1;
  font-size: var(--text-fluid-sm);
  border-radius: 0.5rem;
  border: 1px solid var(--color-stone-200);
  outline: none;
}

.chat-input-row input:focus { border-color: var(--color-stone-400); }

.chat-input-row button {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--color-forest);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: var(--text-fluid-sm);
  cursor: pointer;
}

.hidden { display: none !important; }

/* Inner content */
.prose-block { margin-bottom: 3.5rem; }

.prose-block h2 {
  color: var(--color-forest);
  font-weight: 700;
  font-size: var(--text-fluid-4xl);
  letter-spacing: -0.025em;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-fluid-lg);
  color: var(--color-stone-700);
  line-height: 1.625;
  margin-bottom: 0.75rem;
}

.dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-amber);
  margin-top: 0.55rem;
}

.process-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.process-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--color-forest);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-list h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-list p {
  font-size: var(--text-fluid-base);
  color: var(--color-stone-600);
  line-height: 1.625;
}

.include-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.include-grid h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-2xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.check-list li,
.x-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.625;
  font-size: var(--text-fluid-base);
}

.check-list li { color: var(--color-stone-700); }
.x-list li { color: var(--color-stone-600); }
.check-list svg { color: var(--color-forest); flex-shrink: 0; margin-top: 0.125rem; }
.x-list svg { color: var(--color-stone-400); flex-shrink: 0; margin-top: 0.125rem; }

.scenario {
  border-left: 2px solid var(--color-forest);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.scenario h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.scenario p {
  font-size: var(--text-fluid-base);
  color: var(--color-stone-600);
  line-height: 1.625;
}

.quick-answer {
  background: var(--color-cream);
  border-left: 3px solid var(--color-forest);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.quick-answer .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.quick-answer p {
  color: var(--color-stone-700);
  line-height: 1.625;
  font-size: var(--text-fluid-base);
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.local-box {
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.local-box h3 {
  color: var(--color-forest);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.local-box li {
  color: var(--color-stone-600);
  font-size: var(--text-fluid-sm);
  margin-bottom: 0.35rem;
}

.factor {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-stone-100);
}

.factor h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-lg);
  margin-bottom: 0.5rem;
}

.factor p {
  color: var(--color-stone-600);
  line-height: 1.625;
}

.criteria {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.criteria .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1;
  min-width: 2.5rem;
}

.criteria h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-lg);
  margin-bottom: 0.5rem;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.fit-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--color-stone-200);
}

.fit-card.yes { background: #f0fdf4; }
.fit-card.no { background: #fef2f2; }

.fit-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-forest);
}

.cause {
  margin-bottom: 2.5rem;
}

.cause .cause-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-forest);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cause h3 {
  color: var(--color-forest);
  font-size: var(--text-fluid-xl);
  margin-bottom: 0.5rem;
}

.fix-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0.75rem 0 0.35rem;
}

.layout-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sticky-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.credits-list a {
  color: var(--color-forest);
  text-decoration: underline;
}

.credits-list li {
  margin-bottom: 0.75rem;
  color: var(--color-stone-600);
}

@media (min-width: 640px) {
  .btn-call span { display: inline; }
  .btn-call { padding: 0.625rem 1.25rem; }
  .cta-row { flex-direction: row; }
  .mid-cta-actions { flex-direction: row; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-card { padding: 2rem; }
}

@media (min-width: 768px) {
  .hero { padding: 8rem 0; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .mid-cta-inner {
    flex-direction: row;
    text-align: left;
  }
  .mid-cta h2 { font-size: 1.875rem; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .include-grid { grid-template-columns: 1fr 1fr; }
  .local-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; text-align: left; }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .logo { max-width: none; }
  .problem-grid { grid-template-columns: repeat(4, 1fr); }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; }
  .sticky-card { position: sticky; top: 6rem; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
}
