/* ==========================================================================
   CHINA CARIBE — style.css
   International Freight Forwarding · Shenzhen → Kingston
   --------------------------------------------------------------------------
   Contents
   01. Design tokens
   02. Base & reset
   03. Utilities (container, section, eyebrow, buttons, reveal system)
   04. Preloader
   05. Scroll progress
   06. Header / navigation
   07. Hero
   08. About
   09. Wave divider
   10. Services
   11. Route map (signature)
   12. Why choose us
   13. Process timeline
   14. Rates
   15. Testimonials slider
   16. Partners marquee
   17. FAQ accordion
   18. CTA banner
   19. Contact
   20. Footer
   21. Quote modal & form
   22. Floating elements (WhatsApp, back-to-top, toast)
   23. Responsive
   24. Reduced motion
   ========================================================================== */

/* ==== 01. Design tokens =================================================== */
:root {
  --clr-primary: #0E2A4D;
  --clr-primary-dark: #081C36;
  --clr-secondary: #1D4E89;
  --clr-accent: #C8102E;
  --clr-accent-dark: #9E0C24;
  /* lighter red for text/icons sitting on dark navy backgrounds */
  --clr-accent-light: #FF4757;
  --clr-bg: #ffffff;
  --clr-light: #f7f8fa;
  --clr-text: #222222;
  --clr-text-soft: #5a6572;
  --clr-white: #ffffff;
  --clr-whatsapp: #25D366;

  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 30px rgba(14, 42, 77, 0.08);
  --shadow-lift: 0 18px 50px rgba(14, 42, 77, 0.16);
  --shadow-accent: 0 10px 30px rgba(200, 16, 46, 0.35);

  --nav-height: 78px;
  --container: 1200px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ==== 02. Base & reset ==================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
address { font-style: normal; }
fieldset { border: none; }
iframe { border: 0; display: block; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--clr-text); }

:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--clr-accent); color: var(--clr-white); }

/* ==== 03. Utilities ======================================================= */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--light { background: var(--clr-light); }

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section__lead { color: var(--clr-text-soft); font-size: 1.06rem; }

.section__head--onDark .section__title { color: var(--clr-white); }
.section__head--onDark .section__lead { color: rgba(255, 255, 255, 0.75); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  background: rgba(29, 78, 137, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}
.eyebrow--accent { color: var(--clr-accent-light); background: rgba(255, 71, 87, 0.14); }

/* --- Buttons --- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary { background: var(--clr-primary); color: var(--clr-white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--clr-secondary); box-shadow: var(--shadow-lift); }

.btn--accent { background: var(--clr-accent); color: var(--clr-white); box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: #E01834; }

.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  color: var(--clr-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }

.btn--whatsapp { background: var(--clr-whatsapp); color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); }
.btn--whatsapp:hover { background: #1fbd5a; }

.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* Ripple effect (span injected by JS) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* --- Scroll reveal system (Intersection Observer adds .is-revealed) --- */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(46px); }
[data-reveal="left"]  { transform: translateX(60px); }
[data-reveal="right"] { transform: translateX(-60px); }
[data-reveal="zoom"]  { transform: scale(0.92); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ==== 04. Preloader ======================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__inner { text-align: center; }
.preloader__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--clr-white);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: preloader-float 2s ease-in-out infinite;
}
.preloader__logo i { color: var(--clr-accent-light); font-size: 2rem; }
.preloader__logo em { font-style: normal; color: var(--clr-accent-light); }

.preloader__bar {
  margin-top: 1.6rem;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--clr-accent);
  animation: preloader-slide 1.1s ease-in-out infinite;
}
@keyframes preloader-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes preloader-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ==== 05. Scroll progress ================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-secondary));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ==== 06. Header / navigation ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(14, 42, 77, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--clr-white);
  transition: color 0.35s;
}
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: var(--clr-accent-light);
  font-size: 1.15rem;
  box-shadow: var(--shadow-soft);
}
.nav__logo em { font-style: normal; color: var(--clr-accent-light); }
.header.is-solid .nav__logo em { color: var(--clr-accent); }
.header.is-solid .nav__logo { color: var(--clr-primary); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--clr-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.header.is-solid .nav__link { color: var(--clr-text); }
.nav__link:hover { color: var(--clr-accent); }
.header.is-solid .nav__link:hover { color: var(--clr-primary); }

.nav__actions { display: flex; align-items: center; gap: 0.9rem; }
.nav__cta { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
.nav__cta-mobile { display: none; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--clr-white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s, background-color 0.35s;
}
.header.is-solid .nav__toggle span { background: var(--clr-primary); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==== 07. Hero ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--clr-white);
}
.hero__bg {
  position: absolute;
  inset: -12% 0;
  background: var(--clr-primary-dark) url("../images/hero.jpg") center / cover no-repeat;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(8, 28, 54, 0.92) 0%, rgba(14, 42, 77, 0.78) 45%, rgba(8, 28, 54, 0.45) 100%);
}

