/* tours.html: ported from live's custom-code block, scoped under .tp so it cannot leak into the shared header/footer.
   Live's page-wide <body> rules (cream bg, 18px) are applied to the body here; the fixed white layer mirrors live's
   z-index:-1 viewport-height backdrop, which is why the first section reads white. */
body { background: #f6f2ea; font-size: 18px; }
body::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: #fff; }
.tp {
  --cream: #f6f2ea;
  --cream-soft: #fff6ee;
  --brand-cream: #F6F2EA;
  --charcoal: #2c2c2c;
  --red: #a32626;
  --red-dark: #8e1f1f;
  --gold: #fcb832;
  --blue: #6fa7cc;
  --gray: #6b6b6b;
  --white: #ffffff;
  --overlay: rgba(0,0,0,.48);
  --border: rgba(44,44,44,.18);
  --shadow: 0 24px 70px rgba(44,44,44,.14);
}

.tp, .tp * { box-sizing: border-box; }

.tp {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--charcoal);
  font-size: 18px;
  line-height: normal;
}

.tp p { margin: 0; }
.tp a { color: inherit; text-decoration: none; }
.tp img { display: block; }
.tp h1,
.tp h2,
.tp h3 { line-height: 1.05; margin: 0; }

.tp .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--red);
  color: var(--cream-soft);
  border: 1px solid var(--cream-soft);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: all .3s ease;
  cursor: pointer;
  font-family: 'EB Garamond', Georgia, serif;
  animation: buttonPulseGlow 2.5s infinite;
}

.tp .button:hover { background: var(--red-dark); transform: translateY(-1px); }

.tp .button.secondary {
  background: var(--cream-soft);
  color: var(--red);
  border: 1px solid rgba(163,38,38,.28);
  animation: none;
}

.tp .button.secondary:hover { background: var(--red); color: var(--white); }

.tp .hero {
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 150px 20px 110px;
  color: var(--white);
  text-align: center;
  background-image:
    linear-gradient(var(--overlay), var(--overlay)),
    url('../assets/img/tours-hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.tp .hero::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -90px;
  height: 150px;
  background: #FFFFFF;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
}

.tp .hero-content {
  max-width: 860px;
  position: relative;
  z-index: 1;
  transform: translateY(-75px);
}

.tp .hero h1 {
  font-size: clamp(32px, 6vw, 65px);
  letter-spacing: .02em;
  font-weight: 700;
}

.tp .hero p {
  font-size: clamp(22px, 2.7vw, 30px);
  font-weight: 600;
  max-width: 760px;
  margin: 28px auto 36px;
  line-height: 1.35;
}

.tp section { padding: 86px clamp(18px, 5vw, 72px); }
.tp .container { max-width: 1180px; margin: 0 auto; }

.tp .section-intro {
  max-width: 900px;
  margin: 0 auto 52px;
  text-align: center;
}

.tp .section-intro h2,
.tp .split-copy h2,
.tp .testimonial h2,
.tp .gallery-section h2,
.tp .cta-section h2,
.tp .joy-wrap h2,
.tp .mission-card h3,
.tp .how-card h3,
.tp .card h3 {
  color: var(--red);
  font-size: 34px;
  font-weight: 400;
  text-transform: none;
  line-height: 1.3;
}

.tp .section-intro p {
  color: var(--gray);
  font-size: 21px;
  max-width: 760px;
  margin: 14px auto 0;
}

.tp .tour-intro-image-wrap { max-width: 900px; margin: 0 auto 56px; }
.tp .tour-intro-image-wrap img,
.tp .split-image,
.tp .how-grid img {
  width: 100%;
  object-fit: cover;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}
.tp .tour-intro-image-wrap img { height: 480px; }
.tp .split-image { height: 560px; border-width: 10px; }

.tp .joy-wrap { max-width: 980px; margin: 0 auto; text-align: center; }
.tp .joy-wrap h2 { margin-bottom: 18px; }
.tp .joy-wrap > p { color: var(--gray); font-size: 22px; max-width: 820px; margin: 0 auto 18px; }
.tp .joy-cards,
.tp .mission-cards,
.tp .how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 38px auto 0;
}

.tp .card,
.tp .mission-card,
.tp .how-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(44,44,44,.07);
  transition: all .3s ease;
}

