/* ==========================================================================
   094 · MILKGLASS (عيادة المرمر — Milkglass Clinic) — 1:1 Evidence-Based Dermatology & Skin Barrier
   Milk #FBF6F1 · Plum #3B2430 · Terracotta Rose #B9786A · Blush Peach #F2D5C4 · Travertine #E3D3C0
   Arched 999px frames · Fluid serum ripple stage · Interactive Before/After drag slider · Dotted pricing
   ========================================================================== */

:root {
  --milk: #FBF6F1;
  --plum: #3B2430;
  --accent: #B9786A;
  --peach: #F2D5C4;
  --travertine: #E3D3C0;
  --hair: rgba(59, 36, 48, 0.22);
  --serif: 'Amiri', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--milk);
  color: var(--plum);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  background: var(--milk);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--mono); }

.mg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--milk);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--plum);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mg-pill:hover { transform: translateY(-1px); opacity: 0.92; }

.mg-pill-ghost {
  background: rgba(251, 246, 241, 0.72);
  color: var(--plum);
  border-color: var(--hair);
}

/* Arched Editorial Frame */
.mg-arch {
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
}

/* ======================== FIXED 76px HEADER ======================== */
.mg-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 74px;
  z-index: 75;
  padding: 0 clamp(20px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mg-header.scrolled {
  background: rgba(251, 246, 241, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--hair);
}

.mg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.mg-pearl {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, var(--peach) 60%, var(--accent));
}

.mg-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  white-space: nowrap;
}

.mg-nav a:hover { color: var(--accent); }

/* ======================== 1. HERO (100svh SERUM RIPPLE STAGE) ======================== */
.mg-hero {
  position: relative;
  min-height: 100dvh;
  background: var(--peach);
  padding: 104px clamp(20px, 3.5vw, 48px) 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: crosshair;
}

.mg-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(251,246,241,0.95) 0%, rgba(242,213,196,0.78) 44%, rgba(242,213,196,0.12) 82%);
  pointer-events: none;
}

.mg-ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.mg-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 620px;
  margin-top: auto;
  margin-bottom: auto;
}

.mg-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
}

.mg-h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 16px;
}

.mg-h1 em, .mg-h2 em {
  font-style: italic;
  color: var(--accent);
}

.mg-hero-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mg-float-card {
  background: rgba(251, 246, 241, 0.76);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

/* Proof 4-Col Strip */
.mg-proof {
  background: var(--milk);
  border-top: 1px solid var(--plum);
  border-bottom: 1px solid var(--plum);
}

.mg-proof-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mg-proof-cell {
  padding: 28px 20px;
  text-align: center;
  border-inline-end: 1px solid var(--hair);
}
.mg-proof-cell:last-child { border-inline-end: none; }

.mg-proof-cell strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
}

/* ======================== SECTIONS ======================== */
.mg-sec {
  padding: 88px clamp(20px, 3.5vw, 48px);
}

.mg-container { max-width: 1200px; margin: 0 auto; }

.mg-h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.9vw, 3.4rem);
  font-weight: 400;
  line-height: 1.30;
}

/* 2. Treatments Sticky Arched Preview */
.mg-treat-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  margin-top: 38px;
}

.mg-treat-row {
  padding: 22px 8px;
  border-bottom: 1px solid var(--plum);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: padding-inline-start 0.2s ease;
}

.mg-treat-row:first-child { border-top: 1px solid var(--plum); }
.mg-treat-row.active, .mg-treat-row:hover {
  padding-inline-start: 18px;
  color: var(--accent);
}

.mg-treat-preview {
  max-width: 410px;
  margin: 0 auto;
  aspect-ratio: 4 / 4.8;
  position: relative;
  border: 1px solid var(--hair);
}

.mg-treat-preview img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.35s ease; }

/* 3. Interactive Before / After Arched Drag Slider */
.mg-ba-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.mg-ba-frame {
  position: relative;
  max-width: 440px;
  aspect-ratio: 4 / 4.7;
  margin: 0 auto;
  user-select: none;
  border: 1px solid var(--plum);
}

.mg-ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-ba-before {
  filter: sepia(0.28) contrast(0.92) brightness(0.94);
  clip-path: inset(0 0 0 50%);
}

.mg-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--milk);
  z-index: 4;
  pointer-events: none;
}

.mg-ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 246, 241, 0.92);
  border: 1px solid var(--plum);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* 4. Dotted Pricing Accordion */
.mg-price-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: start;
}

.mg-acc {
  border-bottom: 1px solid var(--plum);
}
.mg-acc:first-child { border-top: 1px solid var(--plum); }

.mg-acc summary {
  padding: 20px 6px;
  font-family: var(--serif);
  font-size: 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mg-dotted-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 6px 14px;
  border-top: 1px dotted var(--accent);
  font-size: 15px;
}

/* 5. Radial Blush CTA Box (#begin) & Plum Footer */
.mg-cta-box {
  max-width: 1060px;
  margin: 0 auto;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 100%, var(--peach) 0%, var(--milk) 76%);
  border: 1px solid var(--hair);
  padding: 64px 32px;
  text-align: center;
}

.mg-chip-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.mg-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--plum);
  background: var(--milk);
  cursor: pointer;
  font-size: 14px;
}

.mg-chip.on {
  background: var(--plum);
  color: var(--milk);
}

.mg-footer {
  background: var(--plum);
  color: var(--milk);
  padding: 58px clamp(20px, 3.5vw, 48px) 36px;
}

.mg-showcase-nav {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 246, 241, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .mg-nav { display: none; }
  .mg-proof-grid,
  .mg-treat-grid,
  .mg-ba-split,
  .mg-price-split {
    grid-template-columns: 1fr;
  }
}
