/* Reflex Etiket — Premium Home
   Colors: burgundy #a01928, ink #0f1115, warm paper #f6f3ee
   Fonts loaded from _Layout (HTTPS-safe <link>), not @import
*/
body.is-home {
  --rx-ink: #0f1115;
  --rx-paper: #f6f3ee;
  --rx-burgundy: #a01928;
  --rx-burgundy-deep: #7e121f;
  --rx-muted: #5c5a56;
  --rx-line: rgba(15, 17, 21, 0.12);
  --rx-font-display: 'Cormorant Garamond', Georgia, serif;
  --rx-font-body: 'Outfit', 'Segoe UI', sans-serif;
  background: var(--rx-paper);
  color: var(--rx-ink);
  font-family: var(--rx-font-body);
}

body.is-home .main.rx-home {
  overflow-x: hidden;
}

/* —— Nav on home: transparent over hero —— */
body.is-home .header .navbar-theme-white {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  min-height: 4.75rem;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

body.is-home .header .navbar-theme-white.headroom--not-top,
body.is-home .header .navbar-theme-white.scrolled,
body.is-home.rx-nav-solid .header .navbar-theme-white {
  background: rgba(15, 17, 21, 0.94) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

body.is-home .header .navbar-nav .nav-link {
  color: #fff !important;
  font-family: var(--rx-font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.55rem 0.7rem !important;
}

@media (max-width: 991.98px) {
  body.is-home .header .navbar-collapse .navbar-nav .nav-link {
    color: #0f1115 !important;
  }
}

body.is-home .header .navbar-brand {
  position: relative;
  padding: 0.55rem 1.05rem 0.55rem 1rem !important;
  margin-right: 1.15rem !important;
  line-height: 1;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(246, 243, 238, 0.72) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 2px solid #a01928;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 28px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Logo — larger + readable on hero */
body.is-home .header .navbar-brand img,
body.is-home .header .navbar-brand-dark,
body.is-home .header .navbar-brand-light {
  height: 50px !important;
  width: auto !important;
  max-height: 50px !important;
  max-width: 240px !important;
  object-fit: contain;
  display: block;
}

body.is-home .header .navbar-brand img {
  filter: none;
}

body.is-home.rx-nav-solid .header .navbar-brand,
body.is-home .header .navbar-theme-white.headroom--not-top .navbar-brand {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(246, 243, 238, 0.9) 100%
  );
  border-color: rgba(255, 255, 255, 0.55);
  border-left-color: #a01928;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

body.is-home.rx-nav-solid .header .navbar-brand img,
body.is-home .header .navbar-theme-white.headroom--not-top .navbar-brand img {
  height: 42px !important;
  max-height: 42px !important;
  max-width: 210px !important;
}

/* Light glass badge → color logo */
body.is-home .header .navbar-brand-dark {
  display: none !important;
}

body.is-home .header .navbar-brand-light {
  display: block !important;
}

@media (max-width: 991px) {
  body.is-home .header .navbar-brand {
    padding: 0.4rem 0.7rem 0.4rem 0.65rem !important;
  }

  body.is-home .header .navbar-brand img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 190px !important;
  }
}

/* —— Shared —— */
.rx-home .rx-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--rx-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rx-burgundy);
}

.rx-home .rx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  font-family: var(--rx-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.rx-home .rx-btn--primary {
  background: var(--rx-burgundy);
  color: #fff !important;
}

.rx-home .rx-btn--primary:hover {
  background: var(--rx-burgundy-deep);
  color: #fff !important;
  transform: translateY(-1px);
}

.rx-home .rx-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.rx-home .rx-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.rx-home .rx-btn--ghost-dark {
  background: transparent;
  border-color: var(--rx-ink);
  color: var(--rx-ink) !important;
}

.rx-home .rx-btn--ghost-dark:hover {
  background: var(--rx-ink);
  color: #fff !important;
}

/* Motion */
.rx-home .rx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rx-home .rx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rx-home .rx-hero__copy.rx-reveal {
  transition-duration: 0.9s;
}

/* —— Hero —— */
.rx-home .rx-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--rx-ink);
}

.rx-home .rx-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rx-home .rx-hero__slides {
  position: absolute;
  inset: 0;
}

.rx-home .rx-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 6.5s ease;
  will-change: opacity, transform;
}

.rx-home .rx-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.rx-home .rx-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(15, 17, 21, 0.35) 0%, rgba(15, 17, 21, 0.25) 40%, rgba(15, 17, 21, 0.82) 100%),
    linear-gradient(90deg, rgba(15, 17, 21, 0.55) 0%, rgba(15, 17, 21, 0.15) 55%, transparent 100%);
}

.rx-home .rx-hero__dots {
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rx-home .rx-hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, height 0.25s ease;
}