.hero__content { padding: calc(var(--nav-height) + 3rem) 0 5.5rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.6rem;
}
.hero__eyebrow i { color: var(--clr-accent-light); }

.hero__title {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero__title span { color: var(--clr-accent-light); }

.hero__subtitle {
  margin-top: 1.4rem;
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  max-width: 860px;
}
.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.stat:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.14); }
.stat__number {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--clr-accent-light);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--clr-white);
  animation: scroll-nudge 2.2s ease-in-out infinite;
}
@keyframes scroll-nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Generic parallax layers get GPU compositing */
.parallax { will-change: transform; }

/* ==== 08. About =========================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  width: 100%;
}
.about__badge {
  position: absolute;
  bottom: -1.4rem;
  right: -0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 0.9rem 1.3rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--clr-text-soft);
}
.about__badge i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--clr-primary);
  color: var(--clr-accent-light);
  font-size: 1.1rem;
}
.about__badge strong { color: var(--clr-text); }

.about__text .section__title { text-align: left; }
.about__text p { color: var(--clr-text-soft); margin-bottom: 1.1rem; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.2rem;
  margin: 0.4rem 0 1.4rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.checklist i { color: var(--clr-secondary); }

.about__mission {
  position: relative;
  background: var(--clr-light);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.3rem 1.1rem 3rem;
  font-weight: 500;
  color: var(--clr-text) !important;
  margin-bottom: 1.8rem !important;
}
.about__mission i {
  position: absolute;
  left: 1.1rem;
  top: 1.2rem;
  color: var(--clr-accent);
}

/* ==== 09. Wave divider ==================================================== */
.wave { line-height: 0; background: var(--clr-bg); }
.wave svg { width: 100%; height: clamp(40px, 7vw, 90px); display: block; }

/* ==== 10. Services ======================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lift); }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: var(--clr-accent-light);
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
  transition: transform 0.35s var(--ease-out);
}
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-4deg); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.service-card ul { display: grid; gap: 0.4rem; }
.service-card li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--clr-text-soft);
  font-size: 0.92rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

/* ==== 11. Route map (signature) ========================================== */
.route {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(29, 78, 137, 0.35), transparent 55%),
    linear-gradient(160deg, var(--clr-primary-dark) 0%, #06152A 100%);
}
.route__arrow { color: var(--clr-accent-light); font-size: 0.7em; vertical-align: middle; margin: 0 0.3em; }

.route__map {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2.5rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.route__map svg { width: 100%; height: auto; }

.route__line {
  stroke: var(--clr-accent-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  opacity: 0.9;
}
/* dash flow starts when section is revealed */
.route__map.is-revealed .route__line { animation: route-dash 2.4s linear infinite; }
@keyframes route-dash { to { stroke-dashoffset: -88; } }

.route__dot { fill: var(--clr-white); }
.route__dot--mid { fill: rgba(255, 255, 255, 0.6); }
.route__dot--accent { fill: var(--clr-accent-light); }

.route__pulse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  animation: node-pulse 2.4s ease-out infinite;
}
.route__pulse--accent { stroke: rgba(255, 71, 87, 0.6); }
@keyframes node-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.route__label { fill: #fff; font-size: 15px; font-weight: 600; font-family: var(--font-body); }
.route__label--sm { font-size: 13px; font-weight: 500; fill: rgba(255, 255, 255, 0.75); }
.route__sublabel { fill: rgba(255, 255, 255, 0.6); font-size: 11px; font-family: var(--font-body); }

/* Vessel rides the same path via CSS motion path */
.route__vessel {
  font-size: 16px;
  offset-path: path("M120,150 C260,300 420,330 560,300 C680,275 720,240 790,215 C840,197 860,192 880,190");
  offset-rotate: 0deg;
}
.route__map.is-revealed .route__vessel { animation: vessel-travel 9s var(--ease-out) infinite; }
@keyframes vessel-travel {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.route__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.route__facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.route__facts dd { font-size: 1.25rem; font-weight: 700; color: var(--clr-accent-light); }

/* ==== 12. Why choose us =================================================== */
.why { position: relative; overflow: hidden; color: var(--clr-white); }
.why__bg {
  position: absolute;
  inset: -14% 0;
  background: var(--clr-primary-dark) url("../images/port.jpg") center / cover no-repeat;
  z-index: -2;
}
.why__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 28, 54, 0.94), rgba(14, 42, 77, 0.88));
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
}
.glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 71, 87, 0.5);
}
.glass-card i { font-size: 1.7rem; color: var(--clr-accent-light); }
.glass-card h3 { color: var(--clr-white); font-size: 1.05rem; margin: 0.9rem 0 0.5rem; }
.glass-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }

