/* ============================================
   Mustafa Ahmed Interpreting Services
   Editorial Legal Authority — Stylesheet v3.0
   ============================================ */

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

:root {
  /* Palette */
  --navy: #1a2942;
  --navy-deep: #0f1c2e;
  --navy-light: #2a3d5e;
  --gold: #c9a961;
  --gold-bright: #d9bb6c;
  --gold-soft: #e8d9b0;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5a5a5a;
  --border: #e0ddd6;
  --success: #2d6a4f;

  /* Type scale */
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: all .2s; }
a:hover { color: var(--gold); }

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  background: var(--navy);
  color: var(--cream);
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover { color: var(--gold); }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 0.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
nav a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-bright); color: var(--navy); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-left: 2px solid var(--gold);
  padding-left: 0.8rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 850px;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 700px;
  color: rgba(250, 248, 243, 0.85);
  margin-bottom: 2rem;
}

.hero-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  color: rgba(250, 248, 243, 0.9);
}
.hero-creds span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-creds span::before { content: '✓'; color: var(--gold); font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-bright); color: var(--navy); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--cream); border-color: rgba(250, 248, 243, 0.4); }
.btn-secondary:hover { background: rgba(250, 248, 243, 0.1); color: var(--cream); border-color: var(--gold); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 2rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}
.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.7);
}

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--cream); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}
h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.section-navy h2 em { color: var(--gold); }

h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.section-navy h3 { color: var(--cream); }

h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 750px;
  margin-bottom: 2.5rem;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.25s;
  position: relative;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(26, 41, 66, 0.08);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--gold);
  display: inline-block;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.6; }
.card a.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Credential cards (smaller, denser) */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.cred-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
}
.cred-card .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.cred-card .value {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.cred-card .sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* ============================================
   RATES TABLE
   ============================================ */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--paper);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.rates-table th {
  background: var(--navy);
  color: var(--cream);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rates-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.rates-table tr:last-child td { border-bottom: none; }
.rates-table tr:nth-child(even) td { background: var(--cream); }
.rates-table strong { color: var(--navy); font-weight: 600; }
.rates-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  padding: 1.25rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  margin-top: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial {
  background: var(--paper);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold);
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
  opacity: 0.5;
}
.testimonial p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--ink-muted);
}

/* ============================================
   ARABIC SECTION
   ============================================ */
.arabic-section {
  background: var(--navy);
  color: var(--cream);
  padding: 4rem 0;
  text-align: right;
  direction: rtl;
}
.arabic-section h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
}
.arabic-section p {
  font-size: 1.15rem;
  line-height: 1.9;
  max-width: 800px;
  margin-left: auto;
  color: rgba(250, 248, 243, 0.9);
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* ============================================
   CTA BLOCK
   ============================================ */
.cta-block {
  background: var(--navy);
  color: var(--cream);
  padding: 4rem 0;
  text-align: center;
}
.cta-block h2 {
  color: var(--cream);
  margin-left: auto;
  margin-right: auto;
}
.cta-block .lede {
  color: rgba(250, 248, 243, 0.85);
  margin-left: auto;
  margin-right: auto;
}
.cta-block .cta-row { justify-content: center; }

/* ============================================
   BLOG POST
   ============================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem var(--gutter);
}
.article-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.article h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.article p, .article li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.article h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.article h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.article ul, .article ol { margin: 1rem 0 1.5rem 1.5rem; }
.article li { margin-bottom: 0.5rem; }
.article blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 248, 243, 0.8);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a {
  color: rgba(250, 248, 243, 0.75);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--gold); }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.5);
  text-align: center;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  nav ul { gap: 1rem; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-creds { font-size: 0.85rem; gap: 0.5rem 1.5rem; }
  .cta-row { flex-direction: column; }
  .btn { text-align: center; width: 100%; }
  .header-inner { justify-content: center; text-align: center; }
  nav ul { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .rates-table { font-size: 0.85rem; }
  .rates-table th, .rates-table td { padding: 0.75rem 0.75rem; }
}
