/*
Theme Name: CarryU
Theme URI: https://carryuapp.com/
Author: TechX
Author URI: https://techxdevelopers.com/
Description: Marketing theme for CarryU, a California transportation network company. Rider and driver landing pages, a driver training centre, an interactive fare estimator, and schema.org output for local and AI search.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carryu
Tags: business, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* CarryU — carryuapp.com
   Brand: teal #0D968D / mint #64D9D0 / ink #06201F, amber #FFB020 for driver-facing paths.
   Type: Archivo (variable width + weight), one family throughout. */

:root {
  --ink: #06201F;
  --ink-2: #123C39;
  --teal: #0D968D;
  --teal-dk: #08635E;
  --mint: #64D9D0;
  --amber: #FFB020;
  --amber-lt: #FFC85C;
  --amber-dk: #8A5A00;
  --paper: #FFFFFF;
  --fog: #EDF5F4;
  --fog-2: #DCEAE8;
  --line: #C9DEDB;
  --muted: #5B7370;

  --gut: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --r: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

h1, h2, h3, h4 {
  font-variation-settings: "wdth" 112;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 750; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; font-variation-settings: "wdth" 100; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 66ch; }
a { color: var(--teal-dk); }

.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.55; }

/* ---------------------------------------------------------------- header */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { display: block; }
.brand b { font-size: 1.32rem; font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -.03em; }
.brand b i { font-style: normal; color: var(--teal); }

.nav { margin-left: auto; display: flex; align-items: center; }
.nav-panel { display: flex; align-items: center; gap: 26px; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 26px;
}
.nav-list li { margin: 0; }
.nav-list a, .nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem;
  white-space: nowrap;
}
.nav-list a:hover, .nav a:not(.btn):hover {
  color: var(--teal-dk); text-decoration: underline; text-underline-offset: 4px;
}
.nav-list .current-menu-item > a { color: var(--teal-dk); }
.nav-cta { white-space: nowrap; }

/* hamburger — only ever shown once nav.js has taken over */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-left: 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  cursor: pointer; align-items: center; justify-content: center; flex: none;
}
.nav-bars { display: block; width: 20px; }
.nav-bars i {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .22s cubic-bezier(.22,.7,.28,1), opacity .16s ease;
}
.nav-bars i + i { margin-top: 5px; }
.nav.is-open .nav-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-bars i:nth-child(2) { opacity: 0; }
.nav.is-open .nav-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 859px) {
  .js-nav .nav-toggle { display: flex; }
  .js-nav .nav-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(6,32,31,.12);
    padding: 8px var(--gut) 22px;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s cubic-bezier(.22,.7,.28,1), visibility .2s;
  }
  .js-nav .nav.is-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
  .js-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js-nav .nav-list a {
    display: block; padding: 15px 2px; font-size: 1.06rem; font-weight: 600;
    border-bottom: 1px solid var(--fog-2);
  }
  .js-nav .nav-cta { display: block; text-align: center; margin-top: 18px; padding: 15px 26px; }
  .masthead .wrap { position: relative; }
}

/* no JavaScript: links stay visible, just wrapped */
@media (max-width: 859px) {
  .nav-panel { flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
  .nav-list { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 520px) {
  .masthead .wrap { flex-wrap: wrap; row-gap: 10px; padding-block: 10px; }
  .js-nav .masthead .wrap { flex-wrap: nowrap; row-gap: 0; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--r);
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dk); }
.btn-amber { background: var(--amber); color: #2A1D00; }
.btn-amber:hover { background: #E89A00; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(64px, 11vw, 132px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lede { color: #BEE0DC; }
.hero-map { position: absolute; inset: 0; z-index: 1; opacity: .5; }
.hero-map svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--ink) 32%, rgba(6,32,31,.72) 62%, rgba(6,32,31,.35) 100%);
}
.route { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .route { stroke-dashoffset: 0; animation: none; } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 34px; font-size: .93rem; color: #9FCBC6; }

/* ---------------------------------------------------------------- sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.band-fog { background: var(--fog); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: #BEE0DC; }

.head { margin-bottom: 40px; }
.head p { color: var(--muted); }
.band-ink .head p { color: #9FCBC6; }

/* two audiences: rider (teal) vs driver (amber) */
.split { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.lane { background: var(--paper); padding: clamp(28px, 4vw, 48px); }
.lane h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lane-rider { border-top: 6px solid var(--teal); }
.lane-driver { border-top: 6px solid var(--amber); }
.lane ul { list-style: none; padding: 0; margin: 0 0 28px; }
.lane li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--fog-2); position: relative; }
.lane li::before {
  content: ""; position: absolute; left: 4px; top: 20px;
  width: 9px; height: 9px; border-radius: 50%;
}
.lane-rider li::before { background: var(--teal); }
.lane-driver li::before { background: var(--amber); }

