/* ==========================================================================
   Bezen & Partners — modern theme
   Palette: light-gray focused, clean editorial typography
   ========================================================================== */

:root {
  --navy-900: #3d434b;
  --navy-800: #4d545d;
  --navy-700: #616973;
  --navy-600: #7b848f;
  --gold: #c4cad1;
  --gold-dark: #8b949e;
  --brand: #9f1746;
  --brand-dark: #7f1237;
  --ink: #252a31;
  --muted: #6f7782;
  --line: #d9dee4;
  --bg: #f8f9fb;
  --bg-soft: #f2f4f7;
  --bg-softer: #ebeff4;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(61, 67, 75, 0.08);
  --shadow: 0 12px 32px rgba(61, 67, 75, 0.10);
  --shadow-lg: 0 24px 60px rgba(61, 67, 75, 0.16);
  --maxw: 1180px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body[data-theme='slate'] {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --gold: #cdd9ee;
  --gold-dark: #667ea8;
}

body[data-theme='emerald'] {
  --brand: #0f766e;
  --brand-dark: #0b5d57;
  --gold: #c8dfd8;
  --gold-dark: #477f77;
}

body[data-theme='graphite'] {
  --brand: #334155;
  --brand-dark: #1f2937;
  --gold: #d2d6dc;
  --gold-dark: #6b7280;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--navy-900); line-height: 1.2; font-weight: 600; }

a { color: var(--navy-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--sans);
  margin: 0 0 .8rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  letter-spacing: .03em;
  padding: .8rem 1.6rem; border-radius: 50px; border: none; cursor: pointer;
  box-shadow: 0 8px 18px rgba(37,42,49,.16);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(37,42,49,.22); }
.btn-outline {
  background: transparent; color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost-light:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bg-soft); color: var(--muted);
  font-size: .82rem; font-family: var(--sans);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar a { color: var(--ink); }
.topbar a:hover { color: var(--navy-700); }
.topbar .langs { display: flex; gap: 1rem; align-items: center; }
.topbar .langs .sep { opacity: .4; }
.topbar .langs a.active { color: var(--navy-700); font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,249,251,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: 1360px; }
.brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; margin-right: 1.5rem; }
.brand-logo { display: block; max-height: 52px; max-width: 220px; width: auto; }
.brand .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy-900); letter-spacing: .01em; white-space: nowrap; }
.brand .name b { color: var(--gold-dark); font-weight: 600; }
.brand .sub { font-family: var(--sans); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.main-nav { display: flex; align-items: center; gap: .95rem; font-family: var(--sans); }
.main-nav > a, .nav-item > a {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy-800); padding: 8px 0; position: relative; display: inline-block; white-space: nowrap;
}
.main-nav > a.btn,
.main-nav > a.btn:hover { color: #fff; }
.main-nav > a:not(.btn):hover, .nav-item > a:hover, .main-nav a:not(.btn).active { color: var(--gold-dark); }
.main-nav a:not(.btn).active::after, .main-nav > a:not(.btn):hover::after, .nav-item:hover > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.nav-item { position: relative; }
.nav-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: transparent; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; min-width: 260px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transition: all .2s ease; border: 1px solid var(--line);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: .55rem .8rem; font-size: .82rem; text-transform: none; letter-spacing: 0; border-radius: 6px; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); color: var(--gold-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; position: relative; z-index: 101; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: transform .3s ease, opacity .2s ease; transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(78vh, 660px); overflow: hidden; background: var(--navy-900); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(248,249,251,.93) 0%, rgba(242,244,247,.82) 45%, rgba(235,239,244,.65) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; color: var(--ink); }
.hero-content .eyebrow { color: var(--navy-700); }
.hero-content h1 { color: var(--ink); font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0 0 1.2rem; }
.hero-content p { font-size: 1.12rem; color: var(--muted); margin: 0 0 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; z-index: 3; }
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,42,49,.28);
  background: rgba(255,255,255,.84);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(37,42,49,.16);
  transition: all .25s ease;
}
.hero-dots button:hover {
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}
.hero-dots button.active {
  width: 28px;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37,42,49,.24);
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 1rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--bg-softer); color: var(--ink); }
.bg-navy h2, .bg-navy h3 { color: var(--navy-900); }

