/* ═══════════════════════════════════════════════════════════════
   RHIVEX — SHARED BASE STYLES
   Palette, typography, grain texture, announce bar, nav, footer,
   buttons, animations, reveals. Loaded on every page template.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cream: #F5EDE0;
  --cream-2: #EFE4D1;
  --cream-3: #E8DAC0;
  --paper: #FAF5EB;
  --ink: #0E0E0E;
  --ink-2: #1A1916;
  --charcoal: #2A2725;
  --muted: #857C70;
  --muted-2: #B5AB9C;
  --accent: #5C4A38;
  --accent-soft: #8B7456;
  --line: rgba(14, 14, 14, 0.08);
  --line-strong: rgba(14, 14, 14, 0.16);
  --line-cream: rgba(245, 237, 224, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  /* fallback for older browsers */
  overflow-x: clip;
  /* prevents horizontal scroll WITHOUT breaking position: sticky inside descendants */
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay (every page) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* Typography helpers */
.display {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.display em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─────── ANNOUNCEMENT BAR ─────── */
.rh-announce {
  background: var(--ink);
  color: var(--cream);
  padding: 11px 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 110;
  font-weight: 500;
  overflow: hidden;
}

.rh-announce-track {
  display: flex;
  gap: 80px;
  animation: marquee-slow 40s linear infinite;
  white-space: nowrap;
}

.rh-announce-track span {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  flex-shrink: 0;
}

.rh-announce-track span::after {
  content: '◆';
  color: var(--accent-soft);
  font-size: 8px;
}

/* ─────── NAVIGATION ─────── */
.rh-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 237, 224, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.rh-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: padding 0.4s ease;
}

.rh-nav.scrolled .rh-nav-inner {
  padding: 14px 56px;
}

.rh-nav-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

.rh-nav-left .custom-logo-link,
.rh-nav-left .rh-logo-link {
  display: block;
  line-height: 0;
}

.rh-nav-left .custom-logo-link img,
.rh-nav-left .rh-logo-link img {
  max-height: 44px;
  width: auto;
  height: auto;
  transition: max-height 0.4s ease;
}

.rh-nav.scrolled .rh-nav-left .custom-logo-link img,
.rh-nav.scrolled .rh-nav-left .rh-logo-link img {
  max-height: 36px;
}

.rh-logo {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink);
  text-decoration: none;
}

.rh-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-self: center;
  margin: 0;
  padding: 0;
}

.rh-nav-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  display: inline-block;
}

.rh-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.rh-nav-links a.active::after,
.rh-nav-links li.current-menu-item>a::after,
.rh-nav-links li.current_page_item>a::after,
.rh-nav-links a:hover::after {
  width: 100%;
}

.rh-nav-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-self: end;
}

.rh-nav-actions a {
  display: inline-flex;
  align-items: center;
}

.rh-nav-actions a>svg {
  width: 19px;
  height: 19px;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.3s, color 0.3s;
}

.rh-nav-actions a:hover>svg {
  transform: translateY(-2px);
  color: var(--accent);
}

.rh-nav-icon {
  width: 19px;
  height: 19px;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.3s, color 0.3s;
}

.rh-nav-icon:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.rh-cart-wrap {
  position: relative;
}

.rh-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 10px;
  background: var(--ink);
  color: var(--cream);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ─────── FLOATING WHATSAPP BUBBLE ─────── */
.rh-wa-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.rh-wa-bubble .rh-wa-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.45), 0 6px 14px -4px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
  position: relative;
}

.rh-wa-bubble .rh-wa-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: rhWaPulse 2.2s ease-out infinite;
}

.rh-wa-bubble:hover .rh-wa-icon {
  transform: scale(1.08);
}

.rh-wa-bubble .rh-wa-tooltip {
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  margin-right: 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px) scale(0.96);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.3);
}

.rh-wa-bubble:hover .rh-wa-tooltip,
.rh-wa-bubble:focus-visible .rh-wa-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@keyframes rhWaPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .rh-wa-bubble {
    right: 12px;
    bottom: 12px;
  }

  .rh-wa-bubble .rh-wa-icon {
    width: 46px;
    height: 46px;
    box-shadow: 0 10px 22px -8px rgba(37, 211, 102, 0.4), 0 4px 10px -4px rgba(0, 0, 0, 0.16);
  }

  .rh-wa-bubble .rh-wa-icon svg {
    width: 22px;
    height: 22px;
  }

  .rh-wa-bubble .rh-wa-tooltip {
    display: none;
  }
}

/* ─────── BUTTONS ─────── */
.rh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}

.rh-btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
}

.rh-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.rh-btn-primary:hover::before {
  transform: translateY(0);
}

.rh-btn-primary span,
.rh-btn-primary svg {
  position: relative;
  z-index: 2;
  transition: transform 0.4s;
}

.rh-btn-primary:hover svg {
  transform: translateX(5px);
}

.rh-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.rh-btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ─────── FOOTER ─────── */
.rh-footer {
  background: var(--ink-2);
  color: var(--cream);
  padding: 90px 56px 36px;
  position: relative;
  z-index: 2;
}

.rh-footer-top {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-cream);
}

.rh-footer-brand .rh-logo {
  color: var(--cream);
  font-size: 32px;
  letter-spacing: 0.32em;
}

.rh-footer-brand .rh-footer-logo-link {
  display: block;
  line-height: 0;
  /* Pull the logo flush-left so its visible glyphs align with the body text below.
     Compensates for transparent padding baked into the PNG export. */
  margin-left: -25px;
}

