/* ============================================================
   Shared styles for dedicated service landing pages
   Used by: ac-repair-austin, furnace-repair-austin,
            heat-pump-service-austin, indoor-air-quality-austin
   ============================================================ */

/* Hero */
.service-page-hero {
  padding: 4rem max(1.5rem, calc((100vw - 1200px) / 2)) 3rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 60%, #f8fafc 100%);
  text-align: center;
}

.service-page-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.service-page-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge-pill {
  background: rgba(119, 154, 176, 0.1);
  border: 1px solid rgba(119, 154, 176, 0.25);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(119, 154, 176, 0.35);
}

.btn-primary:hover {
  background: #5a7a8f;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(119, 154, 176, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--accent);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Trust bar */
.trust-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem max(1.5rem, calc((100vw - 1200px) / 2));
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.trust-item-icon { font-size: 1.35rem; }

/* Breadcrumb */
.lp-breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 1rem max(1.5rem, calc((100vw - 1200px) / 2));
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.lp-breadcrumb a { color: var(--accent); text-decoration: none; }
.lp-breadcrumb a:hover { text-decoration: underline; }
.lp-breadcrumb .sep { margin: 0 0.4rem; }

/* Service intro / two-column */
.service-intro {
  padding: 4rem max(1.5rem, calc((100vw - 1200px) / 2));
  background: white;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-intro-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text);
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.service-intro-text p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
}

.service-intro-text p:last-child { margin-bottom: 0; }

.service-intro-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section scaffold */
.lp-section {
  padding: 4rem max(1.5rem, calc((100vw - 1200px) / 2));
}

.lp-section--gray { background: #f8fafc; }
.lp-section--white { background: white; }

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Feature cards */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: white;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.lp-section--white .feature-card { background: #f8fafc; }

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.feature-card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card ul li {
  color: var(--muted);
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.97rem;
}

.feature-card ul li:last-child { border-bottom: none; }

.feature-card ul li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
}

/* Process steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.65rem;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

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

details.faq-item {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.lp-section--white details.faq-item { background: #f8fafc; }

summary.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1.02rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  user-select: none;
}

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

summary.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

details[open] summary.faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

/* Related services */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

a.related-card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
  background: white;
}

.lp-section--gray a.related-card { background: white; }

a.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.related-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

a.related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

a.related-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* CTA banner */
.cta-banner {
  padding: 4rem max(1.5rem, calc((100vw - 1200px) / 2));
  background: linear-gradient(135deg, var(--accent) 0%, #4a6a7f 100%);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  color: white;
}

.cta-banner p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 2rem;
  max-width: 580px;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--accent);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.65);
  transition: background 0.2s, transform 0.2s;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Service area strip */
.area-strip {
  padding: 1.5rem max(1.5rem, calc((100vw - 1200px) / 2));
  background: white;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.area-strip p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.7;
}

.area-strip strong { color: var(--text); }

/* ─── Responsive ─── */
@media (max-width: 800px) {
  .service-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-intro-image { order: -1; }

  .steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    text-align: center;
  }

  .steps-grid { grid-template-columns: 1fr; }

  .cta-banner-actions {
    flex-direction: column;
    align-items: center;
  }

  .trust-bar { gap: 1rem; }
}
