/* Ifátẹ̀mí - Mystical Ceremonial direction
   Obsidian canvas, parchment ink, antique-gold foil, oxblood depth.
   Candlelit archive mood - serious, priestly, restrained.
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Ceremonial dark base */
  --bg:         #0c0a08;      /* obsidian, warm-tinted */
  --bg-raised:  #141110;      /* cards, raised surfaces */
  --bg-warm:    #1a1512;      /* warmer panel */
  --bg-deep:    #060504;      /* deepest black */

  /* Ivory / parchment ink on dark */
  --ink:        #ece3cf;      /* parchment */
  --ink-2:      #c9bfa6;      /* softer */
  --ink-3:      #8a8069;      /* muted */
  --ink-4:      #565043;      /* very dim */

  /* Antique gold, warm, foil-like */
  --gold:       #c6a35a;
  --gold-2:     #e4c77b;      /* highlight */
  --gold-dim:   #8e7233;      /* deeper */
  --gold-veil:  rgba(198, 163, 90, 0.10);
  --gold-line:  rgba(198, 163, 90, 0.28);

  /* Oxblood, for emphasis - never bright red */
  --oxblood:    #5a1a14;
  --oxblood-2:  #7a2418;

  /* Legacy aliases kept so prior components compile */
  --bone:       var(--bg);
  --bone-2:     var(--bg-raised);
  --bone-3:     var(--bg-warm);
  --ivory:      var(--bg-raised);

  --hairline:   rgba(198, 163, 90, 0.16);
  --hairline-2: rgba(198, 163, 90, 0.08);
  --rust:       #7a2418;
  --indigo:     #0b0d1a;
  --ochre:      var(--gold-dim);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}

#root { min-height: 100vh; position: relative; }

/* Film grain + candlelight vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198,163,90,0.055), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(90,26,20,0.12), transparent 55%),
    radial-gradient(circle at 20% 40%, rgba(198,163,90,0.025), transparent 40%);
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.06  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ── Type ── */
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.02;
  color: var(--ink);
}
.display.italic { font-style: italic; font-weight: 300; }

.serif { font-family: var(--serif); }
.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.small-caps {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.yoruba {
  font-style: italic;
  color: var(--gold);
}
.yoruba-gloss {
  color: var(--ink-3);
  font-size: 0.9em;
  font-style: italic;
}

.text-gold     { color: var(--gold) !important; }
.text-gold-2   { color: var(--gold-2); }
.text-muted    { color: var(--ink-3); }
.text-oxblood  { color: var(--oxblood-2); }
.ink-2         { color: var(--ink-2); }

/* Gold foil effect on display text */
.gold-foil {
  color: transparent;
  background: linear-gradient(180deg, #e9cf82 0%, #c6a35a 40%, #8e7233 70%, #c6a35a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: italic;
}

/* ── Layout primitives ── */
.page { position: relative; z-index: 3; }
.container       { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-narrow{ max-width: 960px;  margin: 0 auto; padding: 0 40px; }

.hairline   { border-top:    0.5px solid var(--hairline); }
.hairline-b { border-bottom: 0.5px solid var(--hairline); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 10, 8, 0.85);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 0.5px solid var(--gold-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 40px;
  max-width: 1440px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.brand-mark {
  width: 32px; height: 32px;
  border: 0.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 17px; font-weight: 400; font-style: italic;
  color: var(--gold);
  background: radial-gradient(circle at 40% 30%, rgba(198,163,90,0.15), transparent 70%);
}
.brand-word {
  font-family: var(--serif);
  font-size: 21px; font-weight: 400; font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.24em;
  color: var(--gold); text-transform: uppercase;
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--serif);
  font-size: 16px; font-style: italic;
  color: var(--ink-2); cursor: pointer;
  position: relative; padding: 4px 0; transition: color .15s;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: "✻";
  position: absolute; left: 50%; bottom: -14px;
  transform: translateX(-50%);
  font-size: 8px; color: var(--gold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0.5px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none; user-select: none;
  position: relative;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn .arrow { transition: transform .2s; letter-spacing: 0; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-outline { background: transparent; border-color: var(--ink-3); color: var(--ink-2); }
.btn-outline:hover { background: transparent; border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: var(--gold); color: var(--bg);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--bg); }

.btn-solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

.btn-ghost {
  background: transparent; border: 0;
  color: var(--ink-2); padding: 8px 0;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
}
.btn-ghost:hover { color: var(--gold); }

.btn-sm { padding: 10px 18px; font-size: 10px; }
.btn-lg { padding: 17px 30px; font-size: 11.5px; }

/* ── Link ── */
.link-underline {
  color: var(--gold); text-decoration: none;
  border-bottom: 0.5px solid var(--gold-line);
  padding-bottom: 1px; cursor: pointer;
  transition: border-color .15s;
}
.link-underline:hover { border-bottom-color: var(--gold); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 0.5px;
  background: var(--gold);
}

/* ── Ceremonial divider with glyph ── */
.ceremonial-rule {
  display: flex; align-items: center; gap: 20px;
  color: var(--gold);
  margin: 24px 0;
}
.ceremonial-rule::before,
.ceremonial-rule::after {
  content: ""; flex: 1; height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 50%, transparent);
}
.ceremonial-rule-glyph {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--gold);
}

/* ── Placeholder image (dark ceremonial) ── */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(198,163,90,0.04) 0 1px,
      transparent 1px 14px),
    var(--bg-warm);
  border: 0.5px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--ink-3);
}
.placeholder::before {
  content: "";
  position: absolute; inset: 12px;
  border: 0.5px solid var(--gold-line);
  pointer-events: none;
}
.placeholder-label {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-deep);
  padding: 6px 12px;
  border: 0.5px solid var(--gold-line);
  position: relative; z-index: 2;
}
.placeholder.dark {
  background:
    repeating-linear-gradient(135deg, rgba(198,163,90,0.04) 0 1px, transparent 1px 14px),
    var(--bg-deep);
}

