  :root {
    --brand-dark: #000000;
    --brand-ink: #111111;
    --brand-gold: #dcbb6c;
    --brand-gold-deep: #a8832a;
    --brand-gold-soft: #fbf5e6;
    --text-main: #000000;
    --text-light: #555555;
    --white: #ffffff;
    --border-color: #eaeaea;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 18px 45px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.06);
    --gradient-gold-black: linear-gradient(135deg, #000000 0%, #dcbb6c 100%);
    --gradient-black-gold: linear-gradient(135deg, #dcbb6c 0%, #000000 100%);
    --header-h: 66px;
  }

  body { margin: 0; font-family: 'Inter', system-ui, sans-serif; }

  /* ---------- TOP BAR (desktop only) ---------- */
  .topbar {
    background: var(--brand-dark);
    color: rgba(255,255,255,0.82);
    font-size: 12.5px;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(220,187,108,0.35);
  }
  .topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    margin: 0 auto;
    padding: 8px 20px;
    box-sizing: border-box;
  }
  .topbar-tag { display: inline-flex; align-items: center; gap: 9px; }
  .topbar-tag::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(220,187,108,0.22);
  }
  .topbar a {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 4px;
  }
  .topbar a:hover { color: var(--white); }

  /* ---------- HEADER ---------- */
  .site-header {
    background: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .site-header.is-scrolled {
    border-bottom-color: rgba(220,187,108,0.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
  }
  .navwrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1350px;
    min-height: var(--header-h);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .logo { flex-shrink: 0; }
  .logo a { display: block; }
  .logo img { height: 32px; width: auto; object-fit: contain; display: block; }

  /* ---------- DESKTOP NAV: plain links, a gold bar slides in on the header's bottom edge ---------- */
  .main-nav > ul { list-style: none; display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; }
  .main-nav > ul > li { position: relative; display: flex; align-items: center; height: var(--header-h); }
  .main-nav a { text-decoration: none; color: var(--text-main); }
  .main-nav i { display: flex; line-height: 1; }

  .main-nav > ul > li > a {
    position: relative; display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 13px;
    font-weight: 600; font-size: 14px; letter-spacing: 0.1px; white-space: nowrap; transition: color 0.2s ease;
  }
  .main-nav > ul > li > a > i { font-size: 14px; color: #9a9a9a; transition: transform 0.25s ease, color 0.2s ease; }
  .main-nav > ul > li > a::after {
    content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-deep)); transform: translateX(-50%); transition: width 0.25s ease;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li:hover > a,
  .main-nav > ul > li:focus-within > a,
  .main-nav > ul > li > a.is-active { color: var(--brand-gold-deep); }
  .main-nav > ul > li > a:hover::after,
  .main-nav > ul > li:hover > a::after,
  .main-nav > ul > li:focus-within > a::after,
  .main-nav > ul > li > a.is-active::after { width: calc(100% - 26px); }
  .has-dropdown:hover > a > i,
  .has-dropdown:focus-within > a > i { transform: rotate(180deg); color: var(--brand-gold-deep); }

  .main-nav a:focus-visible,
  .nav-cta a:focus-visible,
  .burger:focus-visible,
  .mobile-menu-panel a:focus-visible,
  .mobile-menu-panel button:focus-visible { outline: 2px solid var(--brand-gold-deep); outline-offset: 2px; }

  /* dropdown: a black panel hanging straight off the header */
  .has-dropdown { position: relative; }
  .nav-dropdown {
    position: absolute; top: 100%; left: -6px; min-width: 310px; box-sizing: border-box; padding: 12px;
    background: #0b0b0b; color: var(--white);
    border: 1px solid rgba(220,187,108,0.32); border-top: 3px solid var(--brand-gold); border-radius: 0 0 18px 18px;
    box-shadow: 0 26px 56px rgba(0,0,0,0.34);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .has-dropdown:hover > .nav-dropdown,
  .has-dropdown:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav > ul > li:last-child > .nav-dropdown { left: auto; right: -6px; }

  .dd-label { display: block; padding: 4px 10px 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.45); }

  .nav-dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--white); white-space: normal; transition: background 0.18s ease;
  }
  .nav-dropdown a::after { content: "\2192"; margin-left: auto; padding-left: 8px; color: var(--brand-gold); font-size: 15px; opacity: 0; transform: translateX(-8px); transition: 0.2s ease; }
  .nav-dropdown a:hover { background: rgba(220,187,108,0.13); }
  .nav-dropdown a:hover::after, .nav-dropdown a.is-current::after { opacity: 1; transform: none; }
  .dd-ico {
    width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 11px; background: rgba(220,187,108,0.1); border: 1px solid rgba(220,187,108,0.38);
    color: var(--brand-gold); font-size: 16px; transition: 0.18s ease;
  }
  .nav-dropdown a:hover .dd-ico, .nav-dropdown a.is-current .dd-ico { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-dark); }
  .dd-flag { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(220,187,108,0.55); }
  .dd-text { min-width: 0; line-height: 1.25; }
  .dd-text small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.52); }
  .nav-dropdown a.is-active { background: rgba(220,187,108,0.13); color: var(--brand-gold); }
  .nav-dropdown a.is-current { background: rgba(220,187,108,0.13); }

  /* gold strip at the foot of a panel */
  .nav-dropdown a.dd-foot {
    margin-top: 10px; padding: 12px 14px; border-radius: 12px; color: var(--brand-dark); font-size: 13.5px; font-weight: 500;
    background: linear-gradient(120deg, #efd998 0%, #dcbb6c 45%, #b08a30 100%);
  }
  .nav-dropdown a.dd-foot b { font-weight: 800; }
  .nav-dropdown a.dd-foot::after { color: var(--brand-dark); opacity: 1; transform: none; }
  .nav-dropdown a.dd-foot:hover { background: linear-gradient(120deg, #f6e4ad 0%, #e6c97e 45%, #bb963c 100%); }

  /* two-column panel (Study) */
  .nav-dropdown.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; min-width: 400px; }
  .nav-dropdown.cols-2 .dd-label, .nav-dropdown.cols-2 .dd-foot { grid-column: 1 / -1; }

  /* two-pane panel (Migrate): sections on the left, that section's routes on the right */
  .nav-dropdown.mega { display: grid; grid-template-columns: 232px 300px; padding: 0; min-width: 0; overflow: hidden; }
  .mega-side { padding: 12px; background: #151515; border-right: 1px solid rgba(255,255,255,0.09); }
  .mega-main { padding: 12px; }
  .mega-main .dd-label { color: var(--brand-gold); }

  /* ---------- CTAs ---------- */
  .nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: 0.25s ease;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .btn-outline-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1.5px solid #d9d9d9;
    color: var(--brand-dark);
    background: var(--white);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: 0.25s ease;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .btn-outline-sm:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: var(--brand-gold); }

  .btn-primary {
    background: var(--brand-dark);
    color: var(--brand-gold);
    border: 1.5px solid var(--brand-dark);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  }
  .btn-primary:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(220,187,108,0.45);
  }

  .nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 17px;
    transition: 0.25s ease;
    background: var(--brand-gold-soft);
    color: var(--brand-dark);
    border: 1px solid rgba(220,187,108,0.55);
    flex-shrink: 0;
    box-sizing: border-box;
  }
  .nav-icon-btn i { display: flex; line-height: 1; }
  .nav-icon-btn:hover { background: var(--brand-dark); color: var(--brand-gold); border-color: var(--brand-dark); transform: translateY(-1px); }
  .nav-icon-btn.whatsapp { background: #e9fbf0; color: #128c4b; border-color: rgba(37,211,102,0.45); }
  .nav-icon-btn.whatsapp:hover { background: #25D366; color: var(--white); border-color: #25D366; }

  .burger {
    display: none;
    background: var(--brand-dark);
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--brand-gold);
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
  }
  .burger i { display: flex; line-height: 1; }
  .burger:active { transform: scale(0.94); }

  /* ---------- MOBILE MENU ---------- */
  .mobile-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2147483646;
    opacity: 0; visibility: hidden; transition: 0.35s ease;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
  .mobile-menu-panel {
    position: fixed; top: 0; right: 0;
    width: min(360px, 88vw);
    height: 100vh; height: 100dvh;
    background: var(--white);
    z-index: 2147483647;
    box-shadow: -14px 0 40px rgba(0,0,0,0.25);
    display: flex; flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
    border-radius: 22px 0 0 22px;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
  }
  .mobile-menu-panel.active { transform: translateX(0); visibility: visible; }
  .mobile-menu-backdrop.active { opacity: 1; visibility: visible; }

  .mobile-menu-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px 16px 20px;
    background: var(--brand-dark);
    border-bottom: 2px solid var(--brand-gold);
    flex-shrink: 0;
  }
  /* white chip so a dark logo stays readable on the black bar */
  .mobile-menu-top .logo { background: var(--white); padding: 7px 11px; border-radius: 10px; }
  .mobile-menu-top .logo img { height: 20px; }

  .mobile-menu-close {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
    font-size: 14px; font-weight: 700; cursor: pointer;
    color: var(--white); width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.25s;
  }
  .mobile-menu-close:hover { background: var(--brand-gold); color: var(--brand-dark); border-color: var(--brand-gold); transform: rotate(90deg); }

  /* quick call / WhatsApp row at the top of the drawer */
  .mobile-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 4px; flex-shrink: 0; }
  .mobile-quick a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; border-radius: 12px; text-decoration: none;
    font-size: 14px; font-weight: 700; transition: 0.2s ease;
    background: var(--brand-gold-soft); color: var(--brand-dark); border: 1px solid rgba(220,187,108,0.6);
  }
  .mobile-quick a i { display: flex; line-height: 1; font-size: 16px; }
  .mobile-quick a.wa { background: #e9fbf0; color: #0e7a40; border-color: rgba(37,211,102,0.5); }
  .mobile-menu-label { padding: 12px 24px 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #9a9a9a; flex-shrink: 0; }

  .mobile-menu-links {
    padding: 6px 14px 12px; overflow-y: auto; flex-grow: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 4px;
  }

  .mobile-menu-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-main);
    font-family: inherit;
    font-weight: 600;
    font-size: 15.5px;
    background: none; width: 100%; box-sizing: border-box;
    cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-item:hover,
  .mobile-menu-item:active { background: var(--brand-gold-soft); }
  .mobile-menu-item.is-active { background: var(--brand-dark); color: var(--brand-gold); }
  .mobile-menu-group.open > .mobile-menu-item { background: var(--brand-gold-soft); border-color: rgba(220,187,108,0.5); }

  .mobile-menu-item .left-group { display: flex; align-items: center; gap: 14px; flex: 1; }

  .main-icon {
    color: var(--brand-gold-deep); font-size: 17px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex-shrink: 0;
    background: var(--brand-gold-soft);
    border: 1px solid rgba(220,187,108,0.45);
    border-radius: 11px;
    transition: 0.2s ease;
  }
  .mobile-menu-item.is-active .main-icon { background: var(--brand-gold); color: var(--brand-dark); border-color: var(--brand-gold); }
  .mobile-menu-group.open > .mobile-menu-item .main-icon {
    background: var(--brand-dark); color: var(--brand-gold); border-color: var(--brand-dark);
  }
  .drop-icon {
    display: flex; align-items: center; justify-content: center; margin-left: auto;
    width: 28px; height: 28px; border-radius: 50%; background: #f3f1ea;
    font-size: 16px; line-height: 1; color: #555; transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  }
  .mobile-menu-group.open > .mobile-menu-item > .drop-icon,
  .mobile-menu-group.open > .mobile-sub-parent > .drop-icon { background: var(--brand-dark); color: var(--brand-gold); }
  .mobile-menu-group.open > .mobile-menu-item,
  .mobile-menu-group.open > .mobile-sub-parent { color: var(--brand-ink); }

  /* Sub menu: opens as a cream tray under its parent */
  .mobile-submenu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; margin: 0; }
  .mobile-submenu > .submenu-inner { overflow: hidden; min-height: 0; border-radius: 14px; background: #faf6ea; }
  .mobile-menu-group.open > .mobile-submenu { grid-template-rows: 1fr; margin: 4px 0 8px; }
  .submenu-inner > :first-child { margin-top: 6px; }
  .submenu-inner > :last-child { margin-bottom: 6px; }

  .mobile-submenu a, .mobile-sub-parent {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    font-family: inherit; font-size: 14.5px; font-weight: 600;
    min-height: 46px; padding: 8px 12px; margin: 2px 6px; border-radius: 11px;
    color: var(--brand-ink); text-decoration: none;
    background: none; border: none; width: calc(100% - 12px); box-sizing: border-box;
    cursor: pointer; text-align: left; transition: 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  /* gold dot in front, arrow at the end */
  .mobile-submenu a::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 0 3px rgba(220,187,108,0.25); }
  .mobile-submenu a.has-flag::before { display: none; }
  .mobile-submenu a::after { content: "\203A"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--brand-gold-deep); }
  .mobile-submenu a:hover, .mobile-submenu a:active, .mobile-sub-parent:hover,
  .mobile-submenu a.is-active { background: var(--white); color: var(--brand-gold-deep); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .mobile-submenu a img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(220,187,108,0.6); }

  /* Sub-sub menu: a white card nested inside the tray */
  .mobile-sub-parent > span { flex: 1; }
  .mobile-sub-parent::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 0 3px rgba(220,187,108,0.25); }
  .mobile-sub-parent .drop-icon { background: var(--white); }
  .mobile-menu-group.open > .mobile-sub-parent { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .mobile-sub-submenu > .submenu-inner { margin: 0 6px; background: var(--white); border-radius: 12px; box-shadow: inset 3px 0 0 var(--brand-gold); }
  .mobile-menu-group.open > .mobile-sub-submenu { margin: 4px 0 4px; }
  .mobile-sub-submenu a { min-height: 42px; margin: 1px 6px 1px 10px; width: calc(100% - 16px); font-size: 14px; font-weight: 500; color: #333; }
  .mobile-sub-submenu a::before { width: 5px; height: 5px; box-shadow: none; background: var(--brand-gold-deep); }
  .mobile-sub-submenu a:hover, .mobile-sub-submenu a:active { background: var(--brand-gold-soft); box-shadow: none; }

  .mobile-menu-footer {
    padding: 14px 16px; border-top: 1px solid var(--border-color);
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
    background: var(--white);
    flex-shrink: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 20px rgba(0,0,0,0.05);
  }
  .mobile-menu-footer .btn,
  .mobile-menu-footer .btn-outline-sm {
    display: flex; width: 100%;
    padding: 13px 12px; border-radius: 12px; font-size: 14px;
  }
  .mobile-menu-footer .btn-primary { order: 2; }
  .btn-wa { background: #e9fbf0; color: #0e7a40; border: 1.5px solid rgba(37,211,102,0.5); }
  .btn-wa:hover { background: #25D366; color: var(--white); border-color: #25D366; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 1280px) {
    .nav-cta .nav-icon-btn { display: none; }   /* phone is already in the top bar */
    .main-nav > ul > li > a { padding: 0 9px; font-size: 13.5px; }
    .main-nav > ul > li > a:hover::after, .main-nav > ul > li:hover > a::after, .main-nav > ul > li:focus-within > a::after, .main-nav > ul > li > a.is-active::after { width: calc(100% - 18px); }
    .btn { padding: 10px 14px; }
    .btn-outline-sm { padding: 9px 12px; }
  }

  @media (max-width: 1023px) {
    :root { --header-h: 58px; }
    .topbar { display: none; }
    .main-nav { display: none; }
    .nav-cta .btn-primary, .nav-cta .btn-outline-sm { display: none; }
    .nav-cta .nav-icon-btn { display: flex; }
    .burger { display: flex; }
    .navwrap { padding: 0 16px; }
    .logo img { height: 22px; }
    .nav-cta { gap: 8px; }
  }

  @media (max-width: 359px) {
    .logo img { height: 19px; }
    .nav-cta .nav-icon-btn.phone { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-menu-panel, .mobile-menu-backdrop, .mobile-submenu,
    .nav-dropdown, .btn, .main-nav i, .drop-icon, .main-nav > ul > li > a::after { transition: none; }
  }
