/* =============================================
   Ratibi Guide WordPress Theme – Main CSS
   Color palette: Navy · Gold · Warm White
   ============================================= */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --color-primary:        #1B3D7B;   /* Deep navy */
  --color-primary-dark:   #122B5C;
  --color-primary-light:  #2A5BA8;
  --color-gold:           #C9922A;   /* Rich gold */
  --color-gold-light:     #E8B84B;
  --color-gold-dark:      #A87520;

  /* Backgrounds */
  --color-bg:             #F7F5F0;   /* Warm off-white */
  --color-bg-card:        #FFFFFF;
  --color-bg-section:     #EEF2FB;   /* Light navy tint */
  --color-bg-dark:        #0F1F3E;   /* Very dark navy for footer */

  /* Text */
  --color-text:           #1A1A2E;
  --color-text-muted:     #5A6A85;
  --color-text-light:     #8A9BB5;
  --color-text-white:     #F0F4FF;

  /* UI */
  --color-border:         #D6DFEE;
  --color-border-gold:    #C9922A;
  --color-success:        #1A7A5E;
  --color-success-bg:     #E6F7F1;

  /* Typography */
  --font-sans:            'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic:          'Noto Sans Arabic', 'Inter', sans-serif;

  /* Spacing */
  --container:            1200px;
  --section-py:           4.5rem;

  /* Shadows */
  --shadow-sm:            0 1px 3px rgba(27,61,123,.08), 0 1px 2px rgba(27,61,123,.06);
  --shadow-md:            0 4px 12px rgba(27,61,123,.12), 0 2px 6px rgba(27,61,123,.08);
  --shadow-lg:            0 10px 30px rgba(27,61,123,.16), 0 4px 10px rgba(27,61,123,.10);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:9999px;

  /* Transitions */
  --transition: 0.22s ease;
}

/* ── Body ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Arabic (RTL) ── */
body.lang-ar,
body.lang-ar * {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

body.lang-ar .site-nav { flex-direction: row-reverse; }
body.lang-ar .nav-menu { flex-direction: row-reverse; }
body.lang-ar .nav-links { flex-direction: row-reverse; }
body.lang-ar .hero-cta { flex-direction: row-reverse; }
body.lang-ar .card-grid { direction: rtl; }
body.lang-ar .method-steps .step { flex-direction: row-reverse; }
body.lang-ar .step-number { margin-right: 0; margin-left: 1rem; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: var(--color-text); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .4rem; }

strong { font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: .02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(27,61,123,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(27,61,123,.45);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #fff;
  box-shadow: 0 4px 14px rgba(201,146,42,.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(201,146,42,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img { height: 42px; width: auto; }
.site-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: .25rem;
}

.nav-links li { margin: 0; }

.nav-links a {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  color: var(--color-text);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  background: var(--color-bg-section);
  color: var(--color-primary);
}

/* Language Toggle */
.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  letter-spacing: .04em;
}

.lang-toggle-btn:hover {
  background: var(--color-gold);
  color: #fff;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(201,146,42,.2);
  border: 1px solid rgba(201,146,42,.4);
  color: var(--color-gold-light);
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.hero p {
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Section Styles ── */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--color-bg-section); }
.section-dark {
  background: linear-gradient(145deg, var(--color-primary-dark), var(--color-bg-dark));
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--color-text-muted); max-width: 580px; margin: 0 auto; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card-icon.navy { background: var(--color-bg-section); color: var(--color-primary); }
.card-icon.gold { background: rgba(201,146,42,.12); color: var(--color-gold); }

.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }

/* ── Balance Tool ── */
.balance-tool {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 700px;
  margin: 3rem auto 0;
  border-top: 4px solid var(--color-gold);
  position: relative;
  z-index: 1;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.tool-header .tool-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tool-header h2 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--color-primary-dark);
}

.tool-header .tool-disclaimer {
  font-size: .78rem;
  color: var(--color-text-muted);
  margin: .2rem 0 0;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text);
  margin-bottom: .45rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,61,123,.12);
}

