/* === Layout === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--side-pad-mobile); }
}

.section { padding: var(--spacing-section) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-unit); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-unit); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-unit); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-dark);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-on-dark);
}

/* === Cards === */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--color-border-strong);
}
/* Card that is itself a link (e.g. home section cards) */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover h3 {
  color: var(--color-primary);
}

/* === Breadcrumbs === */
.breadcrumb-nav {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.breadcrumb-nav a { color: var(--color-text-muted); }
.breadcrumb-nav a:hover { color: var(--color-primary-hover); }
.breadcrumb-nav [aria-current="page"] { color: var(--color-text); font-weight: 500; }
.breadcrumb-nav .sep { margin: 0 0.5rem; color: var(--color-border-strong); }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 40px;
  width: auto;
}
.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.site-nav a {
  font-weight: 500;
  color: var(--color-text);
}
.site-nav a:hover { color: var(--color-primary-hover); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    z-index: 99;
  }
  .site-nav.is-open ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav.is-open li {
    padding: 0.75rem var(--side-pad-mobile, 1.25rem);
  }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* === Footer === */
.site-footer {
  background: var(--color-dark);
  color: var(--color-on-dark);
  padding: var(--spacing-section) 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-unit);
  padding-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand { padding-right: 1.5rem; }
.footer-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-tagline { color: var(--color-on-dark-muted); font-size: 0.9rem; }
.footer-col-title { font-weight: 600; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--color-on-dark-muted); }
.footer-col a:hover { color: var(--color-on-dark); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-on-dark-muted);
}
.footer-legal-links { display: flex; gap: 1.5rem; list-style: none; }
@media (max-width: 640px) {
  .footer-legal { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* === FAQ Accordion === */
.faq { margin-top: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 1.25rem;
}
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* === Icon utility === */
.icon-24 { width: 24px; height: 24px; }
.svg-sprite-defs { display: none; }