/* ── Cards ── */
.card {
  background: var(--bg-raised);
  border: 0.5px solid var(--gold-line);
  padding: 32px;
  transition: all .25s;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 0.5px solid var(--gold-line);
  opacity: 0.4;
  pointer-events: none;
}
.card-hover:hover {
  border-color: var(--gold);
  background: var(--bg-warm);
}

/* Ornate corners on select cards */
.corner-ornament {
  position: relative;
}
.corner-ornament::before,
.corner-ornament::after {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  opacity: 0.8;
}
.corner-ornament::before { content: "✻"; top: 10px; left: 10px; }
.corner-ornament::after  { content: "✻"; bottom: 10px; right: 10px; }

/* ── Inputs ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
}
.input, .textarea, .select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-deep);
  border: 0.5px solid var(--gold-line);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--gold); }
.textarea { min-height: 120px; resize: vertical; font-family: var(--sans); }

/* ── Numbering ── */
.numeral {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  margin-right: 10px;
}

/* ── Service card ── */
.service-card {
  background: var(--bg-raised);
  border: 0.5px solid var(--gold-line);
  padding: 0;
  cursor: pointer;
  transition: all .25s;
  display: flex; flex-direction: column;
  position: relative;
}
.service-card:hover { border-color: var(--gold); background: var(--bg-warm); }
.service-card:hover .service-card-arrow { transform: translateX(4px); opacity: 1; color: var(--gold); }

/* ── Chip / tag ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  border: 0.5px solid var(--gold-line);
  color: var(--ink-3);
}
.chip.gold { border-color: var(--gold); color: var(--gold); }
.chip.filled { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── Divider glyph ── */
.divider-glyph {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold);
}
.divider-glyph::before,
.divider-glyph::after {
  content: ""; flex: 1; height: 0.5px;
  background: var(--gold-line);
}

/* ── Step indicator ── */
.step-dot { display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0.5px solid var(--gold-line);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--ink-3);
  background: var(--bg-raised);
}
.step-dot.active .step-num {
  background: transparent; color: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,163,90,0.12);
}
.step-dot.done .step-num {
  background: var(--gold); color: var(--bg); border-color: var(--gold);
}

