/* ============================================================
   Amithos - Shared content components
   Builds on the variables and base styles in site.css.
   ============================================================ */

.section-heading { text-align: center; color: var(--text-dark); max-width: 760px; margin-inline: auto; margin-bottom: 0.75rem; }
.section-lead { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; color: var(--text-muted); line-height: 1.7; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { color: var(--text-dark); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text-dark); font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.35rem; }
.section-alt { background-color: var(--bg-light); }
.center-cta { text-align: center; margin-top: 2rem; margin-bottom: 0; }
.illustrative-note { text-align: center; font-size: 0.875rem; color: var(--text-muted); font-style: italic; margin-top: 1.25rem; margin-bottom: 0; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  color: #fff;
  padding-block: 3.5rem;
  text-align: center;
}
.page-hero h1 { color: #fff; max-width: 860px; margin-inline: auto; font-size: clamp(2rem, 4.5vw, 2.75rem); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 680px; margin-inline: auto; margin-bottom: 0.75rem; font-size: 1.0625rem; }
.page-hero p:last-child { margin-bottom: 0; }

/* Cards with icon and bottom-aligned CTA */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card[hidden] { display: none !important; }
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-card:hover { border-color: rgba(13,148,136,0.45); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.125rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.feature-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 10px;
  background: rgba(13,148,136,0.1);
  color: var(--accent-teal);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.feature-card__icon svg { width: 1.375rem; height: 1.375rem; }
.feature-card__link { margin-top: auto; font-weight: 600; color: var(--accent-teal-dark); }
.feature-card__link:hover { text-decoration: underline; }

/* Problem list with markers */
.marker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.marker-grid li { position: relative; padding-left: 2rem; }
.marker-grid li::before {
  content: "";
  position: absolute; left: 0; top: 0.3rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: rgba(13,148,136,0.15);
  box-shadow: inset 0 0 0 4px var(--accent-teal);
}
.marker-grid h3 { font-size: 1.0625rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.marker-grid p { font-size: 0.9375rem; margin-bottom: 0; }

/* Simple checklist */
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.check-list li { position: relative; padding-left: 1.75rem; margin: 0; text-align: left; font-weight: 400; min-width: 0; overflow-wrap: anywhere; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent-teal); font-weight: 700; }
.check-list--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.25rem 2rem; }

/* Hero CTA group (shared by interior hero sections) */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero-cta > .btn { white-space: normal; text-align: center; }
.hiw-hero .btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.85); }
.hiw-hero .btn-secondary:hover, .hiw-hero .btn-secondary:focus-visible { background: rgba(255,255,255,0.12); color: #fff; }
.hiw-hero .btn-light, .hiw-hero .btn-light:visited { color: var(--primary-blue); }
.related-services { color: var(--text-muted); }
.related-services strong { color: var(--text-dark); }
.svc-note { font-size: 0.9375rem; color: var(--text-muted); }

@media (max-width: 767px) {
  .hiw-hero { padding-block: 2.25rem; }
  .hiw-hero h1 { font-size: clamp(1.875rem, 8vw, 2.125rem); line-height: 1.2; }
  .hiw-hero .hero-eyebrow { font-size: 0.8125rem; }
  .hiw-hero p { font-size: 1.0625rem; line-height: 1.55; }
  .svc-body h2 { font-size: clamp(1.5rem, 6.5vw, 1.75rem); }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta > .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; }
}

/* Before / After comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin-inline: auto;
}
.compare__col {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border-gray);
  background: var(--bg-white);
}
.compare__col--before { border-top: 4px solid #94a3b8; }
.compare__col--after  { border-top: 4px solid var(--accent-teal); }
.compare__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.compare__col--after .compare__label { color: var(--accent-teal-dark); }
.compare__col p { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.compare__col p:last-child { margin-bottom: 0; }

/* Horizontal flow diagram */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
}
.flow li { display: flex; align-items: center; gap: 0.5rem; }
.flow__step {
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
.flow li:last-child .flow__step { border-color: var(--accent-teal); color: var(--accent-teal-dark); }
.flow li + li::before { content: "\2192"; color: var(--accent-teal); font-weight: 700; }

/* Vertical timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; counter-reset: tl; }
.timeline__item { position: relative; padding: 0 0 2rem 3.75rem; counter-increment: tl; }
.timeline__item::before {
  content: counter(tl);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  font-weight: 700;
}
.timeline__item::after {
  content: "";
  position: absolute;
  left: calc(1.25rem - 1px); top: 2.75rem; bottom: 0.25rem;
  width: 2px;
  background: var(--border-gray);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::after { display: none; }
.timeline__item h2, .timeline__item h3 { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.35rem; padding-top: 0.35rem; }
.timeline__item p { margin-bottom: 0.35rem; }
.timeline__item--optional::before { background: var(--bg-white); color: var(--accent-teal-dark); box-shadow: inset 0 0 0 2px var(--accent-teal); }
.timeline__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-teal-dark);
  background: rgba(13,148,136,0.1);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Example card: problem, solution, benefit */
.example-card dl { margin: 0 0 1rem; }
.example-card dt {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-teal-dark); margin-top: 0.75rem;
}
.example-card dt:first-child { margin-top: 0; }
.example-card dd { margin: 0.2rem 0 0; font-size: 0.9375rem; color: var(--text-muted); }

/* Static FAQ (no schema) */
.faq-static { max-width: 760px; margin-inline: auto; }
.faq-static h3 { font-size: 1.0625rem; color: var(--text-dark); margin-bottom: 0.35rem; margin-top: 1.5rem; }
.faq-static h3:first-child { margin-top: 0; }

/* CTA band button on teal background */
.btn-on-dark { background: #fff; color: var(--accent-teal-dark); border-color: #fff; }
.btn-on-dark:hover, .btn-on-dark:focus { background: #f0fdfa; color: var(--accent-teal-dark); text-decoration: none; }
.cta-section .cta-reassurance { margin-top: 1rem; margin-bottom: 0; font-size: 0.9375rem; }

/* Contact form select */
.contact-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg-white);
  color: var(--text-dark);
}
.contact-form select:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 1px; }

@media (max-width: 768px) {
  .compare { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow li { flex-direction: column; }
  .flow li + li::before { content: "\2193"; }
  .flow__step { text-align: center; width: 100%; }
  .btn { white-space: normal; }
  .page-hero { padding-block: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card, .nav-dropdown__toggle::after { transition: none; }
}
