﻿/* ---------- Design tokens and global reset ---------- */
:root {
  --lavender: #b0c4de;
  --lavender-light: #e8eef6;
  --navy: #191970;
  --navy-deep: #10104f;
  --magenta: #b800b5;
  --ink: #2b2d31;
  --white: #fff;
  --shadow: 0 18px 50px rgba(25, 25, 112, .14);
  --radius: 18px;
  --container: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1, h2 {
  color: var(--navy);
  font-family: "Great Vibes", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}
h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 7vw, 5.5rem); }
h2 { margin-bottom: 20px; font-size: clamp(2.6rem, 5vw, 4.25rem); }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding-block: clamp(72px, 10vw, 120px); }
.eyebrow {
  margin-bottom: 10px;
  color: var(--magenta);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { color: var(--navy); background: transparent; transform: translateY(-2px); }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Contact bar and site header ---------- */
.contact-bar {
  padding: 10px 24px;
  color: var(--navy-deep);
  background: var(--lavender);
  text-align: center;
  font-size: .9rem;
}
.contact-bar p { margin: 0; }
.contact-bar a { font-weight: 700; }
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(25, 25, 112, .1);
  background: rgba(255, 255, 255, .96);
}
.header-inner {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  color: var(--navy);
  font-family: "Great Vibes", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
  text-decoration: none;
}

/* Header logo: preserve its natural aspect ratio at responsive sizes. */
.header-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
}
.header-brand img {
  width: auto;
  height: 125px;
  flex: 0 0 auto;
  object-fit: contain;
}
.header-brand-name {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--navy); font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--magenta); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: transparent;
}
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy); }

/* ---------- Hero section ---------- */
.hero {
  padding-block: clamp(64px, 9vw, 110px);
  background: linear-gradient(120deg, var(--lavender-light), var(--white) 62%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 30px; font-size: 1.15rem; }
.hero-image-wrap { position: relative; margin: 0; }
.hero-image-wrap::before {
  position: absolute;
  z-index: 0;
  inset: -18px 18px 18px -18px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  content: "";
}
.hero-image-wrap img {
  position: relative;
  z-index: 1;
  aspect-ratio: 1.25 / 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* Hero image title overlay: the subtle shade keeps the bordered white text legible. */
.hero-image-wrap::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: var(--radius);
  background: rgba(16, 16, 79, .16);
  content: "";
  pointer-events: none;
}

.hero-image-overlay {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(78%, 520px);
  padding: clamp(12px, 2.5vw, 24px) clamp(18px, 4vw, 42px);
  border: 2px solid rgba(255, 255, 255, .95);
  color: var(--white);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(2.1rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .38);
  transform: translate(-50%, -50%);
}

/* Hero destination caption: a smaller label sits below the Travelers overlay. */
.hero-location-caption {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: var(--white);
  font-size: clamp(.72rem, 1.5vw, .92rem);
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

/* ---------- Tailored travel services ---------- */
.services { background: var(--white); }
.services .narrow > p:not(.eyebrow) { font-size: 1.08rem; }
.service-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.service-tags span {
  padding: 8px 17px;
  border: 1px solid rgba(25, 25, 112, .25);
  border-radius: 999px;
  color: var(--navy);
  background: var(--lavender-light);
  font-size: .87rem;
  font-weight: 600;
}

/* ---------- Travel gallery ---------- */
.gallery { background: var(--lavender); }
.section-heading { max-width: 900px; margin: 0 auto 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 280px);
  gap: 20px;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery-item-wide { grid-row: 1 / 3; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform 500ms ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 22px 18px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(16, 16, 79, .88));
  font-weight: 600;
}

/* ---------- Static contact links ---------- */
.contact { background: var(--white); }
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 8vw, 100px);
  align-items: center;
  padding: clamp(36px, 6vw, 70px);
  border-radius: var(--radius);
  background: var(--lavender-light);
  box-shadow: var(--shadow);
}
.contact-copy p:last-child { margin-bottom: 0; }
.contact-actions { display: grid; gap: 14px; }
.contact-link {
  display: flex;
  flex-direction: column;
  padding: 19px 22px;
  border-left: 4px solid var(--magenta);
  border-radius: 0 10px 10px 0;
  color: var(--navy);
  background: var(--white);
  overflow-wrap: anywhere;
  text-decoration: none;
}
a.contact-link:hover, a.contact-link:focus-visible { box-shadow: 0 8px 24px rgba(25, 25, 112, .12); }
.contact-label {
  color: var(--ink);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Mailing-list replacement callout ---------- */
.mailing-list {
  padding-block: clamp(60px, 8vw, 90px);
  color: var(--white);
  background:
    linear-gradient(rgba(25, 25, 112, .88), rgba(25, 25, 112, .88)),
    url("../images/manuel-antonio-public-beach-costa-rica-2023.jpg") center / cover;
}
.mailing-list h2 { color: var(--white); }
.button-light { border-color: var(--white); color: var(--navy); background: var(--white); }
.button-light:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 36px; color: var(--ink); background: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-footer { font-size: 2.3rem; }
.footer-inner p { margin: 0; font-size: .82rem; text-align: right; }

/* ---------- Tablet layout ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-image-wrap { width: calc(100% - 18px); margin-left: 18px; }
  .gallery-grid { grid-template-rows: repeat(2, 230px); }
}

/* ---------- Mobile navigation and stacked content ---------- */
@media (max-width: 700px) {
  .container { width: min(100% - 32px, var(--container)); }
  .contact-bar { padding-inline: 16px; font-size: .8rem; }
  .header-inner { min-height: 88px; }
  .header-inner { gap: 12px; }
  .header-brand { gap: 8px; }
  .header-brand img { height: 52px; }
  .header-brand-name { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(25, 25, 112, .15);
    background: var(--white);
    box-shadow: 0 12px 22px rgba(25, 25, 112, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item, .gallery-item-wide { grid-row: auto; min-height: 260px; }
  .contact-card { padding: 30px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-inner p { text-align: center; }
}

/* ---------- Reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
