/* =========================================================
   BIRUBHAI PREMIUM SPICES - HOME PAGE
   ---------------------------------------------------------
   Reference design = 2464 x 1493.

   --u   = size unit   -> min(width/2464, height/1493)
           (everything is sized with this, so the page always
            fits the screen and keeps the reference proportions)
   --ux  = x-position unit -> width/2464
           (used only for the LEFT side text / icons)

   The product cluster (jars, bowls, spoon) is locked to the
   RIGHT edge and sized with --u, so it is always one rigid
   group, identical to the reference.

   calc(var(--u) * 100) = "100px of the original design"
   ========================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #b8955a;
  --brown-dark: #3b2417;
  --green-dark: #3f5a2f;
  --green-btn: #5b7d3b;
  --green-strip: #4a6a33;
  --rust: #8b4a2b;
  --peach: #e8c0a0;
  --text: #1c1c1c;
}

html,
body {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: #f2e6e0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: none;
}

/* wrappers have no box on desktop (children position against the hero) */
.symbols,
.products {
  display: contents;
}

/* ---------- HERO = exactly the screen size ---------- */
.hero {
  --u: min(calc(100vw / 2464), calc(100vh / 1493));
  --ux: calc(100vw / 2464);

  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #f2e6e0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

/* white mist on the left behind the heading */
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.78) 0,
    rgba(255, 255, 255, 0.55) calc(var(--ux) * 600),
    rgba(255, 255, 255, 0) calc(var(--ux) * 1350)
  );
}

/* peach band at the bottom */
.hero__band {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--u) * 458);
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0,
    rgba(240, 214, 194, 0.95) calc(var(--ux) * 350),
    var(--peach) calc(var(--ux) * 750),
    var(--peach) 100%
  );
  clip-path: polygon(0 0, 100% 1.4%, 100% 100%, 0 100%);
}

/* ---------- Decorative leaves ---------- */
.leaf {
  position: absolute;
  pointer-events: none;
  height: auto;
}

/* top right corner */
.leaf--top-right {
  position: absolute !important;

  top: -85px !important;
  right: -35px !important;

  width: 444px !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  display: block;
  object-fit: contain;

  transform: scale(1.12) !important;
  transform-origin: top right;

  z-index: 6;
  pointer-events: none;
}

/* bottom left corner: SAME leaf.png, smaller and tilted.
   It stands on the green strip and grows up along the left edge.
   - more / less tilt  -> change rotate(120deg)
   - bigger / smaller  -> change width
   - move              -> change left / bottom                     */
.leaf--bottom-left {
  z-index: 10; /* above the green strip */
  left: -415px; /* flat edge of the image touches the screen corner */
  bottom: -25px;
  width: calc(var(--u) * 850);
  transform: rotate(
    195deg
  ); /* same leaf, turned around so it grows from the bottom-left corner */
  transform-origin: center;
}

/* ---------- BADGE (top right circle) ---------- */
.badge {
  position: absolute;
  z-index: 7;
  right: calc(var(--u) * 4);
  top: calc(var(--u) * 222);
  width: calc(var(--u) * 320);
  height: calc(var(--u) * 320);
}

.badge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- HERO TEXT (top-left group) ---------- */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.hero__content > * {
  pointer-events: auto;
}

.eyebrow {
  position: absolute;
  left: calc(var(--ux) * 80);
  top: calc(var(--u) * 298);
  font-size: calc(var(--u) * 31);
  line-height: calc(var(--u) * 36);
  font-weight: 500;
  letter-spacing: 0.17em;
  color: #7a6238;
  white-space: nowrap;
}

.title {
  position: absolute;
  left: calc(var(--ux) * 66);
  top: calc(var(--u) * 366);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: calc(var(--u) * 135);
  line-height: 1.08;
  color: var(--brown-dark);
  white-space: nowrap;
}

.title__line1,
.title__line2 {
  display: block;
}

