/* ============================================================
   Metcalfe Beukes Attorneys — Site Stylesheet
   ============================================================ */
:root {
  --ink: #15181d;
  --ink-2: #1e232b;
  --ink-3: #2a313b;
  --burgundy: #8c1010;
  --burgundy-d: #6d0c0c;
  --gold: #b9974e;
  --gold-l: #d3b97c;
  --paper: #f7f5f1;
  --white: #ffffff;
  --grey: #5d6470;
  --line: rgba(21, 24, 29, .12);
  --line-light: rgba(255, 255, 255, .14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(21, 24, 29, .12);
  --radius: 4px;
  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
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; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 22px; }
.lead { color: var(--grey); max-width: 720px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.75); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: var(--gold-l); }
.topbar .motto { color: var(--gold-l); font-style: italic; font-family: var(--serif); letter-spacing: .02em; }
.topbar svg { width: 13px; height: 13px; fill: var(--gold); flex: none; }
.topbar-contacts { display: flex; gap: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(21,24,29,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-logo { height: 58px; width: auto; display: block; }
.site-footer .brand-logo { height: 70px; }
.brand-mark {
  width: 50px; height: 50px; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .02em;
}
.brand-name { line-height: 1.2; }
.brand-name strong { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .04em; color: var(--ink); }
.brand-name span { font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 32px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); transition: color .2s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--burgundy); }
.main-nav .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }

/* dropdowns */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 280px; background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .25s ease;
  padding: 10px 0;
}
li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 11px 24px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  border-left: 2px solid transparent;
  transition: all .2s;
}
.dropdown a:hover { color: var(--burgundy); border-left-color: var(--gold); background: var(--paper); padding-left: 28px; }

/* mega menu */
.mega { left: 50%; transform: translate(-50%, 12px); width: 760px; display: flex; padding: 28px 10px; }
li:hover > .mega { transform: translate(-50%, 0); }
.mega-col { flex: 1; padding: 0 22px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-col > a.mega-head {
  font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--ink);
  padding: 0 0 10px; border-left: 0; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.mega-col > a.mega-head:hover { color: var(--burgundy); background: none; padding-left: 0; }
.mega-col a:not(.mega-head) { padding: 7px 0; font-size: 13px; color: var(--grey); border-left: 0; }
.mega-col a:not(.mega-head):hover { background: none; padding-left: 8px; color: var(--burgundy); }

.header-cta {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  background: var(--burgundy); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s;
}
.header-cta:hover { background: var(--burgundy-d); }

/* hamburger */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: all .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: all .25s ease;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(5px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-l); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-l); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--burgundy); }
.btn-burgundy { background: var(--burgundy); color: var(--white); }
.btn-burgundy:hover { background: var(--burgundy-d); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--burgundy); border-bottom: 1px solid var(--gold);
  padding-bottom: 4px; transition: gap .2s;
}
.text-link:hover { gap: 13px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h) - 40px);
  display: flex; align-items: center;
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 30%;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13,15,19,.92) 0%, rgba(13,15,19,.72) 45%, rgba(13,15,19,.25) 100%);
}
.hero-content { padding: 110px 0; max-width: 760px; color: var(--white); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin: 22px 0 26px; color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold-l); }
.hero p { font-size: 17px; color: rgba(255,255,255,.78); max-width: 580px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--white);
  padding: 96px 0 88px; isolation: isolate; overflow: hidden;
}
.page-hero .bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .35;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13,15,19,.92), rgba(13,15,19,.45));
}
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-top: 18px; color: var(--white); }
.breadcrumb { display: flex; gap: 10px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 22px; }
.breadcrumb a:hover { color: var(--gold-l); }
.breadcrumb .sep { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.75); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .content p { color: var(--grey); margin-bottom: 18px; }
.section-dark .split .content p { color: rgba(255,255,255,.75); }

.framed-img { position: relative; }
.framed-img img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; box-shadow: var(--shadow); }
.framed-img::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold); z-index: -1;
}
.framed-img.flip::before { inset: 22px 22px -22px -22px; }

