/*
Theme Name: Fikra MRE
Theme URI: https://fikramre.com
Author: Fikra MRE
Description: Campaign theme for the #FikraMRE citizen consultation — one-page landing site in English, Arabic, French and Spanish, with a built-in idea submission form that emails the team and stores every contribution in WordPress.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fikramre
Tags: one-column, custom-colors, custom-menu, editor-style, translation-ready
*/

:root {
  --ink: #12302B;
  --ink-deep: #0D2520;
  --paper: #F8FBFA;
  --white: #FFFFFF;
  --line: #E2EAE7;
  --field-line: #D9E4E0;
  --body: #41544E;
  --muted: #5A6B66;
  --purple: #7B2F8E;
  --violet: #6D6B98;
  --teal: #4C9A8C;
  --green: #3FA652;
  --green-bright: #4CC060;
  --mint: #7ED694;
  --lilac: #B96BCB;
  --periwinkle: #8E8CC9;
  --seafoam: #5FBFA6;
  --leaf: #65D77E;
  --display: 'Outfit', system-ui, sans-serif;
  --text: 'IBM Plex Sans', system-ui, sans-serif;
  --arabic: 'Cairo', 'IBM Plex Sans', system-ui, sans-serif;
  --arabic-display: 'Tajawal', 'Cairo', sans-serif;
  --shell: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --band: clamp(44px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover, a:focus { color: #46B45F; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

::placeholder { color: #6F7F7A; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
}

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 251, 250, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__logo img { width: 86px; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.nav__links a { font-weight: 500; font-size: 15px; color: var(--body); }
.nav__links a:hover { color: var(--purple); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--text); font-weight: 500; font-size: 17px; line-height: 1;
  border-radius: 999px; padding: 19px 30px; border: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #1C463E; color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #FFFFFF; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border: 1px solid rgba(248, 251, 250, .35); padding: 18px 29px; }
.btn--ghost:hover { color: var(--paper); border-color: rgba(248, 251, 250, .7); }
.btn--sm { font-size: 16px; padding: 17px 26px; }
.btn--nav { font-size: 15px; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: 999px; }
.btn--nav:hover { background: #1C463E; color: var(--paper); }
.btn--block { width: 100%; text-align: center; }

/* ---------- bands ---------- */
.band { padding-top: var(--band); padding-bottom: var(--band); }
.band--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--ink { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.band--ink h2, .band--ink h3 { color: var(--paper); }
.band__stack { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 38px); position: relative; }

.watermark {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .15;
  pointer-events: none;
}
.watermark--right { right: -100px; top: -120px; width: min(620px, 72vw); height: min(720px, 84vw); }
.watermark--left { left: -120px; bottom: -200px; width: min(560px, 70vw); height: min(640px, 80vw); opacity: .13; }

.eyebrow {
  font-weight: 600; font-size: 12px; line-height: 1;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mint);
}
.eyebrow--purple { color: var(--purple); letter-spacing: .18em; }
.eyebrow--teal { color: var(--teal); letter-spacing: .14em; font-size: 12px; }

.section-head { display: flex; align-items: baseline; gap: 16px; }
.section-head__num { font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .18em; color: var(--purple); }
.band--ink .section-head__num { color: var(--mint); }
.section-head h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1.03; font-weight: 400; }

.lede { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.6; color: var(--body); max-width: 70ch; }
.band--ink .lede { color: rgba(248, 251, 250, .78); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--pad) clamp(40px, 6vw, 88px);
  display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px);
  position: relative;
}
.hero__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pill {
  font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mint); border: 1px solid rgba(126, 214, 148, .45); border-radius: 999px; padding: 10px 16px;
}
.hero__sub { font-weight: 500; font-size: 14px; color: rgba(248, 251, 250, .6); }
.hero h1 { font-size: clamp(40px, 7.5vw, 96px); line-height: .97; letter-spacing: -.04em; max-width: 20ch; }
.hero__body { font-size: clamp(17px, 2vw, 23px); line-height: 1.55; color: rgba(248, 251, 250, .8); max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px);
  padding-top: clamp(10px, 2vw, 20px); margin-top: clamp(8px, 2vw, 16px);
  border-top: 1px solid rgba(248, 251, 250, .16);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__n { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.03em; }
.stat__l { font-size: 14px; line-height: 1.4; color: rgba(248, 251, 250, .62); }