.title__line2 {
  padding-left: calc(var(--u) * 32);
}

.title .gold {
  color: #b08d4f;
}

.title .green {
  color: var(--green-dark);
}

.divider {
  position: absolute;
  left: calc(var(--ux) * 94);
  top: calc(var(--u) * 671);
  height: calc(var(--u) * 40);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 44);
}

.divider__line {
  display: block;
  height: 1px;
  background: #4a4a4a;
}

.divider__line:first-child {
  width: calc(var(--u) * 183);
}

.divider__line:last-child {
  width: calc(var(--u) * 190);
}

.divider__icon {
  width: calc(var(--u) * 40);
  height: calc(var(--u) * 40);
}

.desc {
  position: absolute;
  left: calc(var(--ux) * 98);
  top: calc(var(--u) * 751);
  font-size: calc(var(--u) * 25);
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: calc(var(--u) * 40);
  color: #151515;
  white-space: nowrap;
}

.btn-explore {
  position: absolute;
  left: calc(var(--ux) * 122);
  top: calc(var(--u) * 940);
  width: calc(var(--u) * 351);
  height: calc(var(--u) * 65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 16);
  background: var(--green-btn);
  color: #fff;
  font-size: calc(var(--u) * 28);
  font-weight: 400;
  border-radius: 100px;
  white-space: nowrap;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.btn-explore svg {
  width: calc(var(--u) * 36);
  height: calc(var(--u) * 36);
}

.btn-explore:hover {
  background: #496a2c;
  transform: translateY(-3px);
}

/* ---------- 3 SYMBOLS ---------- */
/* each icon = one third of 3_symobole.png (cropped with background-position) */
.sym-icon {
  position: absolute;
  z-index: 8;
  bottom: calc(var(--u) * 290);
  width: calc(var(--u) * 117);
  height: calc(var(--u) * 117);
  background-image: url("assets/images/home_images/3_symobole.png");
  background-repeat: no-repeat;
  background-size: calc(var(--u) * 492) auto;
  background-position-y: 50%;
}

/* centre x of every icon = 226 / 436 / 662 in the design */
.sym-icon--1 {
  left: calc(var(--ux) * 226 - var(--u) * 58.5);
  background-position-x: 6.5%;
}
.sym-icon--2 {
  left: calc(var(--ux) * 436 - var(--u) * 58.5);
  background-position-x: 48%;
}
.sym-icon--3 {
  left: calc(var(--ux) * 662 - var(--u) * 58.5);
  background-position-x: 91%;
}

/* labels: each one centred under its icon */
.sym-label {
  position: absolute;
  z-index: 8;
  bottom: calc(var(--u) * 226);
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  font-size: calc(var(--u) * 19.5);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: calc(var(--u) * 28);
  color: #111;
}

.sym-label--1 {
  left: calc(var(--ux) * 215);
}
.sym-label--2 {
  left: calc(var(--ux) * 446);
}
.sym-label--3 {
  left: calc(var(--ux) * 674);
}

/* ---------- PRODUCT CLUSTER ----------
   All 5 images are locked to the RIGHT edge and sized with --u,
   so they always stay together exactly like the reference.
   right = (2464 - left - width) in design units                  */
.prod {
  position: absolute;
  height: auto;
}

/* cardamom jar + stone slab  (left 1175, width 544) */
.prod--cardamom-jar {
  z-index: 4;
  right: calc(var(--u) * 745);
  bottom: calc(var(--u) * 333);
  width: calc(var(--u) * 544);
}

/* black pepper jar + wooden block  (left 1592, width 770) */
.prod--pepper-jar {
  z-index: 3;
  right: calc(var(--u) * 102);
  bottom: calc(var(--u) * 352);
  width: calc(var(--u) * 770);
}

/* cardamom pods pile  (left 1031, width 444) */
.prod--cardamom {
  z-index: 5;
  right: calc(var(--u) * 989);
  bottom: calc(var(--u) * 97);
  width: calc(var(--u) * 444);
}

/* cardamom bowl + scoop  (left 1451, width 415) */
.prod--cardamom-bowl {
  z-index: 5;
  right: calc(var(--u) * 598);
  bottom: calc(var(--u) * 134);
  width: calc(var(--u) * 415);
}

/* pepper bowl + spoon  (touches the right edge) */
.prod--pepper-bowl {
  z-index: 5;
  right: 0;
  bottom: calc(var(--u) * 132);
  width: calc(var(--u) * 540);
}

/* ---------- GREEN FEATURE STRIP ---------- */
.strip {
  position: absolute;
  z-index: 9;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--u) * 120);
  background: var(--green-strip);
}