/* Intro band */
.intro-band { text-align: center; }
.intro-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 900px; margin: 0 auto 1rem; }
.intro-band p { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Centered flexible card layout — keeps incomplete final rows balanced
   (e.g. 13 practice areas, or 2 latest news items) instead of left-orphaned. */
.cards-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.cards-center > * { flex: 1 1 300px; min-width: 0; max-width: 352px; margin: 0; }
@media (max-width: 760px) { .cards-center > * { max-width: none; flex-basis: 100%; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden; height: 100%;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-softer); color: var(--navy-600); margin-bottom: 1.2rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin: 0 0 .6rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.card .more { font-family: var(--sans); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark); display: inline-flex; align-items: center; gap: .35rem; }
.card .more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }

/* Philosophy list */
.philo-item { display: flex; gap: 1.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.philo-item:last-child { border-bottom: none; }
.philo-num { font-family: var(--serif); font-size: 2rem; color: var(--gold); min-width: 60px; }
.philo-item h3 { margin: 0 0 .4rem; }
.philo-item p { margin: 0; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.stat .label { font-size: .85rem; color: var(--muted); margin-top: .5rem; letter-spacing: .04em; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--bg-soft), var(--bg-softer));
  color: var(--ink); padding: 96px 0 76px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(139,148,158,.2), transparent 70%);
}
.page-hero .eyebrow { color: var(--navy-700); }
.page-hero h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .8rem; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0; }
.breadcrumb { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy-700); }

