/*
 * Cabo Transportations archive-inspired presentation.
 * Recreates the 2016/2017 sky, teal, blue and coral visual language while
 * preserving the current reservation engine and responsive behavior.
 */

:root {
  --ink: #223249;
  --ink-deep: #466580;
  --ink-soft: #4a7e8c;
  --paper: #ffffff;
  --white: #ffffff;
  --sand: #daeeef;
  --sand-deep: #a4d1d6;
  --gold: #ef3a2f;
  --gold-light: #a4d1d6;
  --sage: #70b6cc;
  --muted: #596a72;
  --line: rgba(70, 101, 128, 0.22);
  --line-light: rgba(255, 255, 255, 0.22);
  --success: #2f8b70;
  --danger: #b8322b;
  --shadow-sm: 0 5px 16px rgba(34, 50, 73, 0.13);
  --shadow-lg: 0 10px 30px rgba(34, 50, 73, 0.24);
  --serif: "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

h1,
h2,
h3 {
  font-family: var(--serif) !important;
  letter-spacing: -0.025em;
}

.shell {
  width: min(1200px, calc(100% - 32px));
}

.eyebrow,
.kicker,
.service-card__number,
.fleet-card__title span {
  color: var(--ink-soft);
}

.button,
.footer-button,
.mobile-conversion-bar a {
  border-radius: 2px;
}

.button--action,
.button--gold,
.mobile-book,
.footer-button {
  color: #fff !important;
  background: #ef3a2f;
  border-color: #ef3a2f;
  box-shadow: 2px 2px 4px rgba(34, 50, 73, 0.28);
}

.button--action:hover,
.button--gold:hover,
.footer-button:hover {
  background: #d93027;
  border-color: #d93027;
}

/* Sky header and compact gradient navigation from the archived identity. */
.site-header {
  position: relative;
  top: auto;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("../images/archive-theme/header-sky.jpg") center / cover no-repeat;
  border: 0;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.32);
  backdrop-filter: none;
}

.header__inner {
  min-height: 116px;
  gap: 20px;
}

.brand__logo {
  width: 230px;
}

.primary-nav {
  gap: 5px;
}

.primary-nav > a {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  color: #fff;
  background: linear-gradient(to bottom, #61b4bc 0%, #5496a2 50%, #487787 100%);
  border: 1px solid #5496a2;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-nav > a:not(.nav-cta)::after {
  display: none;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible {
  color: #fff;
  background: #4a7e8c;
}

.primary-nav .nav-cta {
  min-height: 37px;
  margin-left: 2px;
  padding: 7px 18px;
  color: #fff;
  background: linear-gradient(to bottom, #f25b50, #ef3a2f);
  border-color: #dc3128;
}

.topbar {
  color: #fff;
  background: #466580;
  border: 0;
}

.topbar__inner {
  min-height: 36px;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12px;
}

.topbar__inner > div {
  display: flex;
  gap: 24px;
}

.topbar p,
.topbar__inner > div {
  order: initial;
}

.topbar p span,
.topbar a span {
  margin-right: 6px;
  color: #a4d1d6;
  font-size: 15px;
}

/* Archived split hero: destination collage, dark curved message and booking panel. */
.home-hero {
  min-height: 770px;
  color: #fff;
  background: linear-gradient(180deg, #fff 0 58%, #a4d1d6 58% 100%);
}

.home-hero__image {
  inset: 15px 42% auto 0;
  height: 520px;
  background-color: #70b6cc;
  background-image: url("../images/archive-theme/hero-collage.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-hero__overlay {
  inset: 15px 42% auto auto;
  width: min(360px, 28vw);
  height: 520px;
  background: linear-gradient(90deg, rgba(34, 50, 73, 0), rgba(34, 50, 73, 0.18));
}

body.home-page .home-hero__content,
.home-hero__content {
  min-height: 770px;
  padding-block: 15px 28px;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.92fr);
  align-items: start;
  gap: 18px;
}

.hero-copy {
  width: min(470px, 76%);
  min-height: 520px;
  margin-left: auto;
  padding: 44px 26px 34px 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: rgba(34, 50, 73, 0.88);
  border-radius: 52% 0 0 52%;
  text-align: center;
}

.archive-hero-quote {
  margin: 0 0 20px;
  color: #a4d1d6;
  font-size: clamp(22px, 2.15vw, 31px);
  font-weight: 400;
  line-height: 1.16;
}

.archive-hero-quote em,
.archive-hero-quote strong {
  display: block;
  font-style: normal;
  font-weight: 500;
}

.hero-copy .eyebrow {
  margin-bottom: 9px;
  color: #fff;
  font-size: 9px;
}

body.home-page .home-hero .hero-copy h1,
.hero-copy h1 {
  margin-bottom: 13px;
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.03;
}

.hero-copy > p:not(.eyebrow):not(.archive-hero-quote) {
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.52;
}

.hero-actions {
  margin-bottom: 15px;
  justify-content: center;
}

.hero-actions .button {
  min-height: 44px;
  padding-inline: 15px;
  font-size: 11px;
}

.button--outline-light {
  background: rgba(70, 101, 128, 0.62);
  border-color: #a4d1d6;
}

.hero-points {
  justify-content: center;
  gap: 8px 14px;
  font-size: 10px;
}

.hero-points span {
  color: #a4d1d6;
}

/* Booking form: white panel, blue rules and coral conversion actions. */
.home-hero__wizard {
  --home-wizard-rule: #00bfff;
  padding-top: 0;
}

#booking.acw {
  --rf-primary: #466580;
  --rf-primary-2: #4a7e8c;
  --rf-navy: #466580;
  --rf-navy-2: #4a7e8c;
  --rf-accent: #ef3a2f;
  --rf-accent-dark: #cf2f27;
  --rf-focus: rgba(0, 191, 255, 0.24);
  --acw-navy: #466580;
  --acw-navy-soft: #4a7e8c;
  --acw-terra: #ef3a2f;
  --acw-terra-dark: #cf2f27;
}

.home-hero__wizard #booking.acw .acw-main {
  padding: 20px;
  border: 2px solid #5f98c5;
  border-top-width: 2px;
  border-radius: 0;
  background: #fff;
  box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.32);
}

body.home-page #booking.acw .acw-main::before {
  content: "Book Now!";
  position: static;
  display: block;
  margin: -4px 0 10px;
  color: #696969;
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  text-align: center;
}