/* ---------- Stats ---------- */
.stats-band { background: var(--burgundy); color: var(--white); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: var(--white); line-height: 1; }
.stat .num .suffix { color: var(--gold-l); }
.stat .label { margin-top: 10px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.18); }

/* ---------- Service cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line);
  padding: 44px 38px; display: flex; flex-direction: column;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--gold); transition: width .35s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card:hover::before { width: 100%; }
.svc-card h3 { font-size: 23px; margin-bottom: 18px; }
.svc-card ul { margin-bottom: 26px; flex: 1; }
.svc-card ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--grey); font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.svc-card ul li::before { content: "—"; color: var(--gold); flex: none; }
.svc-icon { width: 54px; height: 54px; color: var(--burgundy); margin-bottom: 24px; }
.svc-icon svg { width: 100%; height: 100%; }

/* ---------- Practice area blocks (service pages) ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.area-block {
  background: var(--white); border: 1px solid var(--line); padding: 42px 40px;
  display: flex; gap: 26px; align-items: flex-start;
  scroll-margin-top: 130px;
  transition: all .3s;
}
.area-block:hover { box-shadow: var(--shadow); border-color: transparent; }
.area-block .svc-icon { margin-bottom: 0; flex: none; width: 48px; height: 48px; }
.area-block h3 { font-size: 22px; margin-bottom: 10px; }
.area-block p { color: var(--grey); font-size: 15px; }
.area-block.wide { grid-column: 1 / -1; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.member { cursor: pointer; background: var(--white); transition: transform .3s; }
.member:hover { transform: translateY(-6px); }
.member .photo { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-2); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.member:hover .photo img { transform: scale(1.05); }
.member .photo::after {
  content: "View Profile"; position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(13,15,19,.9));
  color: var(--gold-l); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  padding: 50px 0 18px; text-align: center;
  opacity: 0; transform: translateY(10px); transition: all .3s;
}
.member:hover .photo::after { opacity: 1; transform: translateY(0); }
.member .info { padding: 20px 4px 6px; text-align: center; }
.member h3 { font-size: 21px; }
.member .role { font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

/* team modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,15,19,.78); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--white); max-width: 860px; width: 100%;
  display: grid; grid-template-columns: 320px 1fr;
  position: relative; max-height: 88vh; overflow: hidden;
  animation: rise .3s ease;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.modal .m-photo { background: var(--ink-2); }
.modal .m-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal .m-body { padding: 46px 44px; overflow-y: auto; }
.modal .m-body h3 { font-size: 30px; }
.modal .m-body .role { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 8px 0 20px; display: block; }
.modal .m-body p { color: var(--grey); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  background: var(--ink); color: var(--white); border: 0; cursor: pointer; font-size: 17px;
  transition: background .2s; z-index: 2;
}
.modal-close:hover { background: var(--burgundy); }

/* ---------- Media / news cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--line); transition: all .3s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.news-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta { display: flex; gap: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.news-card .meta .date { color: var(--grey); }
.news-card h3 { font-size: 22px; margin-bottom: 12px; }
.news-card h3 a:hover { color: var(--burgundy); }
.news-card p { color: var(--grey); font-size: 14.5px; flex: 1; margin-bottom: 22px; }

/* ---------- Article ---------- */
.article-body { max-width: 800px; margin: 0 auto; }
.article-body .feature-img { margin-bottom: 40px; box-shadow: var(--shadow); }
.article-body p { margin-bottom: 22px; color: #3c424c; font-size: 16.5px; }
.article-meta { display: flex; gap: 18px; align-items: center; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 34px; }
.article-meta .tag { background: var(--burgundy); color: var(--white); padding: 4px 12px; font-size: 11px; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--white); padding: 90px 0; isolation: isolate; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .22; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--white); max-width: 640px; }
.cta-band h2 em { font-style: italic; color: var(--gold-l); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card { background: var(--white); border: 1px solid var(--line); padding: 40px 36px; text-align: center; transition: all .3s; }
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card .ic { width: 52px; height: 52px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; color: var(--burgundy); }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 20px; margin-bottom: 12px; }
.contact-card p, .contact-card a { color: var(--grey); font-size: 15px; }
.contact-card a:hover { color: var(--burgundy); }

