/* ============================================================
   Ahmed Essa Al-Sulaiti Law Firm — Design System
   Palette: deep navy / antique gold / ivory
   Type: Cormorant Garamond (display) + Inter (body)
   ============================================================ */

:root {
  --navy-900: #081A2E;
  --navy-800: #0C2340;
  --navy-700: #12304F;
  --navy-600: #1B3E63;
  --gold-500: #B9924C;
  --gold-400: #C9A45C;
  --gold-300: #DCBE83;
  --ivory: #F7F4EE;
  --ivory-2: #EFEAE0;
  --white: #FFFFFF;
  --ink: #1E2A38;
  --ink-soft: #45566B;
  --line: #DDD5C7;
  --line-navy: rgba(255, 255, 255, 0.14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Lato", -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(8, 26, 46, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.18;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: block;
  margin-bottom: 1.1rem;
}
.lead { font-size: 1.16rem; color: var(--ink-soft); line-height: 1.8; }
.gold-rule {
  width: 56px; height: 2px; background: var(--gold-500);
  border: 0; margin: 1.4rem 0;
}

/* ---------- draft ribbon ---------- */
.draft-bar {
  background: var(--gold-500); color: var(--navy-900);
  text-align: center; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 28px; max-width: var(--maxw); margin: 0 auto;
}
.wordmark { display: flex; align-items: center; gap: 12px; line-height: 1.2; flex-shrink: 0; }
.wordmark .logo-emblem { height: 98px; width: auto; display: block; }
.wordmark .wm-text { display: flex; flex-direction: column; }
.wordmark .wm-name {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: var(--navy-800); letter-spacing: 0.02em; white-space: nowrap;
}
.wordmark .wm-sub {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold-500);
}
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a {
  font-size: 0.8rem; font-weight: 500; color: var(--ink);
  padding: 6px 0; position: relative; white-space: nowrap;
}
.header-inner { gap: 18px; }
@media (max-width: 1240px) and (min-width: 761px) {
  .wordmark .wm-text { display: none; }
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold-500);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--navy-800); }

.lang-switch { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch button, .lang-switch a {
  border: 0; background: transparent; font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600; padding: 6px 10px;
  cursor: pointer; color: var(--ink-soft); letter-spacing: 0.05em; display: inline-block;
}
.lang-switch button, .lang-switch a { white-space: nowrap; }
.lang-switch button.on, .lang-switch a.on { background: var(--navy-800); color: var(--white); }
.lang-switch button:not(.on):hover, .lang-switch a:not(.on):hover { background: var(--ivory-2); }
.lang-switch-mobile { display: none; }

/* ---------- language font stacks ---------- */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .display, html[lang="ar"] .wm-name, html[lang="ar"] .footer-wordmark,
html[lang="ar"] .slide-title, html[lang="ar"] .card-num, html[lang="ar"] .stat b {
  font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[lang="zh"] body, html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3,
html[lang="zh"] .display, html[lang="zh"] .wm-name, html[lang="zh"] .footer-wordmark,
html[lang="zh"] .slide-title {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.5; }
html[lang="ar"] .kicker, html[lang="ar"] .pub-tag, html[lang="ar"] .badge { letter-spacing: 0; }
html[lang="zh"] .kicker, html[lang="zh"] .pub-tag { letter-spacing: 0.14em; }

/* ---------- RTL overrides ---------- */
[dir="rtl"] .main-nav a::after { left: auto; right: 0; }
[dir="rtl"] .slide-bg::after {
  background: linear-gradient(-100deg, rgba(8, 26, 46, 0.94) 38%, rgba(8, 26, 46, 0.62) 75%, rgba(8, 26, 46, 0.42));
}
[dir="rtl"] .profile-toc li { border-left: 0; border-right: 2px solid var(--line); }
[dir="rtl"] .profile-toc a { margin-left: 0; margin-right: -2px; border-left: 0; border-right: 2px solid transparent; }
[dir="rtl"] .profile-toc a:hover, [dir="rtl"] .profile-toc a.on { border-left-color: transparent; border-right-color: var(--gold-500); }
[dir="rtl"] .profile-section ul li { padding: 0.35rem 1.6rem 0.35rem 0; }
[dir="rtl"] .profile-section ul li::before { left: auto; right: 0; }
[dir="rtl"] .kv-list li { padding: 0.45rem 1.8rem 0.45rem 0; }
[dir="rtl"] .kv-list li::before { left: auto; right: 0; }
[dir="rtl"] .toast { border-left: 0; border-right: 3px solid var(--gold-500); }
[dir="rtl"] .stat b, [dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }

.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: 0.3s; }

/* ---------- hero slider ---------- */
.hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.hero-slides { position: relative; min-height: 570px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
  display: flex; align-items: center;
}
.slide.on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; overflow: hidden; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 26, 46, 0.94) 38%, rgba(8, 26, 46, 0.62) 75%, rgba(8, 26, 46, 0.42));
}
.slide-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 84px 28px 96px; width: 100%; }
.slide .pub-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-300); border: 1px solid rgba(201, 164, 92, 0.5);
  padding: 6px 14px; margin-bottom: 1.6rem;
}
.slide h1, .slide .slide-title {
  font-family: var(--serif); font-weight: 500; color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.14; max-width: 780px;
}
.slide .slide-sub { margin-top: 1.3rem; max-width: 620px; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }
.slide .slide-cta { margin-top: 2.2rem; display: inline-flex; align-items: center; gap: 10px; }

