:root {
  --navy: #0b1c33;
  --navy-deep: #071321;
  --navy-mid: #163154;
  --gold: #c7a35a;
  --gold-bright: #f3d78a;
  --gold-ink: #6a4e10;
  --ivory: #f4efe4;
  --paper: #fbf8f1;
  --ink: #161410;
  --muted: #3a342c;
  --on-dark: #ffffff;
  --on-dark-soft: #fff8ea;
  --line: rgba(199, 163, 90, 0.45);
  --shadow: 0 18px 40px rgba(7, 19, 33, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.8;
  font-size: 18px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Amiri", "Cairo", serif;
  line-height: 1.35;
  margin: 0 0 0.6em;
  color: var(--navy);
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; right: 12px; top: -40px; background: var(--gold); color: var(--navy);
  padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-family: inherit; cursor: pointer; transition: 0.2s ease;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: #ffffff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.eyebrow {
  display: inline-block; color: var(--gold-ink); font-weight: 800; letter-spacing: 0.06em;
  font-size: 0.92rem; margin-bottom: 10px;
}
.hero .eyebrow,
.page-hero .eyebrow,
.why .eyebrow { color: var(--gold-bright); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.hero .lead,
.page-hero .lead { color: var(--on-dark); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.center-cta { text-align: center; margin-top: 36px; }

/* Topbar / Header */
.topbar { background: var(--navy-deep); color: var(--on-dark); font-size: 0.95rem; }
.topbar-inner, .header-inner, .trust-grid, .about-grid, .why-grid, .cta-inner, .footer-grid {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.phone-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.topbar-inner { min-height: 42px; }
.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar-wa { color: var(--gold-bright); font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 28, 51, 0.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); }
.brand-logo {
  width: 58px; height: 58px; object-fit: contain; background: transparent;
  border-radius: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.12rem; color: #fff; }
.brand-text small { color: var(--gold-bright); font-size: 0.82rem; font-weight: 700; }

.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav .menu { display: flex; gap: 4px; align-items: center; }
.primary-nav .menu a {
  display: block; padding: 8px 12px; color: #fff; border-radius: 999px; font-weight: 700;
}
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item a { color: var(--gold-bright); }
.header-cta { margin-inline-start: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px;
}

/* Hero */
.hero { position: relative; min-height: 86vh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-media, .hero-media img, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-shade {
  background:
    linear-gradient(180deg, rgba(7,19,33,.42) 0%, rgba(7,19,33,.68) 42%, rgba(7,19,33,.94) 100%),
    linear-gradient(90deg, rgba(7,19,33,.62), transparent 55%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 70px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 14ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.trust { background: var(--navy); color: var(--on-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
.trust-grid div { padding: 10px 16px; border-inline-end: 1px solid rgba(199,163,90,.25); }
.trust-grid div:last-child { border: 0; }
.trust strong { display: block; color: var(--gold-bright); font-size: 1.2rem; font-family: Amiri, serif; }
.trust span { color: var(--on-dark); }

/* About */
.about-teaser, .about-page, .services, .knowledge, .branches, .content-wrap { padding: 84px 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.about-copy h2, .why h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.check-list { margin: 18px 0 24px; }
.check-list li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}
.about-photos { position: relative; min-height: 460px; }
.photo-main, .photo-side { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-main { width: 78%; }
.photo-main img, .photo-side img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { height: 460px; }
.photo-side {
  position: absolute; width: 46%; height: 250px; inset-inline-end: 0; bottom: -18px;
  border: 6px solid var(--paper);
}

/* Services */
.services { background: linear-gradient(180deg, #fff 0%, var(--ivory) 100%); }
.cards-grid, .posts-grid, .branch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.service-card, .post-card, .branch-card, .aside-card {
  background: #fff; border: 1px solid rgba(11,28,51,.08); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 10px 24px rgba(11,28,51,.05);
}
.service-card { min-height: 230px; transition: 0.2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.service-icon { width: 42px; height: 42px; color: var(--gold); margin-bottom: 12px; }
.service-icon svg { width: 42px; height: 42px; }
.service-card h3 { font-size: 1.15rem; color: var(--navy); }
.service-card p { color: var(--ink); }

.why { background: var(--navy-deep); color: var(--on-dark-soft); padding: 84px 0; }
.why h2, .why h3 { color: #fff; }
.why p { color: var(--on-dark-soft); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.why-list { display: grid; gap: 22px; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.why-list span {
  font-family: Amiri, serif; color: var(--gold-bright); font-size: 1.4rem; line-height: 1;
}

.post-card { padding: 0; overflow: hidden; }
.post-card-media { height: 190px; background: var(--navy); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-fallback {
  background: radial-gradient(circle at 30% 20%, var(--gold), transparent 40%), var(--navy);
}
.post-card-body { padding: 18px 20px 22px; }
.post-card time, .more { color: var(--gold-ink); font-size: 0.9rem; font-weight: 800; }
.post-card h3 { font-size: 1.25rem; color: var(--navy); }
.post-card p { color: var(--ink); }

.branch-card { position: relative; overflow: hidden; }
.branch-num {
  font-family: Amiri, serif; font-size: 2.4rem; color: var(--gold-ink); display: block; line-height: 1;
}
.branch-card a { color: var(--navy); font-weight: 800; }
.branch-card p { color: var(--ink); }
.branch-city { color: var(--gold-ink); font-weight: 800; margin-bottom: 4px; }

.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #1d3b66 100%); color: var(--on-dark); padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #060e18; color: var(--on-dark-soft); }
.footer-goldline { height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr; gap: 28px; padding: 56px 0 36px; }
.footer-logo {
  width: 168px; height: auto; margin-bottom: 14px; background: transparent;
  border-radius: 0; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.site-footer h3 { color: var(--gold-bright); font-size: 1.2rem; }
.site-footer p { color: var(--on-dark-soft); }
.footer-menu a, .footer-list a, .footer-list li { color: #fff; }
.footer-list, .footer-menu { display: grid; gap: 8px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 0.92rem; color: var(--on-dark-soft); }

.whatsapp-float {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.4);
}
.whatsapp-float:hover { transform: scale(1.05); }

/* Inner pages */
.page-hero {
  background:
    linear-gradient(180deg, rgba(7,19,33,.86), rgba(7,19,33,.9)),
    url("../img/lawyer-court.jpg") center/cover;
  color: var(--on-dark); padding: 92px 0 64px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.about-page-grid, .contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.about-aside, .contact-aside { display: grid; gap: 16px; }
.about-aside img { border-radius: var(--radius); height: 240px; width: 100%; object-fit: cover; object-position: top; }
.phone-lg { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid rgba(11,28,51,.16); border-radius: 12px; padding: 12px 14px;
  font: inherit; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.contact-form .btn { width: max-content; justify-self: start; min-width: 180px; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.alert-ok { background: #e8f6ec; color: #165a2a; }
.alert-err { background: #fde8e8; color: #8a1f1f; }
.service-note { margin-top: 48px; max-width: 760px; }
.prose h2 { margin-top: 1.4em; color: var(--navy); }
.prose p, .prose li { color: var(--ink); }
.article-layout { max-width: 820px; padding: 40px 0 80px; }
.article-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.article-hero-img img { width: 100%; max-height: 420px; object-fit: cover; }
.article-cta {
  margin-top: 42px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: var(--on-dark);
}
.article-cta h3, .article-cta p { color: #fff; }
.meta { color: var(--gold-bright); }
.contact-form label { color: var(--navy); }
.aside-card h3 { color: var(--navy); }
.aside-card p { color: var(--ink); }
.section-head p { color: var(--muted); }
.check-list li { color: var(--ink); }
.why .check-list li { color: var(--on-dark-soft); }

/* Mobile */
@media (max-width: 900px) {
  .topbar-msg { display: none; }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--navy-deep); padding: 16px; flex-direction: column; align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; }
  .header-cta { width: 100%; }
  .hero { min-height: 78vh; }
  .trust-grid, .about-grid, .why-grid, .cards-grid, .posts-grid, .branch-grid, .footer-grid, .about-page-grid, .contact-grid, .cta-inner {
    grid-template-columns: 1fr; display: grid;
  }
  .trust-grid div { border: 0; border-bottom: 1px solid rgba(199,163,90,.25); }
  .about-photos { min-height: 0; }
  .photo-main { width: 100%; height: 320px; }
  .photo-side { position: static; width: 70%; height: 180px; margin-top: -40px; margin-inline-start: auto; }
  .hero-content { padding: 70px 0 48px; }
  .about-teaser, .about-page, .services, .knowledge, .branches, .why, .content-wrap { padding: 56px 0; }
}
@media (max-width: 600px) {
  .brand-logo { width: 50px; height: 50px; }
  .whatsapp-float { inset-inline-start: 12px; bottom: 12px; }
}
