/* ═════════════════════════════════════════════════════════════════
   TFR Theme — TaxFreeResidency.com — site CSS
   Faithful port of claude-design/desktop-homepage.html + mobile-homepage.html
   + components.html. brand-tokens.css is loaded first.
   Containment rule: green ONLY in palm icon assets — never here.
   ═════════════════════════════════════════════════════════════════ */

/* ── Base / a11y ── */
html, body { background: #fff; overflow-x: clip; }
.page { max-width: 1440px; margin: 0 auto; background: #fff; min-width: 0; }
.skip-link.screen-reader-text { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link.screen-reader-text:focus { position: absolute; left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem 1rem; background: var(--navy-deep); color: #fff; z-index: 9999; border-radius: 4px; }

/* ── Caps variants ── */
.caps--blue { color: var(--blue); }

/* ═════════════════════════════════════════════════════════════════
   NAV — desktop (lifted from desktop-homepage.html)
   ═════════════════════════════════════════════════════════════════ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 64px; background: var(--navy-deep); color: #fff;
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo img { width: 32px; height: 32px; }
.nav__logo .wm { display: inline-flex; align-items: baseline; line-height: 1; letter-spacing: -0.01em; }
.nav__logo .wm b   { font-weight: 700; color: #fff; font-size: 20px; }
.nav__logo .wm i   { font-style: normal; font-weight: 400; color: #fff; font-size: 20px; }
.nav__logo .wm .res{ font-weight: 700; color: var(--blue); font-size: 20px; }
.nav__logo .wm .dot{ font-weight: 400; color: #fff; font-size: 14px; }
.nav__items { display: flex; gap: 32px; align-items: center; }
.nav__items a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; }
.nav__items a:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__right .lang { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; }
.nav__menu {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px; padding: 6px 10px; font-size: 18px; line-height: 1;
  cursor: pointer; display: none;
}

/* ── Dropdown / mega-menu (Jurisdictions) ── */
.nav__item { position: relative; display: inline-flex; align-items: center; }
.nav__item > a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; }
.nav__item > a:hover { color: #fff; }
.nav__item .caret { font-size: 9px; opacity: 0.7; transition: transform var(--t-fast); }
.nav__item--has-dropdown:hover .caret { transform: rotate(180deg); }

/* The dropdown panel */
.nav__megamenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 18px;
  background: #fff; color: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(3,8,64,0.18);
  padding: 28px 32px;
  display: none;
  width: 980px;
  max-width: calc(100vw - 64px);
  z-index: 100;
  /* Bridge the 18px gap between trigger and panel so hover doesn't drop */
}
.nav__megamenu::before {
  content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px;
}
.nav__item--has-dropdown:hover .nav__megamenu,
.nav__item--has-dropdown:focus-within .nav__megamenu { display: flex; gap: 32px; }

.nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  flex: 1;
}
.nav__mega-col { min-width: 0; }
.nav__mega-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue);
  margin: 0 0 12px; font-weight: 700;
}
.nav__mega-col ul { list-style: none; margin: 0; padding: 0; }
.nav__mega-col ul li { margin: 0; }
.nav__mega-col ul li a {
  font-size: 13px; color: var(--navy-deep); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  border-radius: 3px;
  transition: color var(--t-fast);
}
.nav__mega-col ul li a:hover { color: var(--blue); }
.nav__mega-col ul li a .fi { width: 18px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(3,8,64,0.08); flex: 0 0 auto; }
.nav__country-name { line-height: 1.3; }

