/* =========================================================
   TOKENS
========================================================= */
:root{
  --paper: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #16181D;
  --ink-muted: #5B5F6B;
  --accent: #3457D5;
  --accent-ink: #FFFFFF;
  --warm: #C1432B;
  --border: rgba(22,24,29,0.10);
  --border-strong: rgba(22,24,29,0.20);
  --shadow: rgba(22,24,29,0.08);

  --font-display-latin: "Sora", -apple-system, sans-serif;
  --font-body-latin: "Inter", -apple-system, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", Tahoma, sans-serif;

  --max-w: 1080px;
  --radius-s: 8px;
  --radius-m: 16px;
  --nav-h: 72px;
}

body.theme-dark{
  --paper: #101114;
  --surface: #17181D;
  --ink: #F5F5F4;
  --ink-muted: #A7ABB8;
  --accent: #6C89FF;
  --accent-ink: #10131F;
  --warm: #E2836A;
  --border: rgba(245,245,244,0.12);
  --border-strong: rgba(245,245,244,0.24);
  --shadow: rgba(0,0,0,0.5);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body-latin);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

body.lang-ar{ font-family: var(--font-arabic); direction: rtl; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3,
body.lang-ar .brand-name, body.lang-ar .eyebrow, body.lang-ar .pill{ font-family: var(--font-arabic); }
body:not(.lang-ar) h1, body:not(.lang-ar) h2, body:not(.lang-ar) h3{ font-family: var(--font-display-latin); }

h1,h2,h3{ margin:0; font-weight:700; color: var(--ink); letter-spacing:-0.01em; }
p{ margin:0; color: var(--ink-muted); }
a{ color: inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }

.section-inner{ max-width: var(--max-w); margin:0 auto; padding: 0 28px; }
img,svg{ display:block; }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  max-width: var(--max-w); margin:0 auto; padding: 0 28px;
  height: var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mono{
  width:34px; height:34px; border-radius:10px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display-latin); font-weight:700; font-size:13px;
  display:flex; align-items:center; justify-content:center;
}
.brand-name{ display:flex; flex-direction:column; line-height:1.1; }
.brand-en{ font-family: var(--font-display-latin); font-weight:700; font-size:16px; }
.brand-ar{ font-family: var(--font-arabic); font-size:13px; color: var(--ink-muted); }
body.lang-ar .brand-en{ display:none; }
body:not(.lang-ar) .brand-ar{ display:none; }

.main-nav{ display:flex; gap: 30px; }
.main-nav a{ font-size:14.5px; font-weight:500; color: var(--ink-muted); transition: color .15s ease; }
.main-nav a:hover{ color: var(--accent); }
@media (max-width: 860px){ .main-nav{ display:none; } }

.header-controls{ display:flex; align-items:center; gap:10px; }

