/* ===== Care Ride Mobility Design Tokens ===== */
:root {
  --green: #2f9e52;
  --green-dark: #237a3f;
  --orange: #e8622c;
  --orange-dark: #c94e1f;
  --purple: #5b2a7d;
  --purple-dark: #431f5c;
  --ink: #1c1a1f;
  --cream: #fbf7f2;
  --cream-deep: #f3ecf7;
  --white: #ffffff;

  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --container-max: 1280px;
  --radius-lg: 1.75rem;
  --radius-md: 1.5rem;
  --radius-sm: 1rem;
  --shadow-sm: 0 1px 3px rgba(28, 26, 31, 0.06), 0 1px 2px rgba(28, 26, 31, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(28, 26, 31, 0.12), 0 8px 10px -6px rgba(28, 26, 31, 0.06);
  --shadow-lg: 0 25px 50px -12px rgba(28, 26, 31, 0.25);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; color: var(--ink); }
p { margin: 0; }

/* Visible focus everywhere: this site is used by keyboard and screen reader. */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 0.35rem;
}
.btn-primary:focus-visible { outline-color: var(--ink); }
.section--ink :focus-visible, .cta-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 4.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--deep { background: var(--cream-deep); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.85); }
/* Headings default to ink, which is invisible on the dark sections and panels. */
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4,
.cta-panel h1, .cta-panel h2, .cta-panel h3, .cta-panel h4 { color: var(--white); }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-title {
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 0.6rem;
}
.section-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: rgba(28, 26, 31, 0.65);
}
.section--ink .section-lead { color: rgba(255, 255, 255, 0.65); }
.section-header { max-width: 42rem; margin: 0 auto; text-align: center; }

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 25px -8px rgba(232, 98, 44, 0.55);
}
.btn-primary:hover { transform: scale(1.05); background: var(--orange-dark); }

.btn-outline {
  border-color: var(--purple);
  color: var(--purple);
  background: transparent;
}
.btn-outline:hover { background: var(--purple); color: var(--white); }

.section--ink .btn-outline { border-color: rgba(255, 255, 255, 0.8); color: var(--white); }
.section--ink .btn-outline:hover { background: var(--white); color: var(--purple); }

.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; }
.btn-lg svg { width: 1.4rem; height: 1.4rem; }

/* The email address is long; on a narrow phone let it shrink rather than run off the screen. */
@media (max-width: 479px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .btn-outline { font-size: 0.95rem; padding-inline: 1rem; }
}

.cta-panel .btn-outline { border-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.cta-panel .btn-outline:hover { background: var(--white); color: var(--purple); }

.inline-link { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(28, 26, 31, 0.08);
  color: rgba(28, 26, 31, 0.7);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ===== Icons ===== */
.icon { width: 1.4rem; height: 1.4rem; }
.icon-badge {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  color: var(--white);
  transition: transform 0.3s ease;
}
.icon-badge svg { width: 1.75rem; height: 1.75rem; }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-purple { background: var(--purple); }

/* ===== Header ===== */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--purple); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0.6rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(28, 26, 31, 0.06), 0 6px 16px -10px rgba(28, 26, 31, 0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 4.75rem;
}
/* The logo is a wide picture (triangles + name), so it is sized by height and keeps its width. */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 3.1rem; width: auto; }

.main-nav { display: none; align-items: center; gap: 1.75rem; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: rgba(28, 26, 31, 0.8); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--purple); }

.header-contact { display: flex; align-items: center; gap: 1.25rem; }
.header-email { display: none; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; color: var(--purple); }
.header-email:hover { text-decoration: underline; }
.header-email .icon { width: 1.2rem; height: 1.2rem; }

/* The phone number is the most important thing on the page: big, bold, in every view. */
.header-cta {
  min-height: 3rem;
  padding: 0.6rem 1.05rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  gap: 0.45rem;
}

/* On phones and tablets the email gets its own full-width strip under the logo row. */
.mobile-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-email .icon { width: 1.15rem; height: 1.15rem; }

/* Anchored sections must not hide under the sticky header. */
main section[id] { scroll-margin-top: 8rem; }