#booking.acw .wstep.is-active::after,
#booking.acw .steps-progress__fill {
  background: #00bfff;
}

#booking.acw .wstep.is-active .wstep__num {
  border-color: #4a7e8c;
  background: #4a7e8c;
}

#booking.acw .ac-route-group__eyebrow,
#booking.acw .price__eyebrow,
#booking.acw .contact-details__label {
  color: #4a7e8c;
}

#booking.acw .ac-route-group__heading h4,
#booking.acw .ac-schedule-heading h4,
#booking.acw .wtitle,
#booking.acw .veh__name {
  color: #223249;
  font-family: var(--sans);
}

#booking.acw .field :where(input:not([type="radio"]):not([type="checkbox"]), select, textarea),
#booking.acw .datetime-display,
#booking.acw .toggle,
#booking.acw .qty-stepper,
#booking.acw .veh,
#booking.acw .airport-disclosure,
#booking.acw .selected-pill {
  border-color: #cbd8dc;
  border-radius: 2px;
  background-color: #f8faf9;
}

#booking.acw .field :where(input:not([type="radio"]):not([type="checkbox"]), select, textarea):focus,
#booking.acw .airport-disclosure:focus-within {
  border-color: #00bfff;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.14);
}

#booking.acw .btn--primary,
#booking.acw .ac-transfer-search,
#booking.acw .cta #submitBtn {
  border-color: #ef3a2f;
  border-radius: 2px;
  background: #ef3a2f;
  box-shadow: 2px 2px 4px rgba(34, 50, 73, 0.28);
}

#booking.acw .btn--primary:hover,
#booking.acw .ac-transfer-search:hover,
#booking.acw .cta #submitBtn:hover {
  border-color: #d93027;
  background: #d93027;
}

#booking.acw .ac-route-cta {
  border-radius: 2px;
  background: #466580;
}

#booking.acw .veh:has(input:checked) {
  border-color: #62b5bd;
  background: #f2fbfb;
  box-shadow: inset 4px 0 0 #62b5bd;
}

/* Carry the same light-blue panels and square edges through the full page. */
.confidence-strip {
  background: #466580;
  border: 0;
}

.confidence-grid > div {
  border-color: rgba(255, 255, 255, 0.22);
}

.confidence-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.confidence-grid strong {
  color: #fff;
}

.trust-check {
  color: #466580;
  background: #a4d1d6;
}

.traveler-proof {
  background: #223249;
}

.traveler-proof__inner > a {
  color: #a4d1d6;
}

.section {
  padding-block: 82px;
}

.section--paper {
  background: #fff;
}

.section--sand {
  background: #a4d1d6;
}

.section--navy,
.included-section {
  background: #466580;
}

.section--navy h2,
.included-section h2,
.closing-cta h2 {
  color: #fff !important;
}

.included-section .eyebrow,
.closing-cta .eyebrow {
  color: #a4d1d6 !important;
}

.section-heading h2,
.journey-copy h2,
.faq-intro h2,
.included-layout h2,
.closing-cta h2 {
  letter-spacing: -0.03em;
}

.service-card,
.route-card,
.fleet-card,
.faq-list details {
  border: 1px solid rgba(70, 101, 128, 0.28);
  border-radius: 0;
  box-shadow: 2px 2px 5px rgba(34, 50, 73, 0.11);
}

.service-card--featured {
  background:
    linear-gradient(135deg, rgba(34, 50, 73, 0.94), rgba(70, 101, 128, 0.86)),
    url("../images/real/suburban-resort-arrival.webp") center / cover;
}

.route-card {
  border: 2px solid #62b5bd;
  background: #f8ffff;
}

.route-card button,
.fleet-card__conversion a,
.faq-intro a {
  color: #2074c9;
}

.fleet-card__image > span {
  background: #4a7e8c;
}

