/* =========================================================
   Appliance Repair Los Altos — Page Components
   ========================================================= */

/* -------------------- Hero -------------------- */
.hero {
  background: var(--graphite-950);
  color: var(--porcelain);
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 340px at 88% -10%, rgba(184, 134, 62, 0.16), transparent 60%),
    radial-gradient(500px 300px at 8% 110%, rgba(184, 134, 62, 0.08), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.hero__eyebrow svg { width: 14px; height: 14px; }
.hero h1 {
  color: var(--porcelain);
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 18ch;
}
.hero__lede {
  color: var(--steel);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-top: 1.1rem;
}
.hero__lede a { color: var(--brass-light); text-decoration: underline; text-decoration-color: rgba(212, 169, 104, 0.4); text-underline-offset: 2px; }
.hero__lede a:hover { color: #fff; }
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* -------------------- Stat strip (instrument readout) -------------------- */
.stat-strip {
  background: var(--porcelain);
  border-bottom: 1px solid var(--border-soft);
}
.stat-strip__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 1.6rem 0;
}
@media (min-width: 700px) {
  .stat-strip__row { grid-template-columns: repeat(4, 1fr); }
}
.stat-strip__item {
  padding: 0.6rem 1rem;
  text-align: center;
  border-left: 1px solid var(--border-soft);
}
.stat-strip__item:first-child,
.stat-strip__row > .stat-strip__item:nth-child(2n+1) { }
.stat-strip__item:nth-child(1) { border-left: none; }
@media (min-width: 700px) { .stat-strip__item:nth-child(1) { border-left: none; } }
.stat-strip__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat-strip__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

/* -------------------- Section rhythm -------------------- */
.section { padding: 3.2rem 0; }
.section--tight { padding: 2.2rem 0; }
.section--alt { background: var(--porcelain-dim); }
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin: 0 0 0.6rem;
  display: block;
}
.section__intro {
  max-width: 72ch;
  margin-bottom: 1.6rem;
}
.section h2 { max-width: 34ch; }

/* -------------------- Tables -------------------- */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4rem 0; }
.table-scroll::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 28px;
  background: linear-gradient(to right, transparent, rgba(20, 24, 28, 0.14));
  pointer-events: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
@media (min-width: 860px) {
  .table-scroll::after { display: none; }
}
table.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 0.94rem;
}
table.data-table caption { text-align: left; font-size: 0.85rem; color: var(--ink-faint); padding-bottom: 0.5rem; }
table.data-table th, table.data-table td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.data-table thead th {
  background: var(--graphite-950);
  color: var(--porcelain);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:nth-child(even) { background: var(--porcelain); }
table.data-table tbody td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* -------------------- Icon checklist -------------------- */
.icon-list { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.85rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--ink-soft); }
.icon-list .icon-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--graphite-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.icon-list .icon-check svg { width: 13px; height: 13px; stroke: var(--brass-light); }

/* -------------------- Process (gauge-node steps) -------------------- */
.process {
  display: grid;
  gap: 1.6rem;
  margin: 1.8rem 0 0.5rem;
  counter-reset: step;
}
@media (min-width: 860px) {
  .process { grid-template-columns: repeat(4, 1fr); position: relative; }
  .process::before {
    content: "";
    position: absolute;
    top: 22px; left: 11%; right: 11%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 12px);
  }
}
.process__step { position: relative; }
.process__node {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--graphite-950);
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px var(--porcelain), var(--shadow-card);
}
.section--alt .process__node { box-shadow: 0 0 0 5px var(--porcelain-dim), var(--shadow-card); }
.process__step h3 { margin: 0.9rem 0 0.35rem; font-size: 1.02rem; }
.process__step p { font-size: 0.92rem; }

/* -------------------- Compare block (specialist vs generalist) -------------------- */
.compare {
  display: grid;
  gap: 0;
  margin: 1.8rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { padding: 1.8rem; }
.compare__col--us { background: var(--graphite-950); color: var(--porcelain); }
.compare__col--them { background: #fff; color: var(--ink); }
.compare__col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.compare__col--us h3 { color: var(--brass-light); }
.compare__col--them h3 { color: var(--ink-faint); }
.compare__row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border-on-dark);
  font-size: 0.93rem;
}
.compare__col--them .compare__row { border-top: 1px solid var(--border-soft); color: var(--ink-soft); }
.compare__col--us .compare__row:first-child,
.compare__col--them .compare__row:first-child { border-top: none; padding-top: 0; }
.compare__mark { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.1rem; }
.compare__mark--yes svg { stroke: var(--brass-light); }
.compare__mark--no svg { stroke: var(--steel-dim); }
.compare__col--them .compare__mark--no svg { stroke: #b5bcc2; }

/* -------------------- CTA callout banner -------------------- */
.callout-cta {
  background: linear-gradient(135deg, var(--graphite-950), var(--graphite-800));
  color: var(--porcelain);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  margin: 2.2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: var(--shadow-dark-card);
}
.callout-cta__text h3 { color: var(--porcelain); margin-bottom: 0.25rem; font-size: 1.15rem; }
.callout-cta__text p { color: var(--steel); margin: 0; font-size: 0.93rem; }
.callout-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* -------------------- FAQ accordion -------------------- */
.faq { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.2rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.15rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--brass-dim);
  border-bottom: 2px solid var(--brass-dim);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq p { padding-bottom: 1.1rem; margin: 0; }

/* -------------------- Service area / geo list -------------------- */
.area-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .area-list { grid-template-columns: 1fr 1fr; } }
.area-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; color: var(--ink-soft);
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid var(--border-soft);
}
.area-list li svg { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--brass-dim); }
.area-list li.is-primary { font-weight: 700; color: var(--ink); }

/* -------------------- Breadcrumb -------------------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding: 0.9rem 0 0;
}
.breadcrumb a { color: var(--ink-faint); text-decoration: underline; text-decoration-color: var(--border-soft); }
.breadcrumb a:hover { color: var(--brass-dim); }
.breadcrumb span[aria-current] { color: var(--ink-soft); }

/* -------------------- Related brand cards -------------------- */
.related-grid { display: grid; gap: 1rem; margin-top: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.related-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.related-card h3 { margin-bottom: 0.3rem; font-size: 1.02rem; }
.related-card h3 a { color: var(--ink); text-decoration: none; }
.related-card p { font-size: 0.9rem; margin: 0; }

/* -------------------- Full-bleed CTA strip (below hero, above footer) -------------------- */
.final-cta {
  background: var(--brass);
  color: var(--graphite-950);
  padding: 2.6rem 0;
  text-align: center;
}
.final-cta h2 { color: var(--graphite-950); margin-bottom: 0.5rem; }
.final-cta p { color: rgba(20,24,28,0.75); max-width: 56ch; margin: 0 auto 1.4rem; }
.final-cta .hero__cta-row { justify-content: center; margin-top: 0; }
.final-cta .btn-ghost-dark { color: var(--graphite-950); border-color: rgba(20,24,28,0.35); }
.final-cta .btn-ghost-dark:hover { color: var(--graphite-950); border-color: var(--graphite-950); background: rgba(20,24,28,0.06); }
.final-cta .btn-brass { background: var(--graphite-950); color: var(--porcelain); }
.final-cta .btn-brass:hover { background: var(--graphite-800); }

/* -------------------- Photo block -------------------- */
.photo-block {
  margin: 2rem 0;
}
.photo-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* -------------------- Legal / simple pages -------------------- */
.simple-page h2 { margin-top: 2rem; }
.simple-page .container { max-width: 820px; }
