/*
  Travel Trek Tourism — unified responsive design and 3D motion layer
  Version: 4.0.0
*/
:root {
  --tt-container: 1240px;
  --tt-gutter: clamp(18px, 3.4vw, 42px);
  --tt-section-space: clamp(74px, 8vw, 112px);
  --tt-radius-sm: 12px;
  --tt-radius-md: 18px;
  --tt-radius-lg: 26px;
  --tt-shadow-soft: 0 16px 42px rgba(43, 29, 85, .10);
  --tt-shadow-lift: 0 28px 65px rgba(43, 29, 85, .18);
  --tt-ease: cubic-bezier(.2, .75, .25, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
}

.container {
  width: min(var(--tt-container), calc(100% - (var(--tt-gutter) * 2))) !important;
  max-width: var(--tt-container);
  margin-inline: auto;
}

.section {
  padding-block: var(--tt-section-space) !important;
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto clamp(34px, 4.5vw, 54px) !important;
}

.section-heading h2,
.story-copy h2,
.promise-copy h2,
.service-promise-copy h2,
.tour-help-copy h2,
.coverage-copy h2,
.quote-copy h2,
.contact-side h2,
.hours-panel h2 {
  text-wrap: balance;
}

.section-heading p,
.hero-description,
.story-copy p,
.promise-copy p,
.service-promise-copy p,
.tour-help-copy p,
.coverage-copy p,
.quote-copy p,
.contact-side > p {
  text-wrap: pretty;
}

/* Shared header geometry */
.site-header {
  height: 88px !important;
}

.site-header.scrolled {
  height: 74px !important;
}

.site-header .nav-wrap {
  width: 100%;
  min-width: 0;
  gap: clamp(18px, 2.4vw, 34px);
}

.logo {
  min-width: 218px !important;
  transform-style: preserve-3d;
  perspective: 800px;
}

.logo-mark {
  transform: translateZ(18px);
  transition: transform .45s var(--tt-ease), filter .45s ease;
}

.logo:hover .logo-mark {
  transform: translateZ(30px) rotateY(-12deg) rotateX(5deg);
  filter: drop-shadow(0 14px 22px rgba(22, 13, 52, .28));
}

.logo-copy {
  transform: translateZ(10px);
}

.desktop-nav {
  gap: clamp(14px, 1.55vw, 27px) !important;
  white-space: nowrap;
}

.desktop-nav a {
  font-size: clamp(.76rem, .84vw, .88rem) !important;
  letter-spacing: .015em;
}

.nav-actions {
  flex: 0 0 auto;
}

.menu-btn,
.close-menu {
  touch-action: manipulation;
}

/* Shared hero alignment */
.hero {
  min-height: clamp(640px, 78vh, 760px) !important;
  overflow: hidden;
  perspective: 1200px;
}

.hero-content {
  width: min(100%, 790px);
  max-width: 790px !important;
  padding-block: clamp(176px, 21vh, 220px) clamp(92px, 12vh, 130px) !important;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.75rem, 5.5vw, 5.05rem) !important;
  line-height: .99 !important;
  letter-spacing: -.062em !important;
  text-wrap: balance;
}

.hero-description {
  width: min(100%, 700px);
  font-size: clamp(.98rem, 1.25vw, 1.1rem);
  line-height: 1.75;
}

.hero-buttons {
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  min-height: 49px !important;
  border-radius: 11px !important;
  padding-inline: clamp(18px, 2vw, 24px) !important;
  white-space: nowrap;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.btn:hover {
  transform: translate3d(0, -3px, 12px) !important;
}

/* 3D hero ornaments */
.tt-hero-depth {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transform-style: preserve-3d;
}

.tt-orb {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
  transition: transform .35s ease-out;
}

.tt-orb > i {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.025)),
    linear-gradient(145deg, rgba(255,113,103,.16), rgba(111,81,215,.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 24px 55px rgba(24, 14, 55, .2);
  backdrop-filter: blur(5px);
  animation: ttFloat3d 9s ease-in-out infinite;
}

.tt-orb--one {
  right: 8%;
  top: 22%;
  width: clamp(76px, 8vw, 126px);
  height: clamp(76px, 8vw, 126px);
}

.tt-orb--one > i {
  animation-delay: -1.5s;
}

.tt-orb--two {
  right: 23%;
  bottom: 13%;
  width: clamp(48px, 5vw, 82px);
  height: clamp(48px, 5vw, 82px);
}

.tt-orb--two > i {
  border-radius: 50%;
  animation-delay: -4s;
  animation-duration: 11s;
}

.tt-orb--three {
  left: 5%;
  bottom: 9%;
  width: clamp(36px, 4vw, 64px);
  height: clamp(36px, 4vw, 64px);
  opacity: .7;
}

.tt-orb--three > i {
  animation-delay: -6s;
  animation-duration: 12s;
}

@keyframes ttFloat3d {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateX(8deg) rotateY(-10deg) rotateZ(0deg);
  }
  35% {
    transform: translate3d(0, -16px, 28px) rotateX(-10deg) rotateY(16deg) rotateZ(8deg);
  }
  70% {
    transform: translate3d(0, 8px, 8px) rotateX(12deg) rotateY(7deg) rotateZ(-7deg);
  }
}

