:root {
  --bg: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --border: #e4e8ee;
  --accent: #1f6feb;
  --accent-text: #ffffff;
  --header-h: 64px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }

/* Menu (desktop) */
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a,
.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.menu a:hover,
.submenu-toggle:hover,
.menu a[aria-current="page"] {
  color: var(--text);
  background: #f2f5f9;
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
}
.submenu-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.has-submenu { position: relative; }

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.submenu.open { display: block; }

.menu .btn {
  margin-left: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}
.menu .btn:hover { background: #1a5fd0; color: var(--accent-text); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 800px) {
  .menu-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .primary-nav.open { display: block; }

  .menu {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }
  .menu a,
  .submenu-toggle {
    width: 100%;
    padding: 12px;
  }
  .submenu-toggle { justify-content: space-between; }

  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
  }

  .menu .btn {
    margin: 8px 0 0;
    justify-content: center;
  }
}

/* Placeholder content */
.hero { padding: 64px 0; }
.hero h1 { margin: 0 0 12px; font-size: 2.2rem; }
.hero p { margin: 0; color: var(--muted); }
