/* ABC Senior Directory — Irvine prototype
   Colors and typography follow the original homepage mockup. */

:root {
  --navy: #1d4e5f;
  --navy-mid: #2a6b7f;
  --gold: #f2c14e;
  --gold-dark: #e0a92a;
  --gold-text: #b07d10;
  --cream: #f6f4ef;
  --ad-bg: #fff8e3;
  --ink: #1f2d3d;
  --muted: #666;
  --muted-2: #888;
  --line: #d8d8d8;
  --avatar: #cfe3e8;
  --white: #fff;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-search: 0 6px 20px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --radius-sm: 10px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Arial, Helvetica, sans-serif;
  --header-h: 88px;
}

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

html { font-size: 18px; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy-mid); }
a:hover { color: var(--navy); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  z-index: 100;
  font-weight: bold;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.logo span { color: var(--gold); }
.logo:hover { color: var(--white); }

.menu-btn {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 8px;
  min-height: 48px;
  min-width: 48px;
  cursor: pointer;
}

.nav { font-family: var(--font-sans); font-size: 17px; display: flex; align-items: center; flex-wrap: wrap; }
.nav a {
  margin-left: 28px;
  color: var(--white);
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Hero / search ---------- */
.hero {
  background: linear-gradient(#2a6b7f, #1d4e5f);
  color: var(--white);
  text-align: center;
  padding: 50px 48px 60px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}
.hero .lede {
  font-family: var(--font-sans);
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.search {
  background: var(--white);
  border-radius: var(--radius);
  display: inline-flex;
  padding: 10px;
  gap: 10px;
  box-shadow: var(--shadow-search);
  max-width: 100%;
  align-items: stretch;
  flex-wrap: wrap;
  text-align: left;
}
.search label.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.search input,
.search select {
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  width: 330px;
  max-width: 100%;
  background: var(--white);
  min-height: 56px;
}
.search input::placeholder { color: #555; }
.search input:focus,
.search select:focus,
.search button:focus-visible,
.btn:focus-visible,
.phone-btn:focus-visible,
.menu-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.search button,
.btn-search {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: bold;
  padding: 0 36px;
  color: var(--navy);
  cursor: pointer;
  min-height: 56px;
  min-width: 120px;
}
.search button:hover,
.btn-search:hover { filter: brightness(0.97); }

.cats {
  font-family: var(--font-sans);
  margin-top: 22px;
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.cats a {
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--white);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.cats a:hover { background: rgba(255,255,255,0.28); color: var(--white); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
main.page {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 48px 56px;
}
main.page.with-sidebar {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.list { flex: 1; min-width: 0; }
.list h1, .list h2, .page-title {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--ink);
}
.lead, .count-line {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
}

aside.sidebar { width: 330px; flex: 0 0 330px; }

.home-split {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.sidebar .ad + .ad,
.sidebar .ad + .help,
.sidebar .help + .ad { margin-top: 20px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  gap: 8px;
}
a.card:hover, .card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); border-color: #cfe3e8; }
.card-main {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.card-main:hover { color: inherit; }
.card.feat { border: 3px solid var(--gold); }
.card.spot {
  border: 3px dashed var(--gold-dark);
  background: var(--ad-bg);
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.card.spot .spot-kicker {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-text);
  font-weight: bold;
  text-transform: uppercase;
}
.card.spot h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 8px 0 6px;
  color: var(--ink);
}
.card.spot p { color: var(--muted); font-size: 16px; }

.av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--navy);
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-family: var(--font-sans);
  flex-shrink: 0;
}
.info { flex: 1; font-family: var(--font-sans); min-width: 0; }
.info .name, .info b {
  font-size: 21px;
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: bold;
}
.info .sp { color: var(--navy-mid); font-size: 17px; margin: 4px 0; }
.info .ct { color: var(--muted); font-size: 16px; }
.badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-family: var(--font-sans);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.ph {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: bold;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
  margin-left: 12px;
}
.ph a { color: var(--navy); text-decoration: none; }
.ph a:hover { text-decoration: underline; }
.ph small {
  display: block;
  font-weight: normal;
  font-size: 14px;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ---------- Ad / help ---------- */
.ad {
  background: var(--ad-bg);
  border: 3px dashed var(--gold-dark);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  font-family: var(--font-sans);
}
.ad .t {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-text);
  font-weight: bold;
}
.ad h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 14px 0 8px;
  color: var(--ink);
}
.ad p { font-size: 16px; color: #555; margin-bottom: 16px; }
.btn, a.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 16px;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.3;
  text-align: center;
}
a.btn:hover, .btn:hover { background: var(--navy-mid); color: var(--white); }
.btn-gold, a.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
a.btn-gold:hover, .btn-gold:hover { filter: brightness(0.97); color: var(--navy); background: var(--gold); }

.help {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-sans);
  font-size: 16px;
}
.help h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 8px;
}
.help a { color: var(--gold); }

/* ---------- Tiles / zip grid ---------- */
.section { margin: 8px 0 36px; }
.section h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 16px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tile {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}
.tile:hover { border-color: var(--navy-mid); color: var(--ink); }
.tile .n {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.1;
}
.tile .l { font-size: 16px; margin-top: 6px; color: var(--navy-mid); font-weight: bold; }

.spec-links, .zip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.spec-links a, .zip-grid a {
  background: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spec-links a:hover, .zip-grid a:hover { background: #e8f1f4; }
.spec-links a .n, .zip-grid a .n { color: var(--muted); font-size: 14px; }

/* ---------- Filters / results ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
  background: var(--white);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: bold;
  color: var(--navy);
  gap: 6px;
}
.filters select, .filters input {
  font-size: 17px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  min-width: 160px;
  font-family: var(--font-sans);
  color: var(--ink);
}
#visible-count { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.no-results {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  align-items: center;
}
.pagination button {
  min-width: 48px;
  min-height: 48px;
  padding: 8px 14px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-sans);
}
.pagination button[aria-current="page"],
.pagination button:hover { background: var(--navy); color: var(--white); }
.pagination button:disabled { opacity: 0.4; cursor: default; background: var(--white); color: var(--navy); }

/* ---------- Doctor page ---------- */
.crumb {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb a { color: var(--navy-mid); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 6px; color: #aaa; }

.profile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.profile .av { width: 96px; height: 96px; font-size: 32px; margin-right: 0; }
.profile h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.profile .sp { color: var(--navy-mid); font-size: 20px; margin-bottom: 18px; }
.detail-rows { margin: 8px 0 20px; }
.detail-rows dt {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: bold;
  margin-top: 12px;
}
.detail-rows dd { font-size: 18px; margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.phone-btn, a.phone-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
  font-size: 20px;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
}
a.phone-btn:hover { color: var(--navy); filter: brightness(0.97); }
.claim {
  margin-top: 20px;
  background: var(--ad-bg);
  border: 2px dashed var(--gold-dark);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.claim p { margin-bottom: 10px; font-size: 16px; }
.source-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Prose pages ---------- */
.prose {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
}
.prose h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: 16px;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 28px 0 10px;
}
.prose p, .prose li { font-size: 18px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose .price {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}
.prose .price strong { color: var(--navy); font-size: 22px; }

.contact-box {
  margin-top: 20px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
.contact-box label {
  display: block;
  font-weight: bold;
  margin: 12px 0 6px;
}
.contact-box input,
.contact-box textarea,
.contact-box select {
  width: 100%;
  font-size: 18px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-sans);
  min-height: 48px;
}
.contact-box textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 32px 48px 24px;
  font-size: 15px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
}
.footer-inner a { color: var(--gold); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-note {
  flex-basis: 100%;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}
.footer-copy { color: rgba(255,255,255,0.7); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-family: var(--font-serif); font-size: 40px; margin-bottom: 12px; }
.error-page p { font-size: 20px; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  aside.sidebar { width: 280px; flex-basis: 280px; }
}

@media (max-width: 900px) {
  header.site-header, .hero, main.page, main.page.with-sidebar, footer.site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  main.page.with-sidebar, .home-split { flex-direction: column; }
  aside.sidebar { width: 100%; flex-basis: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .profile { flex-direction: column; }
  .search input, .search select { width: 240px; }
}

@media (max-width: 700px) {
  html { font-size: 17px; }
  header.site-header {
    padding: 14px 16px;
  }
  .logo { font-size: 22px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 12px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    margin-left: 0;
    padding: 14px 8px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 18px;
  }
  .hero { padding: 32px 16px 36px; }
  .hero h1 { font-size: 28px; }
  .hero .lede { font-size: 18px; margin-bottom: 20px; }
  .search { display: flex; flex-direction: column; }
  .search input, .search select, .search button { width: 100%; }
  main.page, main.page.with-sidebar, footer.site-footer { padding-left: 16px; padding-right: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .card-main {
    width: 100%;
    flex: 0 0 auto;
    align-items: flex-start;
  }
  .info { min-width: 0; }
  .info .name, .info b { overflow-wrap: break-word; }
  .ph {
    text-align: left;
    margin-left: 76px;
    margin-top: 8px;
    width: auto;
    flex: 0 0 auto;
  }
  .profile { padding: 20px; }
  .profile h1 { font-size: 26px; }
  .prose { padding: 24px 20px; }
  .prose h1 { font-size: 26px; }
  .actions { flex-direction: column; }
  .phone-btn, a.phone-btn, a.btn, .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* OC-100 homepage specialty tiles */
.browse-specialties {
  margin: 4px 0 36px;
}
.browse-specialties h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--ink);
}
.browse-specialties .count-line {
  margin-bottom: 16px;
}

.pc-tile {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  min-height: 108px;
  margin-bottom: 18px;
}
.pc-tile:hover {
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: var(--gold-dark);
}
.pc-tile .tile-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}
.pc-tile .pc-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pc-tile .name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.2;
}
.pc-tile .count {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--navy-mid);
  line-height: 1.4;
}

.spec-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.spec-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 12px 18px;
  min-height: 148px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.spec-tile:hover {
  border-color: var(--navy-mid);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.spec-tile .tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.spec-tile .name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.25;
  padding: 0 4px;
}
.spec-tile .count {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--navy-mid);
  margin-top: 6px;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .spec-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .spec-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .spec-tile { min-height: 132px; padding: 16px 8px 14px; }
  .spec-tile .name { font-size: 16px; }
  .spec-tile .tile-icon { width: 46px; height: 46px; font-size: 14px; }
  .pc-tile { padding: 18px 16px; gap: 14px; }
  .pc-tile .tile-icon { flex-basis: 60px; width: 60px; height: 60px; font-size: 18px; }
  .pc-tile .name { font-size: 22px; }
}