.journey-section,
.faq-section {
  background: #fff;
}

.journey-steps li > span {
  color: #fff;
  background: #4a7e8c;
}

body .button--navy {
  color: #fff !important;
  background: #466580;
  border-color: #466580;
}

.included-grid span {
  color: #a4d1d6;
}

.closing-cta {
  background:
    linear-gradient(90deg, rgba(34, 50, 73, 0.96), rgba(70, 101, 128, 0.82)),
    url("../images/archive-theme/hero-collage.jpg") center / cover;
}

.closing-cta .eyebrow {
  color: #a4d1d6;
}

.site-footer,
.funnel-footer {
  background: #466580;
}

.footer-grid h2,
.footer-grid > div:not(.footer-brand) > a,
.footer-grid > div:not(.footer-brand) > span,
.footer-bottom a {
  color: #fff;
}

.whatsapp-float span {
  background: #4a7e8c;
}

@media (max-width: 1100px) {
  .brand__logo {
    width: 205px;
  }

  .primary-nav > a {
    padding-inline: 11px;
    font-size: 11px;
  }

  body.home-page .home-hero__content,
  .home-hero__content {
    grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  }

  .hero-copy {
    width: 94%;
    padding-left: 58px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
  }

  .header__inner {
    min-height: 104px;
  }

  .brand__logo {
    width: 210px;
  }

  .nav-toggle {
    display: block;
    border-radius: 2px;
    background: #466580;
  }

  .nav-toggle > span:not(.sr-only) {
    background: #fff;
  }

  .primary-nav {
    top: var(--mobile-nav-top, 104px);
    padding: 22px;
    align-items: center;
    gap: 7px;
    background: rgba(70, 101, 128, 0.98);
  }

  .primary-nav > a,
  .primary-nav .nav-cta {
    width: min(100%, 420px);
    min-height: 48px;
    margin: 0;
    padding: 10px 18px;
    border-bottom: 1px solid #5496a2;
    font-family: var(--sans);
    font-size: 16px;
  }

  .topbar__inner {
    min-height: 42px;
    justify-content: center;
  }

  .topbar__inner > div {
    display: flex;
  }

  .topbar__inner p {
    display: none;
  }

  .home-hero {
    min-height: auto;
    background: #a4d1d6;
  }

  .home-hero__image {
    inset: 0 0 auto;
    width: 100%;
    height: 500px;
    background-position: center;
    background-size: cover;
  }

  .home-hero__overlay {
    display: none;
  }

  body.home-page .home-hero__content,
  .home-hero__content {
    min-height: auto;
    padding-block: 28px 42px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-copy {
    width: min(640px, 94%);
    min-height: 444px;
    margin: 0 auto;
    padding: 38px 34px;
    background: rgba(34, 50, 73, 0.88);
    border-radius: 0 0 48% 48%;
  }

  .home-hero__wizard {
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 24px, 1200px);
  }

  .header__inner {
    min-height: 92px;
  }

  .brand__logo {
    width: 185px;
  }

  .topbar__inner {
    min-height: 54px;
  }

  .topbar__inner > div {
    width: 100%;
    justify-content: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    font-size: 10px;
  }

  .topbar a span {
    margin-right: 3px;
    font-size: 12px;
  }

  .home-hero__image {
    height: 455px;
    background-size: auto 455px;
  }

  body.home-page .home-hero__content,
  .home-hero__content {
    padding-block: 0 28px;
    gap: 24px;
  }

  .hero-copy {
    width: 100%;
    min-height: 455px;
    padding: 30px 22px 34px;
    border-radius: 0;
  }

  .archive-hero-quote {
    margin-bottom: 13px;
    font-size: 23px;
  }

  body.home-page .home-hero .hero-copy h1,
  .hero-copy h1,
  .hero-copy h1:last-child {
    margin-bottom: 12px;
    font-size: clamp(31px, 9.5vw, 39px);
  }

  .hero-copy > p:not(.eyebrow):not(.archive-hero-quote) {
    font-size: 12px;
  }

  .hero-actions {
    width: 100%;
    margin-bottom: 13px;
    flex-direction: row;
  }

  .hero-actions .button,
  .hero-actions .button--outline-light {
    width: auto;
    flex: 1 1 145px;
  }

  .home-hero__wizard #booking.acw .acw-main {
    padding: 14px;
    border-radius: 0;
  }

  body.home-page #booking.acw .acw-main::before {
    font-size: 18px;
  }

  .section {
    padding-block: 62px;
  }

  .service-card,
  .route-card,
  .fleet-card,
  .faq-list details {
    box-shadow: 2px 2px 4px rgba(34, 50, 73, 0.09);
  }

  .mobile-conversion-bar {
    background: rgba(255, 255, 255, 0.98);
    border-color: #a4d1d6;
  }

  .mobile-help {
    color: #466580;
    border-color: #466580 !important;
  }
}

@media (max-width: 440px) {
  .brand__logo {
    width: 170px;
  }

  .hero-copy {
    min-height: 470px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .button--outline-light {
    width: 100%;
    flex-basis: auto;
  }
}
