/* Plumbing Paramedic 911 — Mobile-first stylesheet */
:root {
  --red: #b9141a;
  --red-dark: #8c0f13;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --text: #222;
  --text-muted: #555;
  --border: #ddd;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,.12);
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-bottom: 70px; /* space for sticky CTA bar on mobile */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.3; }
h4 { font-size: 1.1rem; }
p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section { padding: 3rem 0; }
.section--alt { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section__title { margin-bottom: 1.5rem; }
.section__title--center { text-align: center; }

/* ── Site Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.site-header__tel {
  background: var(--red);
  color: var(--white);
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__tel:hover { background: var(--red-dark); text-decoration: none; }

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav__list a {
  color: #ccc;
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}
.site-nav__list a:hover { color: var(--white); }

@media (min-width: 768px) {
  .site-nav { display: block; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d1b1b 50%, var(--red-dark) 100%);
  color: var(--white);
  padding: 4rem 1rem 3.5rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.speakable-headline { color: var(--white); margin-bottom: .75rem; }

.speakable-summary {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  color: #e0e0e0;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); text-decoration: none; }

.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }

.btn--sm { padding: .5rem 1rem; font-size: .9rem; }

.speakable-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
}
.speakable-phone:hover { text-decoration: underline; color: var(--white); }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--red);
  color: var(--white);
  padding: .6rem 1rem;
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: .85rem;
  font-weight: 600;
}

.trust-bar__list li::before { content: "✓ "; }

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); transform: translateY(-2px); }

.service-card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}

.service-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-card__link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.service-card__link:hover { text-decoration: underline; }

/* ── City Grid ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s;
}
.city-card:hover { background: var(--red); }
.city-card:hover .city-card__name,
.city-card:hover .city-card__state { color: var(--white); }

.city-card__name {
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: block;
  font-size: 1rem;
  transition: color .2s;
}
.city-card__state {
  font-size: .8rem;
  color: var(--text-muted);
  transition: color .2s;
}

/* ── FAQ / Voice Section ── */
.faq-section { }

.faq-item { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.faq-item:last-child { border-bottom: none; }

.faq-item h2,
.faq-item h3 {
  color: var(--dark);
  margin-bottom: .6rem;
}

.faq-answer {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: .5rem;
}

.faq-item details { margin-top: .5rem; }
.faq-item details summary {
  cursor: pointer;
  color: var(--red);
  font-size: .9rem;
  font-weight: 600;
  list-style: none;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::before { content: "▸ "; }
.faq-item details[open] summary::before { content: "▾ "; }
.faq-item details p { margin-top: .5rem; font-size: .9rem; color: var(--text-muted); }

/* ── About / Credentials ── */
.about-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 640px) {
  .about-block { grid-template-columns: 1fr 1fr; }
}

.credentials-list { margin-top: .75rem; }
.credentials-list li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.credentials-list li::before { content: "✓"; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ── Reviews ── */
.review-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.review-stars {
  font-size: 1.4rem;
  color: #f5a623;
  letter-spacing: .05em;
}

.review-score { font-size: 2rem; font-weight: 700; color: var(--dark); }
.review-count { color: var(--text-muted); font-size: .9rem; }

.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.review-card__stars { color: #f5a623; font-size: 1rem; margin-bottom: .4rem; }
.review-card__text { font-size: .9rem; color: var(--text); margin-bottom: .5rem; font-style: italic; }
.review-card__author { font-size: .85rem; font-weight: 600; color: var(--text-muted); }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--dark), var(--red-dark));
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem;
}
.cta-section h2 { color: var(--white); margin-bottom: .75rem; }
.cta-section p { color: #ddd; margin-bottom: 1.5rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: .75rem 0;
  font-size: .85rem;
  color: var(--text-muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; color: var(--border); }
.breadcrumb a { color: var(--red); }

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem 1rem 2rem;
}
.page-header h1 { color: var(--white); margin-bottom: .5rem; }
.page-header .lead { color: #ccc; font-size: 1.05rem; max-width: 700px; }

/* ── Content prose ── */
.prose h2 { margin-top: 2rem; margin-bottom: .75rem; color: var(--dark); }
.prose h3 { margin-top: 1.5rem; margin-bottom: .5rem; color: var(--dark); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: .9rem; }
.prose ul li { margin-bottom: .3rem; font-size: .95rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: .9rem; }
.prose ol li { margin-bottom: .3rem; font-size: .95rem; }

/* ── Contact Form ── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── Sticky CTA Bar (mobile) ── */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  z-index: 200;
  box-shadow: 0 -2px 8px rgba(0,0,0,.25);
}
.cta-bar__tel {
  background: var(--red);
  color: var(--white);
  padding: .5rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  flex: 1;
  text-align: center;
  max-width: 280px;
}
.cta-bar__tel:hover { background: var(--red-dark); text-decoration: none; }
.cta-bar__label { font-size: .75rem; color: #aaa; }

@media (min-width: 768px) {
  .cta-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 2.5rem 1rem 1.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
}

.site-footer__col-title {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.nap-block { font-style: normal; line-height: 1.8; font-size: .9rem; }
.nap-block a { color: #ccc; }
.nap-block a:hover { color: var(--white); }

.footer-nav-list li { margin-bottom: .3rem; }
.footer-nav-list a { color: #aaa; font-size: .9rem; }
.footer-nav-list a:hover { color: var(--white); }

.footer-trust { font-size: .85rem; line-height: 1.9; color: #aaa; }

.site-footer__bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: .8rem;
  color: #666;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.site-footer__bottom a { color: #888; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); }

/* ── Two-col content layout ── */
.content-cols {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .content-cols { grid-template-columns: 2fr 1fr; }
}

.sidebar-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h3 { margin-bottom: .75rem; font-size: 1rem; color: var(--dark); }
.sidebar-card .btn { display: block; text-align: center; margin-bottom: .5rem; }

/* ── Process Steps ── */
.steps { counter-reset: step; margin-top: 1rem; }
.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.step__num {
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.step__body h3 { margin-bottom: .25rem; font-size: 1rem; }
.step__body p { font-size: .9rem; color: var(--text-muted); }

/* ── Service area list ── */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
  margin-top: .75rem;
}
.area-list a {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .75rem;
  font-size: .9rem;
  color: var(--dark);
  text-decoration: none;
  transition: background .2s, color .2s;
  text-align: center;
}
.area-list a:hover { background: var(--red); color: var(--white); }

/* ── Alert banner ── */
.alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--dark);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-size: .9rem;
}
.skip-link:focus { top: 0; }

/* AI / voice-optimized answer block */
.ai-summary {
  background: #f0f4f8;
  border-left: 4px solid var(--red);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  line-height: 1.65;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ai-summary p { margin: 0; }
/* ── Pricing Page ── */

.pricing-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.pricing-intro h2 { margin-bottom: .5rem; }

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.billing-toggle__label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}
.billing-toggle__label--active { color: var(--dark); }

.billing-save-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 20px;
  transition: opacity .25s;
}

.billing-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  padding: 0;
  transition: background .25s;
  flex-shrink: 0;
}
.billing-switch[aria-checked="true"] { background: var(--red); }

.billing-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .25s;
}
.billing-switch[aria-checked="true"] .billing-switch__knob { transform: translateX(22px); }

.billing-switch:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 860px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Pricing Card */
.pricing-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.pricing-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); transform: translateY(-3px); }

