/* ppr-beacon — Plentiful Provider Directory
   Design system extracted from plentiful-rn
   Fonts: Noto Sans (400,700) + Noto Serif (400, italic)
   Brand: primary #008763, accent #00BFA5, blue #01579B
   Base: 62.5% = 10px, all sizing in rem */

/* ===== Custom Properties ===== */
:root {
  --green: #00CD96;
  --green-on-white: #006B4F;   /* WCAG AAA on white (7.1:1) */
  --green-dark: #005A42;       /* WCAG AAA on white (8.5:1) */
  --green-light: #E6FAF4;
  --green-bg: #00CD96;
  --accent: #00BFA5;
  --accent-light: #E0F7F3;
  --blue: #01579B;
  --blue-light: #F0F8FF;
  --leaf: #15B9A2;
  --black: #333333;
  --white: #FFFFFF;
  --bg: #F7FAFA;
  --bg-light: #F7F9FA;
  --gray-border: #E5EAEA;
  --gray-input: #D9D5DC;
  --gray-light: #AAB1B9;
  --gray-muted: #696969;
  --gray-secondary: #6F747B;
  --gray-icon: #D7DDE0;
  --error: #D14141;
  --warning: #FFAF47;
  --verified: #20B093;
  --highlight: #FFF9C4;
  --radius-sm: 0.8rem;
  --radius-md: 1.2rem;
  --radius-lg: 1.6rem;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* ===== Fonts (self-hosted, no external CDN) ===== */
@font-face {
  font-family: 'Noto Sans';
  src: url('/static/fonts/NotoSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('/static/fonts/NotoSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noto Serif';
  src: url('/static/fonts/NotoSerif-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noto Serif';
  src: url('/static/fonts/NotoSerif-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ===== Layout ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 1.6rem;
}
main {
  flex: 1;
  padding-top: 2.4rem;
  padding-bottom: 6.4rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--green-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  padding-top: 0;
  padding-bottom: 0;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
}
.site-logo {
  font-family: 'Noto Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
}
.site-logo:hover { text-decoration: none; }
.site-logo span { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-switcher {
  background: rgba(0,0,0,0.08);
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-switcher option { color: var(--black); background: var(--white); }

/* ===== Footer ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 3.2rem 0 2.4rem;
  margin-top: auto;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.4rem;
}
.footer-text { color: var(--gray-muted); font-size: 1.4rem; line-height: 1.8; }
.footer-link { color: var(--black); font-weight: 700; }
.footer-link:hover { color: var(--green-on-white); }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 1.4rem;
  color: var(--gray-light);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.breadcrumbs a {
  color: var(--gray-secondary);
  font-weight: 500;
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--green-on-white); text-decoration: none; }
.breadcrumbs span { margin: 0 0.4rem; color: var(--gray-icon); }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1.2rem; }
.card h2 {
  font-size: 1.8rem;
  color: var(--green-on-white);
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-border);
  font-weight: 700;
}
.card h3 {
  font-size: 1.6rem;
  color: var(--green-on-white);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-bg);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  border: 1px solid var(--gray-border);
  color: var(--black);
}
.btn-white:hover {
  border-color: var(--green-on-white);
  color: var(--green-on-white);
}
.btn-sm { padding: 0.6rem 1.6rem; font-size: 1.3rem; }

/* ===== Trust Badge ===== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trust-badge--source { background: var(--accent-light); color: var(--green-dark); }
.trust-badge--admin { background: var(--blue-light); color: var(--blue); }
.verified-date { font-size: 1.2rem; color: var(--gray-light); }
.data-sources {
  font-size: 1.2rem;
  color: var(--gray-light);
  margin-top: 0.4rem;
}

/* ===== Location Detail ===== */
.location-header { margin-bottom: 2rem; }
.location-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.2rem;
  color: var(--black);
}
.location-org {
  color: var(--gray-secondary);
  font-size: 1.6rem;
  font-weight: 400;
}
.location-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-label {
  color: var(--gray-light);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 7rem;
  padding-top: 0.1rem;
}
.contact-value { font-size: 1.6rem; }
.contact-value a {
  color: var(--green-on-white);
  font-weight: 600;
  transition: color 0.15s;
  text-decoration: underline;
}
.contact-value a:hover { color: var(--green-dark); }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray-border);
  vertical-align: top;
  font-size: 1.6rem;
}
.hours-table tr:last-child td { border-bottom: none; }
.schedule-freq {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-on-white);
  margin: 1.2rem 0 0.4rem;
}
.schedule-freq:first-child { margin-top: 0; }
.schedule-note {
  color: var(--gray-secondary);
  font-style: italic;
}
.hours-table td:first-child {
  font-weight: 700;
  color: var(--black);
  padding-right: 2rem;
  white-space: nowrap;
}
.hours-table td:last-child { color: var(--gray-secondary); }

/* Static Map */
.static-map {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.static-map:hover { box-shadow: var(--shadow-md); }
.static-map img {
  width: 100%;
  height: auto;
  display: block;
}

/* Description */
.description {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--gray-secondary);
}

/* ===== Listing Pages ===== */
.page-hero {
  margin-bottom: 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--gray-border);
}
.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}
.page-hero .subtitle {
  font-size: 1.6rem;
  color: var(--gray-secondary);
}
.page-hero .count {
  font-size: 1.4rem;
  color: var(--gray-light);
  margin-top: 0.2rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.location-card {
  background: var(--white);
  padding: 1.6rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.location-card:hover { box-shadow: var(--shadow-md); }
.location-card h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.1rem; }
.location-card h3 a {
  color: var(--black);
  transition: color 0.15s;
}
.location-card h3 a:hover { color: var(--green-on-white); text-decoration: none; }
.location-card .org-name {
  color: var(--gray-light);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.location-card .address { color: var(--gray-muted); font-size: 1.4rem; }
.location-card .phone { margin-top: 0.4rem; }
.location-card .phone a {
  color: var(--green-on-white);
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* State/city cards */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.2rem;
}
.state-card, .city-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2rem;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.state-card:hover, .city-card:hover {
  box-shadow: var(--shadow-md);
}
.state-card:hover, .city-card:hover {
  border-color: var(--green-on-white);
  text-decoration: none;
}
.state-card h2, .state-card h3, .city-card h2, .city-card h3 {
  font-size: 1.8rem;
  color: var(--black);
  margin-bottom: 0.2rem;
  border-bottom: none;
  padding-bottom: 0;
}
.state-card .count, .city-card .count {
  color: var(--gray-muted);
  font-size: 1.4rem;
}

/* ===== Utility classes ===== */
.card--mt { margin-top: 1.2rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--full + .btn--full { margin-top: 0.8rem; }

/* ===== CTA Section ===== */
.cta-section {
  background: var(--green-bg);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.4rem;
  text-align: center;
  margin-top: 4rem;
}
.cta-section h2 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--black);
}
.cta-section p {
  color: var(--black);
  opacity: 0.8;
  margin-bottom: 1.6rem;
  font-size: 1.6rem;
}
.cta-section .btn-primary {
  background: var(--white);
  color: var(--green-on-white);
}
.cta-section .btn-primary:hover {
  background: var(--bg);
}
.app-badges {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.app-badges a { display: inline-block; transition: opacity 0.15s; }
.app-badges a:hover { opacity: 0.85; }
.app-badges img[alt*="App Store"] { height: 4rem; width: auto; }
.app-badges img[alt*="Google Play"] { height: 5.95rem; width: auto; margin: -0.98rem 0; }
.btn-web-app {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--black);
  opacity: 0.75;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.btn-web-app:hover { opacity: 1; }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .container { padding: 0 2.4rem; }
  .listing-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 3.2rem; }
}