/* ── Time slot ── */
.slot {
  padding: 14px 12px;
  border: 0.5px solid var(--gold-line);
  background: var(--bg-raised);
  color: var(--ink-2);
  cursor: pointer; text-align: center;
  font-size: 13px; transition: all .15s;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono); letter-spacing: 0.1em;
}
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.selected { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.slot.disabled { color: var(--ink-4); background: transparent; cursor: not-allowed; text-decoration: line-through; }
.slot.disabled:hover { border-color: var(--gold-line); color: var(--ink-4); }

/* ── Date picker ── */
.date-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  border: 0.5px solid transparent;
  font-variant-numeric: tabular-nums;
  position: relative;
  color: var(--ink-2);
  font-family: var(--serif);
}
.date-cell:hover:not(.disabled) { border-color: var(--gold); color: var(--gold); }
.date-cell.selected { background: var(--gold); color: var(--bg); }
.date-cell.today::after {
  content: "";
  position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--gold); border-radius: 50%;
}
.date-cell.disabled { color: var(--ink-4); cursor: not-allowed; }

/* ── Odù figure (dark, luminous) ── */
.odu-figure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.odu-mark { display: flex; flex-direction: column; gap: 4px; }
.odu-mark-line {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(198,163,90,0.4);
}
.odu-mark.open .odu-mark-line {
  background: transparent;
  border: 0.5px solid var(--gold);
  box-shadow: none;
}

/* ── Testimonial quote ── */
.quote {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
}

/* ── Accordion FAQ ── */
.acc-row {
  border-bottom: 0.5px solid var(--gold-line);
  cursor: pointer;
}
.acc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; gap: 24px;
}
.acc-q {
  font-family: var(--serif);
  font-size: 23px; line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
}
.acc-toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0.5px solid var(--gold-line);
  display: grid; place-items: center;
  transition: all .25s;
  flex-shrink: 0;
  font-family: var(--serif);
  color: var(--gold);
}
.acc-row.open .acc-toggle {
  background: var(--gold); color: var(--bg);
  border-color: var(--gold);
  transform: rotate(45deg);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--ink-2);
  font-size: 15px; line-height: 1.7;
  max-width: 660px;
}
.acc-row.open .acc-body { max-height: 400px; padding-bottom: 26px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease forwards; }

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.shimmer { animation: shimmer 4s ease-in-out infinite; }

/* ── Utility ── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-10 { gap: 40px; } .gap-12 { gap: 48px; }
.grid { display: grid; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ── Sacred seal (for hero) ── */
.sacred-seal {
  position: relative;
  width: 260px; height: 260px;
  display: grid; place-items: center;
}
.sacred-seal svg { width: 100%; height: 100%; }

/* ── Gilded panel (for stats, quotes) ── */
.gilded-panel {
  position: relative;
  border: 0.5px solid var(--gold-line);
  padding: 40px;
  background:
    linear-gradient(180deg, rgba(198,163,90,0.04) 0%, transparent 50%),
    var(--bg-raised);
}
.gilded-panel::before,
.gilded-panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0.5px solid var(--gold);
}
.gilded-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.gilded-panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS - added 2026-04-28
   The original demo was desktop-only. This block adds breakpoints so
   the page reads on phones/tablets without horizontal scroll.
   ════════════════════════════════════════════════════════════════════════ */

/* Tablet (≤ 1024px): tighter container padding */
@media (max-width: 1024px) {
  .container,
  .container-narrow { padding: 0 24px; }
  .nav-inner        { padding: 0 24px; height: 64px; }
  .nav-links        { gap: 22px; }
  .nav-link         { font-size: 14px; }
  .display          { font-size: clamp(28px, 4vw, 48px) !important; line-height: 1.15; }
}

/* Mobile (≤ 768px): collapse multi-column layouts, simpler nav */
@media (max-width: 768px) {
  body              { font-size: 14px; }
  .container,
  .container-narrow { padding: 0 16px; }
  .nav-inner        { padding: 0 16px; height: 56px; }

  /* Nav: hide secondary links on small screens, keep brand + 1 CTA */
  .nav-links        { display: none; }

  /* Buttons: full width and bigger tap target on phones */
  .btn,
  .btn-sm,
  .btn-lg           { padding: 14px 20px; font-size: 11px; }

  /* Force any flex row that holds 2+ buttons to stack */
  .nav-cta-stack > * { width: 100%; }

  /* Display headlines */
  .display          { font-size: clamp(26px, 7vw, 40px) !important; line-height: 1.15; }
  .eyebrow          { font-size: 9px; letter-spacing: 0.2em; }

  /* Cards / placeholders: reduce internal padding */
  .card,
  .gilded-panel,
  .placeholder     { padding: 20px; }
  .service-card    { padding: 18px; }

  /* Anything that tries to be a horizontal flex row of items: stack vertically by default */
  /* Apps using grid or inline-grid still flow naturally; this targets common flex rows */
  .nav-brand .brand-sub { display: none; }

  /* Sections that the demo lays out as columns: stack them */
  .step-dot         { flex-wrap: wrap; }

  /* Padding-top compensation for fixed showcase-banner */
  body              { padding-top: 56px; }
  .nav              { top: 56px !important; }

  /* Booking / form fields */
  .field input,
  .field textarea  { font-size: 16px; /* prevents iOS zoom on focus */ }
}

