/* Homepage-only: editorial / gallery layout (not classic shop template) */
body.page-home {
  --home-accent: #d4b56a;
  --home-mist: #e8e2d6;
  --home-ink: #0a0c0b;
  --home-panel: #141816;
  --home-line: rgba(232, 226, 214, 0.14);
}

body.page-home .topbar {
  display: none;
}

body.page-home {
  padding-bottom: 0;
}

body.page-home .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 0;
  mix-blend-mode: normal;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

body.page-home .header .logo,
body.page-home .header .nav a {
  color: var(--home-mist);
}

body.page-home .menu-toggle span {
  background: var(--home-mist);
}

body.page-home .header.is-scrolled,
body.page-home.nav-open .header {
  background: rgba(10, 12, 11, 0.96);
  border-bottom: 1px solid var(--home-line);
}

body.page-home .header .logo__text span {
  color: var(--home-accent);
}

/* ——— Immersive hero ——— */
.home-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--home-ink);
}

.home-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  will-change: opacity;
}

.home-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.06);
  filter: saturate(0.9) contrast(1.04);
  transition: transform 8s linear;
}

.home-hero__slide.is-active img {
  transform: scale(1.14);
}

.home-hero__dots {
  position: absolute;
  left: max(1rem, calc((100% - 1180px) / 2));
  bottom: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}

.home-hero__dots button {
  width: 2.25rem;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(232, 226, 214, 0.28);
  cursor: pointer;
  transition: background 0.3s, width 0.35s var(--ease);
}

.home-hero__dots button.is-active {
  width: 3.25rem;
  background: var(--home-accent);
}

.home-hero__dots button:focus-visible {
  outline: 1px solid var(--home-accent);
  outline-offset: 3px;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 10, 9, 0.92) 0%, rgba(8, 10, 9, 0.55) 48%, rgba(8, 10, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 10, 9, 0.88) 0%, transparent 45%);
  z-index: 1;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(232, 226, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 226, 214, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
}

.home-hero__brand {
  font-family: var(--display);
  font-size: clamp(4.2rem, 16vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--home-mist);
  font-weight: 600;
  margin: 0 0 1.25rem;
  animation: homeRise 1.1s var(--ease) both;
}

.home-hero__brand span {
  color: var(--home-accent);
}

.home-hero__title {
  font-family: var(--font);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  max-width: 22ch;
  color: var(--home-mist);
  margin: 0 0 0.75rem;
  animation: homeRise 1.1s 0.1s var(--ease) both;
}

.home-hero__lead {
  max-width: 36ch;
  color: rgba(232, 226, 214, 0.72);
  font-size: 0.98rem;
  margin: 0 0 1.75rem;
  animation: homeRise 1.1s 0.18s var(--ease) both;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: homeRise 1.1s 0.26s var(--ease) both;
}

.home-hero__scroll {
  position: absolute;
  right: max(1rem, calc((100% - 1180px) / 2));
  bottom: 2rem;
  z-index: 2;
  writing-mode: vertical-rl;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(232, 226, 214, 0.55);
  animation: homePulse 2.4s ease-in-out infinite;
}

@keyframes homeRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes homePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ——— Path panels (replaces trust + marquee) ——— */
.home-paths {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .home-paths {
    grid-template-columns: repeat(3, 1fr);
    min-height: 42vh;
  }
}

.home-path {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--home-mist);
  isolation: isolate;
  transition: filter 0.45s var(--ease);
}

.home-path::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  transition: transform 0.8s var(--ease);
}

.home-path::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(8, 10, 9, 0.92) 100%);
  z-index: -1;
}

.home-path:nth-child(1)::before {
  background-image: url("../images/products/sofia-ortopediuli-25sm.jpg");
}
.home-path:nth-child(2)::before {
  background-image: url("../images/products/anatomiuri-28sm-shefutuli-zambarit.jpg");
}
.home-path:nth-child(3)::before {
  background-image: url("../images/products/eko-16-17sm.jpg");
}

.home-path:hover::before {
  transform: scale(1.12);
}

.home-path__num {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--home-accent);
  margin-bottom: 0.5rem;
}

.home-path h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.home-path p {
  font-size: 0.9rem;
  color: rgba(232, 226, 214, 0.7);
  max-width: 28ch;
}

.home-path__go {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-accent);
}

/* ——— Spotlight feature ——— */
.home-spot {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(212, 181, 106, 0.08), transparent 55%),
    var(--home-ink);
}

.home-spot__wrap {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-spot__wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.home-spot__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.home-spot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.home-spot__media:hover img {
  transform: scale(1.04);
}

.home-spot__frame {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(212, 181, 106, 0.35);
  pointer-events: none;
}

.home-spot__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 0.85rem;
}

