/* ============================================================
   location-redesign.css - Redesign 2026-10 (preserve-brand pass)
   Loaded ONLY by the eight city pages (/locations/<city>-tx-cpa/),
   AFTER each page's inline <style>, so these rules win ties.
   Same tokens, fonts and copy as before; contrast, depth and
   rhythm change. The /locations/ hub has its own inline block.
   ============================================================ */

:root {
  /* Lime tints for text on blue (#8DB331 itself is under 3:1 on #006C9F) */
  --lime-on-blue-lg: #c9e27a;
  --lime-on-blue-sm: #dcec9f;
  /* Darker olive for text on white: large 3.7:1, small 5.3:1 */
  --accent-ink: #6b8a17;
  --accent-ink-sm: #5a7512;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 3px solid var(--accent);
}

h1,
h2,
h3 {
  text-wrap: balance;
}
.lead,
.section-sub,
.hero-content > p,
.final-cta p {
  text-wrap: pretty;
}

/* Grain on the blue bands */
.hero::after,
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.final-cta {
  position: relative;
}
.final-cta > .container {
  position: relative;
  z-index: 1;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-content h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-content > p {
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}
.hero .breadcrumb,
.hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}
.hero-ctas,
.cta-buttons {
  align-items: center;
  gap: 1.75rem;
}

/* Secondary call to action: text link instead of a ghost button */
.hero .btn-outline-white,
.final-cta .btn-outline-white {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 8px 2px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
.hero .btn-outline-white:hover,
.final-cta .btn-outline-white:hover {
  background: none;
  transform: none;
  text-decoration-color: var(--white);
}
.hero .btn-outline-white:focus-visible,
.final-cta .btn-outline-white:focus-visible {
  outline: 3px solid var(--accent-lt);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Eyebrow pills ──────────────────────────────────────── */
.tag {
  color: var(--accent-ink-sm);
}

/* ── About: a readable measure, first paragraph leads ───── */
#about .lead {
  max-width: 46rem;
}
#about .lead:first-child {
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--text);
}

/* ── Why local: cards back, first reason featured ──────── */
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 60, 100, 0.06),
    0 10px 28px rgba(0, 60, 100, 0.06);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(0, 60, 100, 0.08),
    0 18px 40px rgba(0, 60, 100, 0.12);
}
.why-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
@media (min-width: 769px) {
  .why-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2rem;
  }
  .why-card {
    grid-column: span 3;
  }
  .why-card:first-child {
    grid-column: 1 / -1;
    padding: 2.5rem 3rem;
  }
  .why-card:first-child h3 {
    font-size: 1.55rem;
  }
  .why-card:first-child p {
    max-width: 52rem;
    font-size: 1.08rem;
  }
}
/* Tablet: two across; an unpaired last card takes the full row */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-card:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }
}
/* Wide screens: the cards under the featured one fill the row evenly */
@media (min-width: 1025px) {
  /* 4 cards in total: three across */
  .why-card:first-child:nth-last-child(4) ~ .why-card {
    grid-column: span 2;
  }
  /* 6 cards in total: three across, then two */
  .why-card:first-child:nth-last-child(6) ~ .why-card:nth-child(-n + 4) {
    grid-column: span 2;
  }
}

/* ── Services: no olive edge, but a defined card ────────── */
.service-card {
  display: flex;
  flex-direction: column;
  border-left: 0;
  border: 1px solid rgba(0, 60, 100, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 60, 100, 0.08),
    0 10px 28px rgba(0, 60, 100, 0.08);
}
.service-card:hover {
  border-color: rgba(0, 60, 100, 0.16);
  box-shadow:
    0 2px 4px rgba(0, 60, 100, 0.1),
    0 18px 40px rgba(0, 60, 100, 0.14);
}
.service-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.service-card li::before {
  content: "";
  font-size: 0;
  width: 12px;
  height: 12px;
  top: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.5l3 3 5-6' stroke='%236b8a17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / 12px;
}
/* Links share one baseline across the row, set off by a thin rule */
.service-card a {
  display: flex;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.service-card ul {
  margin-bottom: 1.5rem;
}
.service-card a:hover {
  color: var(--primary-dark);
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  border: 1px solid rgba(0, 60, 100, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 60, 100, 0.08),
    0 10px 28px rgba(0, 60, 100, 0.08);
}
.testimonial-card:hover {
  border-color: rgba(0, 60, 100, 0.16);
  box-shadow:
    0 2px 4px rgba(0, 60, 100, 0.08),
    0 18px 40px rgba(0, 60, 100, 0.12);
}
.rating-star {
  color: var(--accent-ink);
}

/* ── Resources: hairline link list ──────────────────────── */
.resources-grid {
  gap: 0 3rem;
}
.resource-item {
  border: 0;
  border-top: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 1.25rem 0 1.5rem;
}
.resource-item:hover {
  background: none;
}
.resource-item a:hover {
  color: var(--primary-dark);
}

/* ── FAQ: hairline rows instead of boxed rows ───────────── */
.faq-list {
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
}
.faq-item {
  background: none;
  border: 0;
  border-top: 1px solid var(--gray-200);
  border-radius: 0;
}
.faq-btn {
  padding: 1.25rem 0;
  font-size: 1.02rem;
}
.faq-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.faq-answer {
  padding: 0 0 1.4rem;
  font-size: 0.95rem;
}

/* ── Insights ───────────────────────────────────────────── */
.insight-card {
  border-color: rgba(0, 60, 100, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 60, 100, 0.08),
    0 10px 28px rgba(0, 60, 100, 0.08);
}
.insight-card:hover {
  border-color: rgba(0, 60, 100, 0.16);
  box-shadow:
    0 2px 4px rgba(0, 60, 100, 0.08),
    0 18px 40px rgba(0, 60, 100, 0.12);
}
.insight-card .arrow {
  color: var(--accent-ink-sm);
}

/* ── Closing call to action ─────────────────────────────── */
.final-cta p {
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero-ctas .btn-primary,
  .final-cta .btn-primary {
    white-space: normal;
    text-align: center;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas,
  .cta-buttons {
    gap: 1.25rem;
  }
}