.grad {
  background: linear-gradient(100deg, var(--lilac), var(--periwinkle) 38%, var(--seafoam) 68%, var(--leaf));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad--light {
  background: linear-gradient(100deg, var(--purple), var(--teal) 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  border-radius: 20px; background: var(--white); border: 1px solid var(--line);
  padding: clamp(20px, 2.8vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
}
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card--paper { background: var(--paper); }
.card__n { font-family: var(--display); font-weight: 300; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.04em; }
.card__t { font-weight: 500; font-size: 18px; line-height: 1.35; }
.card__q { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.45; letter-spacing: -.01em; }
.card p, .card__body { font-size: 16px; line-height: 1.55; color: var(--body); }
.card--ink p, .card--ink .card__body { color: var(--paper); }
.card__label { font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.card--ink .card__label { color: var(--mint); }

/* ---------- steps ---------- */
.steps { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 2px solid var(--line); }
.step:nth-child(1) { border-top-color: var(--lilac); }
.step:nth-child(2) { border-top-color: var(--periwinkle); }
.step:nth-child(3) { border-top-color: var(--seafoam); }
.step:nth-child(4) { border-top-color: var(--green-bright); }
.step__n { font-family: var(--display); font-weight: 300; font-size: 42px; line-height: 1; }
.step:nth-child(1) .step__n { color: var(--lilac); }
.step:nth-child(2) .step__n { color: var(--periwinkle); }
.step:nth-child(3) .step__n { color: var(--teal); }
.step:nth-child(4) .step__n { color: var(--green); }
.step__t { font-weight: 500; font-size: 20px; line-height: 1.3; }
.step__b { font-size: 16px; line-height: 1.55; color: var(--body); }

.note {
  border-radius: 20px; background: var(--paper); border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px);
  align-items: center; justify-content: space-between;
}
.note__text { display: flex; flex-direction: column; gap: 8px; max-width: 52ch; }
.note__text span:last-child { font-size: 17px; line-height: 1.55; color: var(--body); }

/* ---------- insights ---------- */
.insight { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(248, 251, 250, .2); }
.insight__label { font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.insight:nth-child(1) .insight__label { color: var(--lilac); }
.insight:nth-child(2) .insight__label { color: var(--periwinkle); }
.insight:nth-child(3) .insight__label { color: var(--seafoam); }
.insight:nth-child(4) .insight__label { color: var(--leaf); }
.insight__t { font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1.25; letter-spacing: -.015em; }
.insight__b { font-size: 15px; line-height: 1.55; color: rgba(248, 251, 250, .7); }

/* ---------- submit / form ---------- */
.submit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(26px, 4vw, 56px); align-items: start; }
.submit__intro { display: flex; flex-direction: column; gap: clamp(18px, 2.5vw, 28px); }
.submit__intro .lede { max-width: 52ch; }
.hashtag { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; letter-spacing: -.025em; color: var(--ink); }
.contact-block { display: flex; flex-direction: column; gap: 8px; }
.contact-block a { font-size: clamp(17px, 2vw, 21px); line-height: 1.4; }
.fine { font-size: 14px; line-height: 1.5; color: var(--muted); }

.form {
  border-radius: 24px; background: var(--paper); border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
}
.form__head { display: flex; flex-direction: column; gap: 8px; }
.form__head strong { font-weight: 500; font-size: 20px; line-height: 1.3; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-weight: 500; font-size: 13px; line-height: 1; color: var(--body); }
.field input, .field select, .field textarea {
  font-family: var(--text); font-size: 16px; line-height: 1.4; color: var(--ink);
  background: var(--white); border: 1px solid var(--field-line); border-radius: 12px;
  padding: 14px 16px; outline: none; min-width: 0; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--purple); flex: none; }
.check span { font-size: 14px; line-height: 1.5; color: var(--body); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.5; border: 1px solid var(--field-line); background: var(--white); color: var(--ink); }
.notice--ok { border-color: rgba(63, 166, 82, .45); background: #F1FAF2; }
.notice--err { border-color: rgba(123, 47, 142, .35); background: #FBF4FC; }

/* ---------- faq ---------- */
.faq__q { font-weight: 500; font-size: 18px; line-height: 1.35; }

/* ---------- footer ---------- */
.footer { background: var(--ink-deep); color: rgba(248, 251, 250, .66); }
.footer__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) var(--pad);
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
  justify-content: space-between; align-items: center;
}
.footer__logo { background: var(--paper); border-radius: 14px; padding: 14px 18px; display: inline-flex; }
.footer__logo img { width: 104px; }
.footer p, .footer span { font-size: 14px; line-height: 1.6; }
.footer a { color: var(--mint); }
.footer a:hover { color: var(--white); }
.footer__credit { max-width: 46ch; }
.footer__meta { text-align: right; }

.logo-panel { background: var(--paper); border-radius: 22px; padding: 22px 28px; display: inline-flex; }
.logo-panel img { width: 168px; }

/* ---------- interior pages & editor content ---------- */
.page-body { max-width: 74ch; display: flex; flex-direction: column; gap: 20px; }
.page-body h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.02; }
.page-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.page-body h3 { font-family: var(--text); font-weight: 600; font-size: 20px; line-height: 1.3; }
.page-body p, .page-body li { font-size: 17px; line-height: 1.65; color: var(--body); }
.page-body ul, .page-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.page-body blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--purple); font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1.3; color: var(--ink); }
.page-body img { border-radius: 16px; }
.page-nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- language switcher ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--white); }
.lang-switch__item {
  font-family: var(--text); font-weight: 500; font-size: 13px; line-height: 1;
  color: var(--body); border-radius: 999px; padding: 9px 13px; white-space: nowrap;
}
.lang-switch__item:hover { background: var(--paper); color: var(--purple); }
.lang-switch__item.is-current { background: var(--ink); color: var(--paper); }
.lang-switch__item[lang="ar"] { font-family: 'Cairo', var(--text); font-size: 14px; }
.lang-switch__setup {
  font-family: var(--text); font-weight: 500; font-size: 13px; line-height: 1.3;
  color: var(--purple); border: 1px dashed rgba(123, 47, 142, .5);
  border-radius: 999px; padding: 9px 14px;
}
.lang-switch__setup:hover { background: #FBF4FC; }

.final-h2 { font-size: clamp(38px, 6.5vw, 84px); line-height: .97; max-width: 22ch; }

/* ---------- Arabic + RTL ---------- */
.lang-ar, .is-rtl { direction: rtl; }
.lang-ar, body.is-rtl { font-family: 'Cairo', 'IBM Plex Sans', system-ui, sans-serif; }
.lang-ar h1, .lang-ar h2, .lang-ar h3,
.lang-ar .stat__n, .lang-ar .card__n, .lang-ar .card__q,
.lang-ar .insight__t, .lang-ar .hashtag, .lang-ar .step__n {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  letter-spacing: 0;
}
.lang-ar h1 { line-height: 1.12; }
.lang-ar h2, .lang-ar .final-h2 { line-height: 1.15; }
.lang-ar .card__q, .lang-ar .insight__t { line-height: 1.5; }
.lang-ar p, .lang-ar .lede, .lang-ar .step__b, .lang-ar .card p,
.lang-ar .insight__b, .lang-ar .hero__body, .lang-ar .field > span,
.lang-ar .check span, .lang-ar .fine { line-height: 1.85; }
.lang-ar .lede, .lang-ar .hero__body { font-size: clamp(17px, 1.9vw, 21px); }
.lang-ar .step__b, .lang-ar .card p, .lang-ar .insight__b { font-size: 17px; }
.lang-ar .eyebrow, .lang-ar .card__label, .lang-ar .insight__label, .lang-ar .pill { letter-spacing: 0; }
.lang-ar .section-head__num, .lang-ar .step__n { direction: ltr; }
.lang-ar .watermark--right { right: auto; left: -100px; }
.lang-ar .watermark--left { left: auto; right: -120px; }
.lang-ar .field input, .lang-ar .field select, .lang-ar .field textarea { font-family: 'Cairo', var(--text); }
.lang-ar .check input { margin: 4px 0 0; }
.is-rtl .footer__meta { text-align: left; }
.is-rtl .page-body blockquote { padding-left: 0; padding-right: 20px; border-left: none; border-right: 3px solid var(--purple); }
.is-rtl .page-body ul, .is-rtl .page-body ol { padding-left: 0; padding-right: 22px; }

.ar { font-family: 'Cairo', sans-serif; }

@media (max-width: 640px) {
  .nav__links a:not(.btn--nav) { font-size: 14px; }
  .footer__meta { text-align: left; }
  .note { flex-direction: column; align-items: flex-start; }
}

@media print {
  .nav, .hero__cta, .btn { display: none; }
  body { background: #fff; }
}
