/*
Theme Name: Divi Child
Template: Divi
Version: 1.0.0
*/

/* =========================
   BASE
   ========================= */

body {
  padding-bottom: 80px;
  font-family: 'Open Sans Custom', Arial, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a,
a:hover {
  text-decoration: none;
}

/* =========================
   FONTS
   ========================= */

@font-face {
  font-family: 'Open Sans Custom';
  src: url('/wp-content/uploads/fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap; /* CHANGE THIS */
}

@font-face {
  font-family: 'Open Sans Custom';
  src: url('/wp-content/uploads/fonts/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap; /* CHANGE THIS */
}

@font-face {
  font-family: 'Fugaz Custom';
  src: url('/wp-content/uploads/fonts/FugazOne-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ETmodules';
  src: none !important;
}

/* =========================
   HERO (FINAL STABLE)
   ========================= */

.hero-wrapper {
  position: relative;
  width: 100%;
}

/* IMAGE */
.hero-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* DARK OVERLAY */
.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
  pointer-events: none;
}

/* CONTENT OVER IMAGE */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #fff;
  padding: 20px;
}

/* TEXT */
.hero-overlay h1 {
  color: #fff;
  line-height: 1.1;
}

.hero-overlay p {
  color: #fff;
}

/* =========================
   HERO BUTTONS
   ========================= */

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* FIX DIVI AUTO P TAGS */
.hero-buttons p {
  display: contents !important;
  margin: 0 !important;
}

/* BUTTON BASE */
.hero-buttons a,
.hero-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
}

/* =========================
   HERO BUTTON COLORS (LOCKED)
   ========================= */

/* PRIMARY */
.hero-wrapper .flybook-book-now-button,
.hero-wrapper .flybook-book-now-button:hover {
  background-color: #173f74 !important;
  color: #fff !important;
}

/* VIEW TRIPS */
.hero-wrapper .hero-buttons a:nth-of-type(1),
.hero-wrapper .hero-buttons a:nth-of-type(1):hover {
  background-color: #0b71c5 !important;
  color: #fff !important;
  text-transform: uppercase;
}

/* NOW HIRING */
.hero-wrapper .hero-buttons a:nth-of-type(2),
.hero-wrapper .hero-buttons a:nth-of-type(2):hover {
  background-color: #55677f !important;
  color: #fff !important;
  text-transform: uppercase;
}

/* REMOVE HOVER EFFECTS (HERO ONLY) */
.hero-wrapper .hero-buttons a:hover,
.hero-wrapper .hero-buttons button:hover {
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}

/* REMOVE DIVI ICON (HERO ONLY) */
.hero-wrapper .et_pb_button::after,
.hero-wrapper .et_pb_button:hover::after {
  display: none !important;
}

/* =========================
   MOBILE FIX
   ========================= */

@media (max-width: 768px) {

  /* LIGHTER OVERLAY */
  .hero-wrapper::after {
    background: rgba(0,0,0,0.25);
  }

  /* TEXT SIZE */
  .hero-overlay h1 {
    font-size: 22px;
  }

  .hero-overlay p {
    font-size: 14px;
  }

  /* STACK BUTTONS */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
    max-width: 260px;
  }

}

/* =========================
   SAFETY
   ========================= */

.et_pb_section {
  transform: none !important;
}

/* =========================
   REMOVE BUTTON ICON (HERO ONLY)
   ========================= */

.hero-wrapper .et_pb_button::after,
.hero-wrapper .et_pb_button:hover::after {
  display: none !important;
  content: none !important;
}

/* =========================
   STOP TEXT SHIFT ON HOVER
   ========================= */

.hero-wrapper .hero-buttons a,
.hero-wrapper .hero-buttons button,
.hero-wrapper .hero-buttons a:hover,
.hero-wrapper .hero-buttons button:hover {
  padding: 0 20px !important;
}

/* =========================
   MOBILE HERO FIX (RESTORE)
   ========================= */

@media (max-width: 768px) {

  /* HERO HEIGHT FIX */
  .hero-wrapper {
    min-height: 470px;
  }

  .hero-wrapper img {
    height: 470px;
    object-fit: cover;
  }

  /* POSITION CONTENT NICELY */
  .hero-overlay {
    justify-content: flex-start;
    padding-top: 35px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* STACK BUTTONS */
  .hero-wrapper .hero-buttons {
    flex-direction: column !important;
    align-items: center;
    gap: 12px;
  }

  /* FULL WIDTH BUTTONS */
  .hero-wrapper .hero-buttons a,
  .hero-wrapper .hero-buttons button {
    width: 100%;
    max-width: 260px;
    height: 46px;
    padding: 0 16px !important; /* override desktop padding lock */
    font-size: 15px;
  }

  /* TEXT SIZE CLEANUP */
  .hero-overlay h1 {
    font-size: 22px;
    line-height: 1.1;
  }

  .hero-overlay p {
    font-size: 14px;
  }

  /* LIGHTER OVERLAY ON MOBILE */
  .hero-wrapper::after {
    background: rgba(0,0,0,0.25);
  }
}

.hero-overlay h1,
.hero-overlay p {
  font-family: Arial, sans-serif !important;
}

#hero-section .hero-overlay h1 {
  font-family: 'Fugaz Custom', Arial, sans-serif !important;
}