/*
 * ALQQAMAR — Home Page CSS
 * Source of truth: Figma "ALQ Anissa - Claude Redesign 06/26" · 💙 HOME
 * Desktop frame 252:4616 (1440×2901) · Mobile frame 422:14902 (390×2516)
 * All spatial values: absoluteRenderBounds / absoluteBoundingBox (ink pixels).
 * Written: 2026-07-05. Targets: page-home.php (.hv2-* class system).
 * Typography corrected 2026-07-09: 390→1440px range (1050px divisor) per Figma.
 * Letter-spacing + Reading gap corrected 2026-07-09.
 * Footer gap added 2026-07-09: 80px bottom (Figma: same at 390 and 1440).
 */
/* ─────────────────────────────────────────────────────────────
   MAIN WRAPPER
   ───────────────────────────────────────────────────────────── */
.hv2-home {
  background: var(--color-white);
  padding-top: clamp(44px, calc(44px + (173 - 44) * (100vw - 390px) / 1050), 173px);
  padding-bottom: 80px;
}
/* ─────────────────────────────────────────────────────────────
   SHARED CTA BUTTON — Figma: 11px / 13px lh / ls 4px
   ───────────────────────────────────────────────────────────── */
.hv2-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  height: 33px;
  padding: 0 32px;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.hv2-cta:hover,
.hv2-cta:focus {
  opacity: 0.85;
  color: var(--color-white);
  text-decoration: none;
}
/* ─────────────────────────────────────────────────────────────
   SECTION 1 — NICHE WALL / LIBRARY HERO
   ───────────────────────────────────────────────────────────── */