.contact-form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  transition: border-color .2s; border-radius: 0; -webkit-appearance: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--grey); }
.consent input { margin-top: 4px; accent-color: var(--burgundy); }
.form-note { font-size: 13px; color: var(--grey); margin-top: 14px; }

.map-wrap { border: 0; width: 100%; height: 440px; display: block; filter: grayscale(35%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; padding: 80px 0 60px; }
.site-footer .brand-mark { border-color: var(--gold); color: var(--gold-l); }
.site-footer .brand-name strong { color: var(--white); }
.footer-tagline { margin-top: 22px; font-size: 14.5px; }
.footer-tagline em { color: var(--gold-l); font-family: var(--serif); }
.footer-col h4 {
  color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); position: relative;
}
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 42px; height: 1px; background: var(--gold); }
.footer-col ul li { margin-bottom: 12px; font-size: 14.5px; }
.footer-col ul a { transition: all .2s; }
.footer-col ul a:hover { color: var(--gold-l); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 14.5px; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--gold); flex: none; margin-top: 4px; }
.footer-map { border: 1px solid var(--line-light); width: 100%; height: 180px; filter: grayscale(60%) brightness(.9); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-light); color: rgba(255,255,255,.75);
  transition: all .25s;
}
.footer-social a:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--line-light); padding: 24px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom .motto { color: var(--gold-l); font-style: italic; font-family: var(--serif); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .mega { width: 640px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    background: var(--ink); z-index: 1100;
    transform: translateX(100%); transition: transform .35s ease;
    overflow-y: auto; padding: 90px 0 40px; display: block;
  }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav > ul { display: block; }
  .main-nav > ul > li > a { color: var(--white); padding: 16px 30px; justify-content: space-between; border-bottom: 1px solid var(--line-light); }
  .main-nav > ul > li.active > a { color: var(--gold-l); }
  .dropdown, .mega {
    position: static; transform: none; opacity: 1; visibility: visible;
    width: auto; min-width: 0; display: none; box-shadow: none; border-top: 0;
    background: rgba(255,255,255,.04); padding: 6px 0;
  }
  li.open > .dropdown, li.open > .mega { display: block; }
  .mega { flex-direction: column; }
  .mega-col { padding: 8px 30px; }
  .mega-col + .mega-col { border-left: 0; }
  .dropdown a, .mega-col a:not(.mega-head) { color: rgba(255,255,255,.7); padding: 9px 30px; }
  .mega-col a:not(.mega-head) { padding: 8px 12px; }
  .mega-col > a.mega-head { color: var(--gold-l); border-bottom-color: var(--line-light); }
  .dropdown a:hover { background: none; color: var(--gold-l); }
  .nav-overlay { position: fixed; inset: 0; z-index: 1050; background: rgba(13,15,19,.6); opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-open .nav-overlay { opacity: 1; visibility: visible; }

  .split, .contact-form-wrap { grid-template-columns: 1fr; gap: 44px; }
  .framed-img::before { display: none; }
  .cards-3, .news-grid, .contact-cards { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
  .stat:nth-child(4) { border-left: 0; }
  .modal { grid-template-columns: 1fr; overflow-y: auto; max-width: 480px; }
  .modal .m-photo { max-height: 380px; }
  .topbar .motto { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cards-3, .news-grid, .contact-cards, .team-grid, .team-grid.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; }
  .hero-content { padding: 80px 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-contacts { width: 100%; justify-content: center; }
  .topbar-inner { justify-content: center; }
  .brand-name strong { font-size: 16px; }
  .brand-name span { font-size: 9px; letter-spacing: .3em; }
  .brand-logo { height: 46px; }
  .area-block { flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; padding: 60px 0 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
