/* site.css — Path2Global site chrome + shared components */

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

[data-theme='dark'] .site-header {
  background: rgba(20, 27, 38, 0.82);
}

.site-header.scrolled {
  border-bottom-color: var(--color-divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand:hover { color: var(--color-text); }
.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-name .accent {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.9rem;
  color: var(--color-text-soft);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
}

.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav a.active {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-soft);
  border: 1px solid transparent;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 4.5rem 0 0 0;
  background: var(--color-bg);
  z-index: 40;
  padding: 2rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 1rem 0.5rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  border-bottom: 1px solid var(--color-divider);
}

.mobile-menu .btn { margin-top: 1.5rem; align-self: flex-start; }

/* --- FOOTER --- */
.site-footer {
  background: #1a2331;
  color: #f0e8d8;
  padding-block: clamp(4rem, 7vw, 6rem) 2.5rem;
  margin-top: clamp(4rem, 8vw, 8rem);
}

[data-theme='dark'] .site-footer {
  background: #0e1520;
  border-top: 1px solid #253143;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(240, 232, 216, 0.14);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-brand .accent {
  color: #f27a4d;
  font-style: italic;
  font-weight: 400;
}

.footer-brand:hover { color: #fff; }

.footer-tagline {
  color: rgba(240, 232, 216, 0.7);
  font-size: var(--text-sm);
  max-width: 28ch;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f27a4d;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  color: rgba(240, 232, 216, 0.82);
  font-size: var(--text-sm);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  color: rgba(240, 232, 216, 0.55);
  font-size: var(--text-xs);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom .partners {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* --- Section header primitives --- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-header h2 {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-header .lead {
  font-size: var(--text-base);
  color: var(--color-text-soft);
  line-height: 1.65;
}

/* --- Anchors --- */
[id] { scroll-margin-top: 5rem; }