.hero-nav {
  position: absolute; z-index: 5; bottom: 24px; left: 0; right: 0;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 28px; height: 3px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.3); transition: 0.3s;
}
.hero-dots button.on { background: var(--gold-400); }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
  width: 44px; height: 44px; border: 1px solid var(--line-navy);
  background: transparent; color: var(--white); font-size: 1.1rem;
  cursor: pointer; transition: 0.25s;
}
.hero-arrows button:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }

/* decorative arch pattern for slides without photos */
.arch-pattern {
  position: absolute; inset: 0; opacity: 0.16;
  background-image: radial-gradient(circle at 50% 0, transparent 58%, rgba(201, 164, 92, 0.55) 59%, rgba(201, 164, 92, 0.55) 60.5%, transparent 61.5%);
  background-size: 220px 300px;
  background-position: bottom;
}
.slide-bg.tint-a { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.slide-bg.tint-b { background: linear-gradient(160deg, #0E2C44, #071523); }
.slide-bg.tint-c { background: linear-gradient(160deg, #14344F, #0A1E33); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 32px; border: 1px solid transparent;
  cursor: pointer; transition: 0.25s; border-radius: var(--radius);
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-600); }
.text-link {
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-500);
  display: inline-flex; align-items: center; gap: 8px;
}
.text-link:hover { color: var(--navy-800); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy-800); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lead { color: rgba(255, 255, 255, 0.8); }

.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* cards */
.card {
  background: var(--white); border: 1px solid var(--line);
  padding: 42px 36px; transition: 0.3s; position: relative;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card h3 { margin-bottom: 0.8rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .text-link { margin-top: 1.4rem; }
.card-num {
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold-300);
  line-height: 1; margin-bottom: 1.2rem; display: block;
}

/* practice grid */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.practice-cell { background: var(--white); padding: 38px 32px; transition: 0.3s; display: block; }
.practice-cell:hover { background: var(--navy-800); }
.practice-cell:hover h3, .practice-cell:hover .p-more { color: var(--white); }
.practice-cell:hover p { color: rgba(255, 255, 255, 0.72); }
.practice-cell h3 { font-size: 1.22rem; margin-bottom: 0.6rem; transition: 0.3s; }
.practice-cell p { font-size: 0.88rem; color: var(--ink-soft); transition: 0.3s; }
.practice-cell .p-more { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-500); margin-top: 1.1rem; display: inline-block; transition: 0.3s; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.member-card { background: var(--white); border: 1px solid var(--line); transition: 0.3s; display: block; }
.member-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.member-photo { aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--ivory-2); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.member-placeholder span { font-family: var(--serif); font-size: 3.4rem; color: var(--gold-300); letter-spacing: 0.08em; }
.member-meta { padding: 26px 26px 30px; }
.member-meta h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.member-meta .role { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-500); }

/* profile page (Foley Hoag style) */
.profile-hero { background: var(--navy-800); color: var(--white); padding: 90px 0 70px; }
.profile-hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; }
.profile-photo { border: 1px solid var(--line-navy); }
.profile-photo img { width: 100%; }
.profile-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.profile-hero .role { color: var(--gold-300); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.6rem 0 1.4rem; }
.profile-contacts { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 1rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.profile-contacts a:hover { color: var(--gold-300); }
.profile-contacts .c-label {
  font-weight: 600; color: var(--gold-300); margin-right: 12px; letter-spacing: 0.06em;
}
[dir="rtl"] .profile-contacts .c-label { margin-right: 0; margin-left: 12px; }
.profile-actions { display: flex; gap: 12px; margin-top: 1.8rem; flex-wrap: wrap; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-navy); color: var(--white);
  font-size: 0.78rem; font-weight: 500; padding: 9px 16px;
  cursor: pointer; background: transparent; transition: 0.25s;
}
.icon-btn:hover { border-color: var(--gold-400); color: var(--gold-300); }

.profile-body { display: grid; grid-template-columns: 240px 1fr; gap: 70px; padding: 80px 28px; }
.profile-toc { position: sticky; top: 110px; align-self: start; }
.profile-toc li { border-left: 2px solid var(--line); }
.profile-toc a {
  display: block; padding: 9px 18px; font-size: 0.88rem;
  color: var(--ink-soft); transition: 0.2s; margin-left: -2px;
  border-left: 2px solid transparent;
}
.profile-toc a:hover, .profile-toc a.on { color: var(--navy-800); border-left-color: var(--gold-500); }
.profile-section { margin-bottom: 3.4rem; scroll-margin-top: 120px; }
.profile-section h2 { font-size: 1.7rem; margin-bottom: 1.2rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.profile-section p { margin-bottom: 1rem; color: var(--ink-soft); }
.profile-section ul { margin: 0.6rem 0 1rem; }
.profile-section ul li { padding: 0.35rem 0 0.35rem 1.6rem; position: relative; color: var(--ink-soft); }
.profile-section ul li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1.5px; background: var(--gold-500); }

/* ---------- key services list ---------- */
.kv-list { columns: 1; }
.kv-list li { padding: 0.45rem 0 0.45rem 1.8rem; position: relative; color: var(--ink-soft); font-size: 0.95rem; }
.kv-list li::before { content: ""; position: absolute; left: 0; top: 1em; width: 10px; height: 1.5px; background: var(--gold-500); }

/* practice areas page: alternating detail blocks */
.pa-block { padding: 22px 0 26px; scroll-margin-top: 110px; }
.section:has(.group-label) { padding: 52px 0; }
.wrap > .group-label:first-child { margin-top: 0; }
.pa-block .two-col { gap: 60px; }
.pa-index { position: sticky; top: 110px; align-self: start; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: left; }
.stat b { font-family: var(--serif); font-size: 3rem; font-weight: 500; color: var(--gold-400); display: block; line-height: 1.1; }
.stat span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-900)); color: var(--white); padding: 84px 0; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); max-width: 640px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.info-panel { background: var(--white); border: 1px solid var(--line); padding: 44px 38px; }
.info-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--ivory-2); }
.info-item:last-child { border-bottom: 0; }
.info-icon {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: var(--ivory); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.info-item h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 0.3rem; }
.info-item p, .info-item a { font-size: 0.93rem; color: var(--ink-soft); }
.info-item a:hover { color: var(--gold-500); }

