/* SABESUS – Shared chrome for subpages
   ------------------------------------------------
   Imports tokens (colors_and_type.css) and provides nav, footer,
   topbar, btn, eyebrow + dark-theme rules consistent with
   "Sabesus Website.html". Page-specific styles live inline. */

@import url('colors_and_type.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-page); transition: background 300ms ease; }

/* ---------- DARK THEME ---------- */

/* Page wrapper */
.page { max-width: 1520px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 1280px) { .page { padding: 0 24px; } }

/* Top bar */
.topbar {
  background: var(--sbs-ink-900);
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 0;
}
.topbar .inner {
  max-width: 1520px; margin: 0 auto; padding: 0 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
@media (max-width: 1280px) { .topbar .inner { padding: 0 24px; } }
.topbar a { color: var(--sbs-green-400); text-decoration: none; }
.topbar .meta { display: flex; gap: 26px; }
.topbar .meta span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .material-symbols-rounded { font-size: 16px; color: var(--sbs-green-400); }

/* Nav */
nav.main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; gap: 60px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,244,246,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav.main .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav.main .logo img { height: 80px; width: auto; }
nav.main .links { display: flex; gap: 14px; }
/* ============ Nav link sweep effect (works on any markup) ============ */
nav.main .links a {
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
  color: var(--sbs-ink-800); text-decoration: none;
  position: relative;
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background-image: linear-gradient(to right, var(--sbs-green-600), var(--sbs-green-600));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-size 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background-position 0s 380ms,
              color 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 280ms ease;
}
nav.main .links a:hover {
  color: #ffffff;
  background-size: 100% 100%;
  background-position: left center;
  box-shadow: inset 0 0 0 1px #ffffff;
  transition: background-size 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
              color 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 280ms ease;
}
/* On mouse-leave, sweep out to the right */
nav.main .links a:not(:hover) {
  background-position: right center;
}
nav.main .links a.active {
  color: #ffffff;
  background-size: 100% 100%;
  background-position: left center;
  box-shadow: inset 0 0 0 1px #ffffff;
}

/* Buttons */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
  transition: all 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  line-height: 1; height: 56px; padding: 0 28px; border-radius: 26px;
  text-decoration: none;
}
.btn-primary { background: var(--sbs-ink-800); color: #fff; }
.btn-primary:hover { background: #0a1110; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-brand { background: var(--sbs-green-600); color: #fff; }
.btn-brand:hover { background: var(--sbs-green-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--sbs-ink-800); border: 1.5px solid var(--border-default); }
.btn-ghost:hover { border-color: var(--sbs-ink-800); }
.btn-link {
  background: transparent; padding: 0; height: auto;
  color: var(--sbs-green-600); text-decoration: underline;
  text-underline-offset: 4px; font-size: 17px; font-weight: 500;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  color: var(--sbs-ink-800);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.eyebrow.dark { color: #fff; }
.eyebrow::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sbs-green-600); flex-shrink: 0;
}

/* Page hero (subpage) */
.page-hero {
  padding: 60px 0 80px 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.page-hero .crumbs {
  font-family: var(--font-body); font-size: 14px; color: var(--sbs-ink-500);
  display: inline-flex; gap: 10px; align-items: center;
}
.page-hero .crumbs a { color: var(--sbs-ink-500); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--sbs-green-600); }
.page-hero .crumbs .sep { color: var(--sbs-ink-400); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 300; font-size: 96px;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--sbs-ink-800); margin: 0; max-width: 1100px;
}
.page-hero h1 strong { font-weight: 600; }
.page-hero h1 em {
  font-family: var(--font-wordmark); font-style: normal;
  font-weight: 400; color: var(--sbs-green-600); letter-spacing: 0.02em;
}
.page-hero .punctuation { color: var(--sbs-green-600); }
.page-hero .lead {
  font-family: var(--font-body); font-size: 19px; line-height: 36px;
  color: var(--sbs-ink-500); max-width: 720px; margin: 0;
}

/* Section header */
.section-head {
  display: flex; flex-direction: column; gap: 24px;
  margin-bottom: 64px; max-width: 760px;
}
.section-head.center { margin: 0 auto 64px; align-items: center; text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 300; font-size: 64px;
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--sbs-ink-800); margin: 0;
}
.section-head h2 strong { font-weight: 600; color: var(--sbs-ink-800); }
.section-head .sub {
  font-family: var(--font-body); font-size: 16px; line-height: 32px;
  color: var(--sbs-ink-500); max-width: 600px;
}

/* Footer */
footer { padding: 80px 0 40px 0; }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-grid img.logo { height: 84px; width: auto; margin-bottom: 24px; }
.footer-grid p {
  font-family: var(--font-body); font-size: 14px; line-height: 26px;
  color: var(--sbs-ink-500); margin: 0; max-width: 360px;
}
.footer-grid h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--sbs-ink-800); margin: 0 0 20px 0;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid ul a {
  font-family: var(--font-body); font-size: 14px;
  color: var(--sbs-ink-600); text-decoration: none;
}
.footer-grid ul a:hover { color: var(--sbs-green-600); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-body); font-size: 13px; color: var(--sbs-ink-500);
}
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a { color: var(--sbs-ink-500); text-decoration: none; }
.footer-bottom .legal a:hover { color: var(--sbs-green-600); }

/* Final CTA strip (shared) */
.cta-strip {
  background: var(--sbs-ink-800);
  border-radius: 40px;
  margin: 80px 0;
  padding: 80px 80px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; right: -180px; top: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--sbs-green-tint) 0%, transparent 70%);
}
.cta-strip h2 {
  position: relative;
  font-family: var(--font-display); font-weight: 300; font-size: 56px;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px 0;
}
.cta-strip h2 strong { font-weight: 600; }
.cta-strip p {
  position: relative;
  font-family: var(--font-body); font-size: 16px; line-height: 30px;
  color: rgba(255,255,255,0.78); margin: 0; max-width: 540px;
}
.cta-strip .actions {
  position: relative;
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.cta-strip .info { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.6); }
.cta-strip .info a { color: var(--sbs-green-400); text-decoration: none; display: block; font-size: 16px; margin-top: 4px; font-weight: 500; }

/* Responsive */
@media (max-width: 1100px) {
  .page-hero h1 { font-size: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-strip { grid-template-columns: 1fr; padding: 60px 32px; }
  .cta-strip h2 { font-size: 40px; }
}
@media (max-width: 720px) {
  nav.main .links { display: none; }
  .page-hero h1 { font-size: 44px; }
  .section-head h2 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}
