/* =========================================================
   Mustafa Ahmed Interpreting Services — Global Stylesheet
   ========================================================= */

:root {
  --navy:   #0d1f3c;
  --gold:   #b8942a;
  --gold-lt:#d4a83a;
  --cream:  #f9f6f0;
  --white:  #ffffff;
  --text:   #1a1a2e;
  --muted:  #5a6172;
  --border: #ddd8cc;
  --shadow: 0 2px 16px rgba(13,31,60,.10);
  --radius: 8px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui:   'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; margin-bottom: .4rem; }
em { font-style: italic; color: var(--gold); }
p  { margin-bottom: 1rem; }
a  { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
ul { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 700; }

/* ── Layout helpers ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4.5rem 0; }
.section--alt { background: var(--cream); }
.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
  cursor: pointer;
}
.btn-primary   { background: var(--gold); color: var(--white); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-lt); color: var(--white); }
.btn-outline    { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white      { background: var(--white); color: var(--navy); border: 2px solid var(--white); }
.btn-white:hover{ background: var(--cream); color: var(--navy); }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: .85rem 1.5rem;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
}
.nav-logo span { display: block; font-size: .72rem; font-family: var(--font-ui); color: var(--gold); letter-spacing:.04em; font-weight:400; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--font-ui); font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.82); text-decoration: none; transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 700;
  background: var(--gold); color: var(--white); padding: .5rem 1.1rem;
  border-radius: 4px; text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--gold-lt); color: var(--white); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--white); font-size: 1.4rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, #162d52 60%, #1e3a60 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(184,148,42,.18); border: 1px solid rgba(184,148,42,.45);
  border-radius: 100px; padding: .35rem .9rem;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600; color: var(--gold-lt);
  margin-bottom: 1.25rem; letter-spacing: .04em;
}
.hero-badge::before { content:"●"; font-size:.55rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 780px; }
.hero h1 em { color: var(--gold-lt); font-style:normal; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 640px; margin-bottom: 1.5rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem;
}
.hero-tag {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; padding: .3rem .75rem; color: rgba(255,255,255,.9);
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight:700; color: var(--gold-lt); line-height:1; }
.stat-label { font-family: var(--font-ui); font-size: .72rem; color: rgba(255,255,255,.65); letter-spacing:.04em; text-transform:uppercase; margin-top:.2rem; }
.hero-note {
  margin-top: 1rem;
  font-family: var(--font-ui); font-size: .82rem; color: rgba(255,255,255,.6);
  font-style: italic;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,31,60,.14); }
.card-link:hover h3 { color: var(--gold); }
.card-arrow { font-size: .85rem; color: var(--gold); margin-top: .75rem; font-family: var(--font-ui); font-weight:600; }

/* ── Credential badges ── */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1rem; }
.cred-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  text-align: center; box-shadow: var(--shadow);
}
.cred-item .icon { font-size: 1.75rem; margin-bottom: .5rem; }
.cred-item strong { display: block; font-family: var(--font-ui); font-size: .85rem; color: var(--navy); }
.cred-item span { font-family: var(--font-ui); font-size: .75rem; color: var(--muted); }

/* ── NRPSI highlight box ── */
.nrpsi-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1b3260 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.nrpsi-box h2 { color: var(--white); }
.nrpsi-box p  { color: rgba(255,255,255,.82); }
.nrpsi-box ul { color: rgba(255,255,255,.82); }
.nrpsi-box .verify-link {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-ui); font-size:.85rem; font-weight:600;
  color: var(--gold-lt); text-decoration: underline;
}
.nrpsi-images { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.nrpsi-images img { height: 160px; width: auto; border-radius: 4px; border: 2px solid rgba(255,255,255,.2); object-fit: cover; }

/* ── Rates table ── */
.rates-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .95rem; }
.rates-table th {
  background: var(--navy); color: var(--white);
  padding: .85rem 1rem; text-align: left; font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.rates-table td { padding: 1rem; 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); }