/* ==== 13. Process timeline ================================================ */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 0;
}
/* the spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--clr-secondary), var(--clr-accent));
  border-radius: 3px;
  opacity: 0.25;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 3rem 2.6rem 0;
}
.timeline__item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 2.6rem 3rem;
}

.timeline__marker {
  position: absolute;
  top: 0;
  right: -27px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 3px solid var(--clr-secondary);
  color: var(--clr-primary);
  font-size: 1.15rem;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.timeline__item:nth-child(even) .timeline__marker { right: auto; left: -27px; }
.timeline__item:hover .timeline__marker {
  background: var(--clr-primary);
  border-color: var(--clr-accent-light);
  color: var(--clr-accent-light);
  transform: scale(1.08);
}

.timeline__card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.7rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.timeline__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.timeline__step {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  background: rgba(200, 16, 46, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.6rem;
}
.timeline__card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.timeline__card p { font-size: 0.92rem; color: var(--clr-text-soft); }

/* ==== 14. Rates =========================================================== */
.rates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--clr-white);
  border: 1px solid rgba(14, 42, 77, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.2rem 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lift); }

.price-card--dark {
  background: linear-gradient(160deg, var(--clr-primary-dark), var(--clr-primary));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}
.price-card--dark h3, .price-card--dark .price-card__price { color: var(--clr-white); }

.price-card__tag {
  position: absolute;
  top: -14px;
  left: 2.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--clr-secondary);
  color: var(--clr-white);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}
.price-card__tag--accent { background: var(--clr-accent); color: var(--clr-white); }

.price-card h3 { font-size: 1.5rem; display: flex; flex-direction: column; }
.price-card h3 span { font-size: 0.85rem; font-weight: 500; color: var(--clr-text-soft); }
.price-card--dark h3 span { color: rgba(255, 255, 255, 0.65); }

.price-card__price {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--clr-primary);
  margin: 1rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.price-card__price small { font-size: 0.95rem; font-weight: 500; color: var(--clr-text-soft); letter-spacing: 0; }
.price-card--dark .price-card__price small { color: rgba(255, 255, 255, 0.65); }

.price-card__desc { font-size: 0.95rem; color: var(--clr-text-soft); margin-bottom: 1.4rem; }
.price-card--dark .price-card__desc { color: rgba(255, 255, 255, 0.78); }

.price-card ul { display: grid; gap: 0.55rem; margin-bottom: 2rem; flex: 1; }
.price-card li { display: flex; gap: 0.65rem; align-items: baseline; font-size: 0.93rem; }
.price-card li i { color: var(--clr-secondary); }
.price-card--dark li i { color: var(--clr-accent-light); }

.rates__note {
  text-align: center;
  margin-top: 2.4rem;
  color: var(--clr-text-soft);
  font-size: 0.93rem;
}
.rates__note i { color: var(--clr-secondary); margin-right: 0.35rem; }

/* ==== 15. Testimonials slider ============================================ */
.slider { max-width: 780px; margin: 0 auto; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.slider__track {
  display: flex;
  transition: transform 0.55s var(--ease-out);
}
.slider__slide { flex: 0 0 100%; }

.testimonial {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}
.testimonial__stars { color: var(--clr-accent); letter-spacing: 0.2em; margin-bottom: 1.2rem; }
.testimonial p { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--clr-text); margin-bottom: 1.4rem; }
.testimonial footer { font-size: 0.9rem; color: var(--clr-text-soft); }
.testimonial footer strong { color: var(--clr-primary); }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.8rem;
}
.slider__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clr-white);
  box-shadow: var(--shadow-soft);
  color: var(--clr-primary);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.slider__arrow:hover { background: var(--clr-primary); color: var(--clr-white); transform: translateY(-2px); }

.slider__dots { display: flex; gap: 0.55rem; }
.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(14, 42, 77, 0.22);
  transition: width 0.3s var(--ease-out), background-color 0.3s;
}
.slider__dot.is-active { width: 26px; background: var(--clr-accent); }

