/* Sultan Al-Jaloud Law Office — shared stylesheet */

:root {
  --navy: #12233d;
  --navy-dark: #0b1626;
  --gold: #b8923f;
  --gold-light: #d4af6a;
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #1c1f26;
  --ink-soft: #52586a;
  --line: #e4e0d6;
  --whatsapp: #1DA851;
  --success: #1e7d32;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(18, 35, 61, 0.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Cairo", "Noto Sans", system-ui, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}
html[lang="en"] body,
body.lang-en {
  font-family: "Inter", "Noto Sans", system-ui, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.35; margin: 0 0 14px; font-weight: 700; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
  background: rgba(184,146,63,0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18,35,61,0.08);
  transition: transform .18s ease, box-shadow .18s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,35,61,0.16); }
.btn-primary { background: var(--gold); color: #221a08; }
.btn-primary:hover { background: var(--gold-light); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { opacity: .92; }
.btn-outline { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.10); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: rgba(18,35,61,0.06); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--navy-dark); font-size: 17px; flex-shrink: 0;
}
.brand-text { font-weight: 700; font-size: 16px; line-height: 1.3; }
.brand-text small { display: block; font-weight: 400; font-size: 12px; color: rgba(255,255,255,0.65); }

nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  position: relative;
  color: rgba(255,255,255,0.82); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  padding-bottom: 4px;
}
nav.main-nav a::after {
  content: "";
  position: absolute; right: 0; left: 0; bottom: -2px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .25s ease;
}
html[dir="ltr"] nav.main-nav a::after { transform-origin: left; }
nav.main-nav a:hover { color: #fff; }
nav.main-nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.lang-switch {
  color: rgba(255,255,255,0.75); font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 7px 12px;
  white-space: nowrap;
}
.lang-switch:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.nav-toggle {
  display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer;
  padding: 4px 2px; line-height: 1;
}
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 6px 0 14px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 600;
  padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .brand-text small { display: none; }
  .brand-text { font-size: 14.5px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
}
@media (max-width: 560px) {
  .header-cta .btn-primary { display: none; }
}

/* Hero — light, text-forward (per reference sites: minimal background, clarity first) */
.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(184,146,63,0.14) 0%, transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(18,35,61,0.05) 0%, transparent 38%),
    linear-gradient(160deg, var(--cream) 0%, #f2ebdd 100%);
  color: var(--ink);
  padding: 72px 0 60px;
  position: relative;
}

/* Trust badge — small credibility marker near hero headline */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid rgba(184,146,63,0.35);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.trust-badge .badge-icon { color: var(--gold); font-size: 14px; line-height: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero h1 { color: var(--navy); }
.hero p.lead { color: var(--ink-soft); font-size: 18px; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 8px; color: var(--navy);
  font-size: 13.5px; font-weight: 700;
  background: var(--paper); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero-photo {
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.rule-gold { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 18px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
}

/* Sections */
section { padding: 66px 0; }
section.alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards / services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18,35,61,0.14);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(184,146,63,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card p { margin-bottom: 0; }

.case-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px;
  padding: 16px 18px; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.case-list li:has(a):hover { border-color: var(--gold); background: rgba(184,146,63,0.05); cursor: pointer; }
.case-list li a { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; flex: 1; }
.case-list li a::after { content: "\1F4AC"; font-size: 13px; opacity: .6; margin-inline-start: auto; flex-shrink: 0; }
.case-list li::before {
  content: "\2713"; color: var(--gold); font-weight: 800; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(184,146,63,0.14);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* Why-choose */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid .icon {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(184,146,63,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px;
}

/* Testimonials */
.testimonial {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18,35,61,0.14);
}
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: 15px; }
.testimonial footer { margin-top: 16px; font-weight: 700; color: var(--ink); font-size: 14.5px; }

/* About split */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Credential card — informative, not decorative (replaces stock imagery) */
.credential-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.credential-card .brand-mark { width: 46px; height: 46px; font-size: 19px; margin-bottom: 20px; }
.credential-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.credential-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink); font-weight: 600;
}
.credential-list li:last-child { border-bottom: none; padding-bottom: 0; }
.credential-list li .tick {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(184,146,63,0.14); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 2px;
}

/* Contact form */
.contact-section { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: 8px; background: rgba(184,146,63,0.18); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px;
}
.contact-info-item h3 { color: #fff; font-size: 15.5px; margin-bottom: 4px; }
.contact-info-item p { color: rgba(255,255,255,0.72); margin: 0; font-size: 14.5px; }

.form-card {
  background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.form-card h3 { color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--cream);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

.tel-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(184,146,63,0.4);
  text-underline-offset: 3px;
}
.tel-link:hover { text-decoration-color: var(--gold); }
.contact-info-item .tel-link { color: var(--gold-light); text-decoration-color: rgba(212,175,106,0.45); }
.contact-info-item .tel-link:hover { text-decoration-color: var(--gold-light); }

/* Map / office */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.6); padding: 36px 0; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-inner a { color: rgba(255,255,255,0.75); }
.footer-inner a:hover { color: #fff; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(29,168,81,0.45);
  font-size: 28px;
  animation: wa-pulse 2.4s infinite;
}
html[dir="rtl"] .wa-float { left: 22px; }
html[dir="ltr"] .wa-float { right: 22px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(29,168,81,0.55), 0 10px 26px rgba(29,168,81,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(29,168,81,0), 0 10px 26px rgba(29,168,81,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(29,168,81,0), 0 10px 26px rgba(29,168,81,0.45); }
}

/* Geometric pattern panel (replaces stock/office photos) */
.pattern-panel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3.2;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.pattern-panel svg { width: 78%; height: 78%; opacity: 0.9; }
.pattern-panel .panel-label {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 700;
  text-align: center; letter-spacing: .03em;
}

/* Map embed (office location page) */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.faq-item summary {
  padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--gold); font-size: 20px; font-weight: 800; flex-shrink: 0;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-soft); margin: 0; }

/* Mobile sticky call bar */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}
.mobile-bar-inner { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; color: #fff; font-weight: 700; font-size: 14.5px;
}
.mobile-bar a:first-child { border-right: 1px solid rgba(255,255,255,0.12); }
html[dir="ltr"] .mobile-bar a:first-child { border-right: none; border-left: 1px solid rgba(255,255,255,0.12); }
.mobile-bar a.wa { background: var(--whatsapp); }
.mobile-bar { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 640px) {
  .mobile-bar { display: block; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .wa-float { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 13.5px; color: var(--ink-soft); }