@media (min-width: 768px) {
  .container { padding: 0 3.2rem; }
  .detail-grid { grid-template-columns: 1fr 28rem; }
  .page-hero h1 { font-size: 3.6rem; }
  .location-header h1 { font-size: 3.2rem; }
}

@media (min-width: 900px) {
  .listing-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr 32rem; }
}

@media (min-width: 1280px) {
  .container { padding: 0 4.8rem; }
  .detail-grid { grid-template-columns: 1fr 36rem; }
  .listing-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ===== CTA Strip (between hero and content on listing pages) ===== */
.cta-strip {
  background: var(--green-bg, #00CD96);
  color: #0F0F0F;
  padding: 1.2rem 2rem;
  text-align: center;
  margin-bottom: 2.4rem;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cta-strip p { margin: 0; font-size: 1.5rem; font-weight: 700; }
.cta-strip .btn { white-space: nowrap; background: #0F0F0F; color: #fff; border: none; }

/* ===== App Badges (sidebar placement) ===== */
.app-badges--centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #eee;
}
.app-badges--centered img[alt*="App Store"] { height: 4rem; width: auto; }
.app-badges--centered img[alt*="Google Play"] { height: 5.8rem; width: auto; margin: -0.9rem 0; }

/* ===== Sticky Mobile CTA Bar ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0F0F0F;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
.sticky-cta .btn {
  display: inline-block;
  background: var(--green-bg, #00CD96);
  color: #0F0F0F;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 1rem 2.4rem;
  border-radius: 100px;
  text-decoration: none;
  border: none;
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 6rem; }
}

/* ===== Near Me Page ===== */
.near-me-search { text-align: center; margin: 2.4rem 0; }
.zip-search-form { display: flex; gap: 0.8rem; justify-content: center; max-width: 36rem; margin: 0 auto; }
.zip-input {
  font-size: 1.8rem;
  padding: 1rem 1.6rem;
  border: 2px solid #0F0F0F;
  border-radius: 100px;
  text-align: center;
  width: 14rem;
  letter-spacing: 0.2rem;
}
.near-me-or { color: #666; margin-top: 1.2rem; font-size: 1.4rem; }
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
/* Near-me page state grid (compact side-by-side layout) */
.near-me-search + .state-grid .state-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.6rem;
}
.state-count { color: #666; font-size: 1.3rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Plentiful Enrichments ===== */
.location-avatar { border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; }
.location-programs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.badge--green { background: var(--green-bg, #00CD96); color: #0F0F0F; }
.badge--small { font-size: 1.1rem; padding: 0.2rem 0.8rem; }
.service-block { display: flex; gap: 1.2rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid #eee; }
.service-block:last-child { border-bottom: none; }
.service-date { font-weight: 500; min-width: 10rem; }

/* ===== RTL Support (Arabic, Urdu) ===== */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .breadcrumbs { direction: rtl; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; }
[dir="rtl"] .contact-label { text-align: left; }
[dir="rtl"] .hours-table td:first-child { text-align: right; padding-right: 0; padding-left: 2rem; }
[dir="rtl"] .footer-content { flex-direction: row-reverse; }
[dir="rtl"] .site-header nav { flex-direction: row-reverse; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .detail-grid { direction: rtl; }
