/* Superb Line — custom styles that complement Tailwind */

:root {
  --brand: #e30613;
  --brand-dark: #b80510;
  --brand-soft: #fff1f2;
  --ink: #171717;
  --ink-muted: #525252;
  --paper: #ffffff;
  --paper-muted: #f5f6f7;
  --line: #e6e7ea;
  --header-h: 76px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3 {
  overflow-wrap: break-word;
}

/* Offset in-page anchors for the sticky header */
section[id],
#quote,
#quote-result {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Skip link appears on keyboard focus */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--brand);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Sticky header gains a hairline + shadow after scroll */
.site-header {
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(16, 16, 16, 0.28);
}

/* Hero wash: soft red glow without competing with the form */
.hero-wash {
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(227, 6, 19, 0.07), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(227, 6, 19, 0.04), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
}

/* Section eyebrow + underline accent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}

.eyebrow-center {
  justify-content: center;
}

.hero-brand h1 {
  letter-spacing: -0.03em;
}

/* Form controls */
.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2a2a2a;
}

.field-label .req {
  color: var(--brand);
  margin-left: 0.15rem;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 46px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field-textarea {
  min-height: 92px;
  resize: vertical;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: #9a9a9a;
}

.field-input:hover,
.field-select:hover,
.field-textarea:hover {
  border-color: #cfcfd4;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.14);
}

.field-input[aria-invalid="true"],
.field-select[aria-invalid="true"],
.field-textarea[aria-invalid="true"] {
  border-color: var(--brand);
  background: #fff8f8;
}

.field-error {
  display: none;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--brand);
}

.field-error.is-visible {
  display: block;
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23525252' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.4rem;
}

/* Trip-type segmented control */
#quote .grid.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trip-option {
  min-width: 0;
}

.trip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trip-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.2rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: #3f3f3f;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

@media (min-width: 640px) {
  .trip-option span {
    font-size: 0.85rem;
    padding: 0 0.6rem;
  }
}

.trip-option input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(227, 6, 19, 0.8);
}

.trip-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
}

/* Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 10px 22px -12px rgba(227, 6, 19, 0.85);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.25), 0 10px 22px -12px rgba(227, 6, 19, 0.85);
}

.btn-primary:disabled {
  opacity: 0.72;
  cursor: wait;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.75rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  transition: border-color 150ms ease, background 150ms ease;
}

.btn-ghost:hover {
  border-color: #c8c8ce;
  background: var(--paper-muted);
}

/* Cards */
.lift-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.lift-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(16, 16, 16, 0.28);
}

/* Icon badge */
.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Step number */
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -10px rgba(227, 6, 19, 0.9);
}

/* Mobile drawer — always collapsed on desktop */
.mobile-nav {
  display: none;
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav,
  .mobile-nav.is-open {
    display: none !important;
  }
}

/* Quote result panel */
.quote-result {
  display: none;
}

.quote-result.is-visible {
  display: block;
  animation: rise 320ms ease;
}

.quote-result:focus {
  outline: none;
}

.quote-result:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.28);
  outline-offset: 4px;
}

.spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 600ms ease forwards;
}

.reveal-delay-1 { animation-delay: 80ms; }
.reveal-delay-2 { animation-delay: 160ms; }
.reveal-delay-3 { animation-delay: 240ms; }

/* Motto strip */
.motto-bar {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1rem;
}

.motto-bar p {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .motto-bar p {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }
}

/* Honeypot — hidden from people, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Budget range slider */
.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) var(--budget-pct, 16%), var(--line) var(--budget-pct, 16%));
  outline: none;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 4px 10px -4px rgba(227, 6, 19, 0.7);
  cursor: pointer;
}

.budget-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 4px 10px -4px rgba(227, 6, 19, 0.7);
  cursor: pointer;
}

.budget-slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.18);
}

/* Destinations — large photo + boxed description */
.dest-section {
  background: var(--paper-muted);
  padding: 2.5rem 0 3rem;
}

.dest-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "prev photo next"
    "prev copy next";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.9rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.dest-photo {
  grid-area: photo;
  width: 100%;
  min-width: 0;
  height: clamp(240px, 38vw, 460px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #f7f7f8;
}

.dest-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dest-copy {
  grid-area: copy;
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #f7f7f8;
}

.dest-copy.is-in #dest-kicker,
.dest-copy.is-in #dest-title,
.dest-copy.is-in #dest-text {
  animation: dest-copy-in 280ms ease;
}

@keyframes dest-copy-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dest-copy p:first-child {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.dest-copy h3 {
  margin: 0.25rem 0 0.45rem;
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.dest-copy p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.dest-panel > button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.dest-panel > #dest-prev {
  grid-area: prev;
}

.dest-panel > #dest-next {
  grid-area: next;
}

.dest-panel > button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 639px) {
  .dest-panel {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "copy";
    row-gap: 0.85rem;
  }

  .dest-photo {
    height: clamp(220px, 58vw, 300px);
  }

  .dest-panel > #dest-prev,
  .dest-panel > #dest-next {
    position: absolute;
    top: calc(1rem + (clamp(220px, 58vw, 300px) / 2));
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px -8px rgba(16, 16, 16, 0.35);
  }

  .dest-panel > #dest-prev {
    left: 1.15rem;
  }

  .dest-panel > #dest-next {
    right: 1.15rem;
  }

  .dest-copy h3 {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dest-copy.is-in #dest-kicker,
  .dest-copy.is-in #dest-title,
  .dest-copy.is-in #dest-text {
    animation: none;
  }
}

/* Service-area chips */
.area-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

/* Association logos */
.assoc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.25rem;
  margin-top: 1.25rem;
}

.assoc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 8.5rem;
  color: var(--ink-muted);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.assoc-link:hover {
  color: var(--ink);
}

.assoc-logo {
  object-fit: contain;
}

.assoc-aba {
  height: 42px;
  width: auto;
}

.assoc-cba {
  height: 68px;
  width: 68px;
  border-radius: 50%;
  background: #fff;
}

.assoc-bbb {
  height: 72px;
  width: auto;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .quote-result.is-visible,
  .lift-card,
  .btn-primary,
  .site-header {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .spinner {
    animation: none;
    border-top-color: #fff;
  }
}

/* Tiny charter-bus cursor (32x32 so Safari will accept it).
   Hotspot is the front bumper. !important beats later cursor:pointer rules. */
html,
body,
a,
button,
label,
summary,
select,
.btn-primary,
.btn-ghost,
.trip-option,
.dest-panel > button,
.budget-slider,
[role="button"] {
  cursor: url("/assets/cursor-bus.png?v=2") 28 16, url("../assets/cursor-bus.png?v=2") 28 16, auto !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea {
  cursor: text !important;
}