.form-control::placeholder { color: var(--color-text-light); }
.form-note { font-size: .78rem; color: var(--color-text-muted); margin-top: .35rem; }

.tool-steps {
  margin-top: 1.75rem;
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: none;
}

.tool-steps.visible { display: block; }

.tool-steps-header {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tool-steps-header span { color: var(--color-gold); }

.tool-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-step:last-child { margin-bottom: 0; }

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text { padding-top: .35rem; font-size: .93rem; }

/* ── FAQ Accordion ── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--color-primary-light); }
.faq-item.open { border-color: var(--color-primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  user-select: none;
  gap: 1rem;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-bg-section);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: .8rem;
}

.faq-item.open .faq-chevron {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: .95rem;
  color: var(--color-text-muted);
}

.faq-item.open .faq-answer {
  padding: .25rem 1.5rem 1.25rem;
  max-height: 500px;
}

/* ── Tips Grid ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  display: flex;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.tip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-gold);
}

.tip-number {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-content h3 { font-size: 1rem; margin-bottom: .35rem; }
.tip-content p { font-size: .88rem; color: var(--color-text-muted); margin: 0; }

/* ── Charges Table ── */
.charges-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.charges-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.charges-table thead tr {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
}

.charges-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .03em;
  white-space: nowrap;
}

.charges-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.charges-table tbody tr:last-child { border-bottom: none; }
.charges-table tbody tr:hover { background: var(--color-bg-section); }

.charges-table td {
  padding: 1rem 1.5rem;
  color: var(--color-text);
  vertical-align: middle;
}

.charges-table td:nth-child(2) { font-weight: 700; color: var(--color-success); }
.charges-table .fee-free { color: var(--color-success); }
.charges-table .fee-small { color: var(--color-gold-dark); }

/* ── Steps (How It Works) ── */
.method-block {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.method-block h3 {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-bg-section);
  color: var(--color-primary-dark);
}

.method-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.method-icon.atm  { background: var(--color-bg-section); color: var(--color-primary); }
.method-icon.sms  { background: rgba(201,146,42,.12); color: var(--color-gold-dark); }
.method-icon.web  { background: rgba(26,122,94,.1); color: var(--color-success); }

.step-list { list-style: none; padding: 0; }

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.step-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step-list .step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-sidebar {
  background: linear-gradient(145deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
}

.contact-sidebar h3 { color: #fff; margin-bottom: 1.5rem; }

.sidebar-info {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.sidebar-info:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-info-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.sidebar-info p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; }
.sidebar-info strong { color: #fff; display: block; margin-bottom: .2rem; }

.not-affiliated-note {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(201,146,42,.15);
  border: 1px solid rgba(201,146,42,.3);
  border-radius: var(--radius-md);
  font-size: .82rem;
  color: var(--color-gold-light);
}

/* Success / Error alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(26,122,94,.25);
}

.alert-error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid rgba(185,28,28,.2);
}

/* ── Arabic SEO Section ── */
.arabic-seo-section {
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--section-py) 0;
  direction: rtl;
  text-align: right;
}

.arabic-seo-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.arabic-seo-section h2 {
  color: var(--color-gold-light);
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.arabic-seo-section p {
  color: rgba(255,255,255,.85);
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  line-height: 2;
}

.arabic-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
  justify-content: flex-start;
}

.arabic-keyword {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(201,146,42,.4);
  color: var(--color-gold-light);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-arabic);
  font-size: .95rem;
  font-weight: 600;
}

/* ── Legal Pages ── */
.legal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal-content .last-updated {
  color: var(--color-text-muted);
  font-size: .88rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 .75rem;
  color: var(--color-primary-dark);
}

.legal-content p, .legal-content li { color: #444; line-height: 1.8; }

.legal-content .disclaimer-box {
  background: rgba(201,146,42,.08);
  border-left: 4px solid var(--color-gold);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-size: .93rem;
}

/* ── What is Ratibi ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1rem; }
.about-bullets { list-style: none; padding: 0; }
.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .95rem;
}
.about-bullets li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--color-success-bg);
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .15rem;
}

.about-graphic {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}

.about-graphic .big-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.about-graphic p { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.7; }

/* ── WP Entry Content ── */
.entry-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  max-width: 860px;
  margin: 3rem auto;
}

.entry-content h1 { margin-bottom: 1rem; }
.entry-content h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.entry-content h3 { margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.entry-content p  { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1rem; }
.entry-content li { margin-bottom: .4rem; }

/* ── Footer ── */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7; max-width: 300px; margin-top: .75rem; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.footer-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .82rem;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--color-gold-light); }