/* ---------- Prose ---------- */
.prose { font-size: 1.05rem; color: #33414f; max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; color: var(--navy-700); }
.prose p { margin: 0 0 .7rem; line-height: 1.55; }
.prose p:empty { display: none; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--gold-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.layout-2col { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 100px; }
.sidebar h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); margin: 0 0 1rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: .5rem; }
.sidebar-nav a { padding: .6rem .8rem; border-radius: 6px; font-size: .9rem; color: var(--ink); font-family: var(--sans); }
.sidebar-nav a:hover { background: #fff; color: var(--gold-dark); }
.sidebar-nav a.active { background: var(--brand); color: #fff; }

.practice-hero .breadcrumb,
.practice-hero .breadcrumb a,
.practice-hero .eyebrow,
.practice-hero h1,
.practice-hero p { color: var(--ink); }

.practice-cta {
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.practice-cta h4 { color: var(--ink); margin: 0 0 .3rem; }
.practice-cta p { font-size: .9rem; margin: .4rem 0 1rem; color: var(--muted); }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.person .photo { aspect-ratio: 4/5; background: linear-gradient(135deg, #c9d0d8, #b8c0c9); display: grid; place-items: center; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person .photo .initials { font-family: var(--serif); font-size: 2.6rem; color: rgba(255,255,255,.85); }
.person .info { padding: 1.4rem; }
.person .info h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.person .info .role { color: var(--gold-dark); font-family: var(--sans); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
/* ---------- Rankings ---------- */
.ranking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ranking {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.6rem 1.8rem;
}
.ranking-logo {
  height: 92px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 1rem; padding: 1rem;
}
.ranking-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ranking h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--gold-dark); margin: 0 0 .5rem; }
.ranking p { margin: 0; color: #33414f; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); position: relative; break-inside: avoid; margin-bottom: 26px;
}
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 4rem; color: var(--gold); opacity: .35; position: absolute; top: 6px; left: 18px; line-height: 1; }
.quote p { font-size: 1.02rem; color: #33414f; font-style: italic; margin: 1rem 0 1.2rem; position: relative; }
.quote .src { font-family: var(--sans); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy-700); }
.masonry { columns: 2; column-gap: 26px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .thumb { flex: 0 0 auto; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #d1d7de, #bec6d0); }
.news-card .thumb img { display: block; width: 100%; height: 100%; min-width: 100%; min-height: 100%; object-fit: contain; object-position: center; }
.news-card .body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 1.6rem; }
.news-card .date { font-family: var(--sans); font-size: .78rem; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.news-card h3 { margin: .5rem 0 .6rem; font-size: 1.15rem; overflow-wrap: anywhere; word-break: break-word; }
.news-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .93rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}
.news-card .more { display: block; margin-top: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info .row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info .row .ic { color: var(--gold-dark); flex-shrink: 0; }
.contact-info .label { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-info .val { color: var(--ink); }
.contact-map {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.contact-map iframe { display: block; width: 100%; min-height: 430px; border: 0; }
.contact-map-actions {
  display: flex; justify-content: flex-end; padding: 1rem 1.2rem;
  background: linear-gradient(180deg, #fff, var(--bg-soft)); border-top: 1px solid var(--line);
}
form.styled { display: grid; gap: 1.1rem; }
form.styled .field { display: flex; flex-direction: column; gap: .4rem; }
form.styled label { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--navy-800); }
form.styled input, form.styled textarea, form.styled select {
  font-family: var(--sans); font-size: .95rem; padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
form.styled input:focus, form.styled textarea:focus, form.styled select:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(97,105,115,.15);
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-family: var(--sans); font-size: .92rem; }
.alert-success { background: #e8f6ee; color: #1d7a46; border: 1px solid #b9e3c9; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f3c2be; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(120deg, var(--bg-soft), var(--bg-softer)); color: var(--ink); text-align: center; }
.cta h2 { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 1rem; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 2rem; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-softer); color: var(--muted); padding: 68px 0 0; font-family: var(--sans); font-size: .9rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand .name { color: var(--ink); }
.site-footer h4 { font-family: var(--sans); color: var(--ink); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin: 0 0 1.2rem; }
.site-footer h4 a { color: inherit; }
.site-footer h4 a:hover { color: var(--navy-700); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy-700); }
.footer-about p { margin: 1rem 0 0; max-width: 300px; line-height: 1.7; }
.newsletter input { width: 100%; padding: .7rem .9rem; border-radius: 50px 0 0 50px; border: none; font-family: var(--sans); }
.newsletter { display: flex; margin-top: 1rem; }
.newsletter button { border: none; background: var(--brand); color: #fff; padding: 0 1.2rem; border-radius: 0 50px 50px 0; font-weight: 700; cursor: pointer; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--muted); }

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

/* ---------- Responsive ---------- */
/* Progressively tighten the horizontal nav so all locales stay on one line down to ~760px */
@media (max-width: 1300px) {
  .main-nav { gap: .75rem; }
  .main-nav > a, .nav-item > a { font-size: .73rem; letter-spacing: .02em; }
}
@media (max-width: 1080px) {
  .main-nav { gap: .5rem; }
  .main-nav > a, .nav-item > a { font-size: .66rem; letter-spacing: 0; }
  .brand .name { font-size: 1.3rem; }
  .brand .sub { letter-spacing: .24em; }
}
@media (max-width: 900px) {
  .main-nav { gap: .45rem; }
  .main-nav > a, .nav-item > a { font-size: .63rem; }
  .brand .name { font-size: 1.2rem; }
}
@media (max-width: 980px) {
  .grid-3, .grid-4, .people-grid, .news-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .ranking-grid, .masonry, .contact-grid, .layout-2col, .footer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle.active { z-index: 102; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    padding: 0; box-shadow: var(--shadow); border-bottom: 1px solid var(--line);
    z-index: 100; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .main-nav.open > a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); color: var(--navy-800); font-size: .85rem; }
  .main-nav.open > a:hover { background: var(--bg-soft); }
  .main-nav.open > a.btn {
    margin: .65rem 1rem;
    border-radius: 999px;
    border-bottom: none;
    text-align: center;
    color: #fff;
    background: var(--brand);
  }
  .main-nav.open > a.btn:hover { background: var(--brand-dark); }
  .main-nav.open .nav-item { width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav.open .nav-item > a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 3rem 1rem 1.5rem; position: relative; min-height: 44px; font-size: .85rem; color: var(--navy-800); }
  .main-nav.open .nav-item > a::after {
    content: ""; position: absolute; right: 1.5rem; top: 50%; left: auto; bottom: auto;
    width: 14px; height: 14px; border: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6875' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: translateY(-50%); transition: transform .25s ease; pointer-events: none;
  }
  .main-nav.open .nav-item.open > a { color: var(--gold-dark); }
  .main-nav.open .nav-item.open > a::after {
    transform: translateY(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9863f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  }
  .main-nav.open .dropdown { position: static; transform: none; opacity: 0; visibility: hidden; max-height: 0; overflow: hidden; transition: all .25s ease; box-shadow: none; border: none; padding: 0; min-width: 0; background: #f0f3f8; }
  .main-nav.open .nav-item.open .dropdown { opacity: 1; visibility: visible; max-height: 2000px; overflow: visible; padding: 0.25rem 0; }
  .main-nav.open .dropdown a { padding: 1rem 1.5rem 1rem 2.5rem; font-size: .8rem; border-radius: 0; display: flex; align-items: center; min-height: 44px; }
  .main-nav.open .dropdown a:hover { background: var(--line); }
  .grid-2, .grid-3, .grid-4, .people-grid, .news-grid, .stats, .two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .topbar .contact-quick { display: none; }
}