.rate-price { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.rate-badge {
  display: inline-block; background: var(--gold); color: var(--white);
  font-size: .68rem; font-weight: 700; padding: .15rem .45rem; border-radius: 3px;
  vertical-align: middle; margin-left: .4rem; letter-spacing:.03em;
}
.rates-note { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.rates-note strong { color: var(--navy); }

/* ── Reviews ── */
.review-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: .75rem; }
.review-body { font-style: italic; color: var(--text); margin-bottom: 1rem; font-size: .97rem; }
.review-meta { font-family: var(--font-ui); font-size: .82rem; color: var(--muted); }
.review-meta strong { display: block; color: var(--navy); }

/* ── Contact section ── */
.contact-box {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.contact-method {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.contact-method:last-child { border-bottom: none; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.contact-label { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-value { font-weight: 600; color: var(--navy); }
.contact-value a { color: var(--navy); }

/* ── Bio block ── */
.bio-block {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start;
}
.bio-sidebar { position: sticky; top: 90px; }
.bio-sidebar img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.bio-panels { display: flex; flex-direction: column; gap: 1.5rem; }
.panel {
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.panel h4 { font-family: var(--font-ui); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing:.06em; color: var(--gold); margin-bottom: .5rem; }

/* ── Service hero (inner pages) ── */
.page-hero {
  background: linear-gradient(155deg, var(--navy) 0%, #162d52 100%);
  color: var(--white); padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem,4vw,2.6rem); }
.page-hero h1 em { color: var(--gold-lt); font-style: normal; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin-top: .75rem; }
.breadcrumb {
  font-family: var(--font-ui); font-size: .8rem; color: rgba(255,255,255,.55);
  margin-bottom: .75rem;
}
.breadcrumb a { color: var(--gold-lt); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Dialect pills ── */
.dialect-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.dialect-pill {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600;
  background: var(--navy); color: var(--white);
  border-radius: 100px; padding: .35rem .9rem;
}
.dialect-pill.featured { background: var(--gold); }

/* ── Services numbered list ── */
.service-item { display: flex; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.service-item:last-child { border-bottom: none; }
.service-num { font-family: var(--font-head); font-size: 2.5rem; color: var(--border); font-weight:700; flex-shrink:0; line-height:1; margin-top:.1rem; }
.service-content h3 { margin-bottom: .35rem; }
.service-content p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-content a { font-family: var(--font-ui); font-size: .82rem; font-weight:600; color: var(--gold); text-decoration:none; margin-top:.5rem; display:inline-block; }

/* ── Footer ── */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.75);
  padding: 3.5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--gold);
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.7); text-decoration: none; font-family: var(--font-ui); font-size: .87rem; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-brand { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); margin-bottom: .5rem; }
.footer-brand-sub { font-family: var(--font-ui); font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-family: var(--font-ui); font-size: .78rem; color: rgba(255,255,255,.45);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.footer-bar a { color: var(--gold-lt); text-decoration: none; }

/* ── Arabic section ── */
.arabic-block {
  background: var(--navy); color: rgba(255,255,255,.85);
  border-radius: var(--radius); padding: 2rem; direction: rtl; text-align: right;
}
.arabic-block p { font-size: 1.05rem; line-height: 1.85; }

/* ── Highlight strip ── */
.highlight-strip {
  background: var(--gold);
  color: var(--white);
  padding: 1.25rem 0;
  text-align: center;
}
.highlight-strip p { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; margin: 0; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); padding: 1rem 1.5rem;
    gap: .75rem; z-index: 99;
  }
  .nav-links.open + .nav-cta { display: none; }
  .nav-links.open a { font-size: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.25rem; }
  .bio-block { grid-template-columns: 1fr; }
  .bio-sidebar { position: static; }
  .bio-sidebar img { max-width: 260px; }
  .section { padding: 3rem 0; }
}

/* ── Print ── */
@media print { .site-nav, .site-footer, .btn { display: none; } }
