@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-italic-T-naVYi.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-italic-LzttllD.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-5HI45_X.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-30nvAOJ.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ypt-orange: #f05f40;        /* brand accent (lines, hover states, backgrounds) */
  --ypt-orange-dark: #c2452a;   /* text and buttons: 5:1 on white */
  --ypt-dark: #212529;
  --ypt-whatsapp: #25d366;
  --bs-font-sans-serif: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --bs-link-color: var(--ypt-orange-dark);
  --bs-link-color-rgb: 194, 69, 42;
  --bs-link-hover-color: var(--ypt-orange);
  --bs-link-hover-color-rgb: 240, 95, 64;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--bs-font-sans-serif);
  padding-top: 0;
}

/* Visible focus for keyboard users everywhere */
:focus-visible {
  outline: 3px solid var(--ypt-orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1100;
  padding: .5rem 1rem;
  background: var(--ypt-dark);
  color: #fff;
  border-radius: .25rem;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

hr.accent {
  width: 50px;
  max-width: 50px;
  height: 3px;
  margin: 1.25rem auto;
  border: 0;
  opacity: 1;
  background: var(--ypt-orange);
}

/* Buttons */
.btn {
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 300px;
}
.btn-primary {
  --bs-btn-bg: var(--ypt-orange-dark);
  --bs-btn-border-color: var(--ypt-orange-dark);
  --bs-btn-hover-bg: var(--ypt-orange);
  --bs-btn-hover-border-color: var(--ypt-orange);
  --bs-btn-active-bg: var(--ypt-orange);
  --bs-btn-active-border-color: var(--ypt-orange);
  --bs-btn-focus-shadow-rgb: 240, 95, 64;
}
.btn-xl {
  padding: 1rem 2rem;
}

/* Navigation */
#mainNav {
  background-color: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(33, 37, 41, .1);
  backdrop-filter: blur(6px);
}
#mainNav .navbar-brand {
  color: var(--ypt-orange-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.5px;
}
#mainNav .nav-link {
  color: var(--ypt-dark);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  padding: .75rem 1rem;
}
#mainNav .nav-link:hover,
#mainNav .nav-link:focus,
#mainNav .nav-link.active {
  color: var(--ypt-orange-dark);
}

/* Hero */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 6rem 0 3rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.masthead-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .55) 100%);
  z-index: -1;
}
.masthead h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3.25rem);
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.masthead .lead {
  max-width: 50rem;
  margin-inline: auto;
  font-size: clamp(1.2rem, .9vw + .95rem, 2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8), 0 0 2px rgba(0, 0, 0, .6);
  text-wrap: balance;
}
.masthead--home {
  min-height: 70vh;
}
.masthead--compact {
  min-height: 260px;
  padding-top: 5.5rem;
}
@media (min-width: 992px) {
  .masthead--home {
    min-height: 80vh;
  }
  .masthead--trip {
    min-height: 60vh;
  }
}

/* Sections */
section {
  padding: 2.5rem 0;
}
.section-heading {
  margin-top: 0;
}

/* Editor content coming from the database */
.content-html {
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: auto;
}
.content-html img {
  max-width: 100%;
  height: auto;
}
.content-html table {
  width: 100%;
  margin-bottom: 1rem;
}
.content-html td,
.content-html th {
  padding: .5rem .75rem;
  border-top: 1px solid #dee2e6;
}
.content-html table.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, .04);
}
.intro .content-html {
  font-size: 1.125rem;
}
.intro .content-html p {
  font-style: normal !important;
  color: inherit !important;
}

/* Trip tiles */
.trip-card {
  position: relative;
  display: block;
  aspect-ratio: 700 / 495;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--ypt-dark);
  color: #fff;
  text-decoration: none;
}
.trip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.trip-card:hover img,
.trip-card:focus-visible img {
  transform: scale(1.04);
}
.trip-card-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .78) 100%);
}
.trip-card-caption h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}
.trip-card:hover,
.trip-card:focus {
  color: #fff;
}

/* Trip page layout: gallery first on phones, after the text on large screens */
.trip-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.trip-gallery {
  order: -1;
}
@media (min-width: 992px) {
  .trip-gallery {
    order: 0;
  }
}
.trip-gallery .carousel-item img {
  height: auto;
  aspect-ratio: 1140 / 746;
  object-fit: cover;
  border-radius: .75rem;
}
.carousel-indicators {
  margin-bottom: .5rem;
}
.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  width: 10px;
  height: 10px;
  margin: 0 2px;
  border: 12px solid transparent;
  border-radius: 50%;
  background-clip: padding-box;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, .8));
}

/* Contact form */
.contact-form .form-control {
  min-height: 3.25rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Trip inquiry form */
#inquiry {
  scroll-margin-top: 4.5rem;
}
.inquiry-form {
  border: 0;
  border-radius: .75rem;
  padding: 1.5rem;
}
.inquiry-form .form-control {
  min-height: 3rem;
}
.inquiry-form .form-label {
  font-weight: 600;
}

/* Contact section */
.contact-icon {
  font-size: 2.5rem;
  color: var(--ypt-orange-dark);
}
.contact-link {
  display: inline-block;
  padding: .5rem;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--ypt-dark);
  color: rgba(255, 255, 255, .75);
  padding: 2.5rem 0 1.5rem;
}
.site-footer a {
  color: #fff;
}
.site-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: .25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 1.35rem;
  color: #fff;
}
.social-link:hover,
.social-link:focus {
  background: var(--ypt-orange);
  color: #fff;
}

/* Floating WhatsApp button */
.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ypt-whatsapp);
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.whatsapp-fab:hover,
.whatsapp-fab:focus {
  color: #fff;
  background: #1ebe5a;
}

/* Cookie consent */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 1rem;
  background: var(--ypt-dark);
  color: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .3);
}
.consent-banner p {
  margin: 0;
  font-size: .95rem;
}
@media (max-width: 767.98px) {
  .consent-banner {
    padding: .75rem 1rem;
    font-size: .9rem;
  }
  .consent-banner .btn {
    padding: .375rem 1rem;
  }
}
.consent-banner .btn {
  text-transform: none;
}
/* While the consent banner is open the floating button would overlap it on small screens */
body:has(.consent-banner:not([hidden])) .whatsapp-fab {
  display: none;
}
@media (min-width: 768px) {
  body:has(.consent-banner:not([hidden])) .whatsapp-fab {
    display: inline-flex;
    bottom: 6rem;
  }
}