/* CTA right-rail of the mega-menu */
.nav__mega-cta {
  width: 220px;
  flex: 0 0 220px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.nav__persona-list { list-style: none; margin: 0; padding: 0; }
.nav__persona-list li { margin: 0; }
.nav__persona-list li a {
  display: block; padding: 6px 0;
  font-size: 13px; font-weight: 500;
  color: var(--navy-deep); text-decoration: none;
}
.nav__persona-list li a:hover { color: var(--blue); }
.nav__mega-allbtn { display: block; text-align: center; font-size: 13px; padding: 12px 16px; }

/* Mobile lockup (smaller wordmark) — applied at <= 640px (see media query) */

/* ═════════════════════════════════════════════════════════════════
   HERO (desktop)
   ═════════════════════════════════════════════════════════════════ */
.hero {
  padding: 80px 64px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.hero h1 { font-size: 60px; line-height: 1.05; margin: 0 0 24px; }
.hero__sub { font-size: 18px; color: var(--body); margin-bottom: 32px; max-width: 540px; }
.hero__ctas { display: flex; gap: 12px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 48px; }
.hero__stats .v {
  font-size: 36px; font-weight: 700; color: var(--navy-deep);
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px;
}
.hero__stats .v.tbd { font-size: 16px; color: #6B7280; font-family: var(--mono); font-weight: 500; }
.hero__stats .l { font-size: 13px; color: #6B7280; }
.hero__media { height: 480px; }

/* TBD blocks (placeholders shown clearly during dev; sections may be hidden in production) */
.tbd-block {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #B0B6C2; background: #EEF1F5; color: #6B7280;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 6px;
}
.tbd {
  display: inline-block; padding: 4px 10px; border: 1px dashed #B0B6C2;
  background: #EEF1F5; color: #6B7280; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px;
}

/* ═════════════════════════════════════════════════════════════════
   PRESS STRIP
   ═════════════════════════════════════════════════════════════════ */
.press {
  padding: 24px 64px; background: var(--light-bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-around;
}
.press .tbd { background: transparent; border: none; }

/* ═════════════════════════════════════════════════════════════════
   JURISDICTIONS TABLE
   ═════════════════════════════════════════════════════════════════ */
.juris { padding: 80px 64px; }
.juris__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.juris h2 { font-size: 36px; margin: 0; }
.juris .kicker { color: var(--blue); }
.juris a.see-all { font-size: 14px; color: var(--blue); font-weight: 600; text-decoration: none; }
.juris table { width: 100%; border-collapse: collapse; font-size: 14px; }
.juris thead tr { border-bottom: 2px solid var(--navy-deep); text-align: left; }
.juris th {
  padding: 12px 14px 12px 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: #6B7280; font-weight: 500;
}
.juris tbody tr { border-bottom: 1px solid var(--line); }
.juris td { padding: 18px 14px 18px 0; }
.juris .name { font-weight: 600; color: var(--navy-deep); }
.juris .name a { color: var(--navy-deep); text-decoration: none; }
.juris .name a:hover { color: var(--blue); }
.juris .name .flag { font-size: 22px; margin-right: 10px; }
.juris .programme { font-family: var(--mono); color: var(--blue); font-weight: 600; }

/* Mobile rows variant (used on small screens) */
.juris__row { border-bottom: 1px solid var(--line); padding: 16px 0; display: none; }
.juris__name { font-weight: 700; color: var(--navy-deep); font-size: 15px; }
.juris__name .flag { font-size: 18px; margin-right: 8px; }
.juris__prog { font-family: var(--mono); font-size: 13px; color: var(--blue); font-weight: 600; margin: 6px 0 4px; }
.juris__sub  { font-size: 12px; color: #6B7280; }

/* ═════════════════════════════════════════════════════════════════
   PARTNER QUOTE
   ═════════════════════════════════════════════════════════════════ */
.partner {
  padding: 64px; background: var(--light-bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.partner__inner { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.partner__photo { height: 300px; }
.partner__quote {
  font-style: italic; font-size: 26px; line-height: 1.4;
  color: var(--navy-deep); margin: 0 0 24px; font-weight: 500;
}
.partner__quote .tbd { font-style: normal; vertical-align: middle; }
.partner__name { font-weight: 600; font-size: 15px; color: var(--navy-deep); margin: 0; }
.partner__role { font-size: 13px; color: #6B7280; margin: 4px 0 0; }

/* ═════════════════════════════════════════════════════════════════
   PROCESS / "How we work."
   ═════════════════════════════════════════════════════════════════ */
.process { padding: 80px 64px; }
.process h2 { font-size: 32px; margin-bottom: 36px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process__num { font-family: var(--mono); font-size: 13px; color: var(--blue); margin: 0 0 14px; font-weight: 700; }
.process h3 { font-size: 20px; margin-bottom: 10px; }
.process p { font-size: 14px; color: var(--body); margin: 0; }
.process__step { margin-bottom: 22px; }

/* ═════════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.7);
  padding: 64px 64px 32px;
}
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.foot__brand p {
  font-size: 13px; line-height: 1.7; margin: 20px 0 0;
  max-width: 320px; color: rgba(255,255,255,0.6);
}
.foot__brand a { color: rgba(255,255,255,0.8); }
.foot__brand a:hover { color: #fff; }
.foot__title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 0 0 14px;
}
.foot__list p { font-size: 13px; margin: 0 0 8px; }
.foot__list a { color: rgba(255,255,255,0.7); text-decoration: none; }
.foot__list a:hover { color: var(--blue); }
.foot__legal {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 12px;
  color: rgba(255,255,255,0.4); font-family: var(--mono);
}
.foot__legal a { color: inherit; text-decoration: none; }

/* Mobile footer collapsibles */
.site-footer details { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 0; display: none; }
.site-footer summary {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between;
}

/* ═════════════════════════════════════════════════════════════════
   COMPONENT LIBRARY (from components.html — for use on inner pages)
   ═════════════════════════════════════════════════════════════════ */

/* Country card */
.country { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.country .flag { font-size: 24px; }
.country .name { font-weight: 700; font-size: 15px; color: var(--navy-deep); }
.country .badge { background: rgba(0,190,250,0.12); color: var(--blue); font-family: var(--mono); font-weight: 600; font-size: 12px; padding: 3px 8px; border-radius: 3px; align-self: flex-start; }
.country .label { font-size: 12px; color: #6B7280; }
.country a { color: var(--blue); font-weight: 600; font-size: 13px; margin-top: 4px; text-decoration: none; }

/* Comparison row (used on country pages) */
.cmp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.cmp__head, .cmp__row { display: grid; grid-template-columns: 1.5fr 1.4fr 1fr 1fr 1fr; padding: 14px 22px; }
.cmp__head { background: var(--light-bg); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #6B7280; font-weight: 500; }
.cmp__row { padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: center; font-size: 14px; }
.cmp__row:last-child { border-bottom: none; }
.cmp__name { font-weight: 600; color: var(--navy-deep); }
.cmp__name .flag { font-size: 20px; margin-right: 8px; }
.cmp__prog { color: var(--blue); font-weight: 600; font-family: var(--mono); }

/* Persona card */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.persona { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.persona__head { background: var(--navy-deep); color: #fff; padding: 12px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.persona__body { padding: 24px 22px; }
.persona__icon { width: 40px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.persona__icon--blue { background: rgba(0,190,250,0.13); color: var(--blue); }
.persona__icon--gold { background: rgba(221,193,130,0.25); color: var(--gold-dark); }
.persona h4 { font-weight: 700; font-size: 18px; color: var(--navy-deep); margin: 0 0 6px; }
.persona p { font-size: 13px; color: var(--body); line-height: 1.6; margin: 0 0 16px; }
.persona a { font-size: 13px; font-weight: 600; text-decoration: none; }
.persona .a-blue { color: var(--blue); }
.persona .a-gold { color: var(--gold-dark); }

/* FAQ accordion */
.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq__q-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq__q { font-weight: 600; font-size: 16px; color: var(--navy-deep); }
.faq__sign { color: var(--blue); font-size: 18px; font-weight: 700; }
.faq__a { margin-top: 14px; font-size: 14px; color: var(--body); line-height: 1.7; max-width: 640px; }

/* Article preview card */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.article-card__img { height: 140px; display: flex; align-items: center; justify-content: center; border-bottom: 1px dashed #B0B6C2; background: #EEF1F5; color: #6B7280; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.article-card__body { padding: 20px 22px; }
.article-card__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; font-weight: 600; }
.article-card h4 { font-size: 18px; font-weight: 700; color: var(--navy-deep); margin: 0 0 8px; line-height: 1.3; }
.article-card p { font-size: 13px; color: var(--body); margin: 0; line-height: 1.6; }
.article-card a { color: var(--blue); font-weight: 600; font-size: 13px; margin-top: 12px; display: inline-block; text-decoration: none; }

/* Newsletter band */
.nl { background: var(--navy-deep); color: #fff; padding: 48px 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.nl__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.nl__h { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.nl__sub { font-size: 14px; color: rgba(255,255,255,0.7); }
.nl__form { display: flex; gap: 8px; min-width: 460px; }
.nl__form input { flex: 1; padding: 14px 16px; border: 0; border-radius: 4px; font-family: inherit; font-size: 14px; }

/* ═════════════════════════════════════════════════════════════════
   CONTACT FORM
   ═════════════════════════════════════════════════════════════════ */
.tfr-contact-form {
  max-width: 640px;
  margin: 32px 0 0;
  background: var(--light-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.tfr-form-row { margin-bottom: 18px; display: flex; flex-direction: column; }
.tfr-form-row label { font-size: 13px; font-weight: 600; color: var(--navy-deep); margin-bottom: 6px; }
.tfr-form-row label .req { color: var(--blue); }
.tfr-form-row input,
.tfr-form-row select,
.tfr-form-row textarea {
  font-family: inherit; font-size: 15px; line-height: 1.5;
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--navy-deep);
}
.tfr-form-row input:focus,
.tfr-form-row select:focus,
.tfr-form-row textarea:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,190,250,0.15);
}
.tfr-form-row textarea { resize: vertical; min-height: 120px; }
.tfr-honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.tfr-form-status { margin: 16px 0 0; font-size: 14px; min-height: 20px; }
.tfr-form-status--ok { color: #1B6B3A; font-weight: 600; }
.tfr-form-status--err { color: #b3261e; font-weight: 600; }
.tfr-contact-form button[type="submit"] { margin-top: 8px; }

/* ═════════════════════════════════════════════════════════════════
   INNER PAGE WRAPPER (country, pillar, comparison, persona, matrix, service)
   Plain wrapper used by tmpl-*.php — inherits component styles above.
   ═════════════════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 64px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
}
.page-wrap.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

/* Article column — explicit min-width: 0 prevents grid item from being pushed by wide tables */
.article {
  color: var(--body); font-size: 17px; line-height: 1.7;
  min-width: 0;
  word-wrap: break-word; overflow-wrap: break-word;
}

/* Heading rules apply to BOTH direct children of .article AND children of .entry-content
   (since the_content() wraps body in entry-content, headings would otherwise inherit
   global brand-tokens.css h1/h2 sizes). */
.article > h1,
.article .entry-content h1 { font-size: 38px; margin: 0 0 14px; line-height: 1.15; letter-spacing: -0.02em; }
.article > h2,
.article .entry-content h2 { font-size: 26px; margin: 40px 0 14px; line-height: 1.25; letter-spacing: -0.01em; }
.article > h3,
.article .entry-content h3 { font-size: 19px; margin: 28px 0 10px; line-height: 1.3; }
.article > h4,
.article .entry-content h4 { font-size: 17px; margin: 22px 0 8px; color: var(--navy-deep); font-weight: 600; line-height: 1.3; }

.article p  { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 28px; }
.article ul li, .article ol li { margin-bottom: 6px; }
.article a { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--blue); }
.article a:hover { color: var(--navy-deep); border-color: var(--navy-deep); }
.article strong { color: var(--navy-deep); font-weight: 600; }
.article em { font-style: italic; }
.article code { background: var(--light-bg); padding: 2px 6px; border-radius: 3px; font-family: var(--mono); font-size: 13px; word-break: break-word; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.article blockquote { border-left: 3px solid var(--blue); padding: 8px 0 8px 22px; margin: 22px 0; font-style: italic; color: var(--navy); font-size: 18px; line-height: 1.55; }

/* Tables: scroll horizontally inside the column rather than break the page layout */
.article .entry-content > table,
.article > table {
  display: block; max-width: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.article table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.article table thead { border-bottom: 2px solid var(--navy-deep); }
.article table th { text-align: left; padding: 10px 14px 10px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #6B7280; font-weight: 500; white-space: nowrap; }
.article table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.article table tr:last-child td { border-bottom: 0; }
.article table td:first-child { font-weight: 500; color: var(--navy-deep); }

/* Article kicker (caps badge above H1) */
.article .tfr-kicker { display: inline-flex; align-items: center; gap: 8px; }
.article .tfr-kicker .fi { width: 18px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(3,8,64,0.08); flex: 0 0 auto; }

/* Sidebar (inner pages) */
.sidebar { font-size: 14px; min-width: 0; }
.sidebar > div { background: var(--light-bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 20px; }
.sidebar h3 { font-size: 11px; font-family: var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; font-weight: 600; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { margin-bottom: 8px; }
.sidebar ul li a { color: var(--navy-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.sidebar ul li a:hover { color: var(--blue); }
.sidebar ul li a .fi { width: 18px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(3,8,64,0.08); flex: 0 0 auto; }
.sidebar .cta-card { background: var(--navy-deep); color: #fff; border: 0; }
.sidebar .cta-card h3 { color: rgba(255,255,255,0.55); }
.sidebar .cta-card p { color: rgba(255,255,255,0.85); margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.sidebar .cta-card .btn { width: 100%; text-align: center; }

.article-footer { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-footer .updated { font-size: 13px; color: #6B7280; }

/* ═════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile (<= 640px) per mobile-homepage.html reference
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .hero__media { height: 320px; }
  .juris, .process { padding: 48px 24px; }
  .partner { padding: 48px 24px; }
  .partner__inner { grid-template-columns: 1fr; gap: 32px; }
  .partner__photo { height: 220px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nl { flex-direction: column; align-items: stretch; padding: 40px 24px; }
  .nl__form { min-width: 0; }
  .page-wrap { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; max-width: 880px; }
}

@media (max-width: 640px) {
  /* Nav tightens (mobile mockup spec) */
  .nav { padding: 14px 18px; gap: 12px; }
  .nav__items, .nav__right .lang, .nav__right .btn--premium { display: none; }
  .nav__menu { display: inline-block; }
  /* Open state */
  .nav.open .nav__items { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--navy-deep); padding: 16px 24px; gap: 12px; z-index: 90; }
  .nav__logo img { width: 26px; height: 26px; }
  .nav__logo .wm b, .nav__logo .wm i, .nav__logo .wm .res { font-size: 16px; }
  .nav__logo .wm .dot { font-size: 11px; }

  /* Hero per mobile-homepage.html */
  .hero { padding: 32px 24px 24px; }
  .hero h1 { font-size: 32px; }
  .hero__sub { font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
  .hero__ctas { flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .hero__media { height: 220px; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 20px; }
  .hero__stats .v { font-size: 26px; margin-bottom: 4px; }
  .hero__stats .v.tbd { font-size: 13px; }
  .hero__stats .l { font-size: 11px; }

  /* Press: horizontal scroll on mobile */
  .press { padding: 14px 24px; overflow-x: auto; gap: 16px; justify-content: flex-start; }
  .press .tbd { white-space: nowrap; }

  /* Juris: switch from table to row layout on small screens */
  .juris { padding: 40px 24px; }
  .juris h2 { font-size: 26px; margin: 0 0 20px; }
  .juris__head { display: block; }
  .juris__head .juris__head-text { display: block; margin-bottom: 8px; }
  .juris table { display: none; }
  .juris__row { display: block; }
  .juris a.see-all { color: var(--blue); font-weight: 600; font-size: 14px; margin-top: 16px; display: inline-block; }

  /* Partner mobile */
  .partner { padding: 32px 24px; background: var(--light-bg); border: 0; }
  .partner__inner { display: block; }
  .partner__photo { height: 180px; margin-bottom: 18px; }
  .partner__quote { font-size: 18px; line-height: 1.4; margin: 0 0 14px; }

  /* Process mobile */
  .process { padding: 40px 24px; }
  .process h2 { font-size: 24px; margin-bottom: 22px; }
  .process__grid { display: block; }
  .process__step { margin-bottom: 22px; }
  .process__num { font-size: 12px; }
  .process h3 { font-size: 17px; }
  .process p { font-size: 13px; }

  /* Footer mobile: collapse to detail blocks */
  .site-footer { padding: 40px 24px 24px; }
  .foot__grid { display: block; margin-bottom: 0; }
  .foot__list { display: none; }  /* hide grid columns; details elements take over */
  .foot__brand p { font-size: 12px; line-height: 1.6; margin: 14px 0 24px; color: rgba(255,255,255,0.55); }
  .site-footer details { display: block; }
  .foot__legal { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 16px; padding-top: 16px; font-size: 11px; color: rgba(255,255,255,0.4); flex-direction: column; gap: 6px; }

  /* Components: stack persona/article grids */
  .persona-grid, .articles { grid-template-columns: 1fr; }
  .nl__form { flex-direction: column; min-width: 0; }

  /* Page wrap */
  .page-wrap { padding: 24px 16px; }
  .article > h1 { font-size: 30px; }
  .article > h2 { font-size: 22px; }
}

@media print {
  .nav, .site-footer, .nav__menu, .sidebar { display: none; }
  body { background: #fff; color: #000; }
}