/* steps — genuine sequence, so numbers are earned */
.steps { counter-reset: s; display: grid; gap: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: s; padding: 26px 24px 26px 0; border-top: 3px solid var(--ink); }
@media (min-width: 760px) { .step { padding-right: 32px; } }
.step::before {
  content: counter(s); display: block; font-size: 2.4rem; font-weight: 800;
  font-variation-settings: "wdth" 118; line-height: 1; color: var(--teal); margin-bottom: 12px;
}
.step h3 { margin-bottom: .35em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* requirement checklist */
.reqs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.req { display: grid; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .req { grid-template-columns: 280px 1fr; } }
.req h3 { margin: 0; font-size: 1.06rem; }
.req p { margin: 0; color: var(--muted); font-size: .95rem; }

/* training modules */
.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .modules { grid-template-columns: repeat(2, 1fr); } }
.module { background: var(--paper); padding: 28px; display: flex; flex-direction: column; }
.module .tag { font-size: .8rem; font-weight: 700; color: var(--amber-dk); margin-bottom: 10px; }
.module h3 { margin-bottom: .4em; }
.module p { font-size: .95rem; color: var(--muted); flex: 1; }
.module .cite { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--fog-2); padding-top: 12px; margin-top: 14px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 34px 20px 0; font-weight: 650; font-size: 1.06rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 17px; font-size: 1.5rem; font-weight: 400;
  color: var(--teal); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 20px; margin: 0; color: var(--ink-2); }

