/*
  Tawaf Masala Home Page layout normalizer.
  This stylesheet is intentionally scoped to body.home-page only.
*/

/* Shared, predictable page width and section rhythm */
body.home-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #f8f7f0;
}
.home-page > section {
  width: 100%;
  max-width: 100%;
}
.home-page .container {
  width: min(1220px, calc(100% - 48px)) !important;
  max-width: 1220px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.home-page > section.section {
  position: relative;
  clear: both;
  padding: clamp(56px, 6.2vw, 84px) 0 !important;
}
.home-page > section.section:nth-of-type(odd) {
  background: #fffdf9 !important;
}
.home-page > section.section:nth-of-type(even) {
  background: #f8f7f0 !important;
}
.home-page > section.section.editorial {
  background: #fffdf9 !important;
}
.home-page .section-head {
  width: 100%;
  max-width: 840px;
  margin: 0 auto 40px !important;
  text-align: center;
}
.home-page .section-head .eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  line-height: 1.4;
}
.home-page .section-head h2 {
  max-width: 100%;
  margin: 0 auto 16px !important;
  font-size: clamp(30px, 4.15vw, 54px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.home-page .section-head p {
  max-width: 740px;
  margin: 0 auto !important;
  font-size: 15px;
  line-height: 1.85 !important;
}
.home-page img {
  max-width: 100%;
}

/* Hero banner: consistent slide frame so the page doesn't jump between slides */
.home-page .hero-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #1d1712;
}
.home-page .slides {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.home-page .slide {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.home-page .slide img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(290px, 46.5vw, 640px) !important;
  min-height: 0 !important;
  max-height: 640px !important;
  object-fit: cover;
  object-position: center;
}
.home-page .hero-dots {
  bottom: 17px;
}
.home-page .hero-arrow {
  display: grid;
  place-items: center;
}

/* Product collection banner */
.home-page .product-banner {
  width: 100%;
  max-width: 100%;
  padding: clamp(42px, 5.4vw, 68px) 0 clamp(52px, 6.5vw, 82px) !important;
  text-align: center;
  background: #f8f7f0;
}
.home-page .product-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-page .product-banner .badge {
  max-width: 100%;
  line-height: 1.5;
}
.home-page .banner-title {
  max-width: 100%;
  margin: 20px 0 18px !important;
  font-size: clamp(34px, 5.5vw, 68px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.04em;
}
.home-page .banner-sub {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 28px !important;
  font-size: 15px;
  line-height: 1.85 !important;
}
.home-page .banner-img {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}
.home-page .banner-img img {
  display: block;
  width: 100% !important;
  max-width: 1100px !important;
  height: auto !important;
  object-fit: contain;
}

/* Stats cards: equal sizes and aligned contents */
.home-page .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 22px !important;
  width: 100%;
}
.home-page .stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 250px;
  height: 100%;
  padding: 32px 24px !important;
  border-radius: 22px;
  text-align: center;
}
.home-page .stat-card p {
  max-width: 290px;
  margin: auto 0 0;
  font-size: 13px;
  line-height: 1.75;
}
.home-page .stat-number {
  font-size: clamp(36px, 3.5vw, 48px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.home-page .stat-title {
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.35;
}
.home-page .stat-icon {
  flex: 0 0 auto;
}

/* Editorial section */
.home-page .editorial .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-page .editorial-img {
  width: 100%;
  max-width: 900px;
  min-height: 0;
  margin: 20px auto 28px !important;
  align-items: center;
  justify-content: center;
}
.home-page .editorial-img img {
  display: block;
  width: min(430px, 86%) !important;
  max-width: 430px !important;
  height: auto !important;
  object-fit: contain;
}
.home-page .editorial-desc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto !important;
  font-size: 16px;
  line-height: 1.9 !important;
}

/* Why choose us: stable three-column desktop grid */
.home-page .why-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) minmax(0, 1fr) !important;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px) !important;
  width: 100%;
}
.home-page .why-col {
  min-width: 0;
  gap: 16px !important;
}
.home-page .why-card {
  min-width: 0;
  height: 100%;
  align-items: flex-start;
  padding: 22px !important;
  border-radius: 20px;
}
.home-page .why-card > div:last-child {
  min-width: 0;
}
.home-page .why-card h3 {
  font-size: 16px;
  line-height: 1.4;
}
.home-page .why-card p {
  font-size: 13px;
  line-height: 1.75 !important;
  overflow-wrap: anywhere;
}
.home-page .why-icon {
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px;
  border-radius: 15px;
}
.home-page .why-center {
  min-width: 0;
  width: 100%;
}
.home-page .why-center img {
  display: block;
  width: 100%;
  max-width: 350px !important;
  max-height: 410px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Product carousel: consistent active card, arrows and content */
.home-page .product-carousel {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: 545px !important;
  overflow: hidden !important;
  contain: layout paint;
}
.home-page .pcard {
  top: 0;
  left: 50%;
  width: min(390px, calc(100% - 40px)) !important;
  max-width: calc(100% - 40px) !important;
  height: 515px !important;
  min-width: 0;
}
.home-page .pcard.active {
  transform: translateX(-50%) scale(1) !important;
  opacity: 1 !important;
}
.home-page .pcard.prev {
  transform: translateX(calc(-50% - 390px)) scale(.72) !important;
  opacity: .24 !important;
}
.home-page .pcard.next {
  transform: translateX(calc(-50% + 390px)) scale(.72) !important;
  opacity: .24 !important;
}
.home-page .pimage {
  width: 100%;
  height: 410px !important;
  overflow: visible;
}
.home-page .pimage img {
  width: auto !important;
  max-width: min(300px, 82%) !important;
  max-height: 385px !important;
  height: auto !important;
  object-fit: contain !important;
}
.home-page .pinfo {
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}
.home-page .pinfo h3 {
  font-size: clamp(18px, 1.8vw, 22px) !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}
.home-page .carousel-arrow {
  display: grid;
  place-items: center;
  top: 42%;
  z-index: 12;
}
.home-page .cp { left: 6px !important; }
.home-page .cn { right: 6px !important; }
.home-page .dots {
  min-height: 12px;
  align-items: center;
  margin-top: 2px;
}
.home-page .home-product-actions {
  display: flex;
  justify-content: center;
  margin: 22px auto 0 !important;
}
.home-page a.home-products-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  min-height: 48px;
  margin: 0 !important;
  padding: 13px 25px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f37623 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  box-shadow: 0 8px 22px rgba(243,118,35,.2);
  text-align: center;
  white-space: normal;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-page a.home-products-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(243,118,35,.26);
}

