/* Halalich – legal pages, footer, cookie banner */
html {
  scroll-behavior: smooth;
}

picture {
  display: block;
}

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

.u-section-4 .u-image-1 {
  max-width: none;
}

/* How it works – remove grey card backgrounds behind step text */
.u-section-6 .u-shape-1,
.u-section-6 .u-shape-2,
.u-section-6 .u-shape-3 {
  display: none !important;
}

.u-section-6 .u-text-4,
.u-section-6 .u-text-7,
.u-section-6 .u-text-10 {
  margin: 0 0 0.5rem !important;
  width: auto !important;
}

.u-section-6 .u-text-5,
.u-section-6 .u-text-8,
.u-section-6 .u-text-11 {
  margin: 0.5rem 28px 0 36px !important;
  width: auto !important;
}

.u-section-6 .u-text-6,
.u-section-6 .u-text-9,
.u-section-6 .u-text-12 {
  margin: 0.75rem 28px 0 36px !important;
  width: auto !important;
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 > picture:has(.u-image-1) {
    max-width: min(280px, 88vw);
  }

  .u-section-4 .u-container-layout-1 {
    min-height: 20rem;
  }

  .u-section-4 .u-image-1 {
    max-width: min(180px, 50vw);
    margin-top: max(-10rem, -36vw) !important;
  }
}

#download-app,
#join-community {
  scroll-margin-top: 5rem;
}

/* WhatsApp community section */
.halalich-community {
  padding: 3.5rem 0 4rem;
}

.halalich-community__sheet {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 2.5rem 3rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.halalich-community__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #41e1d8;
}

.halalich-community__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: #fff;
}

.halalich-community__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #d1d5db;
  max-width: 36rem;
}

.halalich-community__benefits {
  margin: 0 0 1.75rem;
  padding-left: 1.25rem;
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.7;
}

.halalich-community__benefits li {
  margin-bottom: 0.35rem;
}

.halalich-community__benefits li::marker {
  color: #41e1d8;
}

.halalich-community__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600;
}

.halalich-community__icon {
  flex-shrink: 0;
}

.halalich-community__note {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.halalich-community__visual {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(65, 225, 216, 0.25);
  background: linear-gradient(145deg, rgba(65, 225, 216, 0.08) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.halalich-community__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
}

.halalich-community__channel-name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.halalich-community__channel-tag {
  margin: 0;
  font-size: 0.95rem;
  color: #41e1d8;
}

.halalich-hero-community-cta {
  display: table;
  margin: 1rem 0 0 !important;
  padding: 0.7rem 1.5rem !important;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 992px) {
  .u-section-1 .halalich-hero-community-cta {
    margin: 1rem 0 2.5rem !important;
  }
}
.halalich-footer .u-sheet-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.halalich-footer .u-btn-1 {
  margin: 0 auto !important;
  padding: 0;
  text-align: center;
  align-self: center;
}

.halalich-footer .u-text-1 {
  margin: 0 !important;
  width: auto;
  max-width: 100%;
  text-align: center;
}

.halalich-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  max-width: 900px;
}

.halalich-footer-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-family: Raleway, sans-serif;
  font-size: 0.9rem;
}

.halalich-footer-nav a:hover {
  color: #41e1d8;
}

.legal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(65, 225, 216, 0.2);
}

.legal-header a {
  font-family: Raleway, sans-serif;
  font-size: 1.25rem;
  color: #41e1d8;
  text-decoration: none;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  font-family: Raleway, sans-serif;
  line-height: 1.65;
  color: #f3f4f6;
}

.legal-page h1 {
  font-size: 2rem;
  color: #41e1d8;
  margin-bottom: 0.5rem;
}

.legal-page .legal-meta {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  color: #41e1d8;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  color: #41e1d8;
}

.legal-lang-switch {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.legal-lang-switch a {
  margin-right: 1rem;
}

#halalich-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1f2937;
  border-top: 2px solid #41e1d8;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  font-family: Raleway, sans-serif;
  display: none;
}

#halalich-cookie-banner.is-visible {
  display: block;
}

#halalich-cookie-banner .cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