.pricing-card--featured {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(185,20,26,.18);
}
.pricing-card--featured:hover { box-shadow: 0 8px 32px rgba(185,20,26,.25); }

/* Most Popular badge */
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .9rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: 1.25rem; }

.pricing-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .3rem;
}

.pricing-card__tagline {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Price display */
.pricing-card__price {
  display: flex;
  align-items: flex-start;
  gap: .15rem;
  margin-bottom: .4rem;
  line-height: 1;
}

.price-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: .35rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.price-period {
  font-size: .9rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: .35rem;
}

.pricing-card__note {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* CTA button */
.pricing-card__cta {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.pricing-card--featured .pricing-card__cta { }

/* Feature list */
.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.pricing-features li {
  font-size: .875rem;
  color: var(--text);
  padding: .45rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.4;
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  flex-shrink: 0;
  font-size: .85rem;
  margin-top: .05rem;
}

.feature--yes::before {
  content: "✓";
  color: #2e7d32;
  font-weight: 700;
}

.feature--no {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: #ccc;
}
.feature--no::before {
  content: "✕";
  color: #bbb;
}

.feature-detail {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.feature-highlight {
  font-size: .8rem;
  color: var(--red);
  font-weight: 700;
  background: #fff0f0;
  padding: .05rem .35rem;
  border-radius: 4px;
}

.pricing-disclaimer {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 720px;
  margin: 1.75rem auto 0;
  line-height: 1.6;
}

/* Value Grid */
.value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1.75rem;
}

.value-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.value-item__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .75rem;
}

.value-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--dark);
}