/* ── Language Switcher Content ── */
.lang-ar-content { display: none; }
.lang-en-content { display: block; }

body.lang-ar .lang-ar-content { display: block; }
body.lang-ar .lang-en-content { display: none; }

/* ── Page Hero (Inner Pages) ── */
.page-hero {
  background: linear-gradient(145deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto; }

/* ── Callout Box ── */
.callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .93rem;
}

.callout.info {
  background: var(--color-bg-section);
  border-left: 4px solid var(--color-primary);
  color: var(--color-text);
}

.callout.warning {
  background: rgba(201,146,42,.08);
  border-left: 4px solid var(--color-gold);
  color: var(--color-text);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 3rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
    gap: 0;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .75rem 1rem; border-radius: var(--radius-sm); }

  .nav-toggle { display: flex; }

  .site-nav { position: relative; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: span 1; }

  .contact-form .form-row { grid-template-columns: 1fr; }
  .charges-table th, .charges-table td { padding: .75rem 1rem; }

  .balance-tool { padding: 1.75rem 1.25rem; }
  .legal-content, .entry-content { padding: 2rem 1.25rem; }
  .method-block { padding: 1.75rem 1.25rem; }
  .contact-form-wrap { padding: 2rem 1.25rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .charges-table { font-size: .82rem; }
}

/* ── WordPress native blocks ── */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

/* ═══════════════════════════════════════════════
   FRONT PAGE — Hero Section
   ═══════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  position: relative;
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  position: relative;
}

/* ═══════════════════════════════════════════════
   FRONT PAGE — Two-col layout (What is Ratibi)
   ═══════════════════════════════════════════════ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col-grid h2 { margin-bottom: 1rem; }
.two-col-grid p  { color: var(--color-text-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: .95rem; margin-bottom: .35rem; color: var(--color-primary-dark); }
.feature-card p  { font-size: .78rem; color: var(--color-text-muted); margin: 0; }

/* ═══════════════════════════════════════════════
   FRONT PAGE — Three-col methods grid
   ═══════════════════════════════════════════════ */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.method-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.method-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}
.method-card .method-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  width: auto; height: auto;
  background: none;
  color: inherit;
}
.method-card h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--color-primary-dark); }
.method-card p  { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1rem; }

.card-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--transition);
}
.card-link:hover { color: var(--color-gold); }

/* ═══════════════════════════════════════════════
   HOW IT WORKS — Method rows
   ═══════════════════════════════════════════════ */
.method-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.method-row__icon-col {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}
.method-row__icon-col h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.method-row__icon-col p  { font-size: .85rem; color: var(--color-text-muted); margin: 0; }
.method-row__icon-wrap {
  background: #fff;
  border-radius: 50%;
  width: 70px; height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-sm);
}
.method-row__steps-col { min-width: 0; }

.steps-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.steps-card__header {
  padding: 1rem 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-primary-dark);
}
.steps-card__body {
  padding: 1.75rem 1.5rem;
}
.steps-card__body .step-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-bg);
}
.steps-card__body .step-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.steps-card__body .step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .15rem;
}
.steps-card__body strong { display: block; font-size: .95rem; margin-bottom: .25rem; color: var(--color-text); }
.steps-card__body p { font-size: .88rem; color: var(--color-text-muted); margin: 0; }
.steps-card__body code {
  background: var(--color-bg);
  padding: .1rem .45rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: .9em;
  color: var(--color-primary-dark);
}