@media (max-width: 369px) {
  .brand img { height: 2.6rem; }
  .header-cta { font-size: 0.98rem; padding: 0.55rem 0.8rem; }
}
@media (min-width: 640px) {
  .brand img { height: 3.6rem; }
  .header-cta { font-size: 1.25rem; padding: 0.75rem 1.5rem; }
}
@media (min-width: 1024px) {
  .header-inner { height: 5.5rem; }
  .brand img { height: 4rem; }
  .main-nav { display: flex; }
}
@media (min-width: 1200px) {
  .header-email { display: inline-flex; }
  .mobile-email { display: none; }
  main section[id] { scroll-margin-top: 6rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-heading {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-top: 1.1rem;
}
.hero-heading .accent { display: block; color: var(--purple); }
.hero-lead {
  margin-top: 1.1rem;
  max-width: 32rem;
  font-size: 1.1rem;
  color: rgba(28, 26, 31, 0.7);
}
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-chips { margin-top: 1.5rem; }
.hero-note { margin-top: 0.9rem; font-size: 0.95rem; color: rgba(28, 26, 31, 0.65); }

.hero-media { position: relative; }
.hero-media-inner { position: relative; animation: float 6s ease-in-out infinite; }
.hero-media-glow {
  position: absolute;
  inset: -1rem;
  border-radius: 2.25rem;
  background: linear-gradient(135deg, rgba(47, 158, 82, 0.2), rgba(232, 98, 44, 0.15), rgba(91, 42, 125, 0.2));
  filter: blur(20px);
}
.hero-media img {
  position: relative;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 1.1rem;
  box-shadow: var(--shadow-md);
}
.hero-badge-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(47, 158, 82, 0.15);
  color: var(--green);
  font-weight: 700;
  font-size: 1.2rem;
}
.hero-badge strong { display: block; font-size: 0.9rem; font-weight: 700; }
.hero-badge span { font-size: 0.75rem; color: rgba(28, 26, 31, 0.6); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (min-width: 640px) {
  .hero-heading { font-size: 3rem; }
  .hero-media img { height: 400px; }
  .hero-badge { display: flex; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-heading { font-size: 3.5rem; }
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-deep), var(--cream));
}
.page-hero .section-eyebrow { color: var(--orange); }
.page-hero h1 { font-size: 2.25rem; margin-top: 0.6rem; }
.page-hero p { margin-top: 0.9rem; font-size: 1.1rem; color: rgba(28, 26, 31, 0.65); max-width: 36rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }

/* ===== Grids & Cards ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid rgba(28, 26, 31, 0.05);
  border-radius: 1.5rem;
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover .icon-badge { transform: scale(1.1) rotate(3deg); }
.card h3 { font-size: 1.2rem; margin-top: 1.1rem; }
.card p { margin-top: 0.6rem; color: rgba(28, 26, 31, 0.65); }

.service-detail {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(28, 26, 31, 0.08);
}
.service-detail:last-child { border-bottom: none; }
.service-detail img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); height: 260px; width: 100%; object-fit: cover; }
.service-detail h3 { font-size: 1.5rem; margin-top: 1rem; }
.service-detail p { margin-top: 0.75rem; color: rgba(28, 26, 31, 0.65); font-size: 1.05rem; }
.service-detail ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.service-detail li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: rgba(28, 26, 31, 0.75); }
.service-detail .section-title { margin-top: 0.6rem; }
.service-detail li svg { width: 1.1rem; height: 1.1rem; color: var(--green); flex-shrink: 0; }
@media (min-width: 768px) {
  .service-detail { grid-template-columns: 1fr 1fr; }
  .service-detail.is-reverse .service-detail-media { order: 2; }
}

/* ===== About: values ===== */
.values { display: grid; gap: 1rem; margin-top: 2rem; }
.values li { padding: 1.1rem 1.25rem; background: var(--white); border-radius: var(--radius-sm); border-left: 4px solid var(--green); color: rgba(28, 26, 31, 0.75); }
.values li:nth-child(2) { border-left-color: var(--orange); }
.values li:nth-child(3) { border-left-color: var(--purple); }
.values strong { color: var(--ink); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }

/* ===== Booking checklist ===== */
.checklist { max-width: 40rem; margin: 3rem auto 0; height: auto; }
.checklist:hover { transform: none; }
.checklist h3 { margin-top: 0; }
.checklist ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: rgba(28, 26, 31, 0.75); }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.3rem;
  width: 0.55rem; height: 0.95rem;
  border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { height: 18rem; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(28, 26, 31, 0.75), transparent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== How it works ===== */
.steps { position: relative; margin-top: 3rem; }
.steps-line { display: none; }
.step-item { text-align: center; }
.step-number {
  margin: 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.step-item h3 { margin-top: 1.1rem; font-size: 1.1rem; }
.step-item p { margin-top: 0.5rem; color: rgba(28, 26, 31, 0.65); }
@media (min-width: 640px) {
  .steps-line { display: block; position: absolute; top: 1.5rem; left: 10%; right: 10%; border-top: 2px dashed rgba(28, 26, 31, 0.15); }
}

/* ===== Testimonials ===== */
.testimonial-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-top: 4px solid var(--green);
  border-radius: 1.5rem;
  padding: 2rem;
}
.testimonial-card.accent-purple { border-top-color: var(--purple); }
.testimonial-card svg { width: 2rem; height: 2rem; color: rgba(232, 98, 44, 0.7); }
.testimonial-card p { margin-top: 1rem; font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.testimonial-card strong { display: block; margin-top: 1.5rem; font-family: var(--font-display); }

/* ===== Contact / CTA ===== */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 2.5rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.cta-panel h2 { font-size: 2rem; }
.cta-panel p { margin-top: 1rem; max-width: 34rem; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; }
.cta-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-meta { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.cta-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cta-meta svg { width: 1rem; height: 1rem; }
@media (min-width: 768px) { .cta-panel h2 { font-size: 2.5rem; } }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); }
.footer-top { display: flex; flex-direction: column; gap: 2rem; padding-block: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; object-fit: cover; }
.footer-brand strong { display: block; font-family: var(--font-display); color: var(--white); }
.footer-brand small { color: rgba(255, 255, 255, 0.5); }
.footer-contact { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-contact a { display: inline-block; padding-block: 0.5rem; font-size: 1.05rem; font-weight: 600; color: var(--white); }
.footer-contact a:first-child { font-size: 1.35rem; color: var(--orange); }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.45);
}
@media (min-width: 640px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ===== Scroll reveal =====
   Elements are visible by default so content never depends on JS running.
   JS adds "js-armed" only once it's ready to animate + observe. */
.js-armed.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js-armed.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
