/* The Village — site layout (works with village-brand.css) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { color: var(--village-navy); }
img, video { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; background: #FFFFFF; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; }
.sec { padding: 96px 32px; overflow: hidden; }
.bg-white { background: var(--village-white); }
.bg-cream { background: var(--village-cream); }
.bg-navy { background: var(--village-navy); color: var(--village-line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.rel { position: relative; }
.shape { position: absolute; pointer-events: none; }

/* ---------- Type ---------- */
.h2 { margin: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--village-navy); max-width: 780px; }
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--village-slate); max-width: 680px; }
.small { font-size: 15px; color: var(--village-slate); }
.bg-navy .h2, .bg-navy h3 { color: var(--village-white); }
.bg-navy .lead, .bg-navy p { color: var(--village-line); }
.bg-navy .eyebrow { color: var(--village-teal-tint); }
.soft-mark { background: linear-gradient(transparent 62%, var(--village-coral-tint) 62%); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Cards and tiles ---------- */
.card { background: var(--village-white); border: 1px solid var(--village-line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 4px 0 0; font-size: 20px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--village-slate); }
.tile { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { margin: 4px 0 0; font-size: 20px; }
.tile p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--village-slate); }
.icon-sq { flex: none; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.icon-sq.sm { width: 44px; height: 44px; border-radius: 14px; }
.label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lbl-care { color: var(--village-teal-deep); }
.lbl-community { color: var(--village-violet-deep); }
.lbl-play { color: var(--village-navy); }
.dark-card { background: rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check svg { flex: none; margin-top: 3px; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary { transition: background-color .15s ease, color .15s ease; text-align: center; line-height: 1.3; }
.btn-sm { padding: 11px 22px; white-space: nowrap; }
.btn-on-dark { background: var(--village-white); color: var(--village-navy); border-color: var(--village-white); }
.btn-on-dark:hover { background: var(--village-coral-tint); color: var(--village-navy); }
.link-strong { font-size: 17px; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: var(--village-white); border-bottom: 1px solid var(--village-line); }
.site-header .wrap { padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--village-navy); }
.brand span { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { color: var(--village-navy); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--village-navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--village-teal-deep); text-decoration: underline; }
@media (max-width: 1000px) { .nav-links { display: none; } }
@media (max-width: 420px) { .site-header .wrap { padding: 12px 18px; } .brand span { font-size: 19px; } .brand svg { width: 36px; height: 32px; } }

/* ---------- Hero video ---------- */
.hv-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: var(--village-navy); }
.hv-sound { position: absolute; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(19, 41, 75, 0.85); color: #FFFFFF; font-size: 15px; font-weight: 700; cursor: pointer; }
.hv-sound:hover { background: var(--village-navy); }
.hv-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%; background: var(--village-coral-deep); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(19, 41, 75, 0.25); }
.hv-play:hover { background: var(--village-coral-hover); }
.hv-play[hidden] { display: none; }

/* ---------- Map ---------- */
.map { position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; background: var(--village-cream); }
.map .area { position: absolute; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--village-slate); }
.map .pin { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 2px 6px rgba(19, 41, 75, 0.3); }
.map-legend { position: absolute; right: 4%; top: 5%; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--village-navy); box-shadow: 0 4px 14px rgba(19, 41, 75, 0.15); }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
@media (max-width: 700px) {
  .map-legend { position: static; margin-top: 12px; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; box-shadow: none; }
}

/* ---------- Week strip ---------- */
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.day { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.day b { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; }
.day time { font-size: 13px; font-weight: 700; color: var(--village-slate); }
.day p { margin: 0; font-size: 15px; font-weight: 700; color: var(--village-navy); }

/* ---------- Forms ---------- */
.form { background: var(--village-white); border-radius: 26px; padding: 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(19, 41, 75, 0.10); }
.form h3 { margin: 0; font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .fieldset legend { font-size: 15px; font-weight: 700; color: var(--village-navy); }
.field input, .field select { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #8B8FA3; background: #FFFFFF; color: var(--village-navy); font-size: 16px; }
.field input:hover, .field select:hover { border-color: var(--village-slate); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fieldset legend { margin-bottom: 4px; padding: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--village-line); border-radius: 12px; font-size: 15px; color: var(--village-navy); cursor: pointer; }
.opt:hover { border-color: #8B8FA3; }
.opt input, .consent input { width: 20px; height: 20px; accent-color: var(--village-teal-deep); flex: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--village-navy); cursor: pointer; }
.consent input { margin-top: 2px; }
.privacy-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--village-slate); }
.form .btn-primary { width: 100%; }
.form-status { margin: 0; }
.form-status[hidden] { display: none; }
@media (max-width: 520px) { .form { padding: 24px; } .sec { padding: 72px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--village-white); border-top: 1px solid var(--village-line); }
.site-footer .wrap { padding: 40px 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 15px; color: var(--village-slate); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 600; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  .hv-video { aspect-ratio: 9 / 16; max-height: 620px; }
  .hv-videowrap { max-width: 340px; margin: 0 auto; }
  .hv-h1 { font-size: 42px !important; }
  .hide-phone { display: none !important; }
}

/* Map legend copy shown under the map on phones */
.phone-legend { display: none; }
@media (max-width: 700px) {
  .phone-legend { display: flex; position: static; background: transparent; color: #FFFFFF; padding: 0; }
}

/* Error messages always show an icon with the text */
.form-status.form-error::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.tight { margin-left: -0.1em; }
.bg-navy .card h3 { color: var(--village-navy); }
.bg-navy .card p { color: var(--village-slate); }
@media (max-width: 700px) {
  .mem-circle { top: -60px !important; bottom: auto !important; right: -60px !important; width: 140px !important; height: 140px !important; }
}
.show-phone { display: none; }
@media (max-width: 700px) { .show-phone { display: inline; } }

/* ---------- Partner page (from approved design "Partner page") ---------- */
.pv-input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border: 1.5px solid #E6D3C6; border-radius: 12px; background: #FFFFFF; color: var(--village-navy); font-size: 16px; }
.pv-input:focus { border-color: var(--village-violet-deep); }
.pv-label { font-size: 15px; font-weight: 700; color: var(--village-navy); }
.pv-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--village-navy); }
.pv-check input { width: 20px; height: 20px; accent-color: var(--village-teal-deep); flex: none; }
.pv-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 700; color: var(--village-navy); }
.pv-faq summary::-webkit-details-marker { display: none; }
.pv-faq summary::after { content: "+"; font-size: 26px; font-weight: 600; color: var(--village-teal-deep); }
.pv-faq[open] summary::after { content: "–"; }
.nav-links a.nav-parent { color: var(--village-teal-deep); font-weight: 700; }
@media (max-width: 700px) {
  .pv-h1 { font-size: 40px !important; }
  .pv-section { padding: 64px 20px !important; }
}