/* Myths/facts cards aligned without forcing the centre image to overflow */
.home-page .myth-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 275px) minmax(0, 1fr) !important;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px) !important;
  width: 100%;
}
.home-page .myth-card {
  min-width: 0;
  height: 100%;
  padding: clamp(20px, 2.3vw, 30px) !important;
  border-radius: 22px;
}
.home-page .myth-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 18px !important;
}
.home-page .myth-item {
  min-width: 0;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 13px;
  line-height: 1.65 !important;
}
.home-page .myth-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.home-page .myth-img {
  min-width: 0;
  width: 100%;
}
.home-page .myth-img img {
  width: 100%;
  max-width: 260px !important;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Closing call-to-action: one self-contained panel */
.home-page .cta {
  box-sizing: border-box;
}
.home-page div.cta {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4.2vw, 48px) !important;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px !important;
  background: linear-gradient(135deg, #251b15 0%, #19130f 100%) !important;
  box-shadow: 0 16px 38px rgba(32,21,15,.10);
  text-align: center;
}
.home-page div.cta h2 {
  max-width: 760px;
  margin: 0 auto !important;
  color: #fff !important;
  font-size: clamp(27px, 3.8vw, 46px) !important;
  line-height: 1.16 !important;
  overflow-wrap: anywhere;
}
.home-page div.cta p {
  max-width: 720px;
  margin: 12px auto 0 !important;
  color: #d5c9c0 !important;
  font-size: 14px;
  line-height: 1.8 !important;
}
.home-page div.cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 20px !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  background: #f37623 !important;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.3;
}

