/* Maria Galland Paris — white, black type, warm greige accent, light display type.
   Almarena Neue is used when available (add its licensed @font-face here);
   Inter Tight is the web fallback. */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@200;300;400;500&display=swap');

.bt-maria-galland {
  --mg-font: 'Almarena Neue', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mg-ink: #000; --mg-muted: rgba(0,0,0,.6); --mg-greige: #e9e4e1; --mg-paper: #f6f4f2; --mg-line: #e9e9e9;
  /* re-theme the shared product listing + cards */
  --font: var(--mg-font); --font-display: var(--mg-font);
  --brand: #000; --brand-ink: #000; --brand-2: #333; --brand-soft: #f3f0ee; --brand-tint: #faf9f8;
  --ink: #000; --radius: 0px; --radius-lg: 0px; --radius-sm: 0px;
  font-family: var(--mg-font); color: var(--mg-ink);
}
.bt-maria-galland .pb-btn { border-radius: 0; }
.bt-maria-galland .pb-card { border-radius: 0; box-shadow: none; }
.bt-maria-galland .pb-card-media { background: var(--mg-paper); border-radius: 0; }
.bt-maria-galland .pb-section-head h2 { font-weight: 300; letter-spacing: -.03em; }

.mgx { --pad: clamp(16px, 5vw, 64px); }
.mgx a { color: inherit; text-decoration: none; }
.mgx h1, .mgx h2 { font-family: var(--mg-font); color: var(--mg-ink); margin: 0; }
.mgx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mgx-eyebrow { font: 500 12px/1.4 var(--mg-font); letter-spacing: .08em; text-transform: uppercase; color: var(--mg-ink); margin: 0 0 14px; }