.rx-home .rx-hero__dot.is-active {
  background: #fff;
  border-color: #fff;
  height: 1.35rem;
}

@media (max-width: 575px) {
  .rx-home .rx-hero__dots {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    bottom: 1.25rem;
  }

  .rx-home .rx-hero__dot.is-active {
    width: 1.35rem;
    height: 0.55rem;
  }
}

.rx-home .rx-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: 5.5rem;
}

.rx-home .rx-hero__copy {
  max-width: 40rem;
}

.rx-home .rx-hero__brand {
  margin: 0 0 1rem;
  font-family: var(--rx-font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
}

.rx-home .rx-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--rx-font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.rx-home .rx-hero__lead {
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

.rx-home .rx-hero__lead p {
  margin: 0;
  color: inherit;
}

.rx-home .rx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Pillars —— */
.rx-home .rx-pillars {
  padding: 4.5rem 0;
  background: #fff;
  border-bottom: 1px solid var(--rx-line);
}

.rx-home .rx-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
}

.rx-home .rx-pillar__title {
  margin: 0 0 0.85rem;
  font-family: var(--rx-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rx-ink);
}

.rx-home .rx-pillar__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--rx-muted);
}

.rx-home .rx-pillar__text p {
  margin: 0;
}

.rx-home .rx-pillar + .rx-pillar {
  border-left: 1px solid var(--rx-line);
  padding-left: 3rem;
  margin-left: -1.5rem;
}

/* —— About —— */
.rx-home .rx-about {
  padding: 6rem 0;
  background: var(--rx-paper);
}

.rx-home .rx-about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.rx-home .rx-about__media {
  position: relative;
  overflow: hidden;
}

.rx-home .rx-about__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(15, 17, 21, 0.18));
  pointer-events: none;
}

.rx-home .rx-about__media img {
  display: block;
  width: 100%;
  height: clamp(320px, 48vw, 560px);
  object-fit: cover;
}

.rx-home .rx-about__title {
  margin: 0 0 1.25rem;
  font-family: var(--rx-font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--rx-ink);
}

.rx-home .rx-about__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--rx-muted);
  margin-bottom: 1.25rem;
}

.rx-home .rx-about__points {
  margin-bottom: 1.75rem;
  color: var(--rx-ink);
  font-size: 0.95rem;
  line-height: 1.7;
}

.rx-home .rx-about__points ul {
  padding-left: 1.1rem;
  margin: 0;
}

.rx-home .rx-about__points li {
  margin-bottom: 0.35rem;
}

/* —— Products —— */
.rx-home .rx-products {
  padding: 5.5rem 0 4.5rem;
  background: #fff;
}

.rx-home .rx-products__head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.rx-home .rx-products__title {
  margin: 0 0 0.85rem;
  font-family: var(--rx-font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--rx-ink);
}

.rx-home .rx-products__sub {
  margin: 0;
  color: var(--rx-muted);
  line-height: 1.7;
}

.rx-home .rx-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}

.rx-home .rx-product {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.rx-home .rx-product__media {
  overflow: hidden;
  background: #ebe7e0;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.9rem;
}

.rx-home .rx-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.rx-home .rx-product:hover .rx-product__media img {
  transform: scale(1.05);
}

.rx-home .rx-product__name {
  margin: 0;
  font-family: var(--rx-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--rx-ink);
  line-height: 1.35;
}

.rx-home .rx-products__more {
  margin-top: 2.5rem;
  text-align: center;
}

/* —— CTA —— */
.rx-home .rx-cta {
  padding: 0 0 5rem;
  background: #fff;
}

.rx-home .rx-cta__panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.75rem 2.5rem;
  background: var(--rx-ink);
  color: #fff;
}

.rx-home .rx-cta__title {
  margin: 0 0 0.65rem;
  font-family: var(--rx-font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  color: #fff;
}

.rx-home .rx-cta__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.rx-home .rx-cta__form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.rx-home .rx-cta__input {
  flex: 1 1 220px;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--rx-font-body);
  font-size: 0.95rem;
  outline: none;
}

.rx-home .rx-cta__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.rx-home .rx-cta__input:focus {
  border-color: rgba(255, 255, 255, 0.55);
}

/* —— Responsive —— */
@media (max-width: 991px) {
  .rx-home .rx-pillars__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rx-home .rx-pillar + .rx-pillar {
    border-left: 0;
    border-top: 1px solid var(--rx-line);
    padding-left: 0;
    margin-left: 0;
    padding-top: 2rem;
  }

  .rx-home .rx-about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rx-home .rx-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rx-home .rx-cta__panel {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .rx-home .rx-hero__inner {
    padding-bottom: 3.5rem;
  }

  .rx-home .rx-products__grid {
    grid-template-columns: 1fr;
  }

  .rx-home .rx-pillars,
  .rx-home .rx-about,
  .rx-home .rx-products {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
