/* ================================
   GLASS STYLES
================================ */

.glass-panel {
  isolation: isolate;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.10),
    rgba(0,0,0,0.02)
  );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  border-radius: 6px;

  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}


/* Optional stronger contrast helper 
.glass-panel--strong {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.18)
  );
}
*/

/* Desktop glass effect - only on desktop */
.glass-panel {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

/* Mobile glass effect - no visual effect on desktop, enabled on mobile */
.glass-panel--mobile {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  box-shadow: none;
}

/* Text polish inside glass */
.glass-panel h1,
.glass-panel h2,
.glass-panel h3,
.glass-panel p {
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-3up__cta.glass-panel {
  padding: 24px 28px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .hero-3up__cta.glass-panel {
    padding: 20px 22px;
  }
}

/* ================================
   HERO 3-UP BASE
================================ */

.hero-3up {
  width: 100%;
}

.hero-3up__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 85vh;
  min-height: 560px;
}

.hero-3up__grid[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.hero-3up__grid[data-count="1"] {
  grid-template-columns: 1fr;
}


/* Items */
.hero-3up__item {
  position: relative;
  overflow: hidden;
}

/* Images */
.hero-3up__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-3up__image--mobile {
  display: none;
}

/* Overlay */
.hero-3up__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05)
  );
}

/* ================================
   LABEL
================================ */

.hero-section .newsletter-form input {
  background: #fff;
  color: #000;
  border: 1px solid #FCF5EB; /* your site bg */
  border-radius: 999px;
  padding: 14px 18px;
}

.hero-section .newsletter-form input::placeholder {
  color: rgba(0,0,0,0.45);
}


.hero-3up__label {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;

  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;

  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.hero-3up__label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.25;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );
}

.hero-3up__item:hover .hero-3up__label {
  letter-spacing: 0.28em;
}

/* ================================
   HERO TEXT (shared with hero)
================================ */

.hero__title {
  font-family: 'Raleway', sans-serif;
  margin-bottom: 0.25em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

.hero__description {
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.06em;
  opacity: 0.88;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/*
.hero__description::before {
  content: "";
  display: block;
  width: 50%;
  height: 1px;
  background: rgba(255,255,255,0.6);
  margin: 0 auto 0.75rem;
}
*/

/* ================================
   HERO BUTTON
================================ */

.hero__btn {
  background: #e6ccb2;
  border: 1px solid #e6ccb2 !important;
  color: #545454 !important;
  box-shadow: none;
  border-radius: 999px;

  font-family: 'Raleway', serif;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  padding: 13px 36px;
  font-size: 16px;
  width: 100%;

  transition: all 0.3s ease;
}

.hero__btn:hover {
  background: #e6ccb2 !important;
  border-color: #e6ccb2 !important;
  color: #fff !important;
}

/* ================================
   CONTENT WRAPPER
================================ */

.hero__content__wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 50;
  padding: 20px;
  box-sizing: border-box;
}

/* ================================
   CTA VARIANT
================================ */

.hero-3up--cta .hero-3up__cta {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 70%;
  width: auto;
  text-align: center;
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-3up--cta .hero-3up__heading {
  font-family: "Raleway", serif;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.hero-3up--cta .hero-3up__subtext {
  font-family: "Raleway", serif;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-3up--cta .hero-3up__button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;

  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;

  background: #e6ccb2;
  color: #000;
  border: 1px solid #e6ccb2;
  
  transition: all 0.25s ease;
}

.hero-3up__button.hide-button-desktop {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .hero-3up__button.hide-button-mobile {
    display: none !important;
  }
  
  .hero-3up__button.hide-button-desktop {
     display: inline-block !important; /* ensure it's not hidden by base class on mobile if not desired */
  }
}


.hero-3up--cta .hero-3up__item:hover .hero-3up__button {
  color: #fff;
  letter-spacing: 0.22em;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {
  .hero__btn {
    font-size: 12px;
  }
  /* Default: stack on mobile */
  .hero-3up__grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  /* If explicitly set to not stack, keep 3 columns */
  .hero-3up__grid[data-stack-mobile="false"] {
    grid-template-columns: repeat(3, 1fr) !important;
    height: auto !important;
  }

  /* When not stacking, shrink columns to match actual mobile image count */
  .hero-3up__grid[data-stack-mobile="false"][data-mobile-count="1"] {
    grid-template-columns: 1fr !important;
  }
  
  .hero-3up__grid[data-stack-mobile="false"][data-mobile-count="2"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .hero-3up__image--desktop {
    display: none;
  }

  .hero-3up__image--mobile {
    display: block;
    height: 100vw;
  }
  
  /* Hide desktop glass, show mobile glass on tablet/mobile */
  .hero__btn {
    font-size: 14px;
  }

  .glass-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .glass-panel--mobile {
    display: block !important;
  }
  
  .hero-3up--cta .hero-3up__cta {
    left: 50%;
    bottom: 20px;
    max-width: 85%;
  }
}

@media (max-width: 480px) {
  .hero-3up__grid {
    min-height: 380px;
  }
  
  .hero-3up__image--mobile {
    height: 100vw;
  }
  
  .hero-3up--cta .hero-3up__cta {
    left: 50%;
    right: auto;
    max-width: none;
    padding: 16px 14px;
    margin-left: -25px;
  }
  
  .hero-3up__label {
    top: 16px;
    left: 16px;
    font-size: 10px;
  }
}
