/* ==========================================================
   Athena Dental — international demo (MKT-16)
   base.css: tokens + shared pieces used by all header options.
   Colours sampled from the Athena logo (indigo → teal).
   ========================================================== */
:root {
  --ink: #16264A;            /* text, dark surfaces */
  --ink-soft: #4B5A75;
  --indigo: #2B4C9B;         /* logo, left side */
  --indigo-deep: #213C7E;
  --teal: #08A6C3;           /* logo, right side */
  --porcelain: #F5F8FA;      /* page background */
  --enamel: #FFFFFF;
  --mist: #DDE6EE;           /* hairlines */
  --amber: #E3A82B;          /* focus ring only */
  --brand-gradient: linear-gradient(100deg, var(--indigo) 0%, var(--teal) 100%);

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI",
          "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Yu Gothic",
          "PingFang SC", "Microsoft YaHei", sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--enamel);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Logo ---------- */
.logo { display: block; flex-shrink: 0; }
.logo img { height: 100%; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  font: 600 .9375rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.btn--primary { background: var(--indigo); color: var(--enamel); }
.btn--primary:hover { background: var(--indigo-deep); }
.btn--block { width: 100%; }

/* ---------- Language switcher (shared behaviour) ---------- */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  border: 1px solid var(--mist); border-radius: 999px;
  background: var(--enamel); color: var(--ink);
  font: 600 .875rem/1 var(--font); cursor: pointer;
}
.lang__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 180px; padding: 6px;
  background: var(--enamel); color: var(--ink);
  border: 1px solid var(--mist); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(22, 38, 74, .14);
}
.lang__menu li { padding: 10px 12px; border-radius: 8px; font-size: .9375rem; cursor: pointer; }
.lang__menu li:hover, .lang__menu li:focus { background: var(--porcelain); outline: none; }
.lang__menu li:focus-visible { box-shadow: inset 0 0 0 2px var(--amber); }
.lang__menu li[aria-selected="true"] { color: var(--indigo); font-weight: 600; }
.lang__menu li[aria-selected="true"]::after { content: " ✓"; }

/* ---------- Hamburger (shared) ---------- */
.menu-toggle {
  display: none; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--mist); border-radius: 12px;
  background: var(--enamel); color: var(--ink); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile menu panel (shared) ---------- */
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 100px); overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: var(--enamel); color: var(--ink);
  border-bottom: 1px solid var(--mist);
  box-shadow: 0 24px 40px rgba(22, 38, 74, .12);
}
/* Mobile accordion (rendered by menu.js) */
.m-list { margin-bottom: 20px; }
.m-item { border-bottom: 1px solid var(--mist); }
.m-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; border: 0; background: none; color: inherit; text-align: left;
  font: 500 1.0625rem/1.4 var(--font); cursor: pointer;
}
.m-trigger[aria-expanded="true"] { color: var(--indigo); }
.m-sub { padding: 0 0 14px 14px; }
.m-sublink { display: block; padding: 8px 0; color: var(--ink-soft); font-size: .9375rem; }
.m-sublink:hover { color: var(--ink); }
.m-group + .m-group { margin-top: 8px; }
.m-group__title { margin: 6px 0 2px; font-size: .8125rem; font-weight: 600; color: var(--teal); }

/* ---------- Desktop menu structure (rendered by menu.js) ----------
   Skins live in header-N.css; this block is layout + states only. */
.nav-list { display: flex; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-mega { position: static; }   /* mega panel anchors to the bar */
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 .9375rem/1.2 var(--font); white-space: nowrap;
}
.nav-chevron {
  width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform .2s var(--ease);
}
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-panel { position: absolute; top: 100%; left: 0; z-index: 55; min-width: 270px; }
.nav-panel[hidden] { display: none; }
.nav-panel--mega { left: 0; right: 0; }
.nav-sub a, .nav-sublink { display: block; }
.nav-sub a { padding: 10px 14px; border-radius: 8px; font-size: .9375rem; }

.mega { max-width: var(--container); margin-inline: auto; padding: 28px var(--gutter) 24px; }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; }
.mega__title { margin: 0 0 8px; font-weight: 600; font-size: .9375rem; }
.mega__list .nav-sublink { padding: 5px 0; font-size: .9375rem; }
.mega__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 24px; padding-top: 18px;
}
.mega__note p { margin: 0; max-width: 62ch; font-size: .9375rem; }
.mega__link { font-weight: 600; white-space: nowrap; }
.mobile-menu__phone {
  display: block; margin-top: 14px; text-align: center;
  font-weight: 600; color: var(--indigo); font-variant-numeric: tabular-nums;
}

/* ---------- Demo filler below the header (xoá khi có Hero thật) ---------- */
.demo-stage {
  min-height: 70vh; display: grid; place-items: center; text-align: center;
  padding: 48px var(--gutter); color: var(--ink-soft);
}
.demo-stage p { max-width: 46ch; margin: 0; }
.demo-filler { min-height: 60vh; border-top: 1px dashed var(--mist); }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