.tp .card:hover,
.tp .mission-card:hover,
.tp .how-card:hover,
.tp .gallery-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: rgba(163,38,38,.34);
  box-shadow: 0 18px 42px rgba(44,44,44,.12);
}

.tp .card h3,
.tp .mission-card h3,
.tp .how-card h3 { margin-bottom: 12px; }
.tp .card p,
.tp .mission-card p,
.tp .how-card p { color: var(--gray); margin: 12px 0 0; font-size: 20px; }

.tp .group-section {
  background: var(--red);
  color: var(--white);
  text-align: center;
  border-top: 1px solid rgba(163,38,38,.14);
  border-bottom: 1px solid rgba(163,38,38,.14);
}
.tp .group-section .section-intro h2 { color: var(--white); }
.tp .group-section .section-intro p { color: rgba(255,246,238,.86); max-width: 960px; font-size: 22px; }
.tp .group-section .button { background: var(--cream-soft); color: var(--red); border-color: var(--cream-soft); }
.tp .group-section .button:hover { background: var(--white); color: var(--red-dark); }

.tp .mission-section { background: var(--white); }
.tp .how-it-works { background: var(--cream-soft); }
.tp .how-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: 0 8px 22px rgba(111,167,204,.35);
}
.tp .how-cta { margin-top: 38px; text-align: center; }

.tp .split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; max-width: 1120px; margin: 0 auto; align-items: center; }
.tp .split-grid.reverse { grid-template-columns: 1.05fr .95fr; }
.tp .split-copy { background: var(--white); padding: 46px; border: 2px solid rgba(163,38,38,.16); box-shadow: var(--shadow); }
.tp .split-copy h2 { margin-bottom: 22px; }
.tp .split-copy p { font-size: 22px; color: var(--charcoal); margin-bottom: 18px; }
.tp .feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }

.tp .testimonial {
  color: var(--white);
  text-align: center;
  background-image:
  	linear-gradient(rgba(0,0,0,.60), rgba(163,38,38,.70)),
    url('../assets/img/tours-testimonial-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
.tp .testimonial::before,
.tp .testimonial::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  height: 100px;
  background: var(--cream);
}
.tp .testimonial::before { top: -45px; border-radius: 0 0 50% 50% / 0 0 70% 70%; }
.tp .testimonial::after { bottom: -45px; border-radius: 50% 50% 0 0 / 70% 70% 0 0; }
.tp .testimonial-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.tp .testimonial h2 { color: var(--white); margin-bottom: 18px; }
.tp .stars { color: var(--gold); font-size: 32px; letter-spacing: .08em; margin-bottom: 20px; }
.tp .quote { font-size: 28px; font-weight: 600; line-height: 1.35; margin: 0; }
.tp .quote-name { margin-top: 22px; font-size: 22px; color: rgba(255,255,255,.86); }

.tp .gallery-section { background: var(--cream); text-align: center; }
.tp .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.tp .gallery-card { overflow: hidden; box-shadow: 0 12px 30px rgba(44,44,44,.10); border: 1px solid var(--border); transition: all .3s ease; background: var(--white); cursor: zoom-in; }
.tp .gallery-card img { width: 100%; height: 240px; object-fit: cover; }

.tp .video-section { background: var(--cream-soft); }
.tp .video-wrap { max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: var(--shadow); border: 8px solid var(--white); background: var(--charcoal); }
.tp .video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
/* lite YouTube embed: poster + play button, iframe swapped in on click (js/tours.js) */
.tp .video-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--charcoal); cursor: pointer; }
.tp .video-play img { width: 100%; height: 100%; object-fit: cover; }
.tp .video-play__icon { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; border-radius: 50%; background: var(--red); box-shadow: 0 6px 24px rgba(0,0,0,.35); transform: translate(-50%, -50%); transition: transform .2s ease, background .2s ease; }
.tp .video-play__icon::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--white); }
.tp .video-play:hover .video-play__icon, .tp .video-play:focus-visible .video-play__icon { background: var(--red-dark); transform: translate(-50%, -50%) scale(1.08); }
.tp .video-play:focus-visible { outline: 3px solid var(--white); outline-offset: -8px; }
@media (max-width: 520px) { .tp .video-play__icon { width: 64px; height: 64px; } .tp .video-play__icon::before { border-width: 11px 0 11px 19px; } }