#halalich-cookie-banner p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
  line-height: 1.5;
}

#halalich-cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#halalich-cookie-banner button {
  font-family: Raleway, sans-serif;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

#halalich-cookie-banner .btn-accept {
  background: #41e1d8;
  color: #111;
  font-weight: 600;
}

#halalich-cookie-banner .btn-essential {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #6b7280;
}

#halalich-cookie-banner .btn-settings {
  background: transparent;
  color: #41e1d8;
  text-decoration: underline;
  padding: 0.55rem 0.5rem;
}

/* --------------------------------------------------------------------------
   Homepage mobile layout – resets Nicepage negative-margin overlays
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body .u-sheet {
    max-width: 100%;
  }

  /* Hero */
  .u-section-1 .u-sheet-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    min-height: auto !important;
    padding: 1.5rem 1rem 2.5rem;
    box-sizing: border-box;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
  }

  .u-section-1 .u-text-1 {
    grid-row: 1;
    grid-column: 1 / -1;
    margin: 0 0 0.75rem !important;
    width: 100% !important;
    max-width: 100%;
    text-align: center;
    font-size: clamp(1.65rem, 5.5vw, 2.25rem) !important;
  }

  .u-section-1 .u-text-2 {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 0 1.25rem !important;
    width: 100% !important;
    max-width: 100%;
    text-align: center;
  }

  /* picture wrappers must be grid items, not the imgs inside them */
  .u-section-1 .u-sheet-1 > picture:has(.u-image-1) {
    grid-row: 4;
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0 !important;
  }

  .u-section-1 .u-sheet-1 > picture:has(.u-image-1) img {
    width: 100% !important;
    max-width: 300px;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
  }

  .u-section-1 .u-sheet-1 > picture:has(.u-image-2) {
    grid-row: 3;
    grid-column: 1;
    justify-self: end;
    margin: 0 0.25rem 1rem !important;
  }

  .u-section-1 .u-sheet-1 > picture:has(.u-image-2) img,
  .u-section-1 .u-image-2 {
    width: 148px !important;
    height: auto !important;
    margin: 0 !important;
    display: block;
  }

  .u-section-1 .u-sheet-1 > picture:has(.u-image-3) {
    grid-row: 3;
    grid-column: 2;
    justify-self: start;
    margin: 0 0.25rem 1rem !important;
  }

  .u-section-1 .u-sheet-1 > picture:has(.u-image-3) img,
  .u-section-1 .u-image-3 {
    width: 148px !important;
    height: auto !important;
    margin: 0 !important;
    display: block;
  }

  /* Intro */
  .u-section-2 .u-sheet-1 {
    min-height: auto !important;
    padding: 2rem 1rem;
  }

  .u-section-2 .u-text-1,
  .u-section-2 .u-text-2 {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .u-section-2 .u-text-1 {
    margin-top: 0 !important;
  }

  /* Why choose us */
  .u-section-3 .u-group-1 {
    width: 100% !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .u-section-3 .u-image-1,
  .u-section-3 .u-image-2,
  .u-section-3 .u-image-3 {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
  }

  /* App promo */
  .u-section-4 {
    min-height: auto !important;
  }

  .u-section-4 .u-layout-wrap-1 {
    width: 100% !important;
    margin: 0 !important;
  }

  .u-section-4 .u-layout-cell-1,
  .u-section-4 .u-layout-cell-2 {
    min-height: auto !important;
  }

  .u-section-4 .u-container-layout-1 {
    position: relative;
    display: block;
    padding: 2rem 1rem 3rem !important;
    min-height: 22rem;
    text-align: center;
  }

  .u-section-4 .u-shape-1 {
    margin: 0 auto !important;
    width: min(280px, 72vw) !important;
    height: min(280px, 72vw) !important;
    position: relative;
    z-index: 1;
  }

  .u-section-4 .u-image-1 {
    position: relative;
    z-index: 2;
    display: block;
    width: auto !important;
    max-width: min(200px, 55vw);
    height: auto !important;
    margin: max(-11rem, -38vw) auto 0 !important;
  }

  .u-section-4 .u-container-layout-2 {
    padding: 1.5rem 1rem 2rem !important;
  }

  .u-section-4 .u-text-1,
  .u-section-4 .u-text-2,
  .u-section-4 .u-text-3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* Products */
  .u-section-5 .u-sheet-1 {
    min-height: auto !important;
    padding-bottom: 2.5rem;
  }

  .u-section-5 .u-text-1,
  .u-section-5 .u-text-2 {
    margin: 1.25rem 1rem 0 !important;
    width: auto !important;
    max-width: 100%;
  }

  .u-section-5 .u-btn-1 {
    margin: 1.25rem auto 0 !important;
    display: table;
    position: relative;
    z-index: 1;
  }

  .u-section-5 .u-products-1 {
    margin: 1.5rem 0.75rem 0 !important;
    position: relative;
    z-index: 0;
  }

  .u-section-5 .u-repeater-1 {
    min-height: 0 !important;
  }

  /* How it works */
  .u-section-6 .u-sheet-1 {
    min-height: auto !important;
    padding-bottom: 2rem;
  }

  .u-section-6 .u-text-2,
  .u-section-6 .u-text-3 {
    width: 100% !important;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .u-section-6 .u-list-1 {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 0.75rem;
    box-sizing: border-box;
  }

  .u-section-6 .u-repeater-1 {
    min-height: 0 !important;
  }

  .u-section-6 .u-container-layout-1,
  .u-section-6 .u-container-layout-2,
  .u-section-6 .u-container-layout-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem 2rem !important;
  }

  .u-section-6 .u-text-4,
  .u-section-6 .u-text-7,
  .u-section-6 .u-text-10 {
    margin: 0 0 0.5rem !important;
    width: auto !important;
    text-align: center;
  }

  .u-section-6 .u-text-5,
  .u-section-6 .u-text-8,
  .u-section-6 .u-text-11,
  .u-section-6 .u-text-6,
  .u-section-6 .u-text-9,
  .u-section-6 .u-text-12 {
    margin: 0.75rem 0 0 !important;
    width: 100% !important;
    max-width: 300px;
    text-align: center;
  }

  /* Vendors */
  .u-section-7 .u-sheet-1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto !important;
    padding: 2rem 1rem 2.5rem;
    box-sizing: border-box;
  }

  .u-section-7 .u-text-1 {
    order: 1;
    margin: 0 0 0.75rem !important;
    width: 100% !important;
  }

  .u-section-7 .u-text-2 {
    order: 2;
    margin: 0 0 0.75rem !important;
    width: 100% !important;
    font-size: clamp(1.35rem, 4.5vw, 2rem) !important;
  }

  .u-section-7 .u-text-3 {
    order: 3;
    margin: 0 0 1.25rem !important;
    width: 100% !important;
  }

  .u-section-7 .u-image-1 {
    order: 4;
    width: 100% !important;
    max-width: 280px;
    height: auto !important;
    margin: 0 auto 1.25rem !important;
  }

  .u-section-7 .u-btn-1 {
    order: 5;
    margin: 0 auto !important;
    align-self: center;
  }

  /* Halal authenticity section */
  .u-section-8 .u-text-1 {
    margin-top: 2rem !important;
    width: 100% !important;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .halalich-community__sheet {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .halalich-community__visual {
    order: -1;
  }

  .halalich-community__cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .u-section-1 .halalich-hero-community-cta {
    grid-row: 5;
    grid-column: 1 / -1;
    margin: 0.25rem auto 0 !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .u-section-5 .u-repeater-1 {
    grid-template-columns: 100% !important;
    grid-auto-columns: 100% !important;
  }
}

@media (max-width: 767px) {
  .halalich-community {
    padding: 2.5rem 0 3rem;
  }
}

@media (max-width: 575px) {
  .u-section-3 .u-sheet-1 {
    min-height: auto !important;
  }

  .u-section-4 .u-text-1 {
    font-size: 1.75rem !important;
    line-height: 1.15 !important;
  }

  .u-section-6 .u-repeater-1 {
    min-height: 0 !important;
  }
}
