/* Aliaa Advocates production design system — v2.0 */
:root {
  --ink: #0b1716;
  --ink-2: #112421;
  --ink-3: #1c332f;
  --gold: #c7a45b;
  --gold-text: #7a612e;
  --gold-light: #e5cd95;
  --paper: #f7f4ed;
  --white: #fff;
  --text: #263330;
  --muted: #66726f;
  --line: rgba(16, 39, 35, .13);
  --shadow: 0 20px 55px rgba(5, 21, 18, .12);
  --radius: 18px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Noto Sans Arabic", "Tahoma", "Arial", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.aliaa-en { font-family: "Inter", "Segoe UI", Arial, sans-serif; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--gold); }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.site-main { min-height: 65vh; overflow: clip; }
.aliaa-page { margin: 0; }
.sr-only, .screen-reader-text {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link { position: fixed; inset-inline-start: 18px; top: -100px; z-index: 99999; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 800; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000; color: var(--white);
  background: rgba(8, 23, 21, .96); border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(16px); transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(0,0,0,.2); background: rgba(8, 23, 21, .985); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; min-width: 235px; }
.brand:hover { color: var(--white); }
.brand-mark { width: 47px; height: 47px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-light); font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; color: var(--gold-light); font-size: 23px; letter-spacing: .12em; }
.aliaa-ar .brand-copy strong { font-family: "Noto Naskh Arabic", Tahoma, serif; letter-spacing: 0; font-size: 27px; }
.brand-copy small { font-size: 9px; letter-spacing: .105em; color: rgba(255,255,255,.76); }
.aliaa-ar .brand-copy small { font-size: 10px; letter-spacing: 0; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.aliaa-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.aliaa-menu li { position: relative; }
.aliaa-menu a { color: rgba(255,255,255,.89); text-decoration: none; font-size: 15px; font-weight: 650; padding: 30px 0; white-space: nowrap; }
.aliaa-menu a:hover, .aliaa-menu .current-menu-item > a, .aliaa-menu .current_page_ancestor > a { color: var(--gold-light); }
.aliaa-menu ul { position: absolute; inset-block-start: 58px; inset-inline-start: -18px; min-width: 245px; margin: 0; padding: 12px; list-style: none; background: var(--white); color: var(--ink); box-shadow: var(--shadow); border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.aliaa-menu li:hover > ul, .aliaa-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.aliaa-menu ul a { display: block; color: var(--text); padding: 9px 12px; border-radius: 7px; white-space: normal; }
.aliaa-menu ul a:hover { color: var(--ink); background: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.language-link { color: var(--gold-light); font-size: 14px; font-weight: 800; text-decoration: none; }
.nav-toggle { display: none; width: 47px; height: 47px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: transparent; padding: 11px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: .2s ease; }

/* Type & buttons */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin-block: 0 .7em; font-family: Georgia, "Times New Roman", serif; }
.aliaa-ar h1, .aliaa-ar h2, .aliaa-ar h3, .aliaa-ar h4 { font-family: "Noto Naskh Arabic", Tahoma, serif; }
h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin-block: 0 1.25em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 17px; color: var(--gold-text); font-weight: 800; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.aliaa-ar .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.aliaa-hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow, .cta-panel .eyebrow, .contact-panel .eyebrow, .quote-panel .eyebrow { color: var(--gold-light); }
.section-heading { max-width: 780px; margin-bottom: 44px; }
.section-heading p { color: var(--muted); font-size: 19px; max-width: 680px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center p { margin-inline: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 23px; border: 1px solid transparent; border-radius: 2px; text-decoration: none; font-weight: 800; font-size: 14px; transition: .22s ease; cursor: pointer; }
.button::after { content: "→"; font-size: 19px; }
.aliaa-ar .button::after { content: "←"; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { color: var(--ink); background: var(--gold-light); box-shadow: 0 12px 28px rgba(199,164,91,.25); }
.button-outline { border-color: rgba(255,255,255,.45); color: var(--white); }
.button-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--ink-3); color: var(--gold-light); }
.button-small { min-height: 42px; padding: 9px 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

/* Hero */
.aliaa-hero { position: relative; isolation: isolate; min-height: 710px; display: grid; align-items: center; color: var(--white); background: var(--ink); }
.aliaa-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-position: center; background-size: cover; }
.aliaa-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,20,18,.97) 8%, rgba(7,24,21,.83) 48%, rgba(7,24,21,.30) 100%); }
.aliaa-ar .aliaa-hero::after { background: linear-gradient(270deg, rgba(5,20,18,.97) 8%, rgba(7,24,21,.83) 48%, rgba(7,24,21,.30) 100%); }
.hero-content { max-width: 830px; padding-block: 100px; }
.aliaa-hero h1 { color: var(--white); margin-bottom: 21px; }
.aliaa-hero .lead { max-width: 700px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.8; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 30px; color: rgba(255,255,255,.68); font-size: 13px; }
.hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(199,164,91,.16); }