.tp .cta-section { background: var(--cream); text-align: center; padding-top: 90px; padding-bottom: 100px; }
.tp .cta-section h2 { color: var(--red); margin-bottom: 8px; }
.tp .cta-section p { color: var(--gray); font-size: 22px; max-width: 760px; margin: 24px auto 36px; }
.tp .button-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.tp .lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 28px; }
.tp .lightbox-overlay.is-open { display: flex; }
.tp .lightbox-content { position: relative; display: flex; align-items: center; justify-content: center; max-width: 78vw; max-height: 78vh; }
.tp .lightbox-image { max-width: 70vw; max-height: 75vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 25px 60px rgba(0,0,0,.38); background: var(--cream-soft); }
.tp .lightbox-close,
.tp .lightbox-arrow { position: absolute; border: none; background: var(--red); color: var(--white); border-radius: 50px; cursor: pointer; font-family: 'EB Garamond', Georgia, serif; transition: all .25s ease; }
.tp .lightbox-close:hover,
.tp .lightbox-arrow:hover { background: var(--red-dark); transform: scale(1.04); }
.tp .lightbox-close { top: -18px; right: -18px; width: 42px; height: 42px; font-size: 24px; line-height: 1; }
.tp .lightbox-arrow { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.tp .lightbox-arrow:hover { transform: translateY(-50%) scale(1.04); }
.tp .lightbox-prev { left: -64px; }
.tp .lightbox-next { right: -64px; }


/* Restored original How It Works section design */
.how-it-works {
  background: var(--cream);
}

.tp .how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.tp .how-card {
  background: var(--white);
  border-radius: 5px;
  padding: 34px 28px;
  box-shadow: 0 12px 30px rgba(44,44,44,.07);
  border: 1px solid rgba(163,38,38,.16);
  text-align: center;
  transition: all .3s ease;
}

.tp .how-card:hover {
  transform: translateY(-8px);
  border-color: rgba(163,38,38,.45);
  box-shadow:
    0 22px 55px rgba(44,44,44,.16),
    0 0 0 2px rgba(163,38,38,.12),
    0 0 26px rgba(163,38,38,.16);
}

.tp .how-number {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 28px;
  font-weight: 700;
  border: 0;
  box-shadow: none;
}

.tp .how-card h3 {
  color: var(--red);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.tp .how-card p {
  color: var(--gray);
  font-size: 20px;
  margin: 0;
}

.tp .how-cta {
  margin-top: 38px;
  text-align: center;
}

@keyframes buttonPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(163, 38, 38, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(163, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 38, 38, 0); }
}

@media (max-width: 900px) {
  .tp .hero { min-height: 590px; padding-top: 170px; background-attachment: scroll; }
  .tp .hero-content { transform: translateY(-20px); }
  .tp .joy-cards,
.tp .mission-cards,
.tp .how-grid,
.tp .gallery-grid,
.tp .split-grid,
.tp .split-grid.reverse,
.tp .feature-list { grid-template-columns: 1fr; }
  .tp .split-image { height: 420px; }
  .tp .split-copy { padding: 32px 26px; }
  .tp .testimonial { background-attachment: scroll; }
}

@media (max-width: 768px) {
  .tp .lightbox-content { max-width: 94vw; max-height: 74vh; }
  .tp .lightbox-image { max-width: 90vw; max-height: 70vh; }
  .tp .lightbox-prev { left: 10px; }
  .tp .lightbox-next { right: 10px; }
  .tp .lightbox-close { top: -54px; right: 0; }
}

@media (max-width: 520px) {
  .tp section { padding-top: 64px; padding-bottom: 64px; }
  .tp .hero h1 { font-size: 36px; }
  .tp .hero p { font-size: 21px; }
  .tp .section-intro h2,
.tp .split-copy h2,
.tp .card h3,
.tp .testimonial h2,
.tp .gallery-section h2,
.tp .cta-section h2,
.tp .mission-card h3,
.tp .how-card h3,
.tp .joy-wrap h2 { font-size: 30px; }
  .tp .quote { font-size: 23px; }
  .tp .gallery-card img { height: 220px; }
  .tp .tour-intro-image-wrap img { height: 300px; }
}
