/* =========================
   NEWSLETTER - UNIFIED COLOR
   Uses ONLY AHDA :root colors
   ========================= */

.subscribe{
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 3rem 0;
  isolation: isolate;

  /* ONE unified background palette */
  background: linear-gradient(135deg,
    rgba(11, 79, 102, 0.12) 0%,
    rgba(20, 119, 109, 0.10) 45%,
    rgba(245, 123, 44, 0.08) 100%);
}

/* Texture overlay (still same palette) */
.subscribe::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 28%, rgba(245,123,44,0.14) 0%, transparent 40%),
    radial-gradient(circle at 82% 22%, rgba(20,119,109,0.14) 0%, transparent 42%),
    radial-gradient(circle at 50% 88%, rgba(11,79,102,0.16) 0%, transparent 46%);
  opacity: .55;
  pointer-events:none;
  z-index:0;
}

/* Subtle grid (brand-tinted) */
.subscribe::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.08) 100%),
    linear-gradient(0deg,  transparent 95%, rgba(255,255,255,0.08) 100%);
  background-size: 22px 22px;
  opacity: .25;
  pointer-events:none;
  z-index:0;
}

/* Main panel - SAME family of colors */
.subscribe__content{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: var(--ahda-white);
  padding: 3rem 2rem;
  overflow: hidden;

  background: linear-gradient(135deg,
    var(--ahda-teal) 0%,
    var(--ahda-green) 50%,
    var(--ahda-teal) 100%);

  box-shadow: var(--shadow-lg);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover: brand combination (teal/green/orange/maroon) */
.subscribe__content:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(11, 79, 102, 0.26), var(--shadow-orange);
}

.subscribe__content:hover::before{
  opacity: .85;
}

/* Brand glow sweep overlay */
.subscribe__content::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg,
    rgba(11,79,102,0.00) 0%,
    rgba(20,119,109,0.25) 25%,
    rgba(245,123,44,0.22) 55%,
    rgba(172,26,44,0.20) 80%,
    rgba(11,79,102,0.00) 100%);
  opacity: .55;
  filter: blur(18px);
  pointer-events:none;
  z-index:0;
  transition: opacity .25s ease;
}

/* All content stays above overlays */
.subscribe__content > *{
  position: relative;
  z-index: 1;
}

/* Kicker */
.subscribe__kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.5rem 1.25rem;
  border-radius: 999px;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: .2px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-sm);
}

.subscribe__title{
  margin: 0 0 .75rem;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.1;
}

.subscribe__text{
  margin: 0 auto 1.75rem;
  max-width: 720px;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
}

/* Form */
.subscribe__form{
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

/* Email bar: SAME color family */
.subscribe__bar{
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem;
  border-radius: 999px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* hover on bar uses brand combination */
.subscribe__bar:hover{
  transform: translateY(-2px);
  border-color: rgba(245,123,44,0.35);
  box-shadow: var(--shadow-lg), var(--shadow-orange);
}

.subscribe__icon{
  flex: 0 0 auto;
  margin-left: .6rem;
  color: var(--ahda-orange);
  font-size: 1.05rem;
}

/* Input keeps consistent theme (no grey/white boxy look) */
.subscribe__input{
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.22);
  outline: none;
  padding: .95rem 1rem;
  border-radius: 999px;

  background: rgba(255,255,255,0.12);
  color: var(--ahda-white);
  font-weight: 600;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.subscribe__input::placeholder{
  color: rgba(255,255,255,0.75);
}

.subscribe__input:focus{
  border-color: rgba(245,123,44,0.55);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 3px rgba(245,123,44,0.22);
}

/* Button: brand gradient */
.subscribe__btn{
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: .95rem 1.2rem;
  font-weight: 900;
  color: var(--ahda-white);
  cursor: pointer;
  white-space: nowrap;

  background: linear-gradient(135deg,
    var(--ahda-orange) 0%,
    var(--ahda-maroon) 100%);

  box-shadow: var(--shadow-orange);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.subscribe__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 30px rgba(245, 123, 44, 0.35);
}

.subscribe__btn:active{
  transform: translateY(0);
}

/* Hint + note as same palette */
.subscribe__hint{
  margin: .75rem 0 0;
  color: rgba(255,255,255,0.86);
  font-size: .92rem;
}

.subscribe__note{
  margin: 0;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  opacity: .95;
}

/* Responsive: keep simple stacking on tiny screens */
@media (max-width: 576px){
  .subscribe__content{ padding: 2.25rem 1rem; }

  .subscribe__bar{
    flex-wrap: wrap;
    border-radius: 18px;
  }
  .subscribe__input{
    width: 100%;
    border-radius: 14px;
  }
  .subscribe__btn{
    width: 100%;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce){
  .subscribe,
  .subscribe__content,
  .subscribe__bar{
    transition: none !important;
  }
}

/* =========================================================
   FIX GAP BELOW NEWSLETTER

   ========================================================= */
.subscribe{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;   /* remove extra space under newsletter */
}

.subscribe__content{
  margin-bottom: 0 !important;
  padding-bottom: 2.2rem !important; 
}

/* kill bottom margins that can create space */
.subscribe__form{ margin-bottom: 0 !important; }
.subscribe__note{ margin-bottom: 0 !important; }
.subscribe__hint{ margin-bottom: 0 !important; }

/* If Partners has top margin, remove it */
.ahda-partners-block{
  margin-top: 0 !important;
}


@media (max-width: 576px){
  /* force one-row layout */
  .subscribe__bar{
    flex-wrap: nowrap !important;  
    gap: .5rem !important;
    border-radius: 999px !important;
    padding: .55rem !important;
  }

  /* keep input and button same height */
  .subscribe__input{
    width: auto !important;
    flex: 1 1 auto !important;
    border-radius: 999px !important;
    padding: .9rem 1rem !important;
    min-width: 0 !important;
  }

  /* button stays on the right, not full width */
  .subscribe__btn{
    width: auto !important;
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    padding: .9rem 1.05rem !important;
    white-space: nowrap !important;
  }
}