.home-spot h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.home-spot__text {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 38ch;
}

.home-spot__price {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--home-accent);
  margin-bottom: 1.25rem;
}

.home-spot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ——— Horizontal filmstrip catalog ——— */
.home-rail {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: #101412;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-rail__head {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.home-rail__head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
}

.home-rail__head p {
  color: var(--muted);
  max-width: 32ch;
  font-size: 0.95rem;
}

.home-rail__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1rem, calc((100% - 1180px) / 2)) 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--home-accent) transparent;
}

.home-rail__item {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: block;
  text-decoration: none;
}

.home-rail__item:hover .home-rail__img img {
  transform: scale(1.06);
}

.home-rail__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #1a1f1c;
}

.home-rail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.home-rail__idx {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--home-accent);
  margin-bottom: 0.25rem;
}

.home-rail__name {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--home-mist);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.home-rail__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.home-rail__price {
  margin-top: 0.45rem;
  color: var(--home-accent);
  font-weight: 600;
}

/* ——— Buy flow (replaces generic trust) ——— */
.home-flow {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--home-ink);
}

.home-flow__wrap {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
}

.home-flow__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
  max-width: 16ch;
  line-height: 1.1;
}

.home-flow__steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--home-line);
}

@media (min-width: 800px) {
  .home-flow__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-flow__step {
  padding: 1.75rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--home-line);
}

@media (min-width: 800px) {
  .home-flow__step {
    padding: 2rem 2rem 2rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--home-line);
  }
  .home-flow__step:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

.home-flow__step strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 0.5rem 0 0.4rem;
  font-weight: 600;
}

.home-flow__step span:first-child {
  color: var(--home-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.home-flow__step p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

/* ——— Giant contact band ——— */
.home-call {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  overflow: hidden;
  background: #171c19;
}

.home-call::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/products/lateksi-27sm.jpg") center/cover;
  opacity: 0.18;
  filter: grayscale(0.4);
}

.home-call__wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  text-align: center;
}

.home-call__label {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--home-accent);
  margin-bottom: 1rem;
}

.home-call__phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--home-mist);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  transition: color 0.25s;
}

.home-call__phone:hover {
  color: var(--home-accent);
}

.home-call__sub {
  color: rgba(232, 226, 214, 0.65);
  margin-bottom: 1.5rem;
}

.home-call__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.home-call__row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.home-hero__actions .btn--ghost .material-symbols-outlined {
  margin-right: 0.3rem;
  font-size: 1.15rem;
}

/* ——— FAQ as split list ——— */
.home-faq {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--home-ink);
}

.home-faq__wrap {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .home-faq__wrap {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

.home-faq__intro h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.home-faq__intro p {
  color: var(--muted);
  max-width: 28ch;
}

.home-faq details {
  border-top: 1px solid var(--home-line);
  padding: 1.1rem 0;
}

.home-faq details:last-child {
  border-bottom: 1px solid var(--home-line);
}

.home-faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.home-faq summary::-webkit-details-marker { display: none; }

.home-faq summary::after {
  content: "+";
  color: var(--home-accent);
  font-size: 1.4rem;
  line-height: 1;
}

.home-faq details[open] summary::after {
  content: "–";
}

.home-faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.95rem;
}

/* ——— SEO strip (compact, not blog dump) ——— */
.home-seo {
  padding: 3rem 0 4rem;
  background: #0d100e;
  border-top: 1px solid var(--home-line);
}

.home-seo__wrap {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .home-seo__wrap {
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }
}

.home-seo h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.home-seo p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.home-seo strong {
  color: var(--home-mist);
  font-weight: 600;
}

.home-seo__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem;
}

.home-seo__links a {
  font-size: 0.85rem;
  color: var(--home-accent);
  border-bottom: 1px solid transparent;
}

.home-seo__links a:hover {
  border-bottom-color: var(--home-accent);
}

/* Buttons on home — sharper, less pill */
body.page-home .btn {
  border-radius: 2px;
  letter-spacing: 0.06em;
}

body.page-home .btn--primary {
  background: var(--home-accent);
  color: #121410;
  border-color: var(--home-accent);
}

body.page-home .btn--ghost {
  border: 1px solid rgba(232, 226, 214, 0.35);
  color: var(--home-mist);
  background: transparent;
}

body.page-home .btn--ghost:hover {
  border-color: var(--home-accent);
  color: var(--home-accent);
}

body.page-home .footer {
  background: #080a09;
  border-top: 1px solid var(--home-line);
}

@media (max-width: 720px) {
  .home-hero__scroll { display: none; }
  .home-path { min-height: 200px; }
  body.page-home .mobile-bar { display: grid; }
  .home-hero__dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.25rem;
  }
}
