/*
Theme Name: Tippett's Rides 4 School – Bilingual Fixed
Theme URI: https://rides4school.com
Author: Tippett's Rides 4 School
Description: Bilingual English and Spanish theme with English default and a website ride-request form that emails Rides4School.
Version: 1.2.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tippetts-rides4school
*/

:root {
  --navy: #073c7d;
  --navy-dark: #032b5d;
  --blue: #0c5aaa;
  --blue-light: #eaf5ff;
  --blue-pale: #f5faff;
  --yellow: #ffd325;
  --yellow-deep: #e4b800;
  --ink: #12243a;
  --muted: #5f6e80;
  --white: #fff;
  --line: #dce7f1;
  --cream: #fffbed;
  --shadow: 0 24px 65px rgba(3, 43, 93, .13);
  --shadow-soft: 0 13px 38px rgba(3, 43, 93, .08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 42px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 9999; transform: translateY(-160%); background: var(--yellow); color: var(--navy-dark); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { transform: none; }

.topbar { background: var(--navy-dark); color: var(--white); }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .82rem; }
.topbar p { display: flex; gap: 20px; margin: 0; }
.topbar p span { color: #cfe4fa; }
.topbar a { color: var(--yellow); text-decoration: none; font-weight: 900; letter-spacing: .02em; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(3,43,93,.09); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo-link { width: 274px; flex: 0 0 auto; }
.logo-link img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a { color: var(--navy-dark); text-decoration: none; font-weight: 760; font-size: .95rem; }
.main-nav > a:hover { color: var(--blue); }
.main-nav .nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px; background: var(--yellow); color: var(--navy-dark); font-weight: 900; box-shadow: 0 8px 20px rgba(228,184,0,.2); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 13px; background: var(--blue-light); padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 3px; margin: 5px 1px; border-radius: 99px; background: var(--navy); }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 24px; border-radius: 14px; border: 2px solid transparent; text-decoration: none; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--yellow); color: var(--navy-dark); border-color: var(--yellow); box-shadow: 0 12px 28px rgba(228,184,0,.24); }
.button-primary:hover { background: #ffdd54; }
.button-secondary { background: var(--white); color: var(--navy); border-color: #bcd4ea; box-shadow: none; }
.button-secondary:hover { border-color: var(--navy); }
.button-light { background: var(--white); color: var(--navy-dark); border-color: var(--white); }
.button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 4px solid rgba(12,90,170,.25); outline-offset: 3px; }

.hero { position: relative; overflow: hidden; padding: 86px 0 90px; background: linear-gradient(115deg, var(--blue-pale) 0 62%, var(--cream) 62% 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 72px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.kicker > span { width: 28px; height: 3px; border-radius: 99px; background: var(--yellow); }
.kicker.centered { justify-content: center; }
.kicker.light { color: var(--yellow); }
h1, h2, h3, p { text-wrap: pretty; }
.hero h1 { max-width: 700px; margin: 0; color: var(--navy-dark); font-size: clamp(3.05rem, 6vw, 5.65rem); line-height: .95; letter-spacing: -.058em; }
.hero-text { max-width: 650px; margin: 27px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 33px; }
.hero-points { display: grid; gap: 12px; margin-top: 38px; }
.hero-points > div { display: flex; align-items: center; gap: 12px; }
.check { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--blue); font-weight: 1000; box-shadow: 0 6px 16px rgba(3,43,93,.09); }
.hero-points p { margin: 0; }
.hero-points strong, .hero-points small { display: block; }
.hero-points strong { color: var(--navy-dark); font-size: .94rem; }
.hero-points small { color: var(--muted); font-size: .79rem; }
.hero-media { position: relative; min-height: 590px; }
.photo-frame { height: 590px; overflow: hidden; border-radius: 52px 20px 52px 20px; box-shadow: var(--shadow); border: 10px solid var(--white); background: var(--white); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-card { position: absolute; right: 22px; bottom: 22px; width: min(340px, calc(100% - 44px)); display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--white); box-shadow: 0 20px 50px rgba(3,43,93,.2); }
.hero-card-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--yellow); color: var(--navy-dark); font-size: 1.35rem; }
.hero-card strong, .hero-card span { display: block; }
.hero-card strong { color: var(--navy-dark); }
.hero-card span { color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 3px; }
.hero-accent { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-accent-one { width: 330px; height: 330px; right: -150px; top: -90px; border: 48px solid rgba(255,211,37,.5); }
.hero-accent-two { width: 120px; height: 120px; left: -48px; bottom: -52px; background: rgba(12,90,170,.08); }

.trust-band { background: var(--navy); color: var(--white); }
.trust-band-grid { min-height: 122px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-band-grid > div { padding: 0 28px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.trust-band-grid > div:last-child { border-right: 0; }
.trust-band strong, .trust-band span { display: block; }
.trust-band strong { color: var(--yellow); font-size: 1.15rem; }
.trust-band span { color: #d7e8fa; font-size: .8rem; }

.section { padding: 102px 0; }
.section-heading { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-heading h2, .safety-copy h2, .schools-copy h2, .about-copy h2, .request-intro h2, .faq-heading h2 { margin: 0; color: var(--navy-dark); font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 650px; margin: 20px auto 0; color: var(--muted); font-size: 1.05rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-card { min-height: 305px; padding: 33px 31px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-soft); }
.benefit-card.featured { transform: translateY(-12px); background: var(--navy); border-color: var(--navy); }
.benefit-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: var(--blue-light); color: var(--blue); }
.benefit-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card.featured .benefit-icon { background: var(--yellow); color: var(--navy-dark); }
.benefit-card h3 { margin: 24px 0 10px; color: var(--navy-dark); font-size: 1.27rem; }
.benefit-card p { margin: 0; color: var(--muted); }
.benefit-card.featured h3 { color: var(--white); }
.benefit-card.featured p { color: #d3e5f8; }

.safety-section { background: var(--blue-pale); }
.safety-grid { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 78px; }
.safety-image { height: 610px; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.safety-image img { width: 100%; height: 100%; object-fit: cover; }
.safety-copy > p:not(.kicker) { color: var(--muted); }
.steps { display: grid; gap: 27px; margin-top: 37px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--yellow); color: var(--navy-dark); font-weight: 1000; }
.step h3 { margin: 0 0 5px; color: var(--navy-dark); font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.text-link { display: inline-flex; gap: 8px; margin-top: 31px; color: var(--blue); font-weight: 900; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.schools-section { position: relative; overflow: hidden; background: var(--navy-dark); color: var(--white); }
.schools-section::after { content: ""; position: absolute; width: 360px; height: 360px; right: -130px; bottom: -180px; border-radius: 50%; border: 60px solid rgba(255,211,37,.16); }
.schools-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 75px; }
.schools-copy h2 { color: var(--white); }
.schools-copy > p:not(.kicker) { max-width: 500px; color: #cfe2f5; margin: 22px 0 30px; }
.school-card { padding: 35px; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.school-list { display: flex; flex-wrap: wrap; gap: 11px; }
.school-list span { padding: 10px 14px; border-radius: 11px; background: var(--blue-light); color: var(--navy); font-size: .9rem; font-weight: 800; }
.school-card p { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.school-card strong { color: var(--navy-dark); }

.about-section { background: var(--white); }
.about-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 85px; }
.about-logo-card { position: relative; min-height: 420px; display: grid; place-items: center; padding: 46px; border-radius: var(--radius-xl); background: linear-gradient(145deg, var(--blue-pale), var(--cream)); box-shadow: var(--shadow-soft); overflow: hidden; }
.about-logo-card::before { content: ""; position: absolute; width: 170px; height: 170px; top: -78px; right: -58px; border-radius: 50%; background: var(--yellow); opacity: .7; }
.about-logo-card img { position: relative; z-index: 2; width: min(100%, 470px); mix-blend-mode: multiply; }
.about-label { position: absolute; z-index: 3; left: 26px; bottom: 24px; width: 105px; height: 105px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 16px 35px rgba(3,43,93,.23); }
.about-label span, .about-label strong { display: block; line-height: 1; }
.about-label span { color: var(--yellow); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.about-label strong { margin-top: 5px; font-size: 1.5rem; }
.about-copy > p:not(.kicker) { color: var(--muted); font-size: 1.03rem; }
.about-copy h2 + p { margin-top: 24px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.about-badges span { padding: 9px 13px; border-radius: 999px; background: var(--blue-light); color: var(--navy); font-weight: 800; font-size: .82rem; }

.request-section { background: linear-gradient(120deg, var(--cream), var(--blue-pale)); }
.request-layout { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: 70px; }
.request-intro { position: sticky; top: 128px; }
.request-intro > p:not(.kicker) { max-width: 460px; color: var(--muted); font-size: 1.03rem; }
.call-card { max-width: 360px; margin-top: 30px; padding: 22px; border-radius: 19px; background: var(--navy); color: var(--white); }
.call-card span, .call-card a, .call-card small { display: block; }
.call-card span { color: #d5e7f9; font-size: .83rem; }
.call-card a { margin: 4px 0 2px; color: var(--yellow); font-size: 1.45rem; font-weight: 1000; text-decoration: none; }
.call-card small { color: #b6d1ea; }
.ride-form { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.form-heading h3 { margin: 0; color: var(--navy-dark); font-size: 1.45rem; }
.form-heading p { margin: 0; color: var(--muted); font-size: .76rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ride-form label, .ride-form legend { color: var(--navy-dark); font-size: .82rem; font-weight: 850; }
.ride-form input, .ride-form select, .ride-form textarea { width: 100%; margin-top: 7px; border: 1.5px solid #c9d9e7; border-radius: 12px; background: var(--white); color: var(--ink); padding: 12px 13px; outline: none; }
.ride-form input, .ride-form select { height: 49px; }
.ride-form textarea { resize: vertical; }
.ride-form input:focus, .ride-form select:focus, .ride-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(12,90,170,.09); }
.ride-form fieldset { margin: 22px 0; padding: 0; border: 0; }
.days-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.days-grid label { position: relative; cursor: pointer; }
.days-grid input { position: absolute; opacity: 0; pointer-events: none; }
.days-grid span { min-height: 45px; display: grid; place-items: center; border: 1.5px solid #c9d9e7; border-radius: 11px; color: var(--muted); background: var(--white); }
.days-grid input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--muted) !important; font-weight: 600 !important; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.full-button { width: 100%; margin-top: 21px; }
.form-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: .75rem; }
.form-error { padding: 11px 13px; border-radius: 10px; background: #fff0f0; color: #9e2828; font-weight: 800; }

.faq-section { background: var(--white); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.faq-heading > p:not(.kicker) { color: var(--muted); }
.faq-heading a { color: var(--blue); font-weight: 900; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 8px 25px rgba(3,43,93,.05); padding: 0 19px; }
.faq-list summary { position: relative; padding: 20px 42px 20px 0; cursor: pointer; list-style: none; color: var(--navy-dark); font-weight: 900; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-size: 1.28rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -3px 0 20px; color: var(--muted); }

.closing-cta { padding: 65px 0; background: var(--navy); color: var(--white); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.closing-inner > div:first-child { display: flex; align-items: center; gap: 18px; }
.closing-star { flex: 0 0 auto; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--yellow); color: var(--navy-dark); font-size: 1.6rem; }
.closing-cta h2 { max-width: 620px; margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1; letter-spacing: -.04em; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { padding: 60px 0 24px; background: #02234d; color: #d3e4f5; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, .65fr); gap: 42px; }
.footer-brand img { width: 260px; border-radius: 8px; }
.footer-brand p { max-width: 340px; color: #a9c3dd; }
.site-footer h3 { margin: 0 0 14px; color: var(--white); font-size: .9rem; }
.site-footer a, .site-footer span { display: block; margin: 0 0 7px; color: #b8cee4; text-decoration: none; font-size: .88rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 38px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom span { margin: 0; color: #84a5c5; font-size: .75rem; }

.request-dialog { width: min(680px, calc(100% - 26px)); border: 0; border-radius: 24px; padding: 31px; color: var(--ink); box-shadow: 0 35px 100px rgba(3,43,93,.4); }
.request-dialog::backdrop { background: rgba(1,25,54,.72); backdrop-filter: blur(5px); }
.request-dialog h2 { margin: 0; color: var(--navy-dark); font-size: 2rem; line-height: 1.05; }
.dialog-close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue-light); color: var(--navy); font-size: 1.4rem; }
.request-dialog textarea { width: 100%; margin-top: 20px; padding: 14px; border: 1.5px solid var(--line); border-radius: 13px; resize: vertical; }
.dialog-actions { display: flex; gap: 12px; margin-top: 16px; }
.copy-status { min-height: 24px; margin-bottom: 0; color: var(--blue); font-weight: 800; }
.mobile-actions { display: none; }

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 126px; left: 18px; right: 18px; display: grid; gap: 4px; padding: 13px; border-radius: 20px; background: var(--white); box-shadow: 0 25px 80px rgba(3,43,93,.25); opacity: 0; transform: translateY(-16px); pointer-events: none; transition: .2s ease; }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav > a { padding: 12px 13px; border-radius: 9px; }
  .main-nav .nav-cta { justify-content: center; margin-top: 4px; }
  .hero-grid, .safety-grid, .schools-layout, .about-layout, .request-layout, .faq-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 56px; }
  .hero-copy { text-align: center; }
  .kicker:not(.light) { justify-content: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-points { width: min(560px, 100%); margin-inline: auto; text-align: left; }
  .hero-media { width: min(670px, 100%); margin-inline: auto; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-card.featured { transform: none; }
  .benefit-card:last-child { grid-column: 1 / -1; }
  .safety-grid { gap: 48px; }
  .safety-image { width: min(650px, 100%); }
  .safety-copy { max-width: 750px; }
  .safety-copy .kicker, .schools-copy .kicker, .about-copy .kicker, .request-intro .kicker, .faq-heading .kicker { justify-content: flex-start; }
  .schools-layout, .about-layout, .request-layout, .faq-layout { gap: 45px; }
  .request-intro { position: static; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  .container { width: min(calc(100% - 26px), var(--max)); }
  .topbar-inner { min-height: 34px; font-size: .72rem; }
  .topbar p span { display: none; }
  .header-inner { min-height: 73px; }
  .logo-link { width: 218px; }
  .main-nav { top: 107px; }
  .hero { padding: 58px 0 69px; background: linear-gradient(160deg, var(--blue-pale) 0 72%, var(--cream) 72% 100%); }
  .hero h1 { font-size: clamp(2.9rem, 14.7vw, 4.5rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-media { min-height: auto; }
  .photo-frame { height: 470px; border-width: 7px; border-radius: 36px 16px 36px 16px; }
  .hero-card { position: relative; right: auto; bottom: auto; width: auto; max-width: none; margin: 14px 10px 0; }
  .trust-band-grid { grid-template-columns: 1fr 1fr; padding: 10px 0; }
  .trust-band-grid > div { min-height: 74px; display: grid; place-content: center; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .trust-band-grid > div:nth-child(3), .trust-band-grid > div:nth-child(4) { border-bottom: 0; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .safety-copy h2, .schools-copy h2, .about-copy h2, .request-intro h2, .faq-heading h2 { font-size: clamp(2.2rem, 11vw, 3.15rem); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card:last-child { grid-column: auto; }
  .benefit-card { min-height: 0; }
  .safety-image { height: 450px; }
  .school-card, .ride-form { padding: 23px; }
  .about-logo-card { min-height: 330px; padding: 34px 22px; }
  .about-label { width: 88px; height: 88px; left: 16px; bottom: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .days-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .days-grid span { font-size: .74rem; }
  .form-heading { display: block; }
  .form-heading p { margin-top: 3px; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
  .closing-inner > div:first-child { align-items: flex-start; }
  .closing-star { width: 49px; height: 49px; border-radius: 14px; }
  .closing-actions { width: 100%; display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .dialog-actions { flex-direction: column; }
  .dialog-actions .button { width: 100%; }
  .mobile-actions { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-actions a { min-height: 48px; display: grid; place-items: center; text-decoration: none; font-weight: 900; }
  .mobile-actions a:first-child { color: var(--navy); }
  .mobile-actions a:last-child { border-radius: 12px; background: var(--yellow); color: var(--navy-dark); }
}



/* School-day photo showcase */
.photo-showcase { background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%); }
.photo-showcase .section-heading { max-width: 760px; margin-bottom: 34px; }
.photo-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo-story-card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 20px 55px rgba(17, 48, 91, .10); }
.photo-story-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-story-card:last-child img { aspect-ratio: 3 / 2; }
.photo-story-copy { padding: 24px 26px 27px; }
.photo-story-copy h3 { margin: 0 0 8px; color: var(--navy); font-size: clamp(1.25rem, 2vw, 1.6rem); }
.photo-story-copy p { margin: 0; color: var(--muted); line-height: 1.7; }

@media (max-width: 760px) {
  .photo-showcase-grid { grid-template-columns: 1fr; }
  .photo-story-card, .photo-story-card img, .photo-story-card:last-child img { border-radius: 22px; }
  .photo-story-copy { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Logo update: use the simpler Rides 4 School mark without oversized logo panels. */
.logo-link {
  width: 92px;
  flex: 0 0 auto;
}
.logo-link img {
  width: 92px;
  height: auto;
  object-fit: contain;
}
.about-logo-card {
  min-height: 360px;
}
.about-logo-card img {
  width: min(48%, 225px);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 22px rgba(3,43,93,.12));
}
@media (max-width: 760px) {
  .logo-link,
  .logo-link img {
    width: 76px;
  }
  .header-inner {
    min-height: 78px;
  }
  .about-logo-card {
    min-height: 300px;
  }
  .about-logo-card img {
    width: min(54%, 190px);
  }
}


/* Layout polish pass */
html { scroll-padding-top: 104px; }
body { overflow-x: clip; }
main section[id] { scroll-margin-top: 104px; }
.hero-grid > *, .safety-grid > *, .schools-layout > *, .about-layout > *, .request-layout > *, .faq-layout > * { min-width: 0; }

/* Keep the accessibility link fully off-canvas until keyboard focus. */
.skip-link { top: -100px; transform: none; transition: top .16s ease; }
.skip-link:focus { top: 12px; }

/* Anchor the compact navigation to the header instead of hard-coded viewport offsets. */
.header-inner { position: relative; }
@media (max-width: 1000px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit-card:last-child { grid-column: auto; }
}

/* Match the two photo cards so the row reads as one intentional unit. */
.photo-story-card { display: flex; flex-direction: column; }
.photo-story-card img,
.photo-story-card:last-child img { aspect-ratio: 16 / 9; }
.photo-story-copy { flex: 1; }

/* Keep the copyright on one line instead of splitting the symbol, year, and name. */
.footer-bottom > span:first-child,
.footer-bottom > span:first-child #year { display: inline; margin: 0; }
.footer-brand img { max-width: 100%; height: auto; }

@media (max-width: 820px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .about-logo-card { width: min(620px, 100%); margin-inline: auto; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 92px; }
  body { padding-bottom: 0; }
  main section[id] { scroll-margin-top: 92px; }
  .main-nav { top: calc(100% + 8px); }
  .hero { padding: 48px 0 62px; }
  .hero h1 { font-size: clamp(2.72rem, 12.4vw, 3.35rem); line-height: .98; }
  .hero-text { margin-top: 22px; font-size: 1.05rem; line-height: 1.62; }
  .hero-actions { margin-top: 28px; }
  .hero-points { margin-top: 31px; }
  .hero-grid { gap: 45px; }
  .photo-frame { height: auto; aspect-ratio: 4 / 5; }
  .hero-card { width: 100%; margin: 14px 0 0; padding: 17px 18px; }
  .section { padding: 68px 0; }
  .section-heading h2,
  .safety-copy h2,
  .schools-copy h2,
  .about-copy h2,
  .request-intro h2,
  .faq-heading h2 { font-size: clamp(2rem, 9.5vw, 2.7rem); line-height: 1.04; }
  .section-heading > p:last-child { font-size: 1rem; }
  .benefit-card { padding: 29px 27px; }
  .safety-image { height: auto; aspect-ratio: 4 / 5; }
  .photo-showcase-grid { gap: 18px; }
  .photo-story-copy { padding: 19px 20px 22px; }
  .schools-layout, .about-layout, .request-layout, .faq-layout { gap: 36px; }
  .school-card, .ride-form { padding: 22px; }
  .about-logo-card { min-height: 270px; padding: 28px 20px; }
  .about-logo-card img { width: min(50%, 170px); }
  .about-label { width: 82px; height: 82px; }
  .about-label strong { font-size: 1.35rem; }
  .call-card { max-width: none; }
  .closing-cta { padding: 54px 0; }
  .site-footer { padding-top: 50px; }
  .footer-bottom { gap: 10px; }
  .mobile-actions { display: none !important; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand,
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { margin-top: 30px; }
}

@media (max-width: 380px) {
  .container { width: min(calc(100% - 22px), var(--max)); }
  .logo-link, .logo-link img { width: 68px; }
  .header-inner { min-height: 72px; }
  .hero h1 { font-size: 2.55rem; }
  .days-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .days-grid span { font-size: .68rem; }
}

/* Removed the large decorative logo/Est. 2001 panel from the About section. */
.about-layout {
  grid-template-columns: 1fr;
  max-width: 920px;
}
.about-copy {
  max-width: 780px;
}

/* School dropdown update */
.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Fix the familiar-face card alignment and text wrapping. */
.hero-card {
  align-items: center;
}

.hero-card > .hero-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  flex: 0 0 48px;
  color: var(--navy-dark);
  font-size: 1.15rem;
  line-height: 1;
}

.hero-card > div {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-card > div > strong,
.hero-card > div > span {
  display: block;
}

.hero-card > div > strong {
  color: var(--navy-dark);
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-card > div > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .hero-card {
    gap: 13px;
    padding: 16px;
    border-radius: 19px;
  }

  .hero-card > .hero-card-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .hero-card > div > strong {
    font-size: 1rem;
  }

  .hero-card > div > span {
    font-size: .86rem;
  }
}

/* Definitive familiar-face card repair */
.hero-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
}

.hero-card-icon {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  min-width: 52px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.hero-card-copy {
  min-width: 0;
}

.hero-card-copy strong,
.hero-card-copy span {
  display: block;
  margin: 0;
}

.hero-card-copy strong {
  color: var(--navy-dark);
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-card-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 600px) {
  .hero-card {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 13px;
    width: calc(100% - 20px);
    margin: 14px 10px 0;
    padding: 15px 16px;
  }

  .hero-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
  }

  .hero-card-copy strong {
    font-size: .98rem;
  }

  .hero-card-copy span {
    font-size: .84rem;
  }
}

/* Center the remaining school-day photo card after removing the vehicle card. */
.photo-showcase-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}


/* English / Spanish language controls */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-pale);
}

.language-switcher a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--navy-dark);
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher a:hover {
  color: var(--blue);
}

.language-switcher a[aria-current="true"] {
  background: var(--navy);
  color: var(--white);
}

.translation-disclaimer {
  border-bottom: 1px solid #eed36c;
  background: #fff6c9;
  color: #493b00;
}

.translation-disclaimer .container {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: .84rem;
  line-height: 1.45;
}

.translation-disclaimer strong {
  color: var(--navy-dark);
}

@media (max-width: 900px) {
  .main-nav .language-switcher {
    margin: 4px 0;
    justify-self: stretch;
  }

  .language-switcher a {
    flex: 1 1 50%;
  }
}

@media (max-width: 520px) {
  .translation-disclaimer .container {
    align-items: flex-start;
    font-size: .78rem;
  }
}

.r4s-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.ride-form button[disabled]{opacity:.65;cursor:wait}
