/*
 Theme Name:   Meir Buganim
 Theme URI:    https://mb-aesthetics.mymvn.app
 Description:  Luxury fragrance house — bespoke child theme
 Author:       SBY Agency
 Template:     generatepress
 Version:      8.0.0
 Text Domain:  meir-buganim
*/

/* ========================================
   DESIGN SYSTEM
   8px base grid. Mathematical spacing.
   ======================================== */
:root {
  /* Palette — warm monochrome (v6) */
  --onyx: #1A1713;
  --espresso: #2B241C;
  --bronze: #7A6B5A;
  --gold: #B69563;
  --champagne: #D9C2A0;
  --sand: #D8BF9D;
  --alabaster: #F3E6D0;
  --white: #FFFDF8;
  --black: #11100E;
  --text: #28231D;
  --muted: #7A6B5A;

  /* Typography — 1.333 modular scale (v8 polish) */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-display-he: 'Noto Serif Hebrew', 'Frank Ruhl Libre', 'David Libre', serif;
  --ff-body: 'Jost', 'Helvetica Neue', sans-serif;
  --ff-body-he: 'Heebo', 'Assistant', 'Segoe UI', sans-serif;

  --fs-display: clamp(2.8rem, 6vw, 4.4rem);
  --fs-h1: clamp(2.8rem, 6vw, 4.4rem);
  --fs-h2: 2.5rem;
  --fs-h3: 1.88rem;
  --fs-h4: 1.41rem;
  --fs-body: 1.06rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.72rem;

  --lh-display: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.9;

  /* Eyebrow / label */
  --ls-eyebrow: 0.28em;

  /* Spacing scale — 8px base */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-7: 56px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;
  --s-22: 176px;

  /* Section rhythm — consistent everywhere */
  --section-v: clamp(96px, 14vh, 176px);
  --section-h: clamp(var(--s-3), 5vw, var(--s-12));
  --content-max: 1200px;
  --prose-max: 720px;

  /* Timing */
  --ease: cubic-bezier(0.25, 0, 0.15, 1);
  --dur: 0.5s;
  --dur-slow: 0.8s;
}

/* ========================================
   FONT FACES
   ======================================== */
@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/playfair-display-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/playfair-display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Serif Hebrew'; src: url('assets/fonts/noto-serif-hebrew-400.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Heebo'; src: url('assets/fonts/heebo-300.woff2') format('woff2'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: 'Frank Ruhl Libre'; src: url('assets/fonts/frank-ruhl-libre-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Frank Ruhl Libre'; src: url('assets/fonts/frank-ruhl-libre-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Assistant'; src: url('assets/fonts/assistant-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Assistant'; src: url('assets/fonts/assistant-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ========================================
   GP OVERRIDE — SCOPED
   ======================================== */
.site-header, .site-footer, .site-content .widget-area,
.is-right-sidebar, .is-left-sidebar { display: none !important; }

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.site-content .content-area { width: 100% !important; float: none !important; }

/* Home: full-bleed */
body.home #page, body.home .site-content, body.home .content-area,
body.home .inside-article, body.home .entry-content {
  display: block !important; width: 100% !important;
  max-width: none !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; border: none !important;
  box-shadow: none !important; float: none !important;
}

/* Non-home: proper container */
body:not(.home) .inside-article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--s-10) + 84px) var(--section-h) var(--s-10);
}
body:not(.home) .entry-content { max-width: none; }

.mb-hidden { display: none !important; }

/* ========================================
   BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  background: var(--alabaster);
  color: var(--onyx);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0; padding: 0;
}

:lang(he) body, body.rtl {
  font-family: var(--ff-body-he);
  font-weight: 400;
  letter-spacing: normal;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 400; /* never 700 — bold kills Didone */
  line-height: var(--lh-heading);
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0;
}

:lang(he) :is(h1,h2,h3,h4,h5,h6),
.rtl :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--ff-display-he);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { max-width: 62ch; color: var(--text); margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--ease);
}
a:hover { color: var(--gold); }

/* Eyebrow / label — consistent everywhere */
.mb-eyebrow,
.mb-shop-card__meta,
.mb-product__type,
.mb-world__sub {
  font-size: 0.72rem !important;
  letter-spacing: var(--ls-eyebrow) !important;
  text-transform: uppercase;
  opacity: 0.65 !important;
}

/* Price — quiet, tabular, never bold */
.mb-shop-card__price,
.mb-product__price,
.mb-world__price,
.woocommerce-Price-amount {
  font-size: 1.2rem;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
}

/* Selection — the detail you feel */
::selection { background: var(--gold); color: var(--black); }

/* Focus — accessible without ugly */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ========================================
   BUTTONS — PHYSICAL FEEL
   ======================================== */
.btn,
.mb-shop-card__cta,
.mb-world__cta,
.single_add_to_cart_button {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.4s var(--ease),
              color 0.4s var(--ease),
              transform 0.15s var(--ease);
}
.btn:hover,
.mb-shop-card:hover .mb-shop-card__cta,
.mb-world__cta:hover,
.single_add_to_cart_button:hover {
  background: var(--gold);
  color: var(--black);
}
.btn:active,
.mb-world__cta:active,
.single_add_to_cart_button:active {
  transform: scale(0.98);
}

/* Gold hairline — one width, one opacity, everywhere */
.gold-hairline,
.mb-craft__hairline,
.mb-newsletter__hairline {
  display: block;
  width: 64px !important;
  height: 1px;
  background: var(--gold);
  opacity: 0.35 !important;
  border: none;
  margin-left: auto;
  margin-right: auto;
}
.btn:hover { background: var(--gold); color: var(--white); }
:lang(he) .btn, .rtl .btn { font-family: var(--ff-body-he); letter-spacing: 0.05em; }

/* ========================================
   REVEAL SYSTEM — CSS only (no GSAP needed)
   ======================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ========================================
   SECTION HELPERS
   ======================================== */
.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Logo/monogram — no filter hacks.
   Dark version = default (transparent bg, dark strokes).
   Light version: CSS filter only where needed. */
.mb-footer__monogram { filter: brightness(0) invert(1); opacity: 0.6; }
.mb-hero__monogram { filter: brightness(0) invert(1); }
