/* Waridi production hotfixes — cPanel deploy (no source rebuild) */

/* ========== Visibility fallbacks (broken entrance animations) ========== */
.reveal {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  will-change: auto !important;
  animation: none !important;
}
.cta-hidden,
.word-hidden,
.label-hidden,
.h2-hidden,
.img-hidden,
.fails-hidden,
.works-hidden,
.tear-card-hidden,
.physics-hidden-left,
.physics-hidden-right,
.physics-hidden-top,
.physics-hidden-fade,
.ripple-col-hidden,
.ripple-bullet-hidden,
.word-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  animation: none !important;
}
[style*="opacity: 0"],
[style*="opacity:0"],
.opacity-0 {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Donate CTA contrast */
a[href="/partners"][class*="h-16"] {
  background-color: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

img[class*="object-right-bottom"] {
  max-width: 100%;
  height: auto;
}

/* ========== HOME HERO SECTION SIZE ONLY (do not restyle items) ========== */

/*
  Problem was DOUBLE offset: main padding-top cleared the fixed nav,
  then the hero added another large padding-top → felt huge.
  Fix: main clears nav exactly; hero only adds a small ~16px breath.
  Leave headline / image / CTAs alone.
*/
section.relative.overflow-hidden.bg-waridi-pink.pt-20,
section.relative.overflow-hidden.bg-waridi-pink {
  padding-top: 1rem !important;
  padding-bottom: 1.25rem !important;
}
@media (min-width: 640px) {
  section.relative.overflow-hidden.bg-waridi-pink {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Match fixed nav height (~96px) — no extra slack here */
main {
  padding-top: 6rem !important;
}

/* Prevent items-center from adding empty air above text when image is tall */
section.bg-waridi-pink .mx-auto.max-w-7xl.flex,
section.bg-waridi-pink .flex.flex-col.lg\:flex-row.items-center {
  align-items: flex-start !important;
}

/* Discover-more row — section chrome only */
section.bg-waridi-pink .flex.justify-center.mt-20 {
  margin-top: 0.75rem !important;
}

/* Other page heroes — section padding only */
section.relative.bg-waridi-navy,
section.bg-waridi-navy.px-4 {
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
}

/* General section rhythm (non-hero) */
.py-36 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}
.py-28 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

@media (max-width: 640px) {
  /* Mobile nav is still ~96px tall — keep main clearance matched */
  main {
    padding-top: 6rem !important;
  }
  section.relative.overflow-hidden.bg-waridi-pink {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .py-36,
  .py-28,
  .py-24 {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }
}

span[class*="mt-3 h-1 w-full rounded-full"],
span[class*="h-full rounded-full bg-waridi-rose"] {
  display: block;
}

/* ========== RESPONSIVE LAYOUT FIXES ========== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.overflow-x-hidden {
  overflow-x: clip;
  max-width: 100vw;
}

img,
svg,
video {
  max-width: 100%;
}

/* Safe areas for notched devices */
nav.fixed {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
main,
footer {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/*
  CRITICAL: Desktop nav (8 links + Contact + Donate) overflows from md (768)
  through ~1100px. Keep hamburger until xl (1280).
*/
@media (max-width: 1279px) {
  nav div.hidden.md\:flex,
  nav .hidden.md\:flex.md\:items-center {
    display: none !important;
  }
  nav div.flex.md\:hidden,
  nav .flex.md\:hidden.items-center {
    display: flex !important;
  }
}

/* Compact logo + actions on very small phones */
@media (max-width: 390px) {
  nav .relative.h-12.w-36,
  nav a .relative.h-12 {
    width: 7.5rem !important;
    height: 2.5rem !important;
  }
  nav a[href="/donate"].h-8,
  nav a[href="/donate"][class*="h-8"] {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    font-size: 0.7rem !important;
  }
}

/* Fluid headings — stop huge type crushing mobile/tablet viewports */
@media (max-width: 639px) {
  h1.text-5xl,
  h1[class*="text-5xl"],
  section h1.font-serif,
  section h1[class*="font-serif"] {
    font-size: clamp(2rem, 8.5vw, 2.75rem) !important;
    line-height: 1.12 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  h2.text-4xl,
  h2[class*="text-4xl"],
  h2.text-3xl,
  h2[class*="text-3xl"],
  h2.font-serif {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word;
  }
  .text-5xl {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  h1[class*="sm:text-7xl"],
  h1.text-5xl.sm\:text-7xl {
    font-size: clamp(2.75rem, 6vw, 3.75rem) !important;
    line-height: 1.08 !important;
  }
}

/* Large rounded cards / CTAs — padding eats the content column on phones */
@media (max-width: 639px) {
  .p-16,
  [class*="p-16"] {
    padding: 1.5rem !important;
  }
  .p-10,
  [class*=" p-10"],
  [class^="p-10"] {
    padding: 1.25rem !important;
  }
  .rounded-\[40px\].bg-waridi-rose.p-16,
  [class*="bg-waridi-rose"][class*="p-16"],
  [class*="bg-waridi-rose"][class*="p-24"] {
    padding: 1.75rem !important;
    border-radius: 1.5rem !important;
  }
  .gap-20,
  [class*="gap-20"] {
    gap: 2.5rem !important;
  }
  .gap-16,
  [class*="gap-16"] {
    gap: 2rem !important;
  }
  .mb-28 {
    margin-bottom: 3rem !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .sm\:p-24,
  [class*="sm:p-24"] {
    padding: 2.5rem !important;
  }
  .gap-20,
  [class*="gap-20"] {
    gap: 3rem !important;
  }
}

/* Tablet: 3-col feature cards get too narrow between md–lg */
@media (min-width: 768px) and (max-width: 1023px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .grid.grid-cols-2.md\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Prevent CTA / pill buttons from forcing horizontal scroll */
a[class*="h-16"],
button[class*="h-16"],
a[class*="whitespace-nowrap"][class*="rounded-full"],
button[class*="whitespace-nowrap"][class*="rounded-full"] {
  max-width: 100%;
}

@media (max-width: 639px) {
  a[class*="h-16"],
  button[class*="h-16"] {
    height: auto !important;
    min-height: 3.25rem;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    white-space: normal !important;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Hero CTA row: stack Explore + donate */
  section.bg-waridi-pink a[href="/product"],
  section.bg-waridi-pink a[href="/donate"] {
    max-width: 100%;
  }
  section.bg-waridi-pink .flex.items-center.gap-6,
  section.bg-waridi-pink .flex.flex-wrap.items-center {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }

  /* Keep images inside their padded columns */
  section .aspect-\[4\/5\],
  section [class*="aspect-[4/5]"],
  section [class*="aspect-[16/9]"] {
    max-width: 100%;
    width: 100% !important;
  }

  /* Decorative corner orbs that stick past the viewport */
  [class*="-mr-8"][class*="rounded-full"],
  [class*="-right-6"][class*="rounded-full"],
  [class*="-top-6"][class*="rounded-full"],
  [class*="absolute top-0 right-0"][class*="rounded-full"] {
    display: none !important;
  }
}

/* Flex children must be allowed to shrink for truncation/wrapping */
.flex > *,
.min-w-0,
footer .grid > * {
  min-width: 0;
}

/* Forms: keep controls inside the content column */
input,
textarea,
select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Partner / logo strip: avoid cramped wrapping */
@media (max-width: 639px) {
  section.bg-white.border-b .grid,
  section.border-b .flex.flex-wrap {
    gap: 1.25rem !important;
  }
}

/* Footer: comfortable single-column rhythm on phones */
@media (max-width: 639px) {
  footer .grid {
    gap: 2rem !important;
  }
  footer input[type="email"],
  footer input {
    width: 100% !important;
  }
}

/* Touch: kill 300ms double-tap delay on interactive controls */
a,
button,
[role="button"],
summary {
  touch-action: manipulation;
}

/* Prefer reduced motion already partially handled via visibility fallbacks */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== Hide stock footer ========== */
footer.w-full.bg-waridi-navy:not(.sawazisha-template-footer) {
  display: none !important;
}

/* Footer layout/sizes from MediZen; colors from Sawazisha only. */
.sawazisha-template-footer {
  --black: #16123f;
  --white: #fff;
  --p1-clr: #e54b4b;
  --p2-clr: #75c9b7;
  --pra: rgba(255, 255, 255, 0.55);
  --pra2: rgba(255, 255, 255, 0.78);
  --text: rgba(255, 255, 255, 0.55);
  --header: #fff;
  --widget: #1c1848;
  font-family: var(--font-inter), Inter, system-ui, sans-serif;
}

.sawazisha-template-footer.footer-section {
  position: relative;
  z-index: 1;
}

.sawazisha-template-footer.z-1 {
  z-index: 1;
}

.sawazisha-template-footer.blackbg {
  background: var(--black);
}

.sawazisha-template-footer.fix {
  overflow: hidden !important;
}

.sawazisha-template-footer h2,
.sawazisha-template-footer h4 {
  font-family: inherit;
  margin: 0;
  padding: 0;
  color: var(--header);
}

.sawazisha-template-footer h2 {
  font-size: 48px;
  line-height: 116%;
  font-weight: 600;
}

.sawazisha-template-footer h4 {
  font-size: 24px;
  font-weight: 600;
  line-height: 130%;
}

.sawazisha-template-footer a {
  text-decoration: none;
  color: inherit;
}

.sawazisha-template-footer button {
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
}

.sawazisha-template-footer .white {
  color: var(--white);
}

.sawazisha-template-footer .black {
  color: var(--black);
}

.sawazisha-template-footer .pra {
  color: var(--text);
}

.sawazisha-template-footer .pra2 {
  color: var(--pra2) !important;
}

.sawazisha-template-footer .fw_600 {
  font-weight: 600;
}

.sawazisha-template-footer .fw_500 {
  font-weight: 500 !important;
}

.sawazisha-template-footer .fw-semibold {
  font-weight: 600;
}

.sawazisha-template-footer .fs-six {
  font-size: 18px;
  line-height: 150%;
}

.sawazisha-template-footer .fs-seven {
  font-size: 16px;
  line-height: 150%;
}

.sawazisha-template-footer .fs18 {
  font-size: 18px;
}

.sawazisha-template-footer .sub-font,
.sawazisha-template-footer .body-font {
  font-family: inherit;
}

.sawazisha-template-footer .p1-bg {
  background: var(--p1-clr) !important;
}

.sawazisha-template-footer .d-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sawazisha-template-footer .d-flex {
  display: flex;
}

.sawazisha-template-footer .d-inline-flex {
  display: inline-flex;
}

.sawazisha-template-footer .align-items-center {
  align-items: center;
}

.sawazisha-template-footer .justify-content-center {
  justify-content: center;
}

.sawazisha-template-footer .justify-content-between {
  justify-content: space-between;
}

.sawazisha-template-footer .flex-column {
  flex-direction: column;
}

.sawazisha-template-footer .flex-wrap {
  flex-wrap: wrap;
}

.sawazisha-template-footer .text-center {
  text-align: center;
}

.sawazisha-template-footer .text-nowrap {
  white-space: nowrap;
}

.sawazisha-template-footer .position-relative {
  position: relative;
}

.sawazisha-template-footer .overflow-hidden {
  overflow: hidden;
}

.sawazisha-template-footer .mb-40 {
  margin-bottom: 40px;
}

.sawazisha-template-footer .py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.sawazisha-template-footer .py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.sawazisha-template-footer .gap-2 {
  gap: 0.5rem;
}

.sawazisha-template-footer .gap-3 {
  gap: 1rem;
}

.sawazisha-template-footer .gap-xl-3 {
  gap: 1rem;
}

.sawazisha-template-footer .rounded-5 {
  border-radius: 2rem !important;
}

.sawazisha-template-footer .visible-slowly-right {
  visibility: visible !important;
}

.sawazisha-template-footer .container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.sawazisha-template-footer .row {
  display: flex;
  flex-wrap: wrap;
  --gutter: 1.5rem;
  margin-left: calc(var(--gutter) / -2);
  margin-right: calc(var(--gutter) / -2);
}

.sawazisha-template-footer .row.g-4 > [class*="col-"] {
  padding-left: calc(var(--gutter) / 2);
  padding-right: calc(var(--gutter) / 2);
  margin-bottom: 1.5rem;
}

.sawazisha-template-footer .col-lg-3,
.sawazisha-template-footer .col-md-6,
.sawazisha-template-footer .col-sm-7,
.sawazisha-template-footer .col-sm-6,
.sawazisha-template-footer .col-sm-5 {
  width: 100%;
}

.sawazisha-template-footer .footer-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}

.sawazisha-template-footer .footer-newsletter {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0 60px;
}

.sawazisha-template-footer .footer-newsletter .form-cmn-style1 {
  max-width: 580px;
  margin: 0 auto;
}

.sawazisha-template-footer .footer-newsletter h2 {
  z-index: 1;
  color: var(--white);
}

.sawazisha-template-footer .footer-newsletter h2 .newsletter-element,
.sawazisha-template-footer .footer-element {
  display: none;
}

.sawazisha-template-footer .footer-newsletter h2::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -6px;
  width: 210px;
  height: 10px;
  background: var(--p1-clr);
  border-radius: 999px;
  z-index: -1;
}

.sawazisha-template-footer .form-cmn-style1 {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--black);
  padding: 6px;
}

.sawazisha-template-footer .form-cmn-style1 input {
  width: 100%;
  color: var(--white);
  padding: 10px 18px;
  background: transparent;
  border: unset;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.sawazisha-template-footer .form-cmn-style1 ::placeholder {
  color: var(--white);
}

.sawazisha-template-footer .form-cmn-style1 .common-btn:hover img {
  filter: brightness(25) !important;
}

.sawazisha-template-footer .common-btn {
  position: relative;
  padding: 19px 30px;
  line-height: 18px;
  transition: all 0.5s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--white);
}

.sawazisha-template-footer .box-style {
  position: relative;
  overflow: hidden;
  z-index: 0;
  text-align: center;
}

.sawazisha-template-footer .box-style::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 100%;
  background-color: var(--p1-clr);
  transition: all 0.7s ease;
  z-index: -1;
}

.sawazisha-template-footer .box-style:hover::before {
  width: 400%;
  height: 400%;
}

.sawazisha-template-footer .box-style.first-box::before {
  background-color: var(--p2-clr);
}

.sawazisha-template-footer .box-style.first-box:hover {
  color: #fff;
}

.sawazisha-template-footer .box-style.first-box:hover img {
  filter: brightness(25);
}

.sawazisha-template-footer .footer-widgets-wrapper {
  padding: 50px 60px;
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  background: var(--widget);
  border-radius: 20px;
}

.sawazisha-template-footer .footer-widgets-wrapper .row {
  width: 100%;
}

.sawazisha-template-footer .single-footer-widget .widget-head {
  margin-bottom: 26px;
}

.sawazisha-template-footer .single-footer-widget .widget-head img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.sawazisha-template-footer .single-footer-widget .footer-content p {
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.sawazisha-template-footer .social-wrapper {
  display: flex;
  gap: 10px;
}

.sawazisha-template-footer .social-wrapper a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.sawazisha-template-footer .social-wrapper a i,
.sawazisha-template-footer .social-wrapper a svg {
  color: var(--white);
  fill: currentColor;
  transition: all 0.4s;
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.sawazisha-template-footer .social-wrapper a:hover {
  background: rgba(102, 102, 102, 0.5);
}

.sawazisha-template-footer .social-wrapper a:hover i,
.sawazisha-template-footer .social-wrapper a:hover svg {
  color: var(--white);
}

.sawazisha-template-footer .list-area {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sawazisha-template-footer .list-area li:not(:last-child) {
  margin-bottom: 12px;
}

.sawazisha-template-footer .list-area li a {
  color: var(--pra2);
  font-size: 16px;
  font-family: inherit;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.4s;
  text-wrap: nowrap;
}

.sawazisha-template-footer .list-area li a:hover {
  color: var(--p1-clr);
}

.sawazisha-template-footer .footer-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sawazisha-template-footer .footer-info li {
  display: flex;
}

.sawazisha-template-footer .footer-info li .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.sawazisha-template-footer .footer-info li .icon i,
.sawazisha-template-footer .footer-info li .icon svg {
  color: var(--white);
  fill: currentColor;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.sawazisha-template-footer .footer-info .cont span {
  display: block;
}

.sawazisha-template-footer .footer-bottom {
  position: relative;
  z-index: 9;
}

.sawazisha-template-footer .footer-bottom p {
  color: var(--text);
  margin: 0;
}

.sawazisha-template-footer .sz-form-status:empty {
  display: none;
}

.sawazisha-template-footer .sz-form-status {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--p2-clr);
}

.sawazisha-template-footer .sz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 576px) {
  .sawazisha-template-footer .col-sm-5 { width: 41.666%; }
  .sawazisha-template-footer .col-sm-6 { width: 50%; }
  .sawazisha-template-footer .col-sm-7 { width: 58.333%; }
}

@media (min-width: 768px) {
  .sawazisha-template-footer .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
  .sawazisha-template-footer .col-lg-3 { width: 25%; }
  .sawazisha-template-footer .justify-content-lg-center { justify-content: center; }
  .sawazisha-template-footer .footer-newsletter .form-cmn-style1 input {
    width: 68%;
  }
}

@media (min-width: 1200px) {
  .sawazisha-template-footer .gap-xl-3 { gap: 1rem; }
}

@media (max-width: 1399px) {
  .sawazisha-template-footer .common-btn {
    padding: 16px 24px;
  }
}

@media (max-width: 1199px) {
  .sawazisha-template-footer h2 {
    font-size: 42px;
  }
  .sawazisha-template-footer h4 {
    font-size: 20px;
  }
  .sawazisha-template-footer .mb-40 {
    margin-bottom: 30px;
  }
  .sawazisha-template-footer .fs-six {
    font-size: 16px;
  }
  .sawazisha-template-footer .form-cmn-style1 {
    padding: 4px;
  }
  .sawazisha-template-footer .form-cmn-style1 input {
    padding: 10px 14px;
  }
  .sawazisha-template-footer .footer-widgets-wrapper {
    gap: 30px 20px;
  }
  .sawazisha-template-footer .single-footer-widget .widget-head {
    margin-bottom: 20px;
  }
  .sawazisha-template-footer .single-footer-widget .footer-content p {
    margin-bottom: 20px;
  }
}

@media (max-width: 991px) {
  .sawazisha-template-footer .footer-newsletter h2::after {
    right: 50%;
    transform: translateX(50%);
  }
  .sawazisha-template-footer .footer-widgets-wrapper {
    padding: 50px 30px;
  }
  .sawazisha-template-footer .fs-seven {
    font-size: 14px;
  }
  .sawazisha-template-footer .fs-six {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .sawazisha-template-footer h2 {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .sawazisha-template-footer h2 {
    font-size: 28px;
  }
}