.booking-panel { background: var(--white); border: 1px solid var(--line); padding: 44px 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--sans); font-size: 0.92rem;
  color: var(--ink); background: var(--white); transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(185, 146, 76, 0.15); }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-soft); margin: 18px 0; }
.booking-panel button[type="submit"] { display: block; width: auto; min-width: 280px; margin: 10px auto 0; }
.qr-row { display: flex; gap: 26px; margin-top: 26px; }
.qr-box { text-align: center; }
.qr-box img { width: 128px; border: 1px solid var(--line); padding: 8px; background: var(--white); }
.qr-box span { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); display: block; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); padding: 74px 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 54px; }
.site-footer h4 { font-family: var(--sans); color: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer li { padding: 4px 0; }
.footer-logo { width: 190px; height: auto; margin-bottom: 1.4rem; display: block; }
.footer-wordmark { font-family: var(--serif); font-size: 1.5rem; color: var(--white); line-height: 1.25; }
.footer-wordmark small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-400); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- practice groups + specialism ---------- */
.group-label {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--navy-800);
  margin: 3.2rem 0 1.4rem;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.featured-card {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: var(--white); padding: 52px 48px; position: relative;
  border: 1px solid var(--gold-500); display: block; margin-bottom: 2rem;
}
.featured-card h3, .featured-card h2 { color: var(--white); }
.featured-card p { color: rgba(255, 255, 255, 0.82); }
.featured-card:hover { box-shadow: var(--shadow); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-500); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 7px 16px; margin-bottom: 1.4rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.tag {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 13px; border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 2px;
}
.featured-card .tag, .section-navy .tag { border-color: rgba(201, 164, 92, 0.45); color: var(--gold-300); }
.practice-cell .tags { margin-top: 1rem; }
.practice-cell:hover .tag { border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.8); }