/* brand header */
.mgx-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px var(--pad) 0; }
.mgx-crumbs { font: 400 12px var(--mg-font); color: var(--mg-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.mgx-crumbs a:hover { color: #000; }
.mgx-wordmark { font: 500 22px/1 var(--mg-font); letter-spacing: .02em; text-align: center; }
.mgx-wordmark small { display: block; font-size: 9px; letter-spacing: .35em; margin-top: 6px; }
.mgx-nav { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 30px; padding: 22px 0 18px; border-bottom: 1px solid var(--mg-line); font: 400 14px var(--mg-font); }
.mgx-nav a { padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.mgx-nav a:hover { border-color: #000; }

/* hero: centred slide with neighbouring slides peeking, like the maison's carousel */
.mgx-hero { display: grid; grid-template-columns: 1fr 5fr 1fr; gap: 10px; height: clamp(420px, 46vw, 620px); margin: 0 0 8px; }
.mgx-hero-side { background-size: cover; background-position: center; }
.mgx-hero-main { position: relative; overflow: hidden; background: #f3efec; }
.mgx-hero-main img { position: absolute; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; }
.mgx-hero-copy { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px 5%; }
.mgx-hero h1 { font-weight: 200; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 30px; }
.mgx-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; height: 48px; padding: 0 28px; background: #000; color: #fff !important; font: 500 14px var(--mg-font); transition: background .2s, color .2s; }
.mgx-btn:hover { background: #333; }
.mgx-btn--ghost { background: transparent; color: #000 !important; border: 1px solid #000; }
.mgx-btn--ghost:hover { background: #000; color: #fff !important; }

/* sections */
.mgx-sec { padding: 64px var(--pad) 40px; }
.mgx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding-right: 110px; flex-wrap: wrap; }
.mgx-head h2, .mgx-concern h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.04em; }
.mgx-sub { margin: 0; color: var(--mg-muted); font-size: 15px; }
.mgx-link { font-size: 14px; border-bottom: 1px solid #000; padding-bottom: 2px; }

/* shop by concern */
.mgx-concern { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 40px; padding: 64px var(--pad); background: linear-gradient(90deg, #fff 0, #f7f6f5 100%); position: relative; overflow: hidden; }
.mgx-concern-intro { position: relative; z-index: 1; padding-top: 4px; }
.mgx-concern-intro p { color: var(--mg-muted); font-size: 15px; line-height: 1.6; max-width: 240px; margin: 14px 0 0; }
.mgx-concern-intro img { position: absolute; left: -30%; top: 150px; width: 140%; opacity: .5; z-index: -1; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.mgx-concern-rail .bt-rail-nav { top: -56px; }
.mgx-concern-rail .bt-rail-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
.mgx-concern-card { display: flex; flex-direction: column; background: #fff; height: 100%; }
.mgx-concern-img { aspect-ratio: 1; background: #eef3f6; overflow: hidden; display: block; }
.mgx-concern-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.mgx-concern-card:hover img { transform: scale(1.05); }
.mgx-concern-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; font: 400 16px var(--mg-font); }
.mgx-concern-foot small { display: block; font-size: 12px; color: var(--mg-muted); margin-top: 3px; }
.mgx-concern-foot b { width: 34px; height: 34px; border-radius: 50%; background: var(--mg-greige); display: grid; place-items: center; font-weight: 400; flex: none; transition: background .2s, color .2s; }
.mgx-concern-card:hover .mgx-concern-foot b { background: #000; color: #fff; }

/* icons */
.mgx-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mgx-icon { display: flex; flex-direction: column; gap: 6px; }
.mgx-icon-img { position: relative; aspect-ratio: 4 / 5; background: var(--mg-paper); display: grid; place-items: center; overflow: hidden; margin-bottom: 14px; }
.mgx-icon-img img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.mgx-icon:hover .mgx-icon-img img { transform: scale(1.05); }
.mgx-icon-no { position: absolute; left: 22px; top: 14px; font: 200 clamp(48px, 5vw, 80px)/1 var(--mg-font); letter-spacing: -.05em; color: #000; }
.mgx-icon strong { font: 500 18px var(--mg-font); letter-spacing: -.02em; }
.mgx-icon > span:last-child { color: var(--mg-muted); font-size: 14px; line-height: 1.5; }

/* story */
.mgx-story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 100px); padding: 72px var(--pad); background: var(--mg-greige); margin-top: 40px; }
.mgx-story-img { aspect-ratio: 1; overflow: hidden; }
.mgx-story-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.mgx-story h2 { font-weight: 200; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 24px; max-width: 520px; }
.mgx-story-copy > p:not(.mgx-eyebrow) { font-size: 16px; line-height: 1.7; color: rgba(0,0,0,.75); max-width: 480px; margin: 0 0 14px; }
.mgx-story-stats { display: flex; gap: 48px; margin: 30px 0 34px; }
.mgx-story-stats span { font-size: 13px; color: var(--mg-muted); }
.mgx-story-stats b { display: block; font: 200 44px/1 var(--mg-font); letter-spacing: -.04em; color: #000; margin-bottom: 6px; }

/* rituals */
.mgx-ritual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mgx-ritual { display: flex; flex-direction: column; }
.mgx-ritual img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 18px; transition: opacity .3s; }
.mgx-ritual:hover img { opacity: .9; }
.mgx-ritual .mgx-eyebrow { margin-bottom: 6px; color: var(--mg-muted); }
.mgx-ritual strong { font: 300 24px var(--mg-font); letter-spacing: -.03em; }

@media (max-width: 1000px) {
  .mgx-hero { grid-template-columns: 0 1fr 0; gap: 0; height: auto; }
  .mgx-hero-main { display: flex; flex-direction: column-reverse; }
  .mgx-hero-main img, .mgx-hero-copy { position: static; width: 100%; }
  .mgx-hero-main img { height: 300px; }
  .mgx-hero-copy { padding: 40px 24px; }
  .mgx-concern { grid-template-columns: 1fr; }
  .mgx-concern-intro img { display: none; }
  .mgx-concern-rail .bt-rail-nav { top: -64px; left: auto; right: 0; }
  .mgx-concern-rail .bt-rail-track { grid-auto-columns: calc((100% - 16px) / 2.3); }
  .mgx-story { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mgx-top { grid-template-columns: 1fr; text-align: center; }
  .mgx-crumbs { justify-content: center; order: 2; }
  .mgx-nav { gap: 6px 18px; font-size: 13px; }
  .mgx-head { padding-right: 0; }
  .mgx-icons, .mgx-ritual-grid { grid-template-columns: 1fr; }
  .mgx-concern-rail .bt-rail-track { grid-auto-columns: 72%; }
  .mgx-story-stats { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) { .mgx * { transition: none !important; } }