.strip__item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: #fff;
  font-size: calc(var(--u) * 33);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.strip__item svg {
  flex-shrink: 0;
  height: auto;
}

.strip__item--1 {
  left: calc(var(--ux) * 520);
  gap: calc(var(--u) * 33);
}
.strip__item--2 {
  left: calc(var(--ux) * 1075);
  gap: calc(var(--u) * 53);
}
.strip__item--3 {
  left: calc(var(--ux) * 1595);
  gap: calc(var(--u) * 40);
}

.strip__item--1 svg {
  width: calc(var(--u) * 75);
}
.strip__item--2 svg {
  width: calc(var(--u) * 55);
}
.strip__item--3 svg {
  width: calc(var(--u) * 53);
}

.strip__divider {
  position: absolute;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(184, 149, 90, 0.55);
}

.strip__divider--1 {
  left: calc(var(--ux) * 1028);
}
.strip__divider--2 {
  left: calc(var(--ux) * 1523);
}

/* =========================================================
   MOBILE / TABLET  (screens up to 820px wide)
   ---------------------------------------------------------
   Different layout: the page scrolls, the hero is a tall
   "phone poster" designed on a 390px-wide screen.
   --m = 1 design pixel on a 390px phone  (width / 390)
   --k = scale of the product cluster (it is shrunk to fit)
   ========================================================= */