/* ==== 16. Partners marquee ================================================ */
.partners { padding: 3.5rem 0; background: var(--clr-bg); }
.partners__title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-soft);
  margin-bottom: 2rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(14, 42, 77, 0.4);
  transition: color 0.3s;
}
.marquee__track span:hover { color: var(--clr-primary); }
.marquee__track i { color: rgba(200, 16, 46, 0.65); }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.75rem)); } }

/* ==== 17. FAQ accordion =================================================== */
.accordion { display: grid; gap: 0.9rem; }

.accordion__item {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.accordion__item.is-open { border-color: rgba(200, 16, 46, 0.5); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  transition: color 0.25s;
}
.accordion__trigger:hover { color: var(--clr-primary); }
.accordion__trigger i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(29, 78, 137, 0.1);
  color: var(--clr-secondary);
  font-size: 0.8rem;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, color 0.3s;
}
.accordion__item.is-open .accordion__trigger i {
  transform: rotate(45deg);
  background: var(--clr-accent);
  color: var(--clr-white);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.accordion__panel p {
  padding: 0 1.5rem 1.4rem;
  color: var(--clr-text-soft);
  font-size: 0.95rem;
}

/* ==== 18. CTA banner ====================================================== */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  text-align: center;
  color: var(--clr-white);
}
.cta-banner__bg {
  position: absolute;
  inset: -14% 0;
  background: var(--clr-primary-dark) url("../images/cta.jpg") center / cover no-repeat;
  z-index: -2;
}
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(8, 28, 54, 0.95), rgba(14, 42, 77, 0.82));
}
.cta-banner h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.02em;
}
.cta-banner p { margin: 0.9rem auto 2rem; max-width: 480px; color: rgba(255, 255, 255, 0.85); }
.cta-banner__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ==== 19. Contact ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--clr-white);
  border: 1px solid rgba(14, 42, 77, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.contact-card__head { display: flex; align-items: center; gap: 1rem; }
.contact-card__flag {
  font-size: 2rem;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--clr-light);
}
.contact-card__head h3 { font-size: 1.25rem; }
.contact-card__head p { font-size: 0.85rem; color: var(--clr-text-soft); }

.contact-card__address { color: var(--clr-text-soft); line-height: 1.8; font-size: 0.95rem; }

.contact-card__copy {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-secondary);
  background: rgba(29, 78, 137, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  transition: background-color 0.25s, color 0.25s;
}
.contact-card__copy:hover { background: var(--clr-secondary); color: var(--clr-white); }
.contact-card__copy.is-copied { background: var(--clr-accent); color: var(--clr-white); }

.contact-card__hours { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card__hours i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.14);
  color: var(--clr-accent-dark);
  font-size: 1.1rem;
}
.contact-card__hours p { color: var(--clr-text-soft); font-size: 0.92rem; }

.contact-card__actions { display: grid; gap: 0.8rem; }
.contact-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: var(--clr-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.25s;
}
.contact-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.contact-action i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: 1.05rem;
}
.contact-action--whatsapp i { background: var(--clr-whatsapp); }
.contact-action--quote i { background: var(--clr-accent); color: var(--clr-white); }
.contact-action span { display: flex; flex-direction: column; font-weight: 600; font-size: 0.95rem; }
.contact-action small { font-weight: 400; font-size: 0.75rem; color: var(--clr-text-soft); letter-spacing: 0.06em; text-transform: uppercase; }

.contact-card__map {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.contact-card__map iframe { width: 100%; height: 220px; }

/* ==== 20. Footer ========================================================== */
.footer { background: var(--clr-primary-dark); color: rgba(255, 255, 255, 0.75); }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.nav__logo--footer { color: var(--clr-white); margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.92rem; max-width: 34ch; }

.footer__social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.footer__social a:hover { background: var(--clr-accent); color: var(--clr-white); transform: translateY(-3px); }

.footer h3 {
  color: var(--clr-white);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer__nav ul, .footer__contact ul { display: grid; gap: 0.65rem; }
.footer__nav a, .footer__contact a {
  font-size: 0.93rem;
  transition: color 0.25s, padding-left 0.25s var(--ease-out);
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--clr-accent); padding-left: 4px; }
.footer__contact li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.93rem; }
.footer__contact i { color: var(--clr-accent-light); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 0;
  font-size: 0.85rem;
}
.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}
.footer__bottom i { color: var(--clr-accent-light); }

