/* =========================================================================
   Hazem Salah: relationship coaching site
   Concept: "clarity before the decision". One memorable moment (the hero
   headline resolving from blur to sharp); everything else stays quiet.
   One typeface family designed for Arabic and Latin together.
   Layout uses logical properties throughout, so Arabic mirrors correctly.
   ========================================================================= */

@font-face {
  font-family: 'Readex Pro Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/assets/fonts/readex-pro-arabic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'Readex Pro Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/assets/fonts/readex-pro-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --fog: #EDF1F0;
  --paper: #F7F9F8;
  --ink: #15222B;
  --muted: #4F626B;
  --nile: #1F4B4F;
  --nile-deep: #0F2E31;
  --lamp: #D9A431;
  --line: #C6D2D0;
  --focus: #0B6B73;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --font: 'Readex Pro Variable', 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 380;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { line-height: 1.95; font-weight: 400; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-weight: 560; line-height: 1.2; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; font-weight: 600; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--nile); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--nile-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.4em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 520; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .ico { flex: none; }
.btn-primary { background: var(--nile); color: #fff; }
.btn-primary:hover { background: var(--nile-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.stack { flex-direction: column; align-items: stretch; }
.btn-row { margin: 1.6em 0 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #EDF1F0; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1875rem; }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--nile); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--lamp); }
.nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--nile); font-weight: 560; }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.nav-tools .btn-primary { color: #fff; white-space: nowrap; }
.lang-switch { font-weight: 520; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); font: inherit; font-weight: 520; cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 24px; background: var(--fog); border-bottom: 1px solid var(--line); }
  .nav-open .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav-tools { justify-content: space-between; padding-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.6rem); max-width: 18ch; line-height: 1.08; font-weight: 520; }
html[lang="ar"] .hero h1 { max-width: 16ch; line-height: 1.3; font-weight: 600; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; margin-block: 1.4em 1.8em; color: var(--ink); }
.hero-note { margin: 1.6em 0 0; color: var(--muted); font-size: 0.97rem; }


/* Arch frame: a doorway, the threshold of a decision */
.arch { margin: 0; width: min(100%, 380px); justify-self: end; aspect-ratio: 4 / 5; border-radius: 999px 999px 14px 14px; overflow: hidden; background: linear-gradient(165deg, var(--nile) 0%, var(--nile-deep) 100%); position: relative; display: grid; place-items: center; }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-mono { font-size: clamp(3.2rem, 8vw, 5.5rem); font-weight: 300; color: var(--lamp); letter-spacing: 0.04em; }
.arch::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: var(--lamp); }
.arch-small { width: min(100%, 300px); justify-self: start; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .arch { justify-self: start; width: min(70%, 280px); }
  html[lang="ar"] .arch { justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); margin-bottom: 1em; }

/* Where are you right now: large type rows */
.path-list { list-style: none; margin: 0; padding: 0; }
.path-list li { border-top: 1px solid var(--line); }
.path-list li:last-child { border-bottom: 1px solid var(--line); }
.path-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; padding-block: 26px; text-decoration: none; color: var(--ink); align-items: baseline; }
.path-label { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 520; line-height: 1.25; position: relative; }
.path-desc { color: var(--muted); }
.path-list a:hover .path-label { color: var(--nile); }
.path-list a:hover .path-label::before { content: ""; position: absolute; inset-inline-start: -22px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); }
@media (max-width: 720px) {
  .path-list a { grid-template-columns: 1fr; padding-block: 20px; }
}

/* Approach */
.approach { background: var(--paper); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pull { margin: 0; padding-inline-start: clamp(20px, 3vw, 36px); border-inline-start: 3px solid var(--lamp); }
.pull blockquote { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.4; font-weight: 440; color: var(--nile-deep); }
.pull blockquote p { margin: 0; }
.pull figcaption { margin-top: 1.2em; color: var(--muted); }
@media (max-width: 820px) { .approach-grid { grid-template-columns: 1fr; } }

.credential-sec { padding-block: clamp(28px, 4vw, 48px); }
.credential { font-size: 1.1875rem; line-height: 1.7; margin: 0; }
.credential a { white-space: nowrap; }

/* Services as rows */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { border-top: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 40px; padding-block: 26px; text-decoration: none; color: var(--ink); }
.svc-name { font-size: 1.3rem; font-weight: 540; }
.svc-sum { color: var(--muted); }
.svc-meta { grid-column: 2; color: var(--nile); font-weight: 500; font-size: 0.97rem; }
.svc:hover .svc-name { color: var(--nile); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; } .svc-meta { grid-column: 1; } }

/* Proof and testimonials */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.proof-item h3 { font-size: 1.1rem; margin-top: 14px; }
.proof-meta { color: var(--muted); font-size: 0.95rem; margin: 0.3em 0 0; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background-color: var(--nile-deep); background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(15, 46, 49, 0.82); }
.video-facade .play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-block: 11px solid transparent; border-inline-start: 18px solid #fff; transform: translateX(3px); }
html[lang="ar"] .video-facade .play::after { transform: translateX(-3px); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.quote-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.quote { margin: 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--lamp); }
.quote blockquote { margin: 0; font-size: 1.125rem; }
.quote figcaption { color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0 0 1.4em; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 3.2rem; padding-block: 0.5em; margin-bottom: 0.6em; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0.35em; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1.5px solid var(--nile); color: var(--nile); border-radius: 50%; font-weight: 560; font-size: 0.95rem; background: var(--fog); }
.steps-section { background: var(--paper); }

