:root {
  --navy: #14233c;
  --navy-2: #1d3152;
  --gold: #b8945a;
  --gold-light: #e9dcc4;
  --cream: #f8f5ef;
  --ink: #26303d;
  --muted: #5f6b7a;
  --line: #ece7dd;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 35, 60, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
html[lang="ar"] {
  --serif: "Amiri", "Times New Roman", serif;
  --sans: "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.7; font-size: 16px; }
html[lang="ar"] body { font-size: 17px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.7rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.45; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; font-weight: 600; color: var(--gold); margin-bottom: 0.8rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; }

/* Placeholder text still to be confirmed */
mark.todo { background: #fff3b0; color: #6b5300; padding: 0 0.3em; border-radius: 4px; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-block; background: var(--gold); color: var(--white); padding: 0.9rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 2px solid var(--gold);
  cursor: pointer; transition: background .2s, transform .2s; font-family: var(--sans);
}
.btn:hover { background: #a3824b; border-color: #a3824b; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
.brand-text { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 4px; }
html[lang="ar"] .brand-text small { letter-spacing: 0; font-size: 0.8rem; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: 0.92rem; font-weight: 500; margin-inline-start: auto; }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; order: 2; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 0.35rem 0.7rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang button.active { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero {
  background: linear-gradient(115deg, rgba(20,35,60,.97) 0%, rgba(29,49,82,.92) 60%, rgba(184,148,90,.6) 100%);
  color: var(--white); padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}
html[dir="rtl"] .hero { background: linear-gradient(245deg, rgba(20,35,60,.97) 0%, rgba(29,49,82,.92) 60%, rgba(184,148,90,.6) 100%); }
.hero-inner > * { max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 1.3rem; }
.hero .lead { font-size: 1.12rem; color: #d6dce6; max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.92rem; color: var(--gold-light); }
.hero-points li::before { content: "✓"; margin-inline-end: 0.45rem; color: var(--gold); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: 4rem; align-items: center; }
.about-text p:not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; }
.values { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.values li { background: var(--cream); padding: 1.4rem; border-radius: var(--radius); border-top: 3px solid var(--gold); color: var(--muted); font-size: 0.93rem; }
.values strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.2rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.card p { color: var(--muted); font-size: 0.94rem; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--gold); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.1rem; }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.member { display: grid; grid-template-columns: 120px 1fr; gap: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.avatar { width: 120px; height: 150px; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: var(--gold-light); display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-size: 2.2rem; font-weight: 600; }
.member .role { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.9rem; }
.member p:not(.role) { color: var(--muted); font-size: 0.95rem; }
.facts { list-style: none; margin-top: 1rem; display: grid; gap: 0.4rem; font-size: 0.88rem; color: var(--ink); }
.facts li { padding-inline-start: 1rem; position: relative; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Contact */
.contact { background: var(--navy); color: #d6dce6; }
.contact h2 { color: var(--white); }
.contact mark.todo { background: rgba(255,243,176,.18); color: #ffe58a; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-list span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); font-weight: 600; }
html[lang="ar"] .contact-list span { letter-spacing: 0; font-size: 0.9rem; }
.contact-form { background: var(--white); color: var(--ink); padding: 2.2rem; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; flex: 1; }
.field-row { display: flex; gap: 1rem; }
label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }
input, select, textarea { font: inherit; padding: 0.75rem 0.9rem; border: 1px solid #d9d3c7; border-radius: 8px; background: #fdfcfa; }
html[dir="rtl"] input[dir="ltr"] { text-align: right; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,148,90,.2); }
.invalid { border-color: #c0392b; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 0.83rem; margin-bottom: 1.3rem; }
.check input { margin-top: 4px; }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer { background: #0e1a2e; color: #9aa6b8; padding: 3.5rem 0 2rem; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-light .brand-text { color: var(--white); }
.footer-note { margin-top: 1rem; max-width: 340px; }
.site-footer mark.todo { background: rgba(255,243,176,.15); color: #ffe58a; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer-links a:hover { color: var(--gold-light); }
.disclaimer { padding-top: 1.6rem; font-size: 0.8rem; display: grid; gap: 0.6rem; }

/* Responsive */
@media (max-width: 960px) {
  .about, .contact-grid, .team { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column;
    gap: 0; padding: 0.5rem 4% 1.2rem; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0; width: 100%; }
  .nav-links .btn { text-align: center; margin-top: 0.5rem; padding: 0.8rem; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .contact-form { padding: 1.5rem; }
  .brand-text { font-size: 1.25rem; }
}

/* Map */
.map { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.15); aspect-ratio: 16 / 10; background: var(--navy-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 0.8rem; color: var(--gold-light); font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--gold); }
.map-link:hover { color: var(--white); }

/* Arabic brand: two lines need more breathing room */
html[lang="ar"] .brand-text { line-height: 1.35; font-size: 1.45rem; }
html[lang="ar"] .brand-text small { margin-top: 0; }
@media (max-width: 560px) { .brand-text small { max-width: 150px; line-height: 1.3; } }

/* SEO layout: keyword H1 sits as the small line above the large display slogan */
.hero h1.eyebrow { font-family: var(--sans); font-size: 0.8rem; color: var(--gold); line-height: 1.5; margin-bottom: 1rem; }
html[lang="ar"] .hero h1.eyebrow { font-size: 1rem; font-weight: 700; }
.display { font-family: var(--serif); color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.2; font-weight: 600; margin-bottom: 1.3rem; }
html[lang="ar"] .display { font-weight: 700; line-height: 1.45; }
.lang a { padding: 0.35rem 0.7rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.lang a.active { background: var(--navy); color: var(--white); }
@media (min-width: 961px) { .cards { grid-template-columns: repeat(3, 1fr); } }
address { font-style: normal; }

/* FAQ */
.narrow { width: min(820px, 92%); }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.8rem; padding: 0 1.4rem; }
summary { cursor: pointer; padding: 1.15rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; color: var(--navy); line-height: 1.5; }
summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1.2rem; color: var(--muted); }

/* Practice area pages */
.card-link { display: block; color: inherit; }
.card-link .more { display: inline-block; margin-top: 0.8rem; color: var(--gold); font-weight: 600; font-size: 0.88rem; }
.hero-page { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-page .display { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.crumbs { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 1.2rem; opacity: .85; }
.crumbs a:hover { color: var(--white); }
.area-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.6rem; margin-top: 1.5rem; }
.checklist li { padding-inline-start: 1.8rem; position: relative; color: var(--ink); }
.checklist li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }
.lawyers-box { background: var(--cream); border-radius: var(--radius); padding: 1.8rem; border-top: 3px solid var(--gold); }
.lawyers-box p, .lawyers-box address { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0 0.6rem; }
.lawyers-box .map-link { color: var(--navy); }
.lawyers-box hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.note-small { font-size: 0.85rem; color: var(--muted); margin-top: 1.4rem; text-align: center; }
.other-areas { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.other-areas a { border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.2rem; font-weight: 500; color: var(--navy); }
.other-areas a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 960px) { .area-grid { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* Lawyer photos */
.avatar-photo { object-fit: cover; object-position: center top; display: block; }

/* Organisation chart */
.org { max-width: 900px; margin: 0 auto; }
.org-row { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.org-box { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.4rem; min-width: 220px; flex: 1 1 220px; max-width: 280px; text-align: center; box-shadow: var(--shadow); }
.org-box b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.org-box span { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }
.org-box.lead { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); }
.org-box.lead b { color: var(--white); }
.org-box.lead span { color: var(--gold-light); }
.org-line { width: 2px; height: 36px; background: var(--gold); margin: 0.6rem auto; }

/* Language picker: buttons on desktop, dropdown on small screens */
.lang-select { display: none; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.6rem; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1200px) { .nav-links { gap: 1.1rem; } .lang a { padding: 0.35rem 0.5rem; } }
@media (max-width: 960px) { .lang { display: none; } .lang-select { display: block; } }
.faq-group { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); margin: 2rem 0 0.9rem; }
.faq-group:first-of-type { margin-top: 0; }

/* Compact mobile layout: two cards per row, less padding */
@media (max-width: 560px) {
  .section { padding: 3rem 0; }
  .values { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .values li { padding: 0.9rem; font-size: 0.82rem; }
  .values strong { font-size: 1.05rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .card { padding: 1rem; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.8rem; }
  .card .icon { width: 36px; height: 36px; font-size: 1.05rem; margin-bottom: 0.6rem; }
  .card-link .more { font-size: 0.78rem; margin-top: 0.4rem; }
  .hero-points { gap: 0.6rem 1rem; font-size: 0.82rem; }
}
.office-sign { display: block; width: 100%; max-width: 420px; border-radius: var(--radius); margin-top: 2rem; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.review-box { margin-top: 1.6rem; padding: 1.2rem 1.4rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); display: grid; gap: .4rem; }
.review-box b { color: var(--white); font-family: var(--serif); font-size: 1.2rem; }
.review-box .btn { justify-self: start; margin-top: .4rem; }

/* Social links */
.social { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; }
.social a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--gold); border-radius: 999px; color: inherit; text-decoration: none; font-weight: 500; }
.social a:hover { background: var(--gold); color: #fff; }
.site-footer .social { margin-top: 0; }