/* Sections */
.section { padding-block: 102px; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.78); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-heading p { color: rgba(255,255,255,.68); }
.trust-strip { position: relative; z-index: 2; margin-top: -44px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); box-shadow: var(--shadow); border-bottom: 3px solid var(--gold); }
.trust-item { padding: 30px 34px; border-inline-end: 1px solid var(--line); }
.trust-item:last-child { border-inline-end: 0; }
.aliaa-ar .trust-item strong { font-family: "Noto Naskh Arabic", Tahoma, serif; }
.trust-item strong { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 27px; }
.trust-item span { color: var(--muted); font-size: 14px; }
.split-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.media-frame { position: relative; min-height: 560px; border-radius: 2px; overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(229,205,149,.48); pointer-events: none; }
.founder-card { position: absolute; inset-inline: 25px; inset-block-end: 25px; padding: 20px 24px; background: rgba(7,23,21,.92); color: var(--white); backdrop-filter: blur(10px); }
.founder-card strong { display: block; font-size: 20px; color: var(--gold-light); }
.founder-card span { font-size: 13px; color: rgba(255,255,255,.7); }
.prose { max-width: 760px; }
.prose p { color: var(--muted); }
.gold-rule { width: 70px; height: 2px; margin-block: 25px; background: var(--gold); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; min-height: 405px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: var(--white); background: var(--ink-2); text-decoration: none; box-shadow: 0 16px 40px rgba(7,23,21,.11); }
.service-card::before { content: ""; position: absolute; inset: 0; background-image: var(--service-image); background-size: cover; background-position: center; transition: transform .5s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,22,.06) 12%, rgba(8,24,22,.93) 83%); }
.service-card:hover::before { transform: scale(1.045); }
.service-card-content { position: relative; z-index: 2; padding: 31px; border-bottom: 3px solid transparent; transition: border-color .2s ease; }
.service-card:hover .service-card-content { border-color: var(--gold); }
.service-card h3 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.service-card p { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.card-link { display: inline-flex; margin-top: 15px; color: var(--gold-light); font-size: 13px; font-weight: 800; }
.service-card-wide { grid-column: span 2; }

/* Process & values */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.process-step { position: relative; padding: 42px 30px; background: var(--ink-2); }
.process-number { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 50px; line-height: 1; opacity: .7; margin-bottom: 25px; }
.process-step p { color: rgba(255,255,255,.66); font-size: 14px; margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.value-card { padding: 35px; border: 1px solid var(--line); background: var(--white); }
.value-card h3 { display: flex; align-items: center; gap: 13px; }
.value-card h3::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.value-card p { color: var(--muted); margin: 0; }
.quote-panel { position: relative; padding: clamp(38px, 7vw, 76px); background: var(--ink); color: rgba(255,255,255,.78); overflow: hidden; }
.quote-panel::before { content: "“"; position: absolute; top: -44px; inset-inline-end: 30px; color: rgba(199,164,91,.13); font-family: Georgia, serif; font-size: 250px; line-height: 1; }
.quote-panel h2 { color: var(--white); max-width: 800px; position: relative; }
.quote-panel p { max-width: 850px; position: relative; }

/* Inner page hero */
.page-hero { position: relative; isolation: isolate; min-height: 430px; display: grid; align-items: end; padding-block: 110px 72px; color: var(--white); background: var(--ink); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-position: center; background-size: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,23,21,.96), rgba(7,23,21,.66)); }
.aliaa-ar .page-hero::after { background: linear-gradient(270deg, rgba(7,23,21,.96), rgba(7,23,21,.66)); }
.page-hero h1 { color: var(--white); font-size: clamp(2.45rem, 5vw, 4.4rem); max-width: 900px; margin-bottom: 18px; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--gold-light); font-size: 13px; margin-bottom: 20px; }
.breadcrumbs a { color: rgba(255,255,255,.8); text-decoration: none; }