/* Band */
.band { background: var(--nile-deep); color: #EAF1F0; padding-block: clamp(44px, 6vw, 80px); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.4em; }
.band p { margin: 0; color: #C9D8D6; }
.band .btn-primary { background: var(--lamp); color: var(--ink); }
.band .btn-primary:hover { background: #E7B648; color: var(--ink); }
.band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.band .btn-ghost:hover { background: #fff; color: var(--nile-deep); }
.band .safety { grid-column: 1 / -1; color: #AFC3C0; font-size: 0.9375rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; margin: 4px 0 0; }
.band .safety strong { color: #fff; font-weight: 520; }
@media (max-width: 820px) { .band-in { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; font-weight: 520; }
html[lang="ar"] .page-head h1 { max-width: 24ch; font-weight: 600; }
.page-head .lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 40em; margin: 1.1em 0 0; color: var(--muted); }
.meta-line { color: var(--muted); margin: 1em 0 0; }

.page-body { padding-block: clamp(16px, 3vw, 32px) clamp(48px, 7vw, 96px); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.two-col.single { grid-template-columns: minmax(0, 760px); }

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 2em 0 0.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose ul { padding-inline-start: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 2em 0; padding-inline-start: 24px; border-inline-start: 3px solid var(--lamp); font-size: 1.2rem; color: var(--nile-deep); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); height: auto; }
.prose.small { font-size: 0.97rem; }

/* The sightline: a thin vertical rule that each section heading marks with a dot */
.sightline { padding-inline-start: 2rem; border-inline-start: 2px solid var(--line); }
.sightline h2 { position: relative; }
.sightline h2::before { content: ""; position: absolute; inset-inline-start: calc(-2rem - 7px); top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px var(--fog); }
html[lang="ar"] .sightline h2::before { top: 0.6em; }
@media (max-width: 600px) {
  .sightline { padding-inline-start: 1.3rem; }
  .sightline h2::before { inset-inline-start: calc(-1.3rem - 7px); }
}

.aside { position: sticky; top: 92px; }
.aside-in { background: var(--paper); border-radius: 14px; padding: 28px; border: 1px solid var(--line); }
.aside-h { font-size: 1.2rem; margin-bottom: 0.8em; }
.aside-note { color: var(--muted); font-size: 0.97rem; }
.meta { margin: 0 0 1.2em; }
.meta dt { color: var(--muted); font-size: 0.9rem; }
.meta dd { margin: 0 0 0.8em; font-weight: 520; }
.channels { list-style: none; padding: 0; margin: 0 0 1.2em; }
.channels li { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.channels .ico { color: var(--nile); flex: none; }
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .aside { position: static; }
}

/* FAQ */
.faq-cat { font-size: 1.35rem; margin: 2.2em 0 0.8em; }
.faq-cat:first-child { margin-top: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; padding-inline-end: 40px; position: relative; font-weight: 520; font-size: 1.0625rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--nile); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 0 20px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-more { margin-top: 2em; }

/* Article list */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-top: 1px solid var(--line); }
.article-list li:last-child { border-bottom: 1px solid var(--line); }
.article-list a { display: block; padding-block: 24px; text-decoration: none; color: var(--ink); }
.a-title { display: block; font-size: 1.35rem; font-weight: 540; }
.a-ex { display: block; color: var(--muted); margin-top: 0.3em; }
.article-list a:hover .a-title { color: var(--nile); }

/* ---------- Forms ---------- */
.form { max-width: 640px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 520; margin-bottom: 6px; font-size: 0.97rem; }
.req { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-inline-start: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #9FB0AD; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #A12B2B; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; margin-top: 4px; flex: none; accent-color: var(--nile); }
.field.check label { font-weight: 400; margin: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }
.form-errors { border: 1.5px solid #A12B2B; background: #FBEDED; color: #5C1717; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }
.form-errors p { margin: 0 0 0.4em; font-weight: 560; }
.form-errors ul { margin: 0; padding-inline-start: 1.2em; }
.safety { font-size: 0.97rem; color: var(--muted); }
.aside .safety { margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.aside .safety strong { color: var(--ink); font-weight: 560; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D5D3; padding-block: 56px 28px; margin-top: 0; }
.site-footer a { color: #E7EFEE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.f-name { font-size: 1.25rem; font-weight: 580; color: #fff; margin-bottom: 0.2em; }
.f-small { font-size: 0.9375rem; color: #9FB2AF; }
.f-h { font-size: 0.9375rem; font-weight: 560; color: #fff; margin-bottom: 0.9em; letter-spacing: 0; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { margin-bottom: 0.55em; font-size: 0.97rem; }
.f-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.9rem; color: #9FB2AF; }
.f-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #EDF1F0; border-top: 1px solid var(--line); }
  .mobile-bar .btn { min-height: 46px; padding-inline: 10px; font-size: 0.97rem; }
  body { padding-bottom: 72px; }
  .tpl-contact .mobile-bar, .tpl-thanks .mobile-bar { display: none; }
  .tpl-contact, .tpl-thanks { padding-bottom: 0; }
}

@media print {
  .site-header, .site-footer, .mobile-bar, .band, .aside { display: none; }
  body { background: #fff; }
}
