/* ==========================================================================
   CTA banner + Footer
   Replica of the earthroamer.com pre-footer / footer (values measured from
   their live CSS), filled with Intercept content.
   ========================================================================== */

:root {
  --f-bg: #111111;
  --f-muted: #999999;
  --f-dim: #777777;
  --f-line: rgba(255, 255, 255, 0.12);
  --f-font-head: var(--font-label);   /* Figtree — Storyteller footer labels */
  --f-font-body: var(--font-body);    /* DM Sans */
  --f-ease: cubic-bezier(0.645, 0.045, 0.355, 1);

  /* earthroamer spacing scale */
  --s150: 150px;
  --s100: 100px;
  --s45: 45px;
}

@media (max-width: 1440.98px) { :root { --s150: 100px; --s100: 80px; --s45: 40px; } }
@media (max-width: 991.98px)  { :root { --s150: 80px;  --s100: 60px; --s45: 36px; } }
@media (max-width: 767.98px)  { :root { --s150: 60px;  --s100: 50px; --s45: 36px; } }
@media (max-width: 575.98px)  { :root { --s150: 50px;  --s100: 45px; --s45: 30px; } }

/* Scroll reveal (Elementor "fadeInUp") ------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1.25s ease, transform 1.25s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  position: relative;
  min-height: 970px;
  padding: var(--s150) 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: var(--f-bg);
}

.cta-banner__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -25%;
  height: 150%;
  background: url("../images/footer/tourBus.avif") center / cover no-repeat;
  will-change: transform;
}

/* Dark gradient over the photo */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../images/footer/black-gradian.avif") center / cover no-repeat;
}

/* Solid #111 cover that fades out as the section scrolls in */
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--f-bg);
  pointer-events: none;
  transition: opacity 0.5s linear, visibility 0.5s linear;
}

.cta-banner.is-in::after { opacity: 0; visibility: hidden; }

.cta-banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1015px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.cta-banner__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.81px;
  text-transform: uppercase;
  color: #fff;
}

/* Word-by-word blur-in (earthroamer "textAnimate") */
.cta-banner__title .word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
  transition-delay: calc(var(--w) * 0.08s);
}

.cta-banner__title.is-in .word {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.cta-banner__text {
  max-width: 660px;
  margin: 0;
  font-family: var(--f-font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: #e6dfd2;
}

/* Button — white, #333 sweep on hover */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 18px 40px;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 0;
  border-radius: 18px;
  transition: color 0.6s 0.1s var(--f-ease), opacity 1.25s ease, transform 1.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s 0.1s var(--f-ease);
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.6s var(--f-ease) 0.2s;
}

.btn > *,
.btn { z-index: 1; }

.btn--light { background: #df5828; color: #fff; }
.btn--light::after { background: #c44a1f; z-index: -1; }
.btn--light:hover { color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--f-bg);
  color: #fff;
  font-family: var(--f-font-body);
}

.site-footer a { transition: color 0.3s ease; }
.site-footer a:hover { color: var(--f-muted); }

.footer-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-heading {
  margin: 0;
  font-family: var(--f-font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--f-muted);
}

.footer-heading em {
  display: block;
  margin-top: 4px;
  font-size: 0.75em;
  font-weight: 300;
  letter-spacing: 1px;
}

.footer-subheading {
  font-family: var(--f-font-body);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--f-muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col p,
.footer-col li {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.footer-col ul { margin: 0; padding: 0; list-style: none; }

/* Top block --------------------------------------------------------- */
.footer-top {
  position: relative;
  padding: var(--s100) 20px;
}

/* Gradient that melts the CTA photo into the footer */
.footer-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  height: 150px;
  background: url("../images/footer/footer-shap.svg") top center / cover no-repeat;
  pointer-events: none;
  z-index: 3;
}

.footer-top .footer-inner {
  display: flex;
  gap: 20px;
}

.footer-brand {
  flex: 0 0 calc(33.33% - 10px);
  padding-right: 14%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand img { width: 300px; max-width: 100%; height: auto; }

.footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--f-dim);
}

.footer-brand p a { color: #fff; }

/* Columns size to their content (long emails) and spread out */
.footer-info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  align-content: start;
  gap: 40px 40px;
}

.footer-hours li { white-space: nowrap; }

.footer-hours li span {
  display: inline-block;
  padding-right: 20px;
}

.footer-spacer { height: 15px; margin-bottom: -10px; }

/* Link columns ------------------------------------------------------ */
.footer-links {
  padding: var(--s100) 20px;
  border-top: 1px solid var(--f-line);
}

.footer-links .footer-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 45px;
  justify-items: start;
}

.footer-social {
  display: flex;
  gap: 7px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #656565;
  border-radius: 50%;
  background: #000;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.1);
  border-color: #fff;
}

.footer-social svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

/* Bottom bar -------------------------------------------------------- */
.footer-bottom {
  padding: var(--s45) 20px;
  border-top: 1px solid var(--f-line);
}

.footer-bottom .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Tagline in the spirit of earthroamer's "— LIVE YOUR DREAM —" mark */
.footer-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.81px;
  text-transform: uppercase;
  color: #fff;
}

