/* ===== Brand palette from logo ===== */
:root {
  --ink: #0E2E3A;
  --teal: #1F3F4F;
  --coral: #E47650;
  --beige: #F9F2E4;
  --gold: #F6B657;
  --muted: #64748b;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 .5rem;
}
.h1 {
  font-size: clamp(28px, 4vw, 40px);
}

/* ===== Reusable page hero (FAQ, About, Turo, etc.) ===== */
.rby-page-hero {
  text-align: center;
  padding: 56px 20px 28px;
}
.rby-page-hero h1 {
  margin-bottom: .35rem;
}
.rby-page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: #475569;
}

/* ===== Sticky header with no hamburger ===== */
.rby-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .03);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 20px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-wrap img {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.primary-menu .menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu .menu a {
  font-weight: 600;
}
.nav-toggle {
  display: none !important;
}
@media (max-width: 720px) {
  .logo-wrap > *:not(img) {
    display: none !important;
  }
}

/* ===== Homepage hero ===== */
.hero {
  background: linear-gradient(180deg, #fefaf3 0%, #ffffff 65%, #ffffff 100%);
  padding: 72px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero > div {
  max-width: 520px;
}
.hero p {
  margin-top: .35rem;
  color: #334155;
}
.hero .cta-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-img {
  order: -1;
  width: 450px;
  height: 450px;
  border-radius: 9999px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .hero-img {
    width: 200px;
    height: 200px;
  }
}

/* ===== Site sections ===== */
.home-content {
  padding: 20px;
}
section > h2 {
  margin-bottom: 1rem;
}
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

/* ===== Buttons ===== */
.cta {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.cta:hover {
  background: #17313d;
  text-decoration: none;
}
.cta.cta-alt {
  background: var(--coral);
}
.cta.cta-alt:hover {
  background: #cc6846;
}

/* ===== Forms ===== */
label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  background: #17313d;
}
.notice {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
}

/* ===== Testimonials: carousel ===== */
.rby-testimonials {
  margin-top: 2.75rem;
  padding: 0 20px;
}
.rby-testimonials h2 {
  margin-bottom: 1rem;
}
.rby-testimonials .rby-t-list {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
  padding: 0;
}
.rby-testimonials .rby-t-track {
  display: flex;
  transition: transform .4s ease;
  will-change: transform;
}
.rby-quote {
  flex: 0 0 100%;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 14px 16px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .03);
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .rby-quote {
    padding-left: 120px;
    padding-right: 120px;
  }
}
.rby-quote p {
  margin: 0 0 .5rem;
  font-size: 0.9rem;
}
.rby-quote small {
  color: #64748b;
  font-size: 0.8rem;
}
.rby-quote-pic {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.rby-footer {
  margin-top: 48px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Fleet (default shortcode output) ===== */
.rby-fleet .rby-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rby-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.rby-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f4f6;
}
.rby-card-body {
  padding: 14px;
}
.rby-price {
  color: #64748b;
  margin: .25rem 0 .5rem;
}

/* ===== Responsive Fleet Cards for Turo Page ===== */
body.page-template-page-turo .rby-fleet .rby-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}
body.page-template-page-turo .rby-fleet .rby-card {
  border-radius: 16px;
  min-height: 380px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
}
body.page-template-page-turo .rby-fleet .rby-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
@media (min-width: 700px) {
  body.page-template-page-turo .rby-fleet .rby-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
  body.page-template-page-turo .rby-fleet .rby-card img {
    height: 250px;
  }
  body.page-template-page-turo .rby-fleet .rby-card {
    min-height: 420px;
  }
}
@media (min-width: 1024px) {
  body.page-template-page-turo .rby-fleet .rby-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

/* ===== Homepage Fleet slider (make fleet behave like testimonials) ===== */
.home .rby-fleet .rby-grid,
.home-blog .rby-fleet .rby-grid {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block; /* override grid */
  padding: 0;
  gap: 0;
}
.home .rby-fleet .rby-f-track,
.home-blog .rby-fleet .rby-f-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.home .rby-fleet .rby-card,
.home-blog .rby-fleet .rby-card {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* make slider images taller and centered on home slider only */
.home .rby-fleet .rby-card img,
.home-blog .rby-fleet .rby-card img {
  object-fit: contain;
  object-position: center;
  background: #f3f4f6;
  height: 240px;
}
@media (min-width: 1100px) {
  .home .rby-fleet .rby-card img,
  .home-blog .rby-fleet .rby-card img {
    height: 260px;
  }
}

/* ===== FAQ page ===== */
.rby-faq {
  margin-top: 1.5rem;
}
.rby-faq-intro {
  color: #475569;
  margin-bottom: 1.5rem;
}
/* auto-balance items into 2 columns */
.rby-faq-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.rby-faq-col {
  /* we keep the markup but let the grid place children */
  display: contents;
}
.rby-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.rby-faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rby-faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.rby-faq-q::after {
  content: "+";
  font-weight: 700;
  color: var(--teal);
}
.rby-faq-item.active .rby-faq-q::after {
  content: "−";
}
.rby-faq-q:hover {
  background: #f8fafc;
  color: #0E2E3A;
}
.rby-faq-item.active .rby-faq-q {
  background: #fff;
  color: #0E2E3A;
}
.rby-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 16px;
}
.rby-faq-item.active .rby-faq-a {
  padding: 0 16px 14px;
  max-height: 600px;
}
.rby-faq-a p,
.rby-faq-a ul {
  margin: .4rem 0;
}
.rby-faq-a ul {
  padding-left: 1.2rem;
}
@media (max-width: 640px) {
  .rby-faq {
    padding-left: 0;
    padding-right: 0;
  }
}