/* Service detail */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 58px; align-items: start; }
.detail-content > p:first-of-type { font-size: 21px; color: var(--ink-3); }
.detail-content h2 { margin-top: 1.25em; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.detail-content h3 { margin-top: 1.45em; font-size: 1.45rem; }
.detail-content ul { margin: 0 0 28px; padding-inline-start: 24px; }
.detail-content li { margin-bottom: 9px; color: var(--text); }
.detail-content li::marker { color: var(--gold); }
.sidebar-card { position: sticky; top: 116px; padding: 31px; background: var(--paper); border-top: 3px solid var(--gold); }
.sidebar-card h2 { font-size: 27px; }
.sidebar-card p { color: var(--muted); font-size: 14px; }
.sidebar-card .button { width: 100%; }
.service-nav { list-style: none; margin: 25px 0 0; padding: 0; border-top: 1px solid var(--line); }
.service-nav li { border-bottom: 1px solid var(--line); }
.service-nav a { display: block; padding: 11px 0; text-decoration: none; font-size: 14px; font-weight: 700; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; align-items: start; }
.contact-panel { padding: 38px; background: var(--ink); color: rgba(255,255,255,.76); }
.contact-panel h2, .contact-panel h3 { color: var(--white); }
.contact-email { display: inline-block; color: var(--gold-light); font-size: 18px; overflow-wrap: anywhere; }
.contact-form { padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--ink); font-size: 14px; font-weight: 800; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid #cbd2cf; border-radius: 0; background: #fff; color: var(--text); padding: 12px 14px; min-height: 49px; }
.form-field textarea { min-height: 155px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold); outline: 2px solid rgba(199,164,91,.27); outline-offset: 1px; }
.form-notice { padding: 12px 15px; margin-bottom: 20px; border-inline-start: 3px solid var(--gold); background: var(--paper); font-size: 14px; }
.form-response { margin-top: 15px; font-weight: 700; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; pointer-events: none !important; }
.consent-field label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.6; }
.consent-field input[type="checkbox"] { width: 24px; min-width: 24px; height: 24px; min-height: 24px; margin: 1px 0 0; padding: 0; accent-color: var(--gold-dark); }

/* CTA */
.cta-section { padding-block: 0 100px; background: var(--paper); }
.cta-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(44px, 8vw, 86px); color: var(--white); background: var(--ink); }
.cta-panel::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--cta-image); background-size: cover; background-position: center; opacity: .33; }
.cta-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,23,21,.98), rgba(7,23,21,.64)); }
.aliaa-ar .cta-panel::after { background: linear-gradient(270deg, rgba(7,23,21,.98), rgba(7,23,21,.64)); }
.cta-panel h2 { color: var(--white); max-width: 780px; }
.cta-panel p { max-width: 720px; color: rgba(255,255,255,.75); }

/* Footer */
.site-footer { background: #071310; color: rgba(255,255,255,.68); }
.footer-accent { height: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .75; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .75fr 1fr; gap: 70px; padding-block: 75px 52px; }
.brand-footer { margin-bottom: 24px; }
.footer-brand p { max-width: 420px; font-size: 14px; }
.footer-heading { color: var(--white); font-size: 20px; margin-bottom: 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-name { color: rgba(255,255,255,.83); font-weight: 700; }
.footer-email { color: var(--gold-light); overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; font-size: 12px; }
.footer-bottom p { margin: 0; }

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-gold { color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.info-box { padding: 26px; background: var(--paper); border-inline-start: 3px solid var(--gold); }
.info-box p:last-child { margin-bottom: 0; }

@media (max-width: 1040px) {
  body.admin-bar .site-header { top: 32px; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 86px 0 auto 0; display: block; max-height: calc(100vh - 86px); overflow-y: auto; padding: 25px 28px 35px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); transform: translateY(-140%); opacity: 0; visibility: hidden; transition: .25s ease; }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .aliaa-menu { display: block; }
  .aliaa-menu a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.09); }
  .aliaa-menu ul { position: static; display: block; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 18px; background: transparent; box-shadow: none; }
  .aliaa-menu ul a { color: rgba(255,255,255,.7); }
  .nav-actions { margin-top: 22px; justify-content: space-between; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  :root { --container: min(100% - 28px, 1180px); }
  body { font-size: 16px; line-height: 1.75; }
  .section { padding-block: 74px; }
  .header-inner { min-height: 75px; }
  .primary-nav { inset-block-start: 75px; max-height: calc(100vh - 75px); }
  .brand { min-width: 0; }
  .brand-mark { width: 41px; height: 41px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 7px; }
  .aliaa-ar .brand-copy strong { font-size: 23px; }
  .aliaa-ar .brand-copy small { font-size: 8px; }
  .aliaa-hero { min-height: 655px; }
  .hero-content { padding-block: 82px; }
  .trust-strip { margin-top: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .media-frame, .media-frame img { min-height: 430px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: auto; }
  .service-card { min-height: 370px; }
  .values-grid, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
  .page-hero { min-height: 390px; padding-block: 95px 58px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .brand-copy small { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .button-row { display: grid; }
  .button-row .button { width: 100%; }
  .service-card-content { padding: 25px; }
  .contact-form, .contact-panel { padding: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .button, .sidebar-card, .nav-toggle { display: none !important; }
  .section, .page-hero { padding-block: 30px; }
  .page-hero, .section-dark { color: #000; background: #fff; }
  .page-hero h1, .section-dark h2, .section-dark h3 { color: #000; }
}