.hv2-los {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  height: clamp(690px, calc(690px + (750 - 690) * (100vw - 390px) / 1050), 750px);
}
.hv2-los__wall {
  position: absolute;
  top: clamp(60px, calc(60px + 53 * (100vw - 390px) / 1050), 113px);
  left: clamp(-615px, calc(-615px + 555 * (100vw - 390px) / 1050), -60px);
  opacity: 0.55;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(7, 180px);
  grid-auto-rows: 220px;
  column-gap: 60px;
  row-gap: 24px;
  z-index: 0;
}
.hv2-los__card {
  width: 180px;
  height: 220px;
  background: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 37px 0;
  flex-shrink: 0;
  overflow: hidden;
}
.hv2-los__niche {
  position: relative;
  width: 106px;
  height: 170px;
  border-radius: 53px 53px 0 0;
  border: 1px solid rgba(11, 64, 180, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6f6fa 81%);
  overflow: hidden;
  flex-shrink: 0;
}
.hv2-los__niche-img {
  position: absolute;
  top: 69px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 54px;
  width: auto;
  max-height: 60px;
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(17%) sepia(97%) saturate(1274%) hue-rotate(212deg) brightness(98%) contrast(97%);
}
/* Wallpaper card label — Figma: 9px / 11px lh / ls 2px */
.hv2-los__card-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 9px;
  line-height: 11px;
  letter-spacing: 2px;
  color: var(--color-cobalt);
  text-align: center;
  text-transform: uppercase;
}
.hv2-los__fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #ffffff;
  z-index: 2;
  pointer-events: none;
}
/* Hero italic title — Figma: 22px@390 → 60px@1440 / lh: 26px → 72px */
.hv2-los__title {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  padding: 0 24px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, calc(22px + 38 * (100vw - 390px) / 1050), 60px);
  line-height: clamp(26px, calc(26px + 46 * (100vw - 390px) / 1050), 72px);
  color: var(--color-cobalt);
  text-align: center;
  margin: 0;
  z-index: 5;
}
.hv2-los__featured {
  position: absolute;
  top: clamp(117px, calc(117px + 38 * (100vw - 390px) / 1050), 155px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: clamp(183px, calc(183px + 168 * (100vw - 390px) / 1050), 351px);
  height: clamp(248px, calc(248px + 229 * (100vw - 390px) / 1050), 477px);
  background: var(--color-white);
  box-shadow: 0 12px 37px rgba(11, 64, 180, 0.22), 0 4px 15px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(29px, calc(29px + 27 * (100vw - 390px) / 1050), 56px);
}
.hv2-los__niche--featured {
  position: relative;
  width: clamp(124px, calc(124px + 115 * (100vw - 390px) / 1050), 239px);
  height: clamp(160px, calc(160px + 148 * (100vw - 390px) / 1050), 308px);
  border-radius: clamp(62px, calc(62px + 57 * (100vw - 390px) / 1050), 119px) clamp(62px, calc(62px + 57 * (100vw - 390px) / 1050), 119px) 0 0;
  border: 1px solid rgba(11, 64, 180, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f4f5fc 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.hv2-los__niche--featured .hv2-los__niche-img {
  position: absolute;
  top: clamp(38px, calc(38px + 35 * (100vw - 390px) / 1050), 73px);
  left: 50%;
  transform: translateX(-50%);
  max-width: clamp(57px, calc(57px + 53 * (100vw - 390px) / 1050), 110px);
  width: auto;
  max-height: clamp(95px, calc(95px + 87 * (100vw - 390px) / 1050), 182px);
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(17%) sepia(97%) saturate(1274%) hue-rotate(212deg) brightness(98%) contrast(97%);
}
/* Featured card label — Figma: 11.115px@390 → 21.375px@1440 / lh: 14→26 / ls: 2.34→4.5px */
.hv2-los__featured .hv2-los__card-label {
  font-size: clamp(11px, calc(11px + (21.375 - 11) * (100vw - 390px) / 1050), 21.375px);
  line-height: clamp(14px, calc(14px + (26 - 14) * (100vw - 390px) / 1050), 26px);
  letter-spacing: clamp(2.34px, calc(2.34px + (4.5 - 2.34) * (100vw - 390px) / 1050), 4.5px);
  margin-top: clamp(18px, calc(18px + 16 * (100vw - 390px) / 1050), 34px);
}
.hv2-los__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 321px;
  background: transparent;
  padding: 24px 24px 0;
  z-index: 4;
}
/* LOS heading — Figma: 32px@390 → 56px@1440 */
.hv2-los__heading {
  font-family: var(--font-primary);
  font-weight: 600 !important;
  font-size: clamp(32px, calc(32px + 24 * (100vw - 390px) / 1050), 56px);
  line-height: clamp(38px, calc(38px + 29 * (100vw - 390px) / 1050), 67px);
  color: var(--color-cobalt);
  margin: 0 0 14px;
}
/* LOS body — Figma: 14px@390 → 18px@1440 / lh: 17px → 22px */
.hv2-los__body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(14px, calc(14px + 4 * (100vw - 390px) / 1050), 18px);
  line-height: clamp(17px, calc(17px + 5 * (100vw - 390px) / 1050), 22px);
  color: var(--color-black);
  margin: 0 0 16px;
}
/* ─────────────────────────────────────────────────────────────
   SECTIONS 2 & 3 — PATH SECTIONS (BOUTIQUE + READING)
   ───────────────────────────────────────────────────────────── */
.hv2-path {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
}
.hv2-path__photo {
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface-tint);
}
.hv2-path__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hv2-path__text {
  display: flex;
  flex-direction: column;
  padding: 32px 24px 40px;
  flex: 1;
}
.hv2-path--boutique .hv2-path__text {
  text-align: right;
  align-items: flex-end;
}
.hv2-path--reading .hv2-path__photo {
  order: 1;
}
.hv2-path--reading .hv2-path__text {
  order: 0;
  text-align: left;
  align-items: flex-start;
}
/* Path heading — Figma: 32px@390 → 56px@1440 */
.hv2-path__heading {
  font-family: var(--font-primary);
  font-weight: 600 !important;
  font-size: clamp(32px, calc(32px + 24 * (100vw - 390px) / 1050), 56px);
  line-height: clamp(38px, calc(38px + 29 * (100vw - 390px) / 1050), 67px);
  color: var(--color-cobalt);
  margin: 0 0 11px;
}
/* Path body — Figma: 14px@390 → 18px@1440 / lh: 17px → 22px */
.hv2-path__body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(14px, calc(14px + 4 * (100vw - 390px) / 1050), 18px);
  line-height: clamp(17px, calc(17px + 5 * (100vw - 390px) / 1050), 22px);
  color: var(--color-black);
  margin: 0 0 24px;
}
/* ─────────────────────────────────────────────────────────────
   ≥900px — Path sections: column → row
   ───────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .hv2-path {
    flex-direction: row;
    align-items: stretch;
  }
  .hv2-path__photo {
    width: 70.83%;
    height: clamp(550px, calc(550px + (680 - 550) * (100vw - 900px) / 540), 680px);
    flex-shrink: 0;
    order: 0 !important;
  }
  .hv2-path__text {
    flex: 1;
    justify-content: center;
    text-align: left !important;
    align-items: flex-start !important;
    order: 0 !important;
    padding: 40px 40px;
  }
  .hv2-path--reading .hv2-path__photo {
    order: 1;
  }
  .hv2-path--reading .hv2-path__text {
    order: 0;
  }
}
/* ─────────────────────────────────────────────────────────────
   ≥1440px — Exact Figma desktop values (layout only — typography via clamp)
   Figma section gaps: Niche Wall→Boutique = 33px, Boutique→Reading = 33px
   Footer gap: Reading ends y=2349, Footer starts y=2429 → 80px
   ───────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .hv2-home {
    padding-top: 173px;
  }
  .hv2-los {
    height: 750px;
  }
  .hv2-los__wall {
    top: 113px;
    left: -60px;
    column-gap: 60px;
    row-gap: 24px;
    grid-template-columns: repeat(7, 180px);
    transform-origin: top left;
    transform: scale(calc(100vw / 1440px));
  }
  .hv2-los__fade {
    height: 175px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  }
  .hv2-los__title {
    top: 48px;
    padding: 0;
    text-align: center;
  }
  .hv2-los__featured {
    top: 155px;
    width: 351px;
    height: 477px;
    box-shadow: 0 24px 72px rgba(11, 64, 180, 0.22), 0 8px 28px rgba(0, 0, 0, 0.10);
    padding-top: 56px;
  }
  .hv2-los__niche--featured {
    width: 239px;
    height: 308px;
    border-radius: 119px 119px 0 0;
  }
  .hv2-los__niche--featured .hv2-los__niche-img {
    top: 73px;
    max-width: 110px;
    max-height: 182px;
  }
  .hv2-los__panel {
    position: absolute;
    top: 224px;
    bottom: auto;
    left: 88px;
    right: auto;
    width: 420px;
    height: auto;
    background: transparent;
    padding: 0;
  }
  .hv2-los__heading {
    margin-bottom: 7px;
  }
  .hv2-los__body {
    margin-bottom: 28px;
    max-width: 340px;
  }
  .hv2-path__photo {
    height: 680px;
  }
  /* Figma: Boutique starts at y=956, Niche Wall ends at y=923 → 33px gap */
  .hv2-path--boutique {
    margin-top: 33px;
  }
  .hv2-path--boutique .hv2-path__text {
    padding: 0 88px 0 48px;
    text-align: left;
    align-items: flex-start;
  }
  /* Figma: Reading starts at y=1669, Boutique ends at y=1636 → 33px gap */
  .hv2-path--reading {
    margin-top: 33px;
  }
  .hv2-path--reading .hv2-path__text {
    padding: 0 39px 0 88px;
    text-align: left;
    align-items: flex-start;
  }
  .hv2-path__heading {
    margin-bottom: 13px;
  }
  .hv2-path__body {
    margin-bottom: 30px;
    max-width: 284px;
  }
}
/* ─────────────────────────────────────────────────────────────
   HEADING FONT OVERRIDE
   ───────────────────────────────────────────────────────────── */
.hv2-los__heading,
.hv2-path__heading {
  font-family: var(--font-primary);
  font-weight: 600 !important;
}
/* ─────────────────────────────────────────────────────────────
   FILLED BUTTON — Figma: 11px / 13px lh / ls 4px
   ───────────────────────────────────────────────────────────── */
.btn_filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  height: 33px;
  padding: 0 32px;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.btn_filled:hover,
.btn_filled:focus {
  opacity: 0.85;
  color: var(--color-white);
  text-decoration: none;
}
