/* ============================================================================
 * MAXIRISE Brand Site (maxirisepro.com) — brand.css
 * Lean, static, trust-focused. Navy / red / white — calmer than the funnel
 * (more white, less urgency). No frameworks.
 * ========================================================================== */
:root {
  --mx-navy:   #0A1024;
  --mx-navy-2: #0E1733;
  --mx-red:    #C8102E;
  --mx-red-2:  #E11D38;
  --mx-white:  #FFFFFF;
  --mx-ink:    #11182B;
  --mx-muted:  #51607A;
  --mx-line:   #E4E8F1;
  --mx-bg:     #F7F9FC;
  --mx-shell:  960px;
  /* Premium gold — accent only (~5%): brand wordmark + key highlights. Matches MENA. */
  --mx-gold:      #C8A84B;
  --mx-gold-soft: #F3D984;
  --mx-gold-grad: linear-gradient(90deg, #FFF2B5, var(--mx-gold), #FFF6CF);
  --mx-font:   "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--mx-font); color: var(--mx-ink);
  background: var(--mx-bg); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mx-red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-weight: 800; color: var(--mx-ink); }
p { margin: 0 0 1em; }
.mx-shell { width: 100%; max-width: var(--mx-shell); margin: 0 auto; padding: 0 18px; }

/* Header */
.mx-site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(10,16,36,.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08);
}
.mx-site-header .mx-shell { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mx-logo { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.mx-logo b { font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.mx-logo b span { color: var(--mx-gold-soft); }
.mx-logo b em { color: #fff; font-style: normal; }
.mx-site-header .mx-nav-cta {
  background: linear-gradient(180deg, var(--mx-red-2), var(--mx-red)); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 800;
}
.mx-site-header .mx-nav-cta:hover { filter: brightness(1.05); }
.mx-logo small { font-size: 8.5px; letter-spacing: .32em; color: #9AA8C7; margin-top: 3px; }
.mx-site-header nav a { color: #C7D0E2; font-size: 14px; font-weight: 700; margin-inline-start: 18px; }
.mx-site-header nav a:hover { color: #fff; text-decoration: none; }

/* Hero */
.mx-hero {
  background: linear-gradient(180deg, var(--mx-navy) 0%, var(--mx-navy-2) 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.mx-hero h1 { color: #fff; font-size: clamp(28px, 6vw, 44px); }
.mx-hero h1 em { color: #fff; font-style: normal; }
.mx-hero p { color: #C7D0E2; max-width: 620px; margin: 0 auto 1.4em; font-size: 17px; }
.mx-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.mx-badges span {
  font-size: 12.5px; font-weight: 700; color: #C7D0E2;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 13px;
}
.mx-badges span::before { content: "✓ "; color: var(--mx-red-2); }

/* Sections */
.mx-section { padding: 46px 0; }
.mx-section h2 { font-size: clamp(22px, 4.6vw, 30px); text-align: center; margin-bottom: .8em; }
.mx-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .mx-grid { grid-template-columns: repeat(3, 1fr); } }
.mx-card { background: #fff; border: 1px solid var(--mx-line); border-radius: 14px; padding: 20px; box-shadow: 0 6px 18px rgba(17,24,43,.05); }
.mx-card .mx-ic { font-size: 26px; }
.mx-card h3 { font-size: 17px; margin-top: 8px; }
.mx-card p { color: var(--mx-muted); font-size: 14.5px; margin: 0; }

/* Contact block */
.mx-contact { background: #fff; border: 1px solid var(--mx-line); border-radius: 14px; padding: 22px; text-align: center; }
.mx-contact a { font-weight: 800; }

/* Legal / policy pages */
.mx-legal { background: #fff; }
.mx-legal .mx-shell { max-width: 760px; padding-top: 36px; padding-bottom: 56px; }
.mx-legal h1 { font-size: clamp(24px, 5vw, 34px); margin-bottom: .2em; }
.mx-legal .mx-updated { color: var(--mx-muted); font-size: 13px; margin-bottom: 1.6em; }
.mx-legal h2 { text-align: right; font-size: 19px; margin-top: 1.6em; }
.mx-legal p, .mx-legal li { color: #2A3550; font-size: 15px; }
.mx-legal ul { padding-inline-start: 20px; }
.mx-legal .mx-note { background: #FFF4F5; border: 1px solid #F3C9CF; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #8E0A20; }

/* Footer */
.mx-site-footer { background: var(--mx-navy); color: #C7D0E2; padding: 36px 0; }
.mx-site-footer .mx-logo { margin-bottom: 14px; }
.mx-footer-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mx-footer-nav a { color: #C7D0E2; font-size: 13.5px; }
.mx-footer-nav a:hover { color: #fff; }
.mx-site-footer small { color: #7F8DAA; font-size: 12.5px; }

/* Buttons */
.mx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--mx-red-2), var(--mx-red)); color: #fff;
  font-weight: 800; padding: 13px 26px; border-radius: 12px; font-size: 16px;
  box-shadow: 0 10px 22px rgba(200,16,46,.28);
}
.mx-btn:hover { filter: brightness(1.05); text-decoration: none; }
.mx-btn-lg { padding: 16px 34px; font-size: 17px; }

/* ============================================================================
 * Conversion brand-funnel layer (hero · why · compare · benefits · guarantee)
 * ========================================================================== */

/* Brand wordmark — MAXI white · RISE gold (matches MENA premium treatment). */
.mx-wordmark { display: inline-flex; direction: ltr; font-weight: 900; letter-spacing: .01em; }
.mx-wordmark span { color: var(--mx-gold-soft); }
.mx-wordmark em { color: #fff; font-style: normal; }

.mx-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mx-gold-soft); margin-bottom: 10px;
}
.mx-lead { text-align: center; max-width: 680px; margin: 0 auto 1.8em; color: var(--mx-muted); font-size: 16px; }

/* Hero — premium navy, two-column on desktop */
.mx-hero { padding: 60px 0; }
.mx-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .mx-hero-grid { grid-template-columns: 1.15fr .85fr; text-align: right; } }
.mx-hero-copy { text-align: center; }
@media (min-width: 820px) { .mx-hero-copy { text-align: right; } }
.mx-hero h1 .mx-wordmark { font-size: 1.15em; }
.mx-hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 18px; }
@media (min-width: 820px) { .mx-hero-actions { align-items: flex-start; } }
.mx-hero-note { font-size: 12.5px; color: #9AA8C7; }
.mx-hero .mx-badges { justify-content: center; }
@media (min-width: 820px) { .mx-hero .mx-badges { justify-content: flex-start; } }
.mx-hero-figure { position: relative; display: grid; place-items: center; min-height: 220px; }
.mx-hero-figure img { max-height: 420px; width: auto; position: relative; z-index: 1; filter: drop-shadow(0 26px 50px rgba(0,0,0,.5)); }
.mx-hero-figure.is-empty img { display: none; }
.mx-hero-figure.is-empty { min-height: 0; }
.mx-hero-glow {
  position: absolute; inset: 18% 12%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(200,168,75,.28), transparent 68%);
  filter: blur(8px);
}
.mx-hero-figure.is-empty .mx-hero-glow { display: none; }

/* Alternating section background */
.mx-section-alt { background: #fff; border-top: 1px solid var(--mx-line); border-bottom: 1px solid var(--mx-line); }

/* Pain → Solution */
.mx-painsol { display: grid; gap: 16px; }
@media (min-width: 720px) { .mx-painsol { grid-template-columns: 1fr 1fr; } }
.mx-painsol-col { border-radius: 16px; padding: 22px; border: 1px solid var(--mx-line); }
.mx-painsol-col h3 { font-size: 18px; margin-bottom: .6em; }
.mx-painsol-col ul { margin: 0; padding-inline-start: 20px; }
.mx-painsol-col li { color: var(--mx-muted); font-size: 15px; margin-bottom: .5em; }
.mx-pain { background: #FFF6F6; border-color: #F3D3D3; }
.mx-pain h3 { color: #B42318; }
.mx-pain li::marker { content: "✕  "; color: #B42318; }
.mx-sol { background: #F4FBF7; border-color: #CDE9DA; box-shadow: 0 8px 24px rgba(22,131,95,.08); }
.mx-sol h3 { color: #16835F; }
.mx-sol li::marker { content: "✓  "; color: #16835F; }

/* Comparison table */
.mx-compare { max-width: 760px; margin: 0 auto; border: 1px solid var(--mx-line); border-radius: 16px; overflow: hidden; background: #fff; }
.mx-compare > div { display: grid; grid-template-columns: 1.1fr 1fr 1fr; }
.mx-compare span { padding: 13px 12px; font-size: 14px; border-bottom: 1px solid var(--mx-line); text-align: center; }
.mx-compare span:first-child { text-align: right; font-weight: 700; color: var(--mx-ink); background: #FAFBFE; }
.mx-compare-head span { font-weight: 800; background: var(--mx-navy); color: #fff; }
.mx-compare-head span:first-child { background: var(--mx-navy); color: #fff; }
.mx-compare-good { color: #0E5F45; font-weight: 800; background: #F4FBF7; }
.mx-compare-head .mx-compare-good { background: #103a2c; color: var(--mx-gold-soft); }
.mx-compare > div:last-child span { border-bottom: 0; }
.mx-compare-row span:last-child { color: var(--mx-muted); }

/* Guarantee block */
.mx-guarantee { display: flex; gap: 18px; align-items: center; max-width: 760px; margin: 0 auto; background: var(--mx-navy); color: #fff; border-radius: 18px; padding: 24px; border: 1px solid rgba(200,168,75,.4); }
.mx-guarantee h2 { color: #fff; text-align: right; margin-bottom: .3em; font-size: clamp(20px, 4vw, 26px); }
.mx-guarantee p { color: #C7D0E2; margin: 0; font-size: 14.5px; }
.mx-guarantee p strong { color: var(--mx-gold-soft); }
.mx-guarantee-badge { flex: 0 0 auto; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--mx-gold-grad); color: var(--mx-navy); font-weight: 900; font-size: 20px; line-height: 1; box-shadow: 0 10px 26px rgba(200,168,75,.35); }

/* Final CTA */
.mx-cta-final { background: linear-gradient(180deg, var(--mx-navy) 0%, var(--mx-navy-2) 100%); color: #fff; text-align: center; padding: 52px 0; }
.mx-cta-final h2 { color: #fff; }
.mx-cta-final p { color: #C7D0E2; max-width: 520px; margin: 0 auto 1.4em; }

/* ============================================================================
 * Policy modal — single popup with tabbed Privacy / Terms / Shipping / Returns
 * ========================================================================== */
.mx-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.mx-modal.is-open { display: block; }
.mx-modal-backdrop { position: absolute; inset: 0; background: rgba(7,11,26,.66); backdrop-filter: blur(3px); }
.mx-modal-dialog {
  position: relative; width: calc(100% - 24px); max-width: 720px; margin: 4vh auto; max-height: 92vh;
  display: flex; flex-direction: column; background: #fff; border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden;
}
.mx-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--mx-line); background: var(--mx-navy); color: #fff; }
.mx-modal-head .mx-wordmark { font-size: 18px; }
.mx-modal-close { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.mx-modal-close:hover { background: rgba(255,255,255,.22); }
.mx-modal-tabs { display: flex; gap: 4px; padding: 10px 12px 0; flex-wrap: wrap; border-bottom: 1px solid var(--mx-line); background: #FAFBFE; }
.mx-modal-tab { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 9px 12px; font-family: inherit; font-size: 13.5px; font-weight: 800; color: var(--mx-muted); cursor: pointer; }
.mx-modal-tab.is-active { color: var(--mx-ink); border-bottom-color: var(--mx-gold); }
.mx-modal-body { padding: 18px 20px 24px; overflow-y: auto; }
.mx-modal-body h3 { font-size: 16px; margin: 1.1em 0 .35em; }
.mx-modal-body h3:first-child { margin-top: 0; }
.mx-modal-body p, .mx-modal-body li { color: #2A3550; font-size: 14px; }
.mx-modal-body ul { padding-inline-start: 20px; margin: 0 0 .6em; }
.mx-modal-panel { display: none; }
.mx-modal-panel.is-active { display: block; }
.mx-modal-note { background: #FBF6E7; border: 1px solid #ECD79A; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #6b5310; margin-top: .4em; }
.mx-modal-updated { color: var(--mx-muted); font-size: 12.5px; margin-top: 1.4em; }
body.mx-modal-locked { overflow: hidden; }
