/* Trans Tours Colombia — mobile-first */

:root {
  --navy: #0f2a5c;
  --navy-soft: #eef1f8;
  --green: #16a34a;
  --green-hover: #128a3e;
  --green-dark: #0e6b33;
  --green-soft: #e8f5ec;
  --orange: #e0580f;
  --orange-hover: #c64c0c;
  --text: #3b4758;
  --muted: #5b6676;
  --bg: #ffffff;
  --bg-alt: #f4f4f0;
  --ph-navy: #dde4ee;
  --ph-green: #deeee3;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --gutter: 20px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile { display: none !important; } }

.icon { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  padding: .85em 1.5em;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .nav a:focus-visible, .tile:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.btn-lg { font-size: 1.125rem; padding: 1em 1.8em; }
.btn-xl { font-size: 1.125rem; padding: 1.05em 1.5em; }
@media (min-width: 768px) { .btn-xl { font-size: 1.25rem; padding: 1.05em 2em; } }

.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0a1f47; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-soft { background: var(--navy-soft); color: var(--navy); }
.btn-soft:hover { background: #e2e7f2; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand img { width: 108px; height: auto; }

.nav { display: none; }

/* On mobile the header CTA collapses to the round WhatsApp button */
.header-cta { width: 50px; height: 50px; padding: 0; }
.header-cta .icon { width: 28px; height: 28px; }
.header-cta span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Eyebrow / headings ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}

h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 9.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}
h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}

/* ---------- Hero ---------- */

.hero { padding: 24px 0 48px; }
.hero-grid { display: grid; gap: 32px; }
.lead { margin: 22px 0 28px; font-size: 1.1875rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn-wa { width: 100%; }

.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.tile {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  line-height: 1.4;
  transition: transform .15s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile strong { display: block; font-family: var(--font-head); font-size: 1.125rem; margin-bottom: 6px; }
.tile span { font-size: 1rem; }
.tile-navy { background: var(--navy); color: #fff; }
.tile-navy span { color: #d7deeb; }
.tile-green { background: var(--green-soft); }
.tile-green strong { color: var(--green-dark); }

/* ---------- Media / placeholders ---------- */

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ph-navy);
}
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.3;
}
/* Once a real <img> is added, hide the placeholder label */
.media:has(> img) .media-label { display: none; }

.media-hero { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.3; }

.float-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 42, 92, .08);
  line-height: 1.3;
}
.float-badge strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.float-badge small { font-size: .9375rem; color: var(--muted); }
.badge-icon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: #fff;
}
.badge-icon svg { width: 22px; height: 22px; }

/* ---------- Services ---------- */

.services { background: var(--bg-alt); padding: 56px 0 64px; }
.section-head { margin-bottom: 32px; }
.section-intro { margin: 0; max-width: 30em; font-size: 1.125rem; }

.service-grid { display: grid; gap: 28px; }
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.media-card { aspect-ratio: 16 / 8.7; }
.media-green { background: var(--ph-green); }

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px 30px;
}
.service-body h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: clamp(1.75rem, 6.4vw, 2.25rem);
  line-height: 1.1;
}
.service-body > p { margin: 16px 0 22px; font-size: 1.125rem; }

.service-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px; color: #fff;
}
.service-icon svg { width: 26px; height: 26px; }
.icon-navy { background: var(--navy); }
.icon-green { background: var(--green); }

/* Mobile: sub-services render as chips (titles only) */
.sub-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sub-list li {
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
}
.sub-list li span { display: none; }
.sub-navy li { background: var(--navy-soft); color: var(--navy); }
.sub-green li { background: var(--green-soft); color: var(--green-dark); }

.service-body .btn { margin-top: auto; width: 100%; }

.media-hero > img { object-position: 35% 50%; }

/* Photo strip: swipeable row on mobile, 3 columns on desktop */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 14px;
  margin: 28px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ph-green);
  scroll-snap-align: start;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8125rem;
}

/* ---------- Contact ---------- */

.contact { background: var(--navy); color: #c9d2e3; padding: 56px 0 64px; }
.contact h2 { color: #fff; font-weight: 700; font-size: clamp(1.625rem, 5.6vw, 2.5rem); margin-bottom: 28px; }
.contact address { font-style: normal; font-size: 1.125rem; line-height: 1.7; }
.contact h2 { order: 1; }
.contact .btn { order: 2; width: 100%; margin-bottom: 28px; }
.contact address { order: 3; }
.contact-inner { display: flex; flex-direction: column; }
.contact-text { display: contents; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  padding: 0 0 32px;
}
.site-footer .container {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #c9d2e3;
  font-size: .875rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.made-by strong { color: #fff; font-weight: 600; }
.made-by .icon { width: 14px; height: 14px; }
.made-by:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.made-by:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Tablet ---------- */

@media (min-width: 768px) {
  :root { --gutter: 40px; }

  .brand img { width: 130px; }
  .hero { padding: 36px 0 72px; }
  .hero-actions .btn-wa { width: auto; }

  .services { padding: 88px 0 104px; }
  .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
  .section-head h2 { max-width: 13.5em; }

  .service-body { padding: 36px 40px 40px; }

  /* Desktop: sub-services become a 2×2 grid of cards with descriptions */
  .sub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
  .sub-list li { border-radius: var(--radius-md); padding: 16px 20px; font-size: 1.0625rem; line-height: 1.25; }
  .sub-list li strong { display: block; margin-bottom: 6px; }
  .sub-list li span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--muted);
  }
  .service-body .btn { width: auto; align-self: flex-start; }

  .contact { padding: 72px 0; }
  .contact-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .contact-text { display: block; }
  .contact .btn { width: auto; margin-bottom: 0; }
  .contact h2 { margin-bottom: 16px; }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  html { scroll-padding-top: 120px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .brand img { width: 150px; }

  .nav { display: flex; gap: 40px; margin-left: auto; }
  .nav a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--navy);
    text-decoration: none;
  }
  .nav a:hover { color: var(--orange); }

  .header-cta { width: auto; height: auto; padding: .85em 1.5em; font-size: 1.0625rem; margin-left: 16px; }
  .header-cta .icon { width: 1.35em; height: 1.35em; }
  .header-cta span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
  .hero-copy { padding-top: 20px; }
  .media-hero { aspect-ratio: auto; min-height: 560px; }

  .service-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 32px; margin: 32px 0 0; padding: 0; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile { transition: none; }
}