/* ==== 21. Quote modal & form ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 54, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 100%);
  overflow-y: auto;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
  overscroll-behavior: contain;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }

.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-light);
  color: var(--clr-text);
  font-size: 1.1rem;
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.modal__close:hover { background: var(--clr-primary); color: var(--clr-white); transform: rotate(90deg); }

.modal__head { margin-bottom: 1.8rem; padding-right: 2.6rem; }
.modal__head h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -0.01em; }
.modal__head p { color: var(--clr-text-soft); font-size: 0.95rem; margin-top: 0.4rem; }

.quote-form fieldset { margin-bottom: 1.8rem; }
.quote-form legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--clr-primary);
  margin-bottom: 1.1rem;
}
.quote-form legend i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(14, 42, 77, 0.08);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.form-grid--dims { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-field label span { color: #d93025; }
.form-field label em { font-style: normal; font-weight: 400; color: var(--clr-text-soft); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--clr-text);
  background: var(--clr-light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230E2A4D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clr-secondary);
  background: var(--clr-white);
  box-shadow: 0 0 0 4px rgba(29, 78, 137, 0.12);
}
.form-field textarea { resize: vertical; min-height: 90px; }

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #d93025; background: #fff6f6; }
.form-error {
  display: none;
  font-size: 0.78rem;
  color: #d93025;
  margin-top: 0.35rem;
  font-weight: 500;
}
.form-field.has-error .form-error { display: block; }

.form-subhead { font-size: 0.9rem; font-weight: 700; margin: 0.4rem 0 0.8rem; }
.form-subhead span { color: #d93025; }

/* radio cards for Air / Sea */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio-card { position: relative; }
.radio-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.radio-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  border: 2px solid rgba(14, 42, 77, 0.15);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease-out);
}
.radio-card__body i { font-size: 1.4rem; color: var(--clr-secondary); margin-bottom: 0.3rem; }
.radio-card__body small { color: var(--clr-text-soft); }
.radio-card:hover .radio-card__body { transform: translateY(-3px); border-color: var(--clr-secondary); }
.radio-card input:checked + .radio-card__body {
  border-color: var(--clr-accent);
  background: rgba(200, 16, 46, 0.1);
}
.radio-card input:focus-visible + .radio-card__body {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.quote-form__hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--clr-text-soft);
  margin-top: 1rem;
}
.quote-form__hint i { color: var(--clr-whatsapp); }

.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Lock page scroll while modal open */
body.modal-open { overflow: hidden; }

/* ==== 22. Floating elements ============================================== */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1500;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--clr-whatsapp);
  color: var(--clr-white);
  font-size: 1.9rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.1); }
/* pulse ring */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--clr-whatsapp);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}

.whatsapp-float__tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  background: var(--clr-white);
  color: var(--clr-text);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift);
  padding: 0.55rem 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.whatsapp-float:hover .whatsapp-float__tip,
.whatsapp-float:focus-visible .whatsapp-float__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.back-to-top {
  position: fixed;
  right: 1.65rem;
  bottom: 6.4rem;
  z-index: 1500;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out), background-color 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--clr-accent); color: var(--clr-white); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 3000;
  transform: translateX(-50%) translateY(20px);
  background: var(--clr-primary-dark);
  color: var(--clr-white);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s;
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast--success { background: var(--clr-secondary); }
.toast--error { background: #b3261e; }

/* ==== 23. Responsive ====================================================== */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Mobile nav drawer */
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: block; margin-top: 0.6rem; }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--clr-white);
    box-shadow: 0 24px 40px rgba(14, 42, 77, 0.18);
    padding: 0.8rem 1.4rem 1.6rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.35s, visibility 0.35s;
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
  }
  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__menu .nav__link {
    display: block;
    color: var(--clr-text);
    padding: 0.9rem 0.2rem;
    border-bottom: 1px solid rgba(14, 42, 77, 0.08);
    font-size: 1.02rem;
  }
  .nav__menu .nav__link::after { display: none; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }

  .split { grid-template-columns: 1fr; }
  .about__badge { right: 0.8rem; bottom: -1.2rem; }

  /* Timeline collapses to a single left rail */
  .timeline::before { left: 26px; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 2rem 4.6rem;
  }
  .timeline__marker,
  .timeline__item:nth-child(even) .timeline__marker { left: 0; right: auto; }

  .footer__bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .form-grid, .form-grid--dims { grid-template-columns: 1fr 1fr; }
  .form-grid > .form-field:not(.form-field--full) { grid-column: auto; }
  .radio-cards { grid-template-columns: 1fr; }
  .hero__buttons .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
  .whatsapp-float { width: 56px; height: 56px; font-size: 1.7rem; }
  .back-to-top { bottom: 5.9rem; }
}

@media (max-width: 400px) {
  .form-grid, .form-grid--dims { grid-template-columns: 1fr; }
}

/* ==== 24. Reduced motion ================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .parallax { transform: none !important; }
}
