:root {
  --hb-dark: #323c4a;
  --hb-mid: #515c6e;
  --hb-accent: #c9a227;
  --hb-accent-bright: #e0c050;
  --hb-accent-light: #f5ecd0;
  --hb-bg: #f7f8fa;
  --hb-text: #1a2332;
  --hb-muted: #5c6b7a;
  --hb-border: #dce3ea;
  --header-bg: #f3f5f7;
  --header-text: #323c4a;
  --nav-text: #3d4756;
  --nav-active: #c9a227;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", system-ui, sans-serif; color: var(--hb-text); line-height: 1.65; background: #fff; }
a { color: #8a6d12; text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
header { background: var(--header-bg); color: var(--header-text); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #e5e9ed; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: .6rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; position: relative; }
.logo { display: flex; align-items: center; z-index: 101; }
.logo img { height: 48px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: .25rem; }
nav a { color: var(--nav-text); margin-left: 0; padding: .45rem .65rem; font-size: .82rem; font-weight: 500; letter-spacing: .01em; border-radius: 6px; transition: color .15s ease, background .15s ease; white-space: nowrap; }
nav a:hover { color: var(--hb-dark); background: rgba(50, 60, 74, .06); text-decoration: none; }
nav a.active { color: var(--nav-active); background: transparent; font-weight: 600; }
.nav-item { position: relative; }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: var(--header-bg); border: 1px solid #e5e9ed; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.08); padding: .4rem 0; z-index: 200; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { display: block; }
.submenu a { display: block; padding: .5rem 1rem; font-size: .85rem; }

/* Hamburger (shown when .compact is added by JS) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: .5rem; z-index: 101; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; height: 2px; width: 22px; background: var(--hb-dark); border-radius: 2px; position: relative; transition: .2s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

/* Compact (hamburger) mode — applied dynamically when menu doesn't fit */
.header-inner.compact .nav-toggle-label { display: flex; }
.header-inner.compact nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--header-bg);
  flex-direction: column;
  align-items: stretch;
  padding: .5rem 0 1rem;
  border-bottom: 1px solid #e5e9ed;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.header-inner.compact nav a { padding: .75rem 1.25rem; font-size: .95rem; border-radius: 0; }
.header-inner.compact .submenu { position: static; box-shadow: none; border: none; padding: 0; min-width: 0; display: none; }
.header-inner.compact .nav-item.open .submenu { display: block; }
.header-inner.compact .submenu a { padding: .5rem 2rem; font-size: .9rem; }
.header-inner.compact nav a:hover { background: rgba(50, 60, 74, .06); }
.header-inner.compact .nav-toggle:checked ~ nav { display: flex; }
.header-inner.compact .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
.header-inner.compact .nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
.header-inner.compact .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }
.hero { background: linear-gradient(135deg, #323c4a 0%, #515c6e 100%); color: #fff; padding: 4.5rem 1.5rem 3.5rem; text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 600; margin-bottom: .6rem; line-height: 1.1; display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.hero h1 .hero-and { display: block; font-size: 1.25rem; font-weight: 400; margin: 0; opacity: .85; line-height: 1; }
.hero p.hero-sub { font-size: 2.5rem; font-weight: 600; margin: 0 auto .6rem; line-height: 1.2; max-width: none; opacity: 1; }
.hero p { font-size: 1.1rem; max-width: 680px; margin: 0 auto 1.6rem; opacity: .95; line-height: 1.6; }
.hero p.hero-links { font-size: .95rem; margin: 1rem auto .5rem; opacity: .9; }
.hero p.hero-links a { color: #fff; font-weight: 600; }
  font-size: .9rem;
  margin: 1.25rem auto 0;
  opacity: .85;
  letter-spacing: .02em;
  font-weight: 500;
}
.trust-bar {
  background: #eef1f4;
  border-top: 3px solid var(--hb-accent);
  border-bottom: 1px solid #e5e9ed;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--hb-dark);
  letter-spacing: .01em;
}
.trust-bar span { margin: 0 .45rem; color: #b0b8c1; font-weight: 400; }
.trust-bar a { color: var(--hb-dark); font-weight: 600; }
.trust-bar a:hover { color: var(--nav-active); }
.cta { display: inline-block; background: var(--hb-accent); color: #fff; padding: .75rem 1.6rem; border-radius: 6px; font-weight: 600; margin: .4rem; }
.cta:hover { background: var(--hb-accent-bright); text-decoration: none; }
.cta.secondary { background: transparent; color: #fff; border: 2px solid var(--hb-accent); }
main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
section { margin-bottom: 3rem; }
h2 { font-size: 1.8rem; color: var(--hb-dark); margin-bottom: 1rem; padding-bottom: .4rem; border-bottom: 3px solid var(--hb-accent); }
h3 { font-size: 1.3rem; color: var(--hb-mid); margin: 1.4rem 0 .5rem; }
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin: 1.5rem 0; }
.grid .card { flex: 1 1 260px; max-width: 360px; }
.card { background: var(--hb-bg); border: 1px solid var(--hb-border); border-radius: 10px; padding: 1.25rem 1.4rem; }
.card h4 { margin-bottom: .35rem; color: var(--hb-dark); font-size: 1.05rem; }
.page-toc { font-size: .95rem; margin: 1rem 0 1.5rem; color: var(--hb-muted); }
.blog-filter .filter-btn { background: transparent; border: 1px solid var(--hb-border); color: var(--hb-dark); padding: .4rem .8rem; margin-right: .4rem; border-radius: 4px; font-size: .85rem; cursor: pointer; }
.blog-filter .filter-btn.active, .blog-filter .filter-btn:hover { background: var(--hb-accent); color: #fff; border-color: var(--hb-accent); }
.blog-item { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--hb-accent); }
.blog-item h2 { font-size: 1.4rem; border: none; padding: 0; margin-bottom: .3rem; }
.blog-item .meta { font-size: .85rem; color: var(--hb-muted); margin-bottom: .5rem; }
p.meta { font-size: .85rem; color: var(--hb-muted); margin-bottom: 1rem; }
ul, ol { margin: .8rem 0 .8rem 1.4rem; }
li { margin-bottom: .4rem; }
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--hb-border); padding: .65rem .85rem; text-align: left; }
th { background: var(--hb-dark); color: #fff; }
tr:nth-child(even) { background: #f8fafc; }
.callout { background: var(--hb-accent-light); border-left: 4px solid var(--hb-accent); padding: 1rem 1.25rem; margin: 1.25rem 0; border-radius: 0 6px 6px 0; }
.muted { color: var(--hb-muted); font-size: .95rem; }
.review { background: var(--hb-bg); border: 1px solid var(--hb-border); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.review .meta { font-size: .85rem; color: var(--hb-muted); margin-bottom: .4rem; }
.review-summary { font-size: 1.05rem; margin: .5rem 0 1.25rem; color: var(--hb-dark); }
.stars { color: #d4a017; font-size: 1.15rem; letter-spacing: 1px; }
/* Consultant directory */
.consultant-list { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.consultant-list li { padding: .75rem 0; border-bottom: 1px solid var(--hb-border); }
.consultant-list a { font-weight: 600; }
.consultant-list .country { display: block; font-size: .85rem; color: var(--hb-muted); margin-top: .15rem; }
.consultant-list .specs { display: block; font-size: .85rem; margin-top: .2rem; }
.consultant-list .badge { display: inline-block; margin-top: .3rem; font-size: .75rem; background: var(--hb-accent); color: #fff; padding: .15rem .45rem; border-radius: 3px; }
.filter-bar { margin: 1.25rem 0; }
.filter-bar input { max-width: 420px; }
form { background: var(--hb-bg); padding: 1.5rem; border-radius: 10px; max-width: 480px; }
input, textarea, select { width: 100%; padding: .6rem; margin: .4rem 0 1rem; border: 1px solid var(--hb-border); border-radius: 5px; font-family: inherit; }
button { background: var(--hb-mid); color: #fff; border: none; padding: .7rem 1.4rem; border-radius: 5px; cursor: pointer; font-weight: 600; }
button:hover { background: var(--hb-dark); }
footer { background: var(--hb-dark); color: #cbd5e1; text-align: center; padding: 1.5rem; font-size: .9rem; }
footer a { color: var(--hb-accent-bright); }
@media (max-width: 860px) {
  .hero h1 { font-size: 1.9rem; }
  .header-inner { padding: .5rem 1rem; }
}