.rh-footer-brand .rh-footer-logo-link img {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  /* Force the logo to render in the footer's cream/white tone regardless of
     the source PNG's color (black logo on dark bg → invisible without this). */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.rh-footer-brand p {
  margin-top: 22px;
  color: rgba(245, 237, 224, 0.55);
  font-size: 14px;
  max-width: 340px;
  line-height: 1.75;
}

.rh-footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.rh-footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all 0.3s;
}

.rh-footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.rh-footer-socials svg {
  width: 14px;
  height: 14px;
}

.rh-footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 24px;
  font-weight: 600;
}

.rh-footer-col ul {
  list-style: none;
}

.rh-footer-col li {
  margin-bottom: 12px;
}

.rh-footer-col a {
  color: rgba(245, 237, 224, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.rh-footer-col a:hover {
  color: var(--accent-soft);
}

.rh-footer-contact .item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.rh-footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--accent-soft);
  flex-shrink: 0;
  margin-top: 3px;
}

.rh-footer-contact .item div {
  min-width: 0;
  font-size: 14px;
  color: rgba(245, 237, 224, 0.7);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rh-footer-contact .item strong {
  color: var(--cream);
  font-weight: 600;
  display: block;
}

.rh-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(245, 237, 224, 0.4);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.rh-footer-bottom .made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rh-footer-bottom .made::before {
  content: '✦';
  color: var(--accent-soft);
}

/* ─────── ANIMATIONS ─────── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes subtleZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12);
  }
}

@keyframes marquee-slow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.in-view>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger.in-view>*:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-stagger.in-view>*:nth-child(3) {
  transition-delay: 0.24s;
}

.reveal-stagger.in-view>*:nth-child(4) {
  transition-delay: 0.36s;
}

.reveal-stagger.in-view>*:nth-child(5) {
  transition-delay: 0.48s;
}

.reveal-stagger.in-view>*:nth-child(6) {
  transition-delay: 0.60s;
}

.reveal-stagger.in-view>*:nth-child(7) {
  transition-delay: 0.72s;
}

.reveal-stagger.in-view>*:nth-child(8) {
  transition-delay: 0.84s;
}

.reveal-stagger.in-view>*:nth-child(9) {
  transition-delay: 0.96s;
}

.reveal-stagger.in-view>*:nth-child(10) {
  transition-delay: 1.08s;
}

.reveal-stagger.in-view>*:nth-child(11) {
  transition-delay: 1.20s;
}

.reveal-stagger.in-view>*:nth-child(12) {
  transition-delay: 1.32s;
}

/* ─────── HAMBURGER (hidden on desktop) ─────── */
.rh-menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.rh-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.rh-hamburger > span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ─────── MOBILE FULLSCREEN MENU ─────── */
.rh-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.rh-mobile-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.rh-mobile-menu-inner {
  min-height: 100%;
  padding: 22px 22px 40px;
  display: flex;
  flex-direction: column;
}

.rh-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.rh-mobile-menu-head .rh-logo-link img,
.rh-mobile-menu-head .custom-logo-link img {
  max-height: 40px;
  width: auto;
}

.rh-menu-close {
  background: none;
  border: 0;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rh-mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rh-mobile-menu-links li {
  border-bottom: 1px solid var(--line);
}

.rh-mobile-menu-links a {
  display: block;
  padding: 18px 0;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.rh-mobile-menu-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rh-mobile-menu-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rh-mobile-menu-action svg {
  width: 20px;
  height: 20px;
}

/* Lock body scroll when menu open */
body.rh-menu-open {
  overflow: hidden;
}

/* ─────── RESPONSIVE BASE ─────── */
/* Tablet: hide desktop action icons; menu items take their place */
@media (max-width: 968px) {

  .rh-nav-inner,
  .rh-nav.scrolled .rh-nav-inner {
    padding: 14px 22px;
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .rh-nav-links {
    justify-self: end;
    gap: 22px;
  }

  .rh-nav-actions {
    display: none;
  }

  .rh-footer {
    padding: 60px 22px 30px;
  }

  .rh-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .rh-footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* Mobile: hide menu links, show hamburger that opens the fullscreen menu */
@media (max-width: 640px) {

  .rh-nav-inner,
  .rh-nav.scrolled .rh-nav-inner {
    grid-template-columns: 1fr auto;
  }

  .rh-nav-links {
    display: none;
  }

  .rh-nav-actions {
    display: flex;
    justify-self: end;
    gap: 0;
  }

  /* Cart/account stay hidden in the header on mobile — they live inside the menu */
  .rh-nav-actions .rh-nav-action {
    display: none;
  }

  .rh-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .rh-footer {
    padding: 54px 22px 28px;
    overflow: hidden;
  }

  .rh-footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 42px;
  }

  .rh-footer-brand .rh-footer-logo-link {
    margin-left: -16px;
  }

  .rh-footer-brand .rh-footer-logo-link img {
    max-width: min(260px, calc(100vw - 28px));
  }

  .rh-footer-brand p {
    max-width: none;
    margin-top: 18px;
  }

  .rh-footer-col h5 {
    margin-bottom: 18px;
  }

  .rh-footer-col li {
    margin-bottom: 10px;
  }

  .rh-footer-contact .item {
    gap: 10px;
    margin-bottom: 16px;
  }
}