.footer-tagline::before,
.footer-tagline::after {
  content: "";
  width: 30px;
  height: 2px;
  background: #fff;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.footer-tagline::after { clip-path: polygon(0 0, 100% 50%, 0 100%); }

.footer-copy {
  font-size: 14px;
  line-height: 1.5;
  text-align: end;
  color: var(--f-muted);
}

/* Back to top ------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 99;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #333;
  border: 1px solid #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

.back-to-top svg {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

.back-to-top svg path { transition: fill 0.2s; }
.back-to-top:hover svg path { fill: var(--c-accent); }

body.menu-open .back-to-top { opacity: 0; pointer-events: none; }

/* Responsive -------------------------------------------------------- */
@media (max-width: 1440.98px) {
  .cta-banner__title { font-size: 34px; }
  .footer-brand { padding-right: 5%; }
  .footer-links .footer-inner { gap: 15px; }
}

@media (max-width: 1200.98px) {
  .cta-banner { min-height: 750px; }
  .cta-banner__title { font-size: 32px; }
  .footer-top .footer-inner { flex-wrap: wrap; }
  .footer-brand { flex-basis: 66.66%; }
  .footer-info { flex-basis: 100%; }
}

@media (max-width: 991.98px) {
  .footer-brand { flex-basis: 100%; padding-right: 0; }
  .footer-info { justify-content: start; column-gap: 80px; }
  .footer-links .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 40px 15px; }
}

@media (max-width: 767.98px) {
  .cta-banner { min-height: 550px; }
  .cta-banner__title { font-size: 26px; }
  .cta-banner__text { font-size: 18px; }
  .footer-info { grid-template-columns: repeat(2, auto); column-gap: 40px; }
  .footer-col a[href^="mailto"] { overflow-wrap: anywhere; }
  .footer-links .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: start; }
  .back-to-top { right: 20px; bottom: 20px; }
}

@media (max-width: 445.98px) {
  .footer-info,
  .footer-links .footer-inner { grid-template-columns: 1fr; }
  .cta-banner__text br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .cta-banner__title .word { transition: none; opacity: 1; transform: none; filter: none; }
  .cta-banner__bg { transform: none !important; }
}

/* Small-screen polish */
.site-footer a[href^="tel"] { white-space: nowrap; }
.footer-tagline::before,
.footer-tagline::after { flex: 0 0 30px; }

@media (max-width: 575.98px) {
  .footer-tagline { font-size: 12px; }
}

/* ==========================================================================
   Footer v2 — trust strip · brand + 3 link columns + newsletter · legal bar
   ========================================================================== */
.site-footer .footer-inner { max-width: 1280px; padding: 0 var(--gutter); }

/* Trust strip */
.footer-top.sf-trust { padding: 44px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.footer-top .sf-trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 auto;
  list-style: none;
}

.sf-trust__list li { display: flex; align-items: center; gap: 14px; }
.sf-trust__list .ico { width: 34px; height: 34px; }
.sf-trust__list span { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.35; color: var(--f-muted); }
.sf-trust__list strong { font-family: var(--f-font-head); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }

/* Main grid */
.sf-main { padding: 64px 0 56px; }

.sf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.9fr)) minmax(0, 1.3fr);
  gap: 40px;
}

.sf-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.sf-brand > p { margin: 0 0 20px; max-width: 330px; font-size: 15px; line-height: 1.6; color: var(--f-muted); }

.sf-contact { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; }
.sf-contact a,
.sf-contact span { display: inline-flex; align-items: flex-start; gap: 10px; line-height: 1.45; color: #fff; }
.sf-contact svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--c-accent); stroke-width: 1.6; stroke-linejoin: round; }
.sf-contact a:hover { color: var(--c-accent); }