/* Tablet */
@media (max-width: 1000px) {
  .home-page .container {
    width: calc(100% - 38px) !important;
  }
  .home-page .why-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  .home-page .why-center {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .home-page .why-center img {
    max-width: 300px !important;
    max-height: 330px;
  }
  .home-page .why-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px !important;
  }
  .home-page .why-card {
    padding: 18px !important;
  }
  .home-page .myth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  .home-page .myth-card {
    padding: 19px !important;
  }
  .home-page .myth-item {
    font-size: 12px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .home-page .container {
    width: calc(100% - 32px) !important;
  }
  .home-page > section.section {
    padding: 48px 0 !important;
  }
  .home-page .section-head {
    margin-bottom: 29px !important;
  }
  .home-page .section-head h2 {
    font-size: clamp(27px, 7.4vw, 36px) !important;
    line-height: 1.14 !important;
    letter-spacing: -.025em;
  }
  .home-page .section-head p {
    font-size: 13.5px;
    line-height: 1.8 !important;
    padding: 0 2px;
  }
  .home-page .hero-slider {
    min-height: 0;
  }
  .home-page .slide img {
    width: 100% !important;
    height: clamp(190px, 55vw, 350px) !important;
    min-height: 0 !important;
    max-height: 350px !important;
    object-fit: cover;
    object-position: center;
  }
  .home-page .hero-dots {
    bottom: 10px;
  }
  .home-page .product-banner {
    padding: 36px 0 46px !important;
  }
  .home-page .product-banner .container {
    width: calc(100% - 28px) !important;
  }
  .home-page .product-banner .badge {
    padding: 8px 13px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .home-page .banner-title {
    margin: 16px 0 12px !important;
    font-size: clamp(29px, 8.2vw, 39px) !important;
    line-height: 1.08 !important;
  }
  .home-page .banner-sub {
    max-width: 500px;
    margin-bottom: 19px !important;
    font-size: 13px;
    line-height: 1.75 !important;
  }
  .home-page .banner-img {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .home-page .banner-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  .home-page .stats-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 13px !important;
  }
  .home-page .stat-card {
    min-height: 0;
    padding: 25px 20px !important;
  }
  .home-page .stat-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 13px;
    font-size: 23px;
  }
  .home-page .stat-number {
    font-size: 40px;
  }
  .home-page .stat-title {
    font-size: 18px;
  }
  .home-page .stat-card p {
    margin-top: 8px;
    font-size: 12.5px;
  }
  .home-page .editorial-img {
    margin: 10px auto 20px !important;
  }
  .home-page .editorial-img img {
    width: min(300px, 86%) !important;
    max-width: 300px !important;
  }
  .home-page .editorial-desc {
    font-size: 14px;
    line-height: 1.8 !important;
  }
  .home-page .why-col {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .home-page .why-card {
    padding: 17px !important;
    border-radius: 17px;
  }
  .home-page .why-card h3 {
    font-size: 15px;
  }
  .home-page .why-card p {
    font-size: 12.5px;
  }
  .home-page .why-center img {
    max-width: min(260px, 78vw) !important;
    max-height: 270px;
  }
  .home-page .product-carousel {
    height: 430px !important;
    max-width: 100% !important;
  }
  .home-page .pcard,
  .home-page .pcard.active {
    left: 50% !important;
    width: min(310px, calc(100vw - 64px)) !important;
    max-width: min(310px, calc(100vw - 64px)) !important;
    height: 415px !important;
  }
  .home-page .pcard.prev,
  .home-page .pcard.next {
    transform: translateX(-50%) scale(.82) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .home-page .pcard.active {
    transform: translateX(-50%) scale(1) !important;
    opacity: 1 !important;
  }
  .home-page .pimage {
    height: 330px !important;
  }
  .home-page .pimage img {
    max-width: min(220px, 76%) !important;
    max-height: 300px !important;
  }
  .home-page .pinfo h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }
  .home-page .carousel-arrow {
    top: 40%;
    width: 38px;
    height: 38px;
  }
  .home-page .cp { left: 0 !important; }
  .home-page .cn { right: 0 !important; }
  .home-page .myth-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  .home-page .myth-img {
    order: -1;
    margin: 0 auto 2px;
  }
  .home-page .myth-img img {
    max-width: 210px !important;
    max-height: 220px;
  }
  .home-page .myth-card {
    padding: 22px !important;
    border-radius: 18px;
  }
  .home-page .myth-card h3 {
    margin-bottom: 15px !important;
    font-size: 16px;
  }
  .home-page .myth-item {
    font-size: 13px;
    margin: 13px 0;
  }
  .home-page div.cta {
    padding: 30px 20px !important;
    border-radius: 19px !important;
  }
  .home-page div.cta h2 {
    font-size: clamp(25px, 7vw, 32px) !important;
  }
  .home-page div.cta p {
    font-size: 12.5px;
  }
}

/* Compact phones */
@media (max-width: 380px) {
  .home-page .container {
    width: calc(100% - 26px) !important;
  }
  .home-page .section-head h2 {
    font-size: 27px !important;
  }
  .home-page .banner-title {
    font-size: 29px !important;
  }
  .home-page .product-carousel {
    height: 405px !important;
  }
  .home-page .pcard,
  .home-page .pcard.active {
    width: calc(100vw - 58px) !important;
    max-width: calc(100vw - 58px) !important;
    height: 395px !important;
  }
  .home-page .pimage {
    height: 310px !important;
  }
  .home-page .pimage img {
    max-height: 278px !important;
  }
}
