/*
Theme Name: RoadTripDesk
Theme URI: https://roadtripdesk.com
Author: RoadTripDesk
Description: Lightweight block theme for the RoadTripDesk marketing website.
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: roadtripdesk
*/

:root {
  --rtd-ink: #17333a;
  --rtd-muted: #67777a;
  --rtd-cream: #f6f2e9;
  --rtd-paper: #fffdf8;
  --rtd-green: #0c766f;
  --rtd-green-dark: #075e59;
  --rtd-mint: #dcebe5;
  --rtd-line: #d8ddd8;
  --rtd-warm: #e9a64a;
  --rtd-shadow: 0 18px 50px rgba(23, 51, 58, .10);
}

html { scroll-behavior: smooth; }
body { background: var(--rtd-cream); color: var(--rtd-ink); }

.rtd-site-shell {
  position: relative;
  overflow: hidden;
}
.rtd-site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(12,118,111,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 32%, rgba(233,166,74,.09) 0 2px, transparent 3px),
    repeating-radial-gradient(ellipse at 85% 20%, rgba(23,51,58,.035) 0 1px, transparent 1px 13px);
  background-size: 180px 180px, 240px 240px, 420px 260px;
  z-index: 0;
}
.rtd-site-shell > * { position: relative; z-index: 1; }

.rtd-nav a { text-decoration: none; }
.rtd-nav .wp-block-navigation-item__content:hover { color: var(--rtd-green); }

.rtd-btn-primary .wp-block-button__link {
  background: linear-gradient(180deg, #10837b, #0b7069);
  color: #fff;
  border: 1px solid rgba(5,85,80,.35);
  box-shadow: 0 8px 20px rgba(12,118,111,.20);
}
.rtd-btn-primary .wp-block-button__link:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #0f766f, #08625d);
}
.rtd-btn-secondary .wp-block-button__link {
  background: rgba(255,255,255,.72);
  color: var(--rtd-ink);
  border: 1px solid var(--rtd-line);
}
.rtd-btn-secondary .wp-block-button__link:hover { background: #fff; }

.rtd-hero {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 110px);
}
.rtd-kicker {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  color: var(--rtd-green);
}
.rtd-hero h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .95;
  letter-spacing: -.055em;
  max-width: 950px;
  margin-bottom: 26px;
}
.rtd-hero-copy {
  max-width: 700px;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  color: var(--rtd-muted);
}
.rtd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.rtd-chip {
  border: 1px solid var(--rtd-line);
  background: rgba(255,255,255,.66);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: .88rem;
  font-weight: 650;
}

.rtd-app-preview {
  margin-top: 52px;
  border: 1px solid rgba(23,51,58,.12);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--rtd-shadow);
}
.rtd-app-preview__top {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rtd-line);
  background: #fbfaf6;
}
.rtd-dot { width: 10px; height: 10px; border-radius: 50%; background: #d3d8d4; }
.rtd-app-preview__body {
  display: grid;
  grid-template-columns: 38% 62%;
  min-height: 430px;
}
.rtd-preview-panel {
  padding: 28px;
  border-right: 1px solid var(--rtd-line);
}
.rtd-preview-map {
  min-height: 430px;
  position: relative;
  background:
    linear-gradient(145deg, rgba(12,118,111,.05), rgba(255,255,255,.1)),
    repeating-radial-gradient(ellipse at 60% 45%, rgba(12,118,111,.12) 0 1px, transparent 1px 16px),
    #dfecea;
}
.rtd-preview-map::after {
  content: "";
  position: absolute;
  left: 13%;
  top: 62%;
  width: 66%;
  height: 4px;
  background: var(--rtd-green);
  transform: rotate(-18deg);
  border-radius: 999px;
  box-shadow: 120px -70px 0 -1px var(--rtd-green), 240px -28px 0 -1px var(--rtd-green);
}
.rtd-preview-stat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.rtd-preview-stat > div {
  border-radius: 14px;
  border: 1px solid var(--rtd-line);
  padding: 13px;
  background: #fbfcf9;
}
.rtd-preview-stat strong { display: block; font-size: 1.2rem; }
.rtd-preview-stop {
  padding: 12px 0;
  border-bottom: 1px solid var(--rtd-line);
  font-weight: 700;
}
.rtd-preview-stop small { display:block; color: var(--rtd-muted); font-weight: 500; margin-top:4px; }

.rtd-section { padding: clamp(64px, 7vw, 105px) 0; }
.rtd-section h2 {
  font-size: clamp(2.2rem, 4.3vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.rtd-section-intro { max-width: 720px; color: var(--rtd-muted); font-size: 1.12rem; }

.rtd-card-grid { gap: 18px; }
.rtd-card {
  height: 100%;
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--rtd-line);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(23,51,58,.05);
}
.rtd-card h3 { font-size: 1.25rem; margin-top: 8px; margin-bottom: 8px; }
.rtd-card p { color: var(--rtd-muted); margin-bottom: 0; }
.rtd-card-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display:flex; align-items:center; justify-content:center;
  background: var(--rtd-mint); color: var(--rtd-green-dark);
  font-weight: 900;
}

.rtd-steps {
  counter-reset: rtd-step;
}
.rtd-step {
  position: relative;
  padding-left: 72px;
  margin-bottom: 34px;
}
.rtd-step::before {
  counter-increment: rtd-step;
  content: counter(rtd-step);
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--rtd-green);
  color:#fff; font-weight:800;
}