/* Shared 3D card system */
.tt-tilt {
  --tt-rx: 0deg;
  --tt-ry: 0deg;
  --tt-lift: 0px;
  --tt-scale: 1;
  position: relative;
  transform:
    perspective(1100px)
    rotateX(var(--tt-rx))
    rotateY(var(--tt-ry))
    translate3d(0, var(--tt-lift), 0)
    scale(var(--tt-scale)) !important;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform .24s ease-out,
    box-shadow .35s var(--tt-ease),
    border-color .3s ease !important;
}

.tt-tilt:hover {
  --tt-lift: -8px;
  --tt-scale: 1.006;
  box-shadow: var(--tt-shadow-lift) !important;
}

.tt-tilt::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--tt-shine-opacity, 0);
  background:
    radial-gradient(
      circle at var(--tt-shine-x, 50%) var(--tt-shine-y, 50%),
      rgba(255,255,255,.30),
      rgba(255,255,255,.08) 22%,
      transparent 52%
    );
  transition: opacity .2s ease;
}

.tt-tilt.is-tilting {
  --tt-shine-opacity: 1;
}

.tt-tilt > :not(img):not(.tour-card-media):not(.vehicle-image) {
  transform: translateZ(14px);
  transform-style: preserve-3d;
}

.package-card,
.testimonial-card,
.value-card,
.purpose-card,
.approach-step,
.service-card,
.traveler-card,
.process-card,
.tour-card,
.tour-type-card,
.transfer-service-card,
.vehicle-card,
.transfer-step,
.contact-card {
  border-radius: var(--tt-radius-md) !important;
}

/* Shared content bands and grids */
.trust-strip,
.identity-strip,
.service-intro,
.tour-intro,
.transfer-trust,
.contact-overview {
  padding-block: clamp(34px, 4vw, 52px) !important;
}

.cta-section {
  padding-block: clamp(72px, 8vw, 104px) !important;
}

.cta-grid {
  gap: clamp(34px, 5vw, 72px) !important;
}

.stats {
  min-width: 0;
}

.stat {
  min-width: 0;
}

footer {
  overflow: hidden;
}

.footer-grid {
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(130px, .72fr)) minmax(220px, 1fr) !important;
  gap: clamp(26px, 3vw, 44px) !important;
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-contact a,
.footer-contact span {
  overflow-wrap: anywhere;
}

/* Forms and interactive controls */
input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  max-width: 100%;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 113, 103, .55);
  outline-offset: 3px;
}

.transfer-form,
.contact-form {
  width: 100%;
  min-width: 0;
}

.form-grid,
.contact-form-grid,
.enhanced-field-grid {
  min-width: 0;
}

.form-field,
.contact-field,
.input-wrap,
.contact-input-wrap {
  min-width: 0;
}

.mobile-drawer {
  overscroll-behavior: contain;
  overflow-y: auto;
  padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
}

.whatsapp-widget {
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
}