@media (max-width: 820px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero {
    --m: calc(100vw / 390);
    --k: calc(var(--m) * 0.272);

    width: 100%;
    height: calc(var(--m) * 900);
  }

  .hero__bg {
    object-position: 50% 35%;
  }

  /* white mist from the top so the text is readable */
  .hero__fade {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0,
      rgba(255, 255, 255, 0.75) calc(var(--m) * 300),
      rgba(255, 255, 255, 0) calc(var(--m) * 500)
    );
  }

  /* peach band behind products + icons */
  .hero__band {
    height: calc(var(--m) * 290);
    background: linear-gradient(180deg, #f1d5c0 0, var(--peach) 35%);
    clip-path: polygon(0 0, 100% 1.5%, 100% 100%, 0 100%);
  }

  /* ---------- leaves ---------- */
  .leaf--top-right {
    width: calc(var(--m) * 110);
  }

  .leaf--bottom-left {
    width: calc(var(--m) * 85);
  }

  /* ---------- badge ---------- */
  .badge {
    right: calc(var(--m) * 14);
    top: calc(var(--m) * 318);
    width: calc(var(--m) * 96);
    height: calc(var(--m) * 96);
  }

  /* ---------- hero text ---------- */
  .eyebrow {
    left: calc(var(--m) * 20);
    top: calc(var(--m) * 98);
    font-size: calc(var(--m) * 10.5);
    line-height: calc(var(--m) * 14);
    letter-spacing: 0.15em;
  }

  .title {
    left: calc(var(--m) * 18);
    top: calc(var(--m) * 124);
    font-size: calc(var(--m) * 37);
    line-height: 1.1;
  }

  .title__line2 {
    padding-left: calc(var(--m) * 10);
  }

  .divider {
    left: calc(var(--m) * 22);
    top: calc(var(--m) * 222);
    height: calc(var(--m) * 14);
    gap: calc(var(--m) * 12);
  }

  .divider__line:first-child {
    width: calc(var(--m) * 56);
  }

  .divider__line:last-child {
    width: calc(var(--m) * 58);
  }

  .divider__icon {
    width: calc(var(--m) * 14);
    height: calc(var(--m) * 14);
  }

  .desc {
    left: calc(var(--m) * 20);
    top: calc(var(--m) * 250);
    font-size: calc(var(--m) * 11);
    letter-spacing: 0.08em;
    line-height: calc(var(--m) * 19);
  }

  .btn-explore {
    left: calc(var(--m) * 20);
    top: calc(var(--m) * 340);
    width: calc(var(--m) * 150);
    height: calc(var(--m) * 38);
    gap: calc(var(--m) * 8);
    font-size: calc(var(--m) * 12.5);
  }

  .btn-explore svg {
    width: calc(var(--m) * 16);
    height: calc(var(--m) * 16);
  }

  /* ---------- 3 icons row (on the peach band) ---------- */
  .sym-icon {
    bottom: calc(var(--m) * 120);
    width: calc(var(--m) * 54);
    height: calc(var(--m) * 54);
    background-size: calc(var(--m) * 227) auto;
  }

  .sym-icon--1 {
    left: calc(var(--m) * 38);
  }
  .sym-icon--2 {
    left: calc(var(--m) * 168);
  }
  .sym-icon--3 {
    left: calc(var(--m) * 298);
  }

  .sym-label {
    bottom: calc(var(--m) * 90);
    font-size: calc(var(--m) * 9);
    letter-spacing: 0.15em;
    line-height: calc(var(--m) * 12.5);
  }

  .sym-label--1 {
    left: calc(var(--m) * 65);
  }
  .sym-label--2 {
    left: calc(var(--m) * 195);
  }
  .sym-label--3 {
    left: calc(var(--m) * 325);
  }

  /* ---------- product cluster (same arrangement, shrunk) ---------- */
  .products {
    display: block;
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: calc(var(--m) * 192);
    width: 100%;
    height: 0;
  }

  .prod--cardamom-jar {
    right: calc(var(--k) * 745);
    bottom: calc(var(--k) * 236);
    width: calc(var(--k) * 544);
  }

  .prod--pepper-jar {
    right: calc(var(--k) * 102);
    bottom: calc(var(--k) * 255);
    width: calc(var(--k) * 770);
  }

  .prod--cardamom {
    right: calc(var(--k) * 989);
    bottom: 0;
    width: calc(var(--k) * 444);
  }

  .prod--cardamom-bowl {
    right: calc(var(--k) * 598);
    bottom: calc(var(--k) * 37);
    width: calc(var(--k) * 415);
  }

  .prod--pepper-bowl {
    right: 0;
    bottom: calc(var(--k) * 35);
    width: calc(var(--k) * 540);
  }

  /* ---------- green strip: 3 columns ---------- */
  .strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: calc(var(--m) * 74);
    padding: 0 calc(var(--m) * 6) 0 calc(var(--m) * 40);
  }

  .strip .strip__item {
    position: static;
    transform: none;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: calc(var(--m) * 5);
    text-align: center;
    font-size: calc(var(--m) * 9.5);
    line-height: 1.25;
  }

  .strip .strip__item svg {
    width: calc(var(--m) * 22);
  }

  .strip .strip__divider {
    position: static;
    flex: none;
    width: 1px;
    height: calc(var(--m) * 40);
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 75px;
  right: 25px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 75px;
    right: 18px;
  }

  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}

/* Floating Call Button */
.call-float {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 145px;
  right: 25px;
  background-color: #1e88e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.call-float:hover {
  transform: scale(1.1);
  background-color: #1565c0;
}

.call-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 600px) {
  .call-float {
    width: 52px;
    height: 52px;
    bottom: 135px;
    right: 18px;
  }

  .call-float svg {
    width: 25px;
    height: 25px;
  }
}