.rtd-callout {
  border-radius: 26px;
  padding: clamp(32px, 5vw, 60px);
  background: var(--rtd-ink);
  color: #fff;
  box-shadow: var(--rtd-shadow);
}
.rtd-callout p { color: rgba(255,255,255,.76); }

.rtd-pricing-card {
  border: 1px solid var(--rtd-line);
  border-radius: 22px;
  padding: 28px;
  background: rgba(255,255,255,.76);
}
.rtd-pricing-card.rtd-featured {
  border-color: rgba(12,118,111,.48);
  box-shadow: 0 18px 50px rgba(12,118,111,.12);
  transform: translateY(-6px);
}
.rtd-price {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -.04em;
}

.rtd-faq details {
  border-top: 1px solid var(--rtd-line);
  padding: 18px 0;
}
.rtd-faq summary { cursor: pointer; font-weight: 750; }
.rtd-faq p { color: var(--rtd-muted); }

.rtd-footer {
  border-top: 1px solid var(--rtd-line);
  padding: 34px 0;
  color: var(--rtd-muted);
}

@media (max-width: 900px) {
  .rtd-app-preview__body { grid-template-columns: 1fr; }
  .rtd-preview-panel { border-right: 0; border-bottom: 1px solid var(--rtd-line); }
  .rtd-preview-map { min-height: 300px; }
}
@media (max-width: 680px) {
  .rtd-hero { padding-top: 48px; }
  .rtd-hero h1 { font-size: 3.05rem; }
  .rtd-card { padding: 22px; }
}


