/* Happy Elephant Child Care. Phone layout first; wider screens below.
   This is the base layout; the look (fonts, colors) comes from theme-soft.css, loaded after it. */

:root {
  color-scheme: light;
  --ink: #2b2421;
  --muted: #5b504a;
  --cream: #fffaf2;
  --paper: #ffffff;
  --line: #eadfce;
  --teal-900: #0d4650;
  --teal-700: #0f6f73;
  --teal-500: #10acae;
  --teal-50: #e7f5f4;
  --pink-100: #fde8ef;
  --pink-400: #e48aa8;
  --sun: #ffd76a;
  --coral: #b9472b;
  --coral-dark: #963720;
  --tbd-bg: #fff1a8;
  --tbd-line: #9a7000;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 36, 33, .06), 0 6px 18px rgba(43, 36, 33, .07);
  --heading: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); padding-bottom: 76px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: .15em; }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.15; color: var(--teal-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center-text { text-align: center; }
.small { font-size: .92rem; color: var(--muted); }
.eyebrow { font-weight: 800; color: var(--coral-dark); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-bottom: .6em; }
.eyebrow a { color: inherit; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.section { padding: 36px 0; }
.section.tint { background: var(--teal-50); }
.section-lede { color: var(--muted); margin-top: -.2em; }
.rounded { border-radius: var(--radius); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.draft-ribbon { background: var(--ink); color: var(--sun); text-align: center; font-weight: 700; font-size: .9rem; padding: 6px 12px; }

/* Facts still to confirm */
.tbd { background: var(--tbd-bg); border: 1.5px dashed var(--tbd-line); border-radius: 6px; padding: .05em .4em; color: #3b2d00; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-size: .95em; }
.tbd[data-kind="decide"] { background: #ffe0cc; border-color: #a24a12; color: #3e1a04; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: .6em 1.2em; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--teal-700); color: var(--teal-700); background: var(--paper); line-height: 1.2; text-align: center; cursor: pointer; font-family: var(--body); font-size: 1rem; }
.btn:hover { background: var(--teal-50); color: var(--teal-900); }
.btn-tour { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-tour:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-big { min-height: 54px; font-size: 1.08rem; padding: .7em 1.5em; }
.btn-small { min-height: 44px; padding: .45em 1em; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(0,0,0,.04); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { margin-right: auto; padding: 6px 0; }
.brand img { width: 150px; height: auto; }
.header-tour { display: none; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--teal-700); border-radius: 999px; background: var(--paper); color: var(--teal-700); font: 800 1rem var(--body); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 12px; display: grid; }
.site-nav a { display: block; padding: 12px 4px; font-weight: 800; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--coral-dark); }
.js .menu-btn { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }

/* Hero */
.hero { padding: 20px 0 16px; background: radial-gradient(ellipse at 85% 10%, var(--pink-100), transparent 55%), radial-gradient(ellipse at 0% 100%, var(--teal-50), transparent 60%); }
.hero-grid { display: grid; gap: 20px; }
.home-hero { padding-bottom: 36px; }
.hero-centers { scroll-margin-top: 80px; }
.hero-photo img { border-radius: 28px; box-shadow: 12px 12px 0 var(--pink-100), var(--shadow); width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.page-head { padding: 36px 0 28px; background: linear-gradient(180deg, var(--pink-100), var(--cream)); }
.page-head .hero-actions { margin-top: 16px; }

/* Strengths */
.strengths { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.strengths li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.strengths b { display: block; color: var(--teal-900); font-size: 1.05rem; }
.strengths li > span:last-child { color: var(--muted); font-size: .97rem; }
.ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-50) center / 24px no-repeat; }
.ico-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico-baby { background-color: var(--pink-100); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0466b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.ico-hour { background-color: #fff3cf; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a00' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v18M16.5 7.5c0-1.7-2-3-4.5-3s-4.5 1.3-4.5 3 1.6 2.6 4.5 3.2 4.5 1.6 4.5 3.3-2 3-4.5 3-4.5-1.3-4.5-3'/%3E%3C/svg%3E"); }
.ico-apple { background-color: #ffe6dc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9472b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8c-2-1.5-6-1.2-6 3.5 0 4 2.7 8.5 4.5 8.5 1 0 1-.5 1.5-.5s.5.5 1.5.5c1.8 0 4.5-4.5 4.5-8.5C18 6.8 14 6.5 12 8z'/%3E%3Cpath d='M12 8c0-2 1-3.5 3-4'/%3E%3C/svg%3E"); }
.ico-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f73' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h2 { font-size: 1.35rem; }
/* Centers: grouped by city (city named once); one column on phones, one per city on desktop */
.center-grid { display: grid; gap: 8px 18px; }
.city { font-size: .85rem; font-weight: 700; margin: 0 0 6px 6px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.center-list { gap: 12px; margin-bottom: 16px; }
.center-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo { display: block; }
.card-photo img { aspect-ratio: 5 / 2; object-fit: cover; width: 100%; }
.card-photo.no-photo { display: none; }
.photo-tile { display: block; aspect-ratio: 16 / 9; background: url("/assets/img/favicon.png") center / 72px no-repeat, var(--teal-50); }
.center-card:nth-child(2n) .photo-tile { background-color: var(--pink-100); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
/* Home page center chooser (design pass 2026-11-06, with a Fable review): one coral button leads;
   the centers sit on a pale teal band as tiles, grouped by city. Every width uses the same tile:
   name, street, then a quiet teal "Tour" chip underneath, chips lined up along the bottom
   (David: chips must line up). Phones: two tiles per row. Computers: one row of five. */
.home-hero .hero-centers { background: var(--teal-50); margin: 12px -16px 0; padding: 26px 16px 10px; }
.hero-centers h2 { margin-bottom: .2em; }
.picker { display: grid; gap: 14px 18px; margin: 12px 0 10px; }
.picker-city { display: flex; flex-direction: column; }
.picker ul { flex: 1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker-city:last-child ul { grid-template-columns: 1fr; }
.picker li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); }
.pick { display: flex; flex-direction: column; text-decoration: none; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.pick b { color: var(--teal-700); font-size: 1.05rem; line-height: 1.2; margin-bottom: 2px; }
/* A center that is temporarily closed (2026-11: W. Michigan Ave, repairs) */
.notice-tag { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--pink-100); color: var(--coral-dark); font-size: .78rem; font-weight: 700; }
.center-card .notice-tag { margin: 0 0 4px; }
.notice-box { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--pink-100);
  color: var(--ink); font-weight: 600; max-width: 46rem; }
.picker .btn { margin-top: auto; min-height: 40px; padding: .3em 1.1em; font-size: .92rem; white-space: nowrap; background: var(--teal-50); border-color: transparent; color: var(--teal-700); box-shadow: none; }
.picker .btn:hover { background: var(--teal-700); color: #fff; }
.picker .btn .long { display: none; }
.all-centers { font-size: .95rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-body h3, .center-name { margin: 0 0 .25em; font: 700 1.25rem/1.15 var(--heading); letter-spacing: -.01em; }
.card-body h3 a, .center-name a { text-decoration: none; color: var(--teal-900); }
.card-body p { margin-bottom: .4em; }
.addr a { color: var(--muted); }
.phone { font-weight: 800; white-space: nowrap; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1 1 0; white-space: nowrap; padding-inline: .7em; }
.hero-actions .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .hero-actions .btn { flex: 0 0 auto; padding-inline: 1.8em; } }
.programs .card h3 a { text-decoration: none; color: var(--teal-900); }
.programs .card p { margin: 0; color: var(--muted); }

.review { display: flex; flex-direction: column; }
.stars { color: #d99a00; letter-spacing: .1em; margin-bottom: .4em; font-size: 1.1rem; }
.review blockquote { margin: 0 0 .8em; font-size: 1.02rem; }
.review blockquote p::before { content: "“"; } .review blockquote p::after { content: "”"; }
.review .who { margin-top: auto; font-weight: 700; color: var(--muted); margin-bottom: 0; }
.translation { color: var(--muted); font-style: italic; font-size: .95rem; }

.staff { display: flex; gap: 16px; align-items: flex-start; }
.avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-100); color: #8f3456; font: 700 1.4rem var(--heading); }
.staff h3 { margin-bottom: .15em; }
.role { font-weight: 800; color: var(--coral-dark); margin-bottom: .3em; }
.place { margin-bottom: .4em; font-weight: 700; }
.creds { padding-left: 1.1em; margin: 0 0 .5em; color: var(--muted); font-size: .96rem; }
.joined { font-size: .95rem; color: var(--muted); margin: 0; }
.director { margin-top: 18px; }

.program .age { font-weight: 800; color: var(--coral-dark); }
.program-list { display: grid; gap: 18px; }
.steps-big { counter-reset: none; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #fff; font: 700 1.3rem var(--heading); margin-bottom: 10px; }
.steps li { margin-bottom: .7em; }
.ticks { padding-left: 1.2em; }

/* Center page facts */
.facts { margin: 0; display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 18px; }
.facts dt { font-weight: 800; color: var(--teal-900); padding-top: 12px; }
.facts dd { margin: 0; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.facts dd:last-of-type { border-bottom: 0; }
.center-photo { border-radius: var(--radius); }
.photo-missing { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); padding: 18px; }

.two-col { display: grid; gap: 28px; }
figure { margin: 0; }
figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
caption { text-align: left; font-weight: 800; padding: 0 0 8px; color: var(--teal-900); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--teal-900); color: #fff; }

/* Phone list */
.phone-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.phone-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Form */
.tour-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.field { margin: 0 0 16px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 800; margin-bottom: 6px; color: var(--ink); padding: 0; }
.req { font-weight: 600; color: var(--muted); font-size: .9em; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #b9ab99; border-radius: 10px; background: #fff; font: inherit; color: inherit; }
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-700); outline: 3px solid rgba(16, 172, 174, .35); outline-offset: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.field .check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border: 1.5px solid #b9ab99; border-radius: 999px; padding: 6px 16px 6px 12px; min-height: 44px; margin: 0; cursor: pointer; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 0; padding: 0; flex: 0 0 20px; accent-color: var(--teal-700); }
.tour-form .btn { width: 100%; margin-top: 4px; }
.section.form-first { padding-top: 8px; }
.more { margin: 0 0 16px; }
.more summary { cursor: pointer; font-weight: 700; color: var(--teal-700); min-height: 44px; display: flex; align-items: center; }
.more[open] summary { margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; }
.form-status:not(:empty) { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--tbd-bg); border: 1.5px dashed var(--tbd-line); }

.prose h2 { font-size: 1.35rem; margin-top: 1.2em; }

/* Footer */
.site-footer { background: var(--teal-900); color: #f3ede4; padding: 40px 0 16px; margin-top: 0; }
.site-footer h2 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: #fff; }
.site-footer .btn-tour { color: #fff; }
.footer-logo { background: #fff; border-radius: 12px; padding: 8px 10px; width: 180px; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid .phone-list li { border-color: rgba(255,255,255,.18); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 28px; padding-top: 14px; font-size: .92rem; }
.legal p { margin: 0; }

/* Quick-action bar on phones */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 14px rgba(0,0,0,.1); }
.mobile-bar .btn { min-height: 48px; padding: .5em .6em; }

@media (min-width: 640px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .center-grid { grid-template-columns: repeat(2, 1fr); }
  .card-photo.no-photo { display: block; }
  .card-photo img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: 10rem 1fr; padding: 6px 20px; }
  .facts dt { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .facts dd { padding: 12px 0; }
  .facts dt:last-of-type { border-bottom: 0; }
  .header-tour { display: inline-flex; min-height: 44px; padding: .45em 1em; }
  .brand img { width: 180px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .section { padding: 72px 0; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .center-grid { grid-template-columns: repeat(3, 1fr); }
  /* one row of five tiles; Flint and Lansing labels span their two tiles */
  .picker { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .picker-city:nth-child(-n+2) { grid-column: span 2; }
  .picker ul { gap: 16px; }
  .picker li { padding: 18px; border-radius: 18px; gap: 12px; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .home-hero .hero-grid { grid-template-areas: "text photo" "centers centers"; }
  .home-hero .hero-text { grid-area: text; }
  .home-hero .hero-photo { grid-area: photo; }
  .home-hero .hero-centers { grid-area: centers; margin: 8px 0 0; border-radius: 32px; padding: 36px 40px 24px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
  .two-col.align-center { align-items: center; }
  .program-list { grid-template-columns: 1fr 1fr; }
  .section .strengths { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; }
  .js .menu-btn { display: none; }
  .js .site-nav, .site-nav { display: block; width: auto; order: 2; }
  .header-row { flex-wrap: nowrap; gap: 20px; }
  .header-tour { order: 3; }
  .site-nav ul { display: flex; gap: 2px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 10px; border-radius: 8px; font-size: .98rem; }
  .site-nav a:hover { background: var(--teal-50); }
}

@media (min-width: 1200px) {
  /* tiles are wide enough for the full chip wording without wrapping */
  .picker .btn .short { display: none; }
  .picker .btn .long { display: inline; }
}

@media print {
  .site-header, .mobile-bar, .draft-ribbon, .tour-form { display: none; }
  body { padding: 0; background: #fff; }
}

/* Photos inside cards and galleries */
.program-photo { width: calc(100% + 40px); max-width: none; margin: -20px -20px 16px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3 / 2; object-fit: cover; }
.wide-photo { margin: 0 auto 24px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery img { border-radius: 10px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero-photo figcaption { margin-top: 18px; }

/* Draft ribbon with the style picker */
.draft-ribbon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; }
.style-picker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.style-picker button { font: 700 .82rem system-ui, sans-serif; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 5px 9px; min-height: 32px; cursor: pointer; }
.style-picker button[aria-pressed="true"] { background: var(--sun); color: #2b2421; border-color: var(--sun); }
.card-photo { text-decoration: none; }