/* callout */
.note { border-left: 4px solid var(--amber); background: #FFF8E8; padding: 20px 24px; }
.note p:last-child { margin-bottom: 0; }
.note.ink { background: #0B2B29; border-left-color: var(--mint); }

/* footer */
.foot { background: var(--ink); color: #9FCBC6; padding-block: 64px 40px; font-size: .93rem; }
.foot a { color: #CDE8E5; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; font-variation-settings: "wdth" 100; }
.foot-cols { display: grid; gap: 34px; margin-bottom: 48px; }
@media (min-width: 720px) { .foot-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot ul, .foot .foot-menu { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; }
.foot-base { border-top: 1px solid #1C4340; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 26px; }

address { font-style: normal; }

/* ---------------------------------------------------------------- logo */
.logo { display: block; height: 30px; width: auto; }
.foot .logo { height: 34px; }
@media (max-width: 560px) { .logo { height: 26px; } }

/* ---------------------------------------------------------------- app showcase */
.showcase { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 1fr; gap: 64px; } }
.showcase.flip .showcase-copy { order: 2; }
.phones { display: flex; gap: 20px; justify-content: center; }
.phones img { width: 100%; max-width: 250px; height: auto; display: block; filter: drop-shadow(0 22px 44px rgba(6,32,31,.28)); }
.phone-single img { max-width: 285px; }
.showcase-copy ul { list-style: none; padding: 0; margin: 0 0 26px; }
.showcase-copy li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--fog-2); }
.band-ink .showcase-copy li { border-bottom-color: #1C4340; }
.showcase-copy li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.band-ink .showcase-copy li::before { background: var(--mint); }

/* ---------------------------------------------------------------- coverage */
.metros { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .metros { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .metros { grid-template-columns: repeat(4, 1fr); } }
.metro { background: var(--paper); padding: 22px 20px; }
.metro h3 { font-size: 1rem; margin-bottom: .35em; }
.metro p { font-size: .89rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ================================================================ MOTION
   Everything below is decorative. If the visitor asks for reduced motion
   (see the block at the end) it all resolves to the static end state. */

/* --- scroll reveal ------------------------------------------------ */
.motion-on [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,.7,.28,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.motion-on [data-reveal].is-in { opacity: 1; transform: none; }
.motion-on [data-reveal="left"]  { transform: translateX(-26px); }
.motion-on [data-reveal="right"] { transform: translateX(26px); }
.motion-on [data-reveal="scale"] { transform: scale(.96); }

/* --- masthead condenses on scroll --------------------------------- */
.masthead { transition: box-shadow .3s ease, background-color .3s ease; }
.masthead .wrap { transition: min-height .3s cubic-bezier(.22,.7,.28,1); }
.masthead .logo { transition: height .3s cubic-bezier(.22,.7,.28,1); }
.masthead.is-stuck { box-shadow: 0 6px 24px rgba(6,32,31,.10); }
.masthead.is-stuck .wrap { min-height: 56px; }
.masthead.is-stuck .logo { height: 25px; }

/* --- hero ---------------------------------------------------------- */
.hero h1, .hero .lede, .hero .btns, .hero-meta { position: relative; }
.motion-on .hero-rise { opacity: 0; transform: translateY(26px); animation: rise .85s cubic-bezier(.22,.7,.28,1) forwards; }
.hero h1.hero-rise      { animation-delay: .10s; }
.hero .lede.hero-rise   { animation-delay: .24s; }
.hero .btns.hero-rise   { animation-delay: .36s; }
.hero-meta.hero-rise    { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.pin-drop { transform-origin: center; animation: pinDrop .6s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes pinDrop { from { transform: translateY(-22px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulseRing 2.6s ease-out infinite; }
@keyframes pulseRing {
  0%   { transform: scale(.5); opacity: .85; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.grid-shift { animation: gridShift 26s linear infinite; }
@keyframes gridShift { to { transform: translateX(-120px); } }

/* --- city ticker --------------------------------------------------- */
.ticker {
  border-top: 1px solid rgba(158,203,198,.22);
  border-bottom: 1px solid rgba(158,203,198,.22);
  background: rgba(4,24,23,.55);
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.ticker-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: none; }
.ticker span {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 0; margin-right: 34px;
  color: #A9D4CF; font-size: .93rem; font-weight: 550; white-space: nowrap;
}
.ticker span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --- phones float --------------------------------------------------- */
.phones img { transition: transform .5s cubic-bezier(.22,.7,.28,1); }
.phone-float img { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phones img:hover { transform: translateY(-8px) scale(1.015); }

/* --- buttons -------------------------------------------------------- */
.btn { transition: background-color .18s ease, color .18s ease, transform .18s cubic-bezier(.22,.7,.28,1), box-shadow .18s ease; }
.btn-teal:hover, .btn-amber:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6,32,31,.22); }
.btn:active { transform: translateY(0); }

/* --- steps: the connecting rule draws in ---------------------------- */
.step { position: relative; }
.motion-on .step::after {
  content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0;
  background: var(--teal); transition: width .7s cubic-bezier(.22,.7,.28,1);
  transition-delay: var(--d, 0ms);
}
.motion-on .step.is-in::after { width: 100%; }

/* --- lists tick in one by one --------------------------------------- */
.motion-on .lane li, .motion-on .showcase-copy li { opacity: 0; transform: translateX(-10px); transition: opacity .45s ease, transform .45s ease; }
.motion-on .lane.is-in li, .motion-on .showcase-copy.is-in li { opacity: 1; transform: none; }
.motion-on .lane.is-in li:nth-child(1), .motion-on .showcase-copy.is-in li:nth-child(1) { transition-delay: .08s; }
.motion-on .lane.is-in li:nth-child(2), .motion-on .showcase-copy.is-in li:nth-child(2) { transition-delay: .16s; }
.motion-on .lane.is-in li:nth-child(3), .motion-on .showcase-copy.is-in li:nth-child(3) { transition-delay: .24s; }
.motion-on .lane.is-in li:nth-child(4), .motion-on .showcase-copy.is-in li:nth-child(4) { transition-delay: .32s; }

/* --- coverage cards -------------------------------------------------- */
.metro { transition: background-color .25s ease, transform .25s cubic-bezier(.22,.7,.28,1); position: relative; }
.metro:hover { background: #F7FCFB; transform: translateY(-3px); z-index: 2; }
.metro h3 { display: flex; align-items: center; gap: 9px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--teal); animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse { 0% { transform: scale(1); opacity: .6; } 70%,100% { transform: scale(3); opacity: 0; } }

/* --- modules + requirement rows -------------------------------------- */
.module { transition: background-color .25s ease; }
.module:hover { background: #F7FCFB; }
.req { transition: padding-left .25s ease; }
.req:hover { padding-left: 10px; }

/* --- faq ------------------------------------------------------------- */
.faq summary::after { transition: transform .25s ease, color .25s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] p { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- respect the setting --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].is-in,
  .motion-on [data-reveal], .motion-on [data-reveal].is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-rise, .motion-on .hero-rise { opacity: 1 !important; transform: none !important; animation: none !important; }
  .lane li, .showcase-copy li,
  .motion-on .lane li, .motion-on .showcase-copy li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .step::after, .motion-on .step::after { width: 100% !important; transition: none !important; }
  .ticker-track, .phone-float img, .pulse-ring, .grid-shift, .live-dot::after { animation: none !important; }
  .phones img:hover, .btn:hover, .metro:hover { transform: none !important; }
}

/* ================================================================ SIGNATURE MOTION */

/* --- trip progress: the page itself is a route ---------------------- */
.trip-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: rgba(158,203,198,.20); pointer-events: none;
}
.trip-progress i {
  display: block; height: 100%; width: 0; background: var(--teal);
  position: relative; transition: width .08s linear;
}
.trip-progress i::after {
  content: ""; position: absolute; right: -5px; top: -3.5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px rgba(100,217,208,.32);
}
.masthead.is-stuck ~ * .trip-progress { opacity: 1; }

/* --- hero destination field ------------------------------------------ */
.destino {
  margin-top: 30px; max-width: 460px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(158,203,198,.32);
  border-radius: 10px; padding: 15px 18px;
  display: flex; align-items: center; gap: 14px;
  backdrop-filter: blur(6px);
}
.destino .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; }
.destino .label { color: #7FB5B0; font-size: .74rem; font-weight: 650; letter-spacing: .04em; }
.destino .where { color: #fff; font-weight: 650; font-size: 1.06rem; min-height: 1.4em; }
.destino .caret {
  display: inline-block; width: 2px; height: 1.05em; background: var(--mint);
  vertical-align: -2px; margin-left: 3px; animation: blink 1.05s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.destino .fare { margin-left: auto; text-align: right; flex: none; }
.destino .fare b { display: block; color: var(--mint); font-size: 1.24rem; font-variation-settings: "wdth" 112; }
.destino .fare span { color: #7FB5B0; font-size: .72rem; }

/* --- count-up strip --------------------------------------------------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: 30px 24px; }
.stat b {
  display: block; font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800;
  font-variation-settings: "wdth" 118; line-height: 1; color: var(--teal);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.stat p { margin: 10px 0 0; font-size: .93rem; color: var(--muted); line-height: 1.45; }

/* --- fare estimator ---------------------------------------------------- */
.est { display: grid; gap: 28px; }
@media (min-width: 860px) { .est { grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; } }
.est-controls label { display: block; font-size: .82rem; font-weight: 650; color: var(--muted); margin-bottom: 7px; }
.est-controls select, .est-controls input[type="range"] { width: 100%; }
.est-controls select {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
  appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--teal) 50%),linear-gradient(135deg,var(--teal) 50%,transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.est-field { margin-bottom: 20px; }
.est-toggle { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.est-toggle button {
  flex: 1; padding: 12px 8px; border: 0; background: var(--paper); font: inherit;
  font-weight: 600; font-size: .93rem; color: var(--muted); cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.est-toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; }
input[type="range"] { accent-color: var(--teal); height: 30px; }

.est-out { background: var(--ink); color: #fff; padding: 30px; border-radius: 10px; }
.est-out .amount {
  font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 800; line-height: 1;
  font-variation-settings: "wdth" 118; color: var(--mint);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.est-out .amount small { font-size: .34em; color: #7FB5B0; font-weight: 600; margin-left: 8px; letter-spacing: 0; }
.est-rows { margin-top: 24px; border-top: 1px solid #1C4340; }
.est-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #1C4340; font-size: .93rem; }
.est-row span { color: #9FCBC6; }
.est-row b { font-variant-numeric: tabular-nums; font-weight: 650; }
.est-row.is-driver b { color: var(--amber-lt); }

.est-track { height: 5px; background: #1C4340; border-radius: 3px; margin-top: 26px; overflow: hidden; }
.est-track i { display: block; height: 100%; background: var(--mint); width: 0; transition: width .45s cubic-bezier(.22,.7,.28,1); }

/* --- insurance period explainer ---------------------------------------- */
.periods { border: 1px solid var(--line); background: var(--paper); }
.period-stage { position: relative; height: 128px; background: var(--fog); overflow: hidden; border-bottom: 1px solid var(--line); }
.period-road { position: absolute; left: 0; right: 0; bottom: 34px; height: 3px; background: var(--line); }
.period-road::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--paper) 0 14px, transparent 14px 30px);
}
.period-car {
  position: absolute; bottom: 26px; left: 4%; width: 62px;
  transition: left 1s cubic-bezier(.4,.05,.3,1);
}
.period-car img { width: 100%; height: auto; display: block; }
.period-flag { position: absolute; bottom: 44px; width: 1px; height: 40px; background: var(--line); }
.period-flag b {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  font-size: .68rem; font-weight: 700; color: var(--muted); white-space: nowrap; padding-bottom: 5px;
}
.period-tabs { display: grid; }
@media (min-width: 700px) { .period-tabs { grid-template-columns: repeat(3, 1fr); } }
.period-tab {
  border: 0; border-right: 1px solid var(--line); background: var(--paper);
  padding: 17px 16px; font: inherit; text-align: left; cursor: pointer;
  border-top: 4px solid transparent; transition: background-color .2s ease, border-color .2s ease;
}
.period-tab:last-child { border-right: 0; }
.period-tab b { display: block; font-weight: 700; font-size: .98rem; }
.period-tab span { font-size: .84rem; color: var(--muted); }
.period-tab[aria-selected="true"] { border-top-color: var(--teal); background: var(--fog); }
.period-body { padding: 30px; border-top: 1px solid var(--line); }
.period-body .cover {
  font-size: clamp(1.5rem,4vw,2.1rem); font-weight: 800; color: var(--teal);
  font-variation-settings: "wdth" 114; line-height: 1.05; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.period-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.period-panel { animation: panelIn .4s cubic-bezier(.22,.7,.28,1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- card tilt ---------------------------------------------------------- */
.metro { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .trip-progress i { transition: none !important; }
  .destino .caret { animation: none !important; }
  .period-car { transition: none !important; }
  .period-panel { animation: none !important; }
  .est-track i { transition: none !important; }
}

/* ================================================================ WORDPRESS */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--paper); clip: auto !important; clip-path: none;
  color: var(--ink); display: block; font-size: 1rem; font-weight: 700;
  height: auto; left: 8px; line-height: normal; padding: 14px 22px;
  text-decoration: none; top: 8px; width: auto; z-index: 100000;
  border-radius: var(--r); box-shadow: 0 4px 16px rgba(6,32,31,.25);
}

.entry { padding-block: clamp(48px,7vw,88px); }
.entry-content { max-width: 70ch; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img, .entry-content iframe { max-width: 100%; height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote {
  border-left: 4px solid var(--teal); margin: 1.6em 0; padding: 4px 0 4px 22px; color: var(--ink-2);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }

.alignleft  { float: left;  margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .86rem; color: var(--muted); }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.pagination .page-numbers {
  padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--ink);
}
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

.post-card { border-bottom: 1px solid var(--line); padding: 28px 0; }
.post-card h2 { font-size: clamp(1.3rem,2.6vw,1.8rem); margin-bottom: .3em; }
.post-card a { text-decoration: none; color: inherit; }
.post-card a:hover h2 { color: var(--teal-dk); }

/* admin bar shouldn't sit on top of the sticky masthead */
.admin-bar .masthead { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .masthead { top: 46px; } }