.lang-switch{ position:relative; }
.lang-trigger{
  display:flex; align-items:center; gap:6px;
  background: var(--surface); border:1px solid var(--border); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; font-weight:600; color: var(--ink); cursor:pointer;
}
.lang-trigger:hover{ border-color: var(--border-strong); }
.lang-menu{
  position:absolute; top: calc(100% + 8px); right:0; margin:0; padding:6px; width: 150px;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  box-shadow: 0 14px 30px var(--shadow);
  opacity:0; visibility:hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
body.lang-ar .lang-menu{ right:auto; left:0; }
.lang-menu.open{ opacity:1; visibility:visible; transform: translateY(0); }
.lang-menu li{ padding: 9px 10px; border-radius: var(--radius-s); font-size: 14px; cursor:pointer; color: var(--ink-muted); }
.lang-menu li:hover{ background: var(--paper); color: var(--ink); }
.lang-menu li[aria-selected="true"]{ color: var(--accent); font-weight:600; }

.theme-toggle{
  display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:999px;
  background: var(--surface); border:1px solid var(--border); color: var(--ink); cursor:pointer;
}
.theme-toggle:hover{ border-color: var(--border-strong); }
.icon-moon{ display:none; }
body.theme-dark .icon-sun{ display:none; }
body.theme-dark .icon-moon{ display:block; }

.nav-toggle{
  display:none; width:36px; height:36px; align-items:center; justify-content:center;
  background:transparent; border:1px solid var(--border); border-radius:999px; color: var(--ink); cursor:pointer;
}
@media (max-width: 860px){ .nav-toggle{ display:flex; } }
.icon-close{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-menu{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display:block; }

.mobile-nav{ display:none; flex-direction:column; padding: 6px 28px 18px; border-top:1px solid var(--border); }
.mobile-nav.open{ display:flex; }
.mobile-nav a{ padding:12px 0; font-size:15px; color: var(--ink); border-bottom:1px solid var(--border); }
.mobile-nav a:last-child{ border-bottom:none; }

/* =========================================================
   SECTIONS shared
========================================================= */
.section{ padding: 88px 0; border-bottom:1px solid var(--border); }
.section:last-of-type{ border-bottom:none; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase;
  color: var(--accent); margin-bottom:14px;
}
.section-title{ font-size: clamp(28px, 3.6vw, 40px); line-height:1.15; max-width: 720px; }
.section-lede{ margin-top:16px; font-size:16.5px; max-width: 600px; }

/* =========================================================
   HERO — photo led
========================================================= */
.hero{ padding-top: 64px; }
.hero-inner{
  display:grid; grid-template-columns: 200px 1fr; gap: 56px; align-items:start;
}
@media (max-width: 720px){ .hero-inner{ grid-template-columns: 1fr; gap:24px; text-align:center; justify-items:center; } }

.hero-photo-col{ display:flex;
  flex-direction:column;
   align-items:center; 
   gap:14px; 
  }
.hero-photo{
  width:168px;
  height:168px;
  border-radius: 50%;
  border: 0.1px solid #23359134;
  object-fit: cover;
 }
.avatar-placeholder{
  width:100%; height:100%; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--surface); border: 1.5px dashed var(--border-strong); color: var(--ink-muted);
}
.avatar-caption{
  display:flex; align-items:center; gap:7px; font-size:13px; font-weight:500; color: var(--ink-muted);
}
.avatar-dot{ width:7px; height:7px; border-radius:50%; background: var(--accent); flex-shrink:0; }

/* Added for Profile Photo */
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-copy{ max-width: 620px; }
.hero-name{ font-size: clamp(32px, 4.6vw, 50px); margin-bottom:14px; }
.hero-tagline{ font-size: 18px; color: var(--ink); font-weight:500; margin-bottom:22px; }

.hero-pills{ display:flex; flex-wrap:wrap; gap:9px; margin-bottom:30px; }
@media (max-width: 720px){ .hero-pills{ justify-content:center; } }
.pill{
  font-size:13px; font-weight:600; padding: 7px 14px; border-radius:999px;
  background: var(--surface); border:1px solid var(--border); color: var(--ink-muted);
}
.pill-accent{ background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
@media (max-width: 720px){ .hero-actions{ justify-content:center; } }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 13px 26px; border-radius: 999px; font-size:14.5px; font-weight:600;
  border:1.5px solid transparent; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px var(--shadow); }
.btn-ghost{ background:transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

/* =========================================================
   SERVICES — tutoring featured
========================================================= */
.services-grid{
  margin-top: 44px; display:grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 860px){ .services-grid{ grid-template-columns: 1fr; } }

.service-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  padding: 26px 24px; transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover{ border-color: var(--border-strong); transform: translateY(-2px); }

.service-featured{
  grid-column: 1 / -1;
  display:grid; grid-template-columns: auto 1fr; gap: 26px; align-items:start;
  padding: 32px;
  border-color: var(--accent);
  box-shadow: 0 10px 26px var(--shadow);
}
@media (max-width: 640px){ .service-featured{ grid-template-columns: 1fr; } }

.service-icon{
  width:52px; height:52px; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.service-icon-sm{ width:42px; height:42px; border-radius:11px; background: var(--paper); color: var(--accent); margin-bottom:16px; }

.service-tag{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--accent); margin-bottom:8px;
}
.service-featured-body h3{ font-size:22px; margin-bottom:10px; }
.service-featured-body p{ font-size:15px; margin-bottom:18px; }

.service-points{ display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.service-points li{ display:flex; align-items:center; gap:10px; font-size:14px; color: var(--ink); }
.service-points svg{ color: var(--accent); flex-shrink:0; }

.service-card h3{ font-size:18px; margin-bottom:10px; }
.service-card > p{ font-size:14.5px; }

/* =========================================================
   APPROACH
========================================================= */
.steps{
  margin: 52px 0 0; display:grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--border);
}
@media (max-width: 860px){ .steps{ grid-template-columns:1fr; } }
.step{ padding: 26px 22px 26px 0; border-inline-end: 1px solid var(--border); }
.steps .step:last-child{ border-inline-end:none; }
@media (max-width: 860px){
  .step{ border-inline-end:none; border-bottom:1px solid var(--border); padding: 22px 0; }
  .steps .step:last-child{ border-bottom:none; }
}
.step-number{
  display:block; font-family: var(--font-display-latin); font-size:13.5px; font-weight:700;
  color: var(--accent); letter-spacing:0.04em; margin-bottom:14px;
}
.step h3{ font-size:17px; margin-bottom:8px; }
.step p{ font-size:14px; }

.materials{ margin-top: 64px; }
.materials-label{ font-size:12.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color: var(--ink-muted); margin-bottom: 20px; }
.materials-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width: 860px){ .materials-grid{ grid-template-columns:1fr; } }

.mock-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m); padding: 18px 20px 22px; }
.mock-card-head{ display:flex; gap:6px; margin-bottom:14px; }
.mock-dot{ width:7px; height:7px; border-radius:50%; background: var(--border-strong); }
.mock-title{ font-size:13px; font-weight:700; color: var(--accent); margin-bottom:14px; }
.mock-line{ height:8px; border-radius:4px; background: var(--paper); margin-bottom:9px; }
.mock-line-lg{ width:88%; }
.mock-line-sm{ width:46%; }
.mock-checklist{ display:flex; gap:8px; margin-top:10px; }
.mock-check{ width:20px; height:20px; border-radius:5px; background: var(--accent); color: var(--accent-ink); display:flex; align-items:center; justify-content:center; }
.mock-fill{ font-size:13.5px; color: var(--ink); margin-bottom:12px; display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.mock-blank{ display:inline-block; width:64px; height:1.5px; background: var(--border-strong); align-self:flex-end; margin-bottom:2px; }
.mock-blank-sm{ width:34px; }
.mock-correction{ font-size:14.5px; color: var(--ink); line-height:2.1; }
.mock-strike{ text-decoration: line-through; text-decoration-color: var(--warm); text-decoration-thickness: 1.5px; color: var(--ink-muted); margin-inline: 4px; }
.mock-caret{ color: var(--warm); display:inline-flex; vertical-align: -3px; margin-inline-end:2px; }
.mock-insert{ color: var(--warm); font-weight:600; margin-inline-end:4px; }

/* =========================================================
   CONTACT
========================================================= */
.contact-grid{ margin-top: 44px; display:grid; grid-template-columns: 1.5fr 1fr; gap: 36px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-form{ display:flex; flex-direction:column; gap: 8px; }
.contact-form label{ font-size:13px; font-weight:600; margin-top:14px; color: var(--ink); }
.contact-form input, .contact-form textarea{
  font: inherit; font-size:14.5px; padding: 12px 14px; border-radius: var(--radius-s);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus{ border-color: var(--accent); }
.contact-form .btn{ margin-top: 20px; align-self:flex-start; }
.form-note{ font-size:12.5px; margin-top:14px; color: var(--ink-muted); }
.form-note.is-sending{ color: var(--ink-muted); }
.form-note.is-success{ color: #1E8E5A; }
.form-note.is-error{ color: #D64545; }

/* Spam-trap field: hidden from sighted users and screen readers,
   but still present in the DOM so most bots fill it in and get blocked. */
.hp-field{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; left: -9999px;
}

.contact-direct{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  padding: 24px; display:flex; flex-direction:column; gap:4px; align-self:start;
}
.contact-direct-label{ font-size:12.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color: var(--ink-muted); margin-bottom:10px; }
.contact-link{ display:flex; align-items:center; gap:12px; padding: 12px 8px; border-radius: var(--radius-s); color: var(--ink); font-size:14.5px; transition: background .15s ease, color .15s ease; }
.contact-link:hover{ background: var(--paper); color: var(--accent); }
.contact-link svg{ flex-shrink:0; color: var(--accent); }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{ padding: 30px 0; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.footer-inner p{ font-size:13px; }
.footer-tag{ font-style:italic; }