.site-footer .footer-social { display: flex; gap: 10px; }
.site-footer .footer-social a { width: 42px; height: 42px; }
.site-footer .footer-social svg { width: 17px; height: 17px; }
.site-footer .footer-social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.site-footer .footer-social a:hover svg { fill: #fff; }

.sf-col .footer-heading,
.sf-news .footer-heading { margin-bottom: 20px; color: #fff; }
.sf-col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sf-col a { font-size: 15px; line-height: 1.35; color: var(--f-muted); }
.sf-col a:hover { color: #fff; }

.sf-tag {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(223, 88, 40, 0.2);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  vertical-align: 1px;
}

.sf-news p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--f-muted); }

.sf-news__form {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.sf-news__form:focus-within { border-color: var(--c-accent); }

.sf-news__form input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.sf-news__form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.sf-news__form button {
  display: grid;
  place-items: center;
  width: 54px;
  border: 0;
  background: var(--c-accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.sf-news__form button:hover { background: #c44a1f; }
.sf-news__form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.sf-news .sf-news__msg { min-height: 20px; margin: 10px 0 0; font-size: 13px; }
.sf-news__msg.is-ok { color: #8fd17b; }
.sf-news__msg.is-error { color: #ff8a7a; }

/* Legal bar */
.sf-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 26px 0; }

.sf-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.sf-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.sf-legal a,
.sf-legal button { padding: 0; border: 0; background: none; font: inherit; color: var(--f-muted); cursor: pointer; }
.sf-legal a:hover,
.sf-legal button:hover { color: #fff; }
.sf-bottom .footer-copy { font-size: 13px; color: var(--f-muted); }

@media (max-width: 1200px) {
  .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-brand,
  .sf-news { grid-column: span 3; }
  .sf-news { max-width: 520px; }
  .footer-top .sf-trust__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .footer-top.sf-trust { padding: 32px 0; }
  .footer-top .sf-trust__list { gap: 22px 16px; }
  .sf-trust__list li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sf-trust__list .ico { width: 28px; height: 28px; }
  .sf-trust__list span { font-size: 13px; }
  .sf-trust__list strong { font-size: 11px; }
  .sf-main { padding: 44px 0 36px; }
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .sf-brand,
  .sf-news { grid-column: span 2; }
  .sf-col:last-of-type { grid-column: span 2; }
  .sf-brand img { width: 190px; }
  .sf-bottom__inner { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1201px) {
  .sf-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); }
  .sf-col a { white-space: nowrap; }
}
.sf-bottom .footer-tagline { flex: 0 1 auto; margin: 0; }

@media (min-width: 992px) {
  .sf-bottom__inner { flex-wrap: nowrap; }
}

@media (max-width: 400px) {
  .sf-col a { font-size: 14px; }
}

/* ==========================================================================
   Footer v3 — Instagram strip, labelled socials, big wordmark
   ========================================================================== */
.sf-ig { position: relative; z-index: 4; }

.sf-ig__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.sf-ig__grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.sf-ig__grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.85); transition: transform 0.6s ease, filter 0.4s ease; }
.sf-ig__grid a:hover img { transform: scale(1.06); filter: none; }

.sf-ig__label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  background: #fff;
  color: #151210;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.site-footer .sf-ig__label:hover { color: #151210; transform: translate(-50%, calc(-50% - 2px)); }
.sf-ig__label svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Labelled social buttons */
.site-footer .footer-social { flex-wrap: wrap; gap: 8px; }

.site-footer .footer-social a {
  display: inline-flex;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.site-footer .footer-social a:hover { transform: none; border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.site-footer .footer-social svg { width: 15px; height: 15px; fill: #fff; }

/* Giant outlined wordmark */
.sf-bottom { overflow: hidden; padding-bottom: 0; }

.sf-wordmark {
  margin: 28px 0 -0.2em;
  font-family: var(--font-head);
  font-size: 18.5vw;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 85%);
  -webkit-background-clip: text;
          background-clip: text;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .sf-ig__grid { grid-template-columns: repeat(3, 1fr); }
  .sf-ig__label { padding: 11px 16px; font-size: 13px; }
}
.sf-wordmark { font-size: 13.2vw; margin-top: 36px; }
.sf-bottom .footer-copy { white-space: nowrap; }
