/*
Theme Name:     Next Wave Boat Rentals
Theme URI:      https://example.com/your-theme
Description:    Custom Theme for Next Wave Boat Rentals
Author:         Next Wave Boats
Author URI:     https://nextwaveboats.com
Template:       twentytwentyfive
Version:        1.0.0
*/


/* Button Styles */

.nwbr-button {
  padding: 0.75rem 2rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
  border-radius: 2rem;
  display: inline-block;
}

.nwbr-button.primary {
  background-color: #12d0ff;
  color: #1c1c1c;
}

.nwbr-button.primary:hover {
  background-color: #0bb3df;
  color: #1c1c1c;
}

.nwbr-button.contrast {
  background-color: #1c1c1c;
  color: #fff;
}

.nwbr-button.contrast:hover {
  background-color: #cdcdcd;
  color: #1c1c1c;
}

.nwbr-button.secondary {
  background-color: transparent;
  border: 2px solid #1c1c1c;
  color: #1c1c1c;
}

.nwbr-button.secondary:hover {
  background-color: #cdcdcd;
  color: #1c1c1c;
}

.nwbr-button.clean {
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid white;
  color: white;
}

.nwbr-button.clean:hover {
  background-color: rgba(0, 0, 0, 0.35);
  color: white;
}

.mapx {
    width: 40vw;
    height: 100%;
}

.copyright {
  font-size: small;
}

.rellax {
  will-change: transform;
}

.hero-container {
  position: relative;
  overflow: hidden;
  height: 85vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-parallax-img {
  position: absolute;
  top: -1vh;
  left: 0;
  width: 100vw;
  height: 87vh;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

@media (max-width: 768px) {
 .hero-container {
  height: 65vh;
 }

 .hero-parallax-img {
  top: -5vh;
  height: 72vh;
}
}

.hero-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35); 
  z-index: 1;
}

.hero-overlay {
  position: relative;
  color: white;
  margin: 0 auto;
  padding: 2rem;
  max-width: 900px;
  z-index: 1;
}

.hero-overlay h1 {
  color: white !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* responsive size */
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  background-color: #12d0ff;
  color: #1c1c1c;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500; 
  border-radius: 2rem;
  transition: background-color 0.15s;
}

.hero-button:hover {
  background-color: #d6d5cc;
}

/* Make the columns stretch to equal height */
.wp-block-columns {
  align-items: stretch;
}

/* Ensure the column containing the map can grow */
.wp-block-column {
  display: flex;
  flex-direction: column;
}

/* Force the map wrapper group to fill the column */
.wp-block-group.map {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Make the iframe fill the map block */
.wp-block-group.map iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 300px; /* fallback for older browsers */
}


.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background-color: #d6d5cc !important;
  color: #1c1c1c !important;
}

.icon-large {
  font-size: 4rem;
  color: #1c1c1c;
  margin-right: 0.5rem;
}


/* Homepage Image Nav Links */
/* Force this layout only when it appears as .cta-grid inside the main content area */
body .cta-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  box-sizing: border-box;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* === CTA Box Styling === */
.cta-box {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-transform: uppercase;
  height: 20vw;
  min-height: 150px;
  width: 100%;
}

.cta-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.cta-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: block;
  opacity: 1;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0);
  transition: background-color 0.4s ease;
}

.cta-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  padding: 1rem 0.5rem 0.25rem 0.5rem;
  /*  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  text-align: center;
}

.cta-text h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-family: 'Antonio', 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: white;
  transition: color 0.4s ease, transform 0.8s ease;
}

.cta-subtitle {
  font-family: 'Noto Sans', 'Roboto', 'Arial', 'Helvetica Neue', sans-serif;
  margin-top: 0;
  margin: 0 0 1.2rem 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-weight: 400;
  color: white;
  transition: color 0.4s ease, transform 0.8s ease;
}

.cta-box:hover img {
  transform: scale(1.2);
  filter: blur(5px), brightness(1.1);
  /*  opacity: 0.85; */
}

.cta-box:hover .cta-overlay {
  background-color: rgba(34, 34, 34, 0.4);
}

.cta-box:hover .cta-text h3,
.cta-box:hover .cta-subtitle {
  color: #12d0ff;
  transform: scale(1.1);
}

.cta-hover-action {
  position: absolute;
  top: 35%; /* adjust this upward/downward */
  left: 50%;
  transform: translate(-50%, 5px);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
  text-align: center;
  pointer-events: none; /* optional, if you want to avoid blocking clicks */
}

.cta-icon {
  font-size: 2.5rem;
}

.cta-box:hover .cta-hover-action {
  opacity: 1;
  transform: translate(-50%, 0);
  /* color: #12d0ff; */
}


/* === Responsive Layout === */
@media (max-width: 1024px) {
  body .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 728px) {
  body .cta-grid {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
  }


  .cta-text {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .cta-hover-action {
    display: none;
  }

  .cta-subtitle {
    display: none;
  }

  .cta-mobile-button {
    display: inline-block;
  }

  .cta-box {
    height: 30vw;
  }
}

@media (min-width: 729px) {
  .cta-mobile-button {
    display: none;
  }
  .mobile-title {
    display: none;
  }
}

/* Hide both by default to prevent flicker */
.offseason,
.boating-season {
  //display: none;
}

/* When script activates the correct class */
.active-offseason .offseason {
  display: block;
}
.active-boating-season .boating-season {
  display: block;
}

.contact-us .emp {
  font-weight: bolder;
}

.contact-us a:hover {
  color: #12d0ff;
  text-decoration: underline;
  font-weight: bold;
}