/* =========================
       RESET
    ========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

ul,
ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

/* =========================
       TOKENS
    ========================= */
:root {
  --cream: #faf7f2;
  --cream2: #f4ede3;
  --white: #ffffff;
  --accent: #1a6b3c;
  --accent-lt: #e8f5ee;
  --accent-md: #b8dfca;
  --accent-dark: #145530;
  --border: #ddd5c8;
  --text: #1c1714;
  --text2: #5c5248;
  --text3: #9c8f84;
  --shadow-sm: rgba(60, 40, 20, 0.06);
  --shadow-md: rgba(60, 40, 20, 0.13);
  --nav-h: 64px;

  --footer-bg: #111827;
  --footer-bg-2: #0f172a;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-text: rgba(255, 255, 255, 0.9);
  --footer-muted: rgba(255, 255, 255, 0.65);
  --footer-link: rgba(255, 255, 255, 0.82);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================
       HEADER
    ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow-sm);
}

.navbar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}

.nav-links > li > a:hover {
  background: var(--accent-lt);
  color: var(--accent);
}

/* Desktop dropdown: hover */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px var(--shadow-md);
  padding: 0.75rem;
  list-style: none;
  display: none;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.dropdown-menu li a:hover {
  background: var(--accent-lt);
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.mobile-toggle:hover {
  background: var(--cream2);
}

/* =========================
       BREADCRUMB
    ========================= */
.breadcrumb {
  background: var(--cream2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}

.breadcrumb-item a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.14s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 6px;
  color: var(--text3);
}

.breadcrumb-item.active {
  color: var(--text2);
  font-weight: 500;
}

/* =========================
       PAGE TITLE
    ========================= */
.page-title {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.page-title h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-title p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
}

/* =========================
       MAIN CONTENT
    ========================= */
main {
  padding: 1rem 0 3rem;
}

main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-md);
  display: inline-block;
}

main h2:first-child {
  margin-top: 0;
}

main ul {
  padding-left: 1.25rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

main ul li {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.7;
}

main p {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.75;
  margin-top: 0.25rem;
}

main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main a:hover {
  color: var(--accent-dark);
}

/* =========================
       FOOTER
    ========================= */
footer {
  background: linear-gradient(180deg, var(--footer-bg), var(--footer-bg-2));
  border-top: 1px solid var(--footer-border);
  margin-top: auto;
}

.footer-content {
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-column h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 1rem;
}

.footer-column p {
  font-size: 13px;
  color: var(--footer-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--footer-link);
  transition:
    color 0.14s ease,
    transform 0.14s ease;
}

.footer-links li a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.copyright {
  border-top: 1px solid var(--footer-border);
  padding: 1.1rem 0;
}

.copyright p {
  font-size: 12px;
  color: var(--footer-muted);
}

/* =========================
       RESPONSIVE
    ========================= */
@media (max-width: 960px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px var(--shadow-md);
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li > a {
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile dropdown: JS-driven .active instead of hover */
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background: var(--cream);
    margin-top: 4px;
    padding: 0.5rem;
  }

  /* Disable hover on mobile — only .active opens */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .page-title {
    padding: 2rem 1rem 1.5rem;
  }
}