/* Small phones (≤ 480px): tightest pass */
@media (max-width: 480px) {
  .container,
  .container-narrow { padding: 0 12px; }
  .nav-inner        { padding: 0 12px; }
  .nav-brand        { gap: 8px; }
  .brand-word       { font-size: 17px; }
  .brand-mark       { width: 28px; height: 28px; font-size: 14px; }
  .display          { font-size: clamp(22px, 8vw, 32px) !important; line-height: 1.2; letter-spacing: -0.01em; }
  .card,
  .gilded-panel    { padding: 16px; }
  .placeholder     { padding: 14px; }
  .service-card    { padding: 14px; }
  .btn-lg          { padding: 13px 18px; font-size: 10.5px; }
  .quote           { font-size: 16px; line-height: 1.5; }

  /* Showcase banner more compact */
  .showcase-banner { padding: 8px 12px; font-size: 9px; letter-spacing: 0.15em; gap: 8px; }
  body             { padding-top: 50px; }
  .nav             { top: 50px !important; }
}

/* Tap target accessibility - every clickable should be ≥ 44px hit area on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-link, a.link-underline, .service-card { min-height: 44px; }
}

/* Prevent any element that wasn't meant to overflow horizontally from breaking the layout */
@media (max-width: 768px) {
  body, .page, .container, .container-narrow,
  section, header, footer, main, article {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* Tables (booking calendar etc.) need horizontal scroll containers, not the page */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ════════════════════════════════════════════════════════════════════════
   INLINE-STYLE OVERRIDES (CRITICAL)
   The React components use inline style={{}} for grid layouts that CSS
   media queries cannot override without !important. These rules force
   sane mobile layout regardless of JSX inline values.
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Force every inline-styled grid to single column */
  .grid[style*="gridTemplateColumns"],
  div.grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Cap any inline maxWidth that exceeds viewport */
  [style*="maxWidth"] { max-width: 100% !important; }

  /* Inline font-size overrides - clamp giant headlines */
  [style*="fontSize: 6"],
  [style*="fontSize: 5"],
  [style*="fontSize: 4"],
  .display {
    font-size: clamp(24px, 7vw, 38px) !important;
    line-height: 1.2 !important;
  }
  [style*="fontSize: 3"][style*="px"] {
    font-size: clamp(20px, 5vw, 28px) !important;
    line-height: 1.25 !important;
  }
  [style*="fontSize: 2"][style*="px"] {
    font-size: clamp(15px, 4vw, 18px) !important;
  }

  /* Reduce inline gap when components asked for 60+ px */
  [style*="gap: 80"],
  [style*="gap: 60"],
  [style*="gap: 40"] { gap: 20px !important; }

  /* Inline padding reduction */
  [style*="padding: 60"],
  [style*="padding: 80"],
  [style*="padding: 100"] { padding: 24px !important; }

  /* Width 44px buttons / circle elements stay; but width: 700+ → cap */
  [style*="width: 70"],
  [style*="width: 80"],
  [style*="width: 90"],
  [style*="width: 100"] { max-width: 100% !important; }

  /* Strip giant min-heights on hero sections that hurt mobile */
  [style*="minHeight: 7"],
  [style*="minHeight: 8"],
  [style*="minHeight: 9"],
  [style*="minHeight: 10"] { min-height: auto !important; }
}

@media (max-width: 480px) {
  /* Even tighter on small phones */
  .grid[style*="gridTemplateColumns"],
  div.grid { gap: 16px !important; }
  [style*="paddingTop: 36"],
  [style*="paddingBottom: 28"] { padding-top: 20px !important; padding-bottom: 20px !important; }
}
