/*
 Theme Name: Twenty Twenty-One Child - Ride N Rescue
 Template: twentytwentyone
 Version: 1.1
*/

:root {
  --ink: #17151d;
  --muted: #6c6875;
  --purple: #7418f5;
  --magenta: #c30be5;
  --pale: #f7f3ff;
  --line: #ece7f4;
  --white: #fff;
  --lime: #c8ff62;
  --radius: 24px;
  --shadow: 0 18px 55px rgba(42, 17, 75, 0.10);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff !important;
  max-width: 100%;
  overflow-x: clip;
}

/* WordPress Twenty Twenty-One overrides */
#primary { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.site-main { margin: 0 !important; }

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  min-width: 0;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9b5cf6;
  outline-offset: 3px;
}

@media (hover: none) {
  .btn:hover, .navcta:hover, .service-option:hover {
    transform: none !important;
  }
}

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

/* Header & Topbar Base */
.topbar {
  background: #17151d;
  color: #fff;
  font-size: 12px;
  padding: 10px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.topbar strong { color: #dca7ff; font-weight: 700; }

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img {
  width: 170px;
  height: auto;
  display: block;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
  color: #46414d;
}
.navlinks a:hover { color: var(--purple); }

.navcta, .btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}
.navcta {
  padding: 12px 20px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
}
.navcta:hover, .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(116, 24, 245, 0.27);
}
.menu {
  display: none;
  background: #f4eaff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--purple);
  font-size: 20px;
}

/* General Layout Elements */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { padding: 13px 22px; font-size: 14px; }
.btn.primary {
  background: linear-gradient(105deg, var(--magenta), var(--purple));
  color: #fff;
  box-shadow: 0 8px 20px rgba(116, 24, 245, 0.17);
}
.btn.secondary {
  border: 1px solid #e1d6ee;
  background: #fff;
  color: #30263b;
}
.btn.secondary:hover { border-color: #bd91f4; }
.btn .arrow { font-size: 18px; }

.trustline {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
  color: #696472;
  font-size: 12px;
  font-weight: 650;
}
.trustline span { display: inline-flex; align-items: center; gap: 7px; }
.check {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e6ffd1;
  color: #386d12;
  font-size: 12px;
  font-weight: 900;
}

/* Sections */
section { padding: 88px 0; }
.kicker {
  color: var(--purple);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 850;
}
.section-head {
  text-align: center;
  max-width: 690px;
  margin: 0 auto 42px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 13px 0;
  overflow-wrap: anywhere;
}
.section-head p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 15px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #21182d;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  transition: 0.25s ease;
  z-index: 1000;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive adjustments across tablets and mobiles */
@media (max-width: 900px) {
  section { padding: 68px 0; }
  .topbar .wrap { font-size: 11px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .wrap span:last-child { display: none; }
  .nav { height: 68px; }
  .brand img { width: 145px; }
  .menu { display: block; }
  .navcta { display: none; }
  .navlinks {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 18px;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navlinks.open { display: flex; }
  .navlinks a {
    padding: 14px 8px;
    border-bottom: 1px solid #f1ebf7;
    font-size: 15px;
  }
  .navlinks a:last-child { border: 0; }
  section { padding: 56px 0; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 24px); }
  section { padding: 48px 0; }
  .trustline { flex-direction: column; align-items: flex-start; gap: 8px; }
}