/* photo band section */
.photo-band { position: relative; overflow: hidden; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(8, 26, 46, 0.88); z-index: 1; }
.photo-band > .wrap { position: relative; z-index: 2; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy-800); color: var(--white); padding: 13px 26px;
  font-size: 0.86rem; border-left: 3px solid var(--gold-500);
  opacity: 0; pointer-events: none; transition: 0.35s; z-index: 500;
  box-shadow: var(--shadow); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--navy-800); color: var(--white); padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(8, 26, 46, 0.87); z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero + .section, .page-hero + section { padding-top: 56px; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255, 255, 255, 0.8); max-width: 720px; margin-top: 1.2rem; }
.breadcrumb { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 1.6rem; }
.breadcrumb a:hover { color: var(--gold-300); }

/* ---------- print: team profile PDFs ---------- */
@media print {
  @page { margin: 10mm; }
  .site-header, .site-footer, .cta-band, .profile-toc, .profile-actions,
  .nav-toggle, .lang-switch, .breadcrumb, .toast { display: none !important; }
  body { font-size: 11.5px; background: var(--white); }
  .reveal { opacity: 1 !important; transform: none !important; }
  .profile-hero {
    background: var(--navy-800) !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    padding: 22px 0; color: var(--white) !important;
  }
  .profile-hero h1 { color: var(--white) !important; font-size: 1.7rem; }
  .profile-hero .role { color: var(--gold-300) !important; margin: 0.3rem 0 0.6rem; }
  .profile-contacts { color: rgba(255, 255, 255, 0.9) !important; font-size: 0.82rem; }
  .profile-hero-grid { grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
  .profile-photo { max-width: 120px; border: 0; }
  .profile-body { display: block; padding: 18px 0; }
  .profile-section { margin-bottom: 1.1rem; scroll-margin-top: 0; }
  .profile-section h2 {
    font-size: 1.05rem; margin-bottom: 0.5rem; padding-bottom: 0.3rem;
    color: var(--navy-800) !important; border-bottom: 1.5px solid var(--gold-500);
    break-after: avoid;
  }
  .profile-section h3 { font-size: 0.92rem; break-after: avoid; }
  .profile-section p, .profile-section ul li { font-size: 0.78rem; line-height: 1.45; margin-bottom: 0.4rem; padding-top: 0.1rem; padding-bottom: 0.1rem; }
  .profile-section ul li::before { background: var(--gold-500) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { padding: 0 6px; max-width: none; }
  a { text-decoration: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1560px) and (min-width: 761px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 0.76rem; }
}
@media (max-width: 1020px) {
  .three-col, .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid, .profile-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .profile-body { grid-template-columns: 1fr; gap: 30px; }
  .profile-toc { position: static; display: block; padding: 2px 0; }
  .profile-toc li { border-left: 2px solid var(--line); }
  .profile-toc a {
    display: block; border: 0; border-left: 2px solid transparent;
    margin-left: -2px; padding: 7px 16px; font-size: 0.92rem;
  }
  .profile-toc a:hover, .profile-toc a.on { border-left-color: var(--gold-500); color: var(--navy-800); }
  [dir="rtl"] .profile-toc li { border-left: 0; border-right: 2px solid var(--line); }
  [dir="rtl"] .profile-toc a { margin-left: 0; margin-right: -2px; border-left: 0; border-right: 2px solid transparent; padding: 7px 16px; }
  [dir="rtl"] .profile-toc a:hover, [dir="rtl"] .profile-toc a.on { border-right-color: var(--gold-500); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-hero-grid { grid-template-columns: 240px 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 0; top: 0; background: var(--navy-900);
    flex-direction: column; justify-content: center; gap: 26px;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 300;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { color: var(--white); font-size: 1.15rem; }
  .main-nav a.active { color: var(--gold-300); }
  .nav-toggle { display: block; position: relative; z-index: 400; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }
  .lang-switch { display: none; }
  .main-nav .lang-switch-mobile {
    display: flex; margin-top: 18px;
    border-color: rgba(255, 255, 255, 0.35);
  }
  .main-nav .lang-switch-mobile a {
    color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; padding: 10px 16px;
  }
  .main-nav .lang-switch-mobile a.on { background: var(--gold-500); color: var(--navy-900); }
  .hero-slides { min-height: 500px; }
  .slide-inner { padding: 70px 28px 104px; }
  .slide-cta .btn { padding: 12px 18px; font-size: 0.74rem; letter-spacing: 0.08em; white-space: nowrap; }
  .hero-dots { flex-wrap: wrap; gap: 6px; max-width: 62vw; }
  .hero-dots button { width: 13px; height: 3px; }
  .hero-arrows button { width: 38px; height: 38px; }
  .practice-grid, .three-col, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .three-col[style], .two-col[style] { grid-template-columns: 1fr !important; }
  .card { min-width: 0; }
  .section { padding: 64px 0; }
  .profile-hero-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