/* Tablet */
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: 1.25fr repeat(2, .75fr) 1fr !important;
  }

  .footer-grid > :nth-child(4) {
    grid-column: 2;
  }

  .footer-grid > :last-child {
    grid-column: 4;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 1020px) {
  :root {
    --tt-gutter: clamp(18px, 4vw, 34px);
    --tt-section-space: clamp(68px, 9vw, 94px);
  }

  .desktop-nav,
  .nav-actions .btn {
    display: none !important;
  }

  .menu-btn {
    display: inline-flex !important;
  }

  .site-header {
    height: 78px !important;
  }

  .site-header.scrolled {
    height: 70px !important;
  }

  .logo {
    min-width: 0 !important;
  }

  .hero {
    min-height: clamp(610px, 74vh, 690px) !important;
  }

  .hero-content {
    width: min(100%, 760px);
    padding-block: clamp(150px, 20vh, 184px) clamp(84px, 11vh, 112px) !important;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 7vw, 4.45rem) !important;
  }

  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr !important;
  }

  .footer-grid > :nth-child(4),
  .footer-grid > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .tt-orb--one {
    right: -2%;
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --tt-gutter: 16px;
    --tt-section-space: 68px;
  }

  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: calc(100% - 32px) !important;
  }

  .site-header,
  .site-header.scrolled {
    height: 70px !important;
  }

  .logo-mark {
    width: 45px !important;
    height: 40px !important;
  }

  .logo-copy {
    font-size: .82rem !important;
  }

  .logo-copy small {
    font-size: .55rem !important;
    letter-spacing: .14em !important;
  }

  .menu-btn {
    width: 44px !important;
    height: 44px !important;
  }

  .hero {
    min-height: 620px !important;
  }

  .hero-content {
    width: 100%;
    padding-block: 142px 84px !important;
  }

  .hero h1 {
    font-size: clamp(2.32rem, 11.4vw, 3.55rem) !important;
    line-height: 1.01 !important;
    letter-spacing: -.052em !important;
  }

  .hero-description {
    font-size: .96rem;
    line-height: 1.68;
  }

  .hero-buttons {
    width: 100%;
    gap: 10px !important;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-heading {
    text-align: left !important;
    margin-left: 0 !important;
  }

  .section-heading p {
    margin-left: 0 !important;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
  }

  .story-grid,
  .purpose-grid,
  .values-grid,
  .approach-grid,
  .promise-grid,
  .services-grid,
  .traveler-grid,
  .process-grid,
  .service-promise-grid,
  .tours-grid,
  .tour-types-grid,
  .tour-help-grid,
  .transfer-services-grid,
  .vehicle-grid,
  .coverage-grid,
  .transfer-process-grid,
  .quote-grid,
  .contact-card-grid,
  .contact-main-grid,
  .visit-grid {
    grid-template-columns: 1fr !important;
  }

  .identity-grid,
  .transfer-trust-grid {
    grid-template-columns: 1fr !important;
  }

  .identity-item,
  .transfer-trust-item {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .identity-item:last-child,
  .transfer-trust-item:last-child {
    border-bottom: 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr !important;
  }

  .stat {
    min-height: 120px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .footer-brand p {
    max-width: 100% !important;
  }

  .tt-orb--one {
    width: 76px;
    height: 76px;
    right: -24px;
    top: 18%;
    opacity: .55;
  }

  .tt-orb--two {
    right: 8%;
    bottom: 7%;
    opacity: .45;
  }

  .tt-orb--three {
    display: none;
  }

  .tt-tilt,
  .tt-tilt:hover {
    --tt-rx: 0deg !important;
    --tt-ry: 0deg !important;
    --tt-scale: 1 !important;
    transform: translate3d(0, var(--tt-lift), 0) !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .whatsapp-panel {
    width: min(340px, calc(100vw - 32px)) !important;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 28px) !important;
  }

  .hero h1 {
    font-size: clamp(2.18rem, 11.8vw, 3rem) !important;
  }

  .stats {
    grid-template-columns: 1fr !important;
  }

  .mobile-drawer {
    width: min(340px, 92vw) !important;
    padding-inline: 22px !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .tt-tilt,
  .tt-tilt:hover {
    --tt-rx: 0deg !important;
    --tt-ry: 0deg !important;
    --tt-scale: 1 !important;
  }
}

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

  .tt-orb > i {
    animation: none !important;
  }

  .tt-orb,
  .tt-tilt,
  .logo-mark,
  .btn {
    transition-duration: .01ms !important;
  }

  .tt-tilt,
  .tt-tilt:hover {
    --tt-rx: 0deg !important;
    --tt-ry: 0deg !important;
    --tt-lift: 0px !important;
    --tt-scale: 1 !important;
    transform: none !important;
  }
}