/* v1.1 – waitlist, support and legal pages */
.rtd-form-shell {
  max-width: 760px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--rtd-line);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 36px rgba(23,51,58,.06);
}
.rtd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.rtd-field { margin-bottom: 16px; }
.rtd-field label {
  display: block;
  margin-bottom: 7px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--rtd-ink);
}
.rtd-field input,
.rtd-field textarea,
.rtd-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd7d2;
  border-radius: 12px;
  background: #fff;
  color: var(--rtd-ink);
  padding: 12px 13px;
  font: inherit;
  outline: none;
}
.rtd-field textarea { min-height: 150px; resize: vertical; }
.rtd-field input:focus,
.rtd-field textarea:focus,
.rtd-field select:focus {
  border-color: var(--rtd-green);
  box-shadow: 0 0 0 3px rgba(12,118,111,.11);
}
.rtd-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--rtd-muted);
  font-size: .9rem;
  margin: 8px 0 18px;
}
.rtd-check input { margin-top: 4px; }
.rtd-form-submit {
  appearance: none;
  border: 1px solid rgba(5,85,80,.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #10837b, #0b7069);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12,118,111,.18);
}
.rtd-form-submit:hover { transform: translateY(-1px); }
.rtd-form-note { color: var(--rtd-muted); font-size: .9rem; }
.rtd-form-message {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--rtd-line);
}
.rtd-form-message--ok { background: #edf8f2; color: #185c47; }
.rtd-form-message--error { background: #fff1ee; color: #8b3428; }
.rtd-hp { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

.rtd-waitlist {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: left;
}
.rtd-waitlist .rtd-form-shell { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.rtd-waitlist .rtd-field label,
.rtd-waitlist .rtd-check { color: rgba(255,255,255,.84); }
.rtd-waitlist .rtd-form-note { color: rgba(255,255,255,.68); }
.rtd-waitlist a { color: #b9eee7; }

.rtd-content-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 24px;
}
.rtd-content-page h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.rtd-content-page h2 { margin-top: 42px; }
.rtd-content-page p,
.rtd-content-page li { color: #53666a; }
.rtd-content-page .rtd-legal-note {
  border-left: 4px solid var(--rtd-warm);
  background: rgba(255,255,255,.64);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
}

@media (max-width: 680px) {
  .rtd-form-grid { grid-template-columns: 1fr; gap: 0; }
}


/* v1.2 – shared branding + real map preview */
.rtd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rtd-brandmark {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: url("assets/favicon.svg") center / contain no-repeat;
}
.rtd-app-preview--real {
  position: relative;
  min-height: 0;
  aspect-ratio: 1906 / 910;
  margin-top: 52px;
  border: 1px solid rgba(23,51,58,.12);
  border-radius: 28px;
  overflow: hidden;
  background:
    #eef3ef url("assets/hero-trip-preview.webp") center / cover no-repeat;
  box-shadow: var(--rtd-shadow);
}
.rtd-app-preview--real::after {
  content: "RoadTripDesk preview";
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #31565a;
  background: rgba(255,253,248,.86);
  border: 1px solid rgba(23,51,58,.10);
  backdrop-filter: blur(6px);
}
.rtd-hero-map-note {
  margin-top: 13px;
  text-align: center;
  color: var(--rtd-muted);
  font-size: .88rem;
}
@media (max-width: 680px) {
  .rtd-brandmark { width: 30px; height: 30px; flex-basis: 30px; }
  .rtd-app-preview--real {
    margin-top: 36px;
    aspect-ratio: 4 / 3;
    background-position: 66% center;
    border-radius: 20px;
  }
  .rtd-app-preview--real::after { left: 12px; bottom: 12px; }
}


/* v1.4 – multi-page SEO architecture */
.rtd-content-page { max-width: 980px; }
.rtd-content-page > h1 {
  max-width: 900px;
  margin-bottom: 22px;
}
.rtd-lead {
  max-width: 800px;
  margin: 0 0 34px;
  color: var(--rtd-muted) !important;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.65;
}
.rtd-content-page h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-top: 58px;
  margin-bottom: 16px;
}
.rtd-content-page h3 { margin-top: 32px; }
.rtd-content-page p { line-height: 1.72; }
.rtd-content-page a:not(.rtd-inline-button) { text-underline-offset: 3px; }
.rtd-seo-nav {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin: 28px 0 42px;
}
.rtd-seo-nav a {
  text-decoration:none !important;
  border:1px solid var(--rtd-line);
  background:rgba(255,255,255,.72);
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;
}
.rtd-page-highlight {
  display:flex;
  flex-direction:column;
  gap:5px;
  margin: 30px 0 44px;
  padding: 22px 24px;
  border:1px solid rgba(12,118,111,.22);
  border-radius:18px;
  background:rgba(220,235,229,.55);
}
.rtd-page-highlight strong { font-size:1.08rem; }
.rtd-page-highlight span { color:var(--rtd-muted); }
.rtd-page-cta {
  margin-top:64px;
  padding: clamp(28px, 5vw, 48px);
  border-radius:24px;
  background:var(--rtd-ink);
  color:#fff;
}
.rtd-page-cta h2 { margin-top:0; color:#fff; }
.rtd-page-cta p { color:rgba(255,255,255,.76) !important; }
.rtd-inline-button {
  display:inline-block;
  padding:11px 16px;
  border-radius:12px;
  background:#fff;
  color:var(--rtd-green-dark) !important;
  text-decoration:none !important;
  font-weight:800;
}
.rtd-card-link {
  display:block;
  text-decoration:none;
  color:var(--rtd-ink) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rtd-card-link:hover { transform:translateY(-2px); box-shadow:var(--rtd-shadow); }
.rtd-card-link span { display:block; margin-top:18px; color:var(--rtd-green); font-weight:800; }
.rtd-link-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:32px;
}
.rtd-link-grid a {
  display:block;
  padding:22px;
  border:1px solid var(--rtd-line);
  border-radius:18px;
  background:rgba(255,255,255,.68);
  color:var(--rtd-ink);
  text-decoration:none;
}
.rtd-link-grid strong { display:block; font-size:1.05rem; }
.rtd-link-grid span { display:block; margin-top:7px; color:var(--rtd-muted); font-size:.92rem; line-height:1.5; }
.rtd-feature-split { align-items:center; gap:42px; }
.rtd-mini-itinerary {
  border:1px solid var(--rtd-line);
  border-radius:22px;
  padding:22px;
  background:rgba(255,255,255,.78);
  box-shadow:0 16px 45px rgba(23,51,58,.07);
}
.rtd-mini-itinerary > div {
  display:grid;
  grid-template-columns:105px 1fr;
  gap:14px;
  padding:13px 4px;
  border-bottom:1px solid var(--rtd-line);
}
.rtd-mini-itinerary > div:last-child { border-bottom:0; }
.rtd-mini-itinerary span { color:var(--rtd-muted); }
.rtd-mini-itinerary .rtd-timezone-line { color:var(--rtd-green-dark); background:rgba(220,235,229,.35); }
.rtd-mini-itinerary .rtd-night-line { color:#765b2e; }
.rtd-callout--split { display:grid; grid-template-columns:1.6fr .7fr; gap:36px; align-items:center; }
.rtd-callout-actions { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.rtd-callout-actions > a:not(.rtd-inline-button) { color:#b9eee7; }
.rtd-pricing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:30px 0 42px; }
.rtd-pricing-card ul { padding-left:20px; color:var(--rtd-muted); }
.rtd-footer-grid { gap:28px; }
.rtd-footer-grid p { line-height:1.8; }
.rtd-footer-grid a { text-decoration:none; }
.rtd-footer-grid a:hover { text-decoration:underline; }

@media (max-width: 900px) {
  .rtd-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rtd-callout--split { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .rtd-link-grid, .rtd-pricing-grid { grid-template-columns:1fr; }
  .rtd-mini-itinerary > div { grid-template-columns:82px 1fr; }
  .rtd-footer-grid { gap:8px; }
}