/* Alert variants */
.alert-warning {
  background: rgba(201,146,42,.08);
  border: 1px solid rgba(201,146,42,.3);
  border-left: 4px solid var(--color-gold);
  color: #7a5200;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: .88rem;
  margin-bottom: 1.25rem;
}
.alert-info {
  background: var(--color-bg-section);
  border: 1px solid rgba(27,61,123,.2);
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary-dark);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: .88rem;
}

/* ═══════════════════════════════════════════════
   TIPS PAGE — Updated tip card layout
   ═══════════════════════════════════════════════ */
/* Override old .tip-card flex layout — now vertical cards with header row */
.tips-grid .tip-card {
  display: block;
  padding: 1.5rem;
}
.tip-card__header {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .85rem;
}
.tip-card__header h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--color-primary-dark);
}
.tip-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg-section);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tips-grid .tip-card p { font-size: .9rem; color: var(--color-text-muted); margin: 0; }

/* ═══════════════════════════════════════════════
   CHARGES PAGE — Generic card & fee table
   ═══════════════════════════════════════════════ */
.card__header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card__body {
  padding: 1.75rem;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
.fees-table thead tr {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
}
.fees-table th {
  padding: .9rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}
.fees-table tbody tr { border-bottom: 1px solid var(--color-border); transition: background var(--transition); }
.fees-table tbody tr:last-child { border-bottom: none; }
.fees-table tbody tr:hover { background: var(--color-bg-section); }
.fees-table td { padding: 1rem 1.25rem; color: var(--color-text); vertical-align: middle; }

.badge-free {
  display: inline-block;
  padding: .25rem .65rem;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: .78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════
   FAQ PAGE — Button-based accordion & CTA box
   ═══════════════════════════════════════════════ */
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -2px; }

.faq-answer {
  padding: 0 1.5rem;
  overflow: hidden;
  font-size: .95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-answer[hidden] { display: none; }
.faq-answer.open {
  display: block;
  padding: .25rem 1.5rem 1.25rem;
}

.faq-cta {
  margin-top: 3rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.faq-cta h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.faq-cta p  { color: var(--color-text-muted); margin-bottom: .5rem; }
.faq-phone  { color: var(--color-primary); font-size: 1.4rem; font-weight: 800; }

/* ═══════════════════════════════════════════════
   ABOUT PAGE — Section rows & disclaimer card
   ═══════════════════════════════════════════════ */
.about-row {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}
.about-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.about-row h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.about-row p  { color: var(--color-text-muted); line-height: 1.8; }
.about-disclaimer-card {
  border: 1px solid #fca5a5;
  background: #fff5f5;
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* ═══════════════════════════════════════════════
   CONTACT PAGE — Updated grid & form
   ═══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-form-col { min-width: 0; }
.contact-sidebar-col { min-width: 0; }

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
}
.required { color: #c0392b; }

.contact-success {
  text-align: center;
  padding: 2rem;
}
.contact-success h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.contact-success p  { color: var(--color-text-muted); }

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-icon {
  font-size: 1.2rem;
  width: 34px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.contact-info-label { font-weight: 600; font-size: .85rem; color: var(--color-text); margin-bottom: .2rem; }

/* ═══════════════════════════════════════════════
   RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .two-col-grid    { grid-template-columns: 1fr; }
  .three-col-grid  { grid-template-columns: 1fr 1fr; }
  .method-row      { grid-template-columns: 1fr; }
  .method-row__icon-col { display: flex; align-items: center; gap: 1.5rem; text-align: left; padding: 1.25rem; }
  .method-row__icon-wrap { margin: 0; flex-shrink: 0; }
  .contact-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .three-col-grid  { grid-template-columns: 1fr; }
  .feature-grid    { grid-template-columns: 1fr 1fr; }
  .form-row-2col   { grid-template-columns: 1fr; }
  .about-row       { flex-direction: column; }
  .hero-section    { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .feature-grid    { grid-template-columns: 1fr; }
  .tips-grid       { grid-template-columns: 1fr; }
}