.value-item p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Service estimates table */
.estimates-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.estimates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.estimates-table th {
  background: var(--dark);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
}

.estimates-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.estimates-table tbody tr:last-child td { border-bottom: none; }

.estimates-table tbody tr:nth-child(even) { background: var(--light); }

.estimates-table tbody tr:hover { background: #fff0f0; }

.estimates-table td:nth-child(3) {
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Digital Guides Store ── */

.guide-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
  margin-top: 2rem;
}

.guide-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.guide-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.14); transform: translateY(-3px); }
.guide-card--featured { border-color: var(--red); box-shadow: 0 4px 20px rgba(185,20,26,.18); }
.guide-card--featured:hover { box-shadow: 0 8px 32px rgba(185,20,26,.25); }

.guide-card__cover {
  background: linear-gradient(135deg, var(--dark) 0%, #2d1b1b 60%, var(--red-dark) 100%);
  padding: 1.75rem 1.5rem 1.25rem;
  position: relative;
  text-align: center;
}

.guide-card__icon {
  font-size: 2.75rem;
  display: block;
  margin-bottom: .6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.guide-card__cover-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.guide-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: 20px;
}

.guide-card__body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-card__meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.guide-meta-tag {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .15rem .6rem;
}

.guide-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.guide-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: .9rem;
}

.guide-features li {
  font-size: .85rem;
  color: var(--text);
  padding: .3rem 0;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  line-height: 1.35;
}
.guide-features li::before { content: "✓"; color: #2e7d32; font-weight: 700; flex-shrink: 0; }

.guide-card__price-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.guide-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.guide-price span { font-size: 1.1rem; font-weight: 700; vertical-align: super; line-height: 0; }

.guide-price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.guide-card__cta {
  display: block;
  text-align: center;
  padding: .7rem 1.25rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s;
}
.guide-card__cta:hover { background: var(--red-dark); text-decoration: none; }
.guide-card--featured .guide-card__cta { background: var(--red); }

.guide-card__guarantee {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .6rem;
}

/* Guide detail page — hero */
.guide-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d1b1b 50%, var(--red-dark) 100%);
  color: var(--white);
  padding: 3rem 1rem 2.5rem;
}

.guide-hero__inner {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 700px) {
  .guide-hero__inner { grid-template-columns: 1fr auto; }
}

.guide-hero__eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}

.guide-hero h1 { color: var(--white); margin-bottom: .75rem; }

.guide-hero__subtitle {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.guide-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.guide-hero__tag {
  background: rgba(255,255,255,.12);
  color: #ddd;
  font-size: .8rem;
  padding: .2rem .7rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
}

.guide-buy-box {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.guide-buy-box__price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: .25rem;
}

.guide-buy-box__price sup {
  font-size: 1.4rem;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
}

.guide-buy-box__old {
  font-size: .9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: .75rem;
}

.guide-buy-box__cta {
  display: block;
  background: var(--red);
  color: var(--white);
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: .5rem;
  transition: background .2s;
}
.guide-buy-box__cta:hover { background: var(--red-dark); text-decoration: none; }

.guide-buy-box__guarantee {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.guide-buy-box__formats {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: .75rem 0;
  flex-wrap: wrap;
}

.format-tag {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: .15rem .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Table of contents */
.toc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 1.25rem;
}

.toc-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.1rem;
}

.toc-section h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

.toc-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-section ul li {
  font-size: .82rem;
  color: var(--text-muted);
  padding: .2rem 0;
  border-bottom: 1px solid #f5f5f5;
  line-height: 1.3;
}
.toc-section ul li:last-child { border-bottom: none; }

/* Author card */
.author-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.author-card__avatar {
  width: 72px;
  height: 72px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.author-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .2rem;
}

.author-card__creds {
  font-size: .82rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: .5rem;
}

.author-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* Secure buy strip */
.secure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.secure-strip span::before { content: "🔒 "; }

