@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', 'Work Sans', system-ui, sans-serif;
  background: #F5F5F5;
  color: #1A1A2E;
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 64px; /* space for fixed bottom nav */
}

/* scroll offset for fixed bottom nav */
section[id] { scroll-margin-top: 24px; }
section[id]:target { scroll-margin-top: 24px; }

/* ===== SR ONLY ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== BOTTOM FIXED NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1A237E;
  z-index: 1000;
  box-shadow: none;
  border-top: 3px solid #FF6F00;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #F5F5F5;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  min-height: 40px;
  padding: 4px 0;
}

.logo-img { width: 36px; height: 36px; object-fit: contain; display: block; }

.brand-text { color: #F5F5F5; font-family: 'Outfit', sans-serif; font-weight: 700; }

/* nav dropdown: details > summary + menu > li > a */
.nav-dropdown {
  position: relative;
}

.nav-dropdown[open] > .nav-menu {
  display: flex;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #F5F5F5;
  cursor: pointer;
  list-style: none;
  min-height: 40px;
  padding: 4px 8px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 160ms ease;
  user-select: none;
}

.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { display: none; }

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: #FF6F00;
  outline: none;
}

.toggle-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }

.nav-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #1A237E;
  border: 2px solid #FF6F00;
  border-radius: 4px;
  flex-direction: column;
  min-width: 200px;
  list-style: none;
  padding: 8px 0;
}

.nav-link {
  display: block;
  color: #F5F5F5;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
  min-height: 40px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #FF6F00;
  color: #fff;
  outline: none;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 70vh;
  background: #1A237E;
  display: flex;
  align-items: center;
  padding: 40px 24px 48px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}

.hero-deco {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-shape { display: block; }

.hero-content {
  text-align: right;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  background: #FF6F00;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
  text-transform: none;
}

.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #F5F5F5;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(245,245,245,0.85);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  background: #FF6F00;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  transition: background 160ms ease, transform 160ms ease;
  min-height: 48px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #e65c00;
  transform: translateY(-2px);
  outline: 2px solid #FF6F00;
  outline-offset: 3px;
}

/* ===== CONTENT LAYOUT (sidebar left + main right) ===== */
.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 40px 24px;
}

/* ===== ASIDE / SIDEBAR ===== */
.sidebar {
  flex: 0 0 220px;
  width: 220px;
  margin-right: 32px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.sidebar-inner {
  background: #1A237E;
  border-radius: 4px;
  padding: 24px 18px;
  color: #F5F5F5;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FF6F00;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.sidebar-links {
  list-style: none;
  margin-bottom: 20px;
}

.sidebar-links li + li { margin-top: 4px; }

.sidebar-link {
  display: block;
  color: rgba(245,245,245,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 2px;
  border-left: 3px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  min-height: 36px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  background: rgba(255,111,0,0.18);
  border-left-color: #FF6F00;
  color: #fff;
  outline: none;
}

.sidebar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,111,0,0.15);
  border: 1px solid #FF6F00;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FF6F00;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1 1 0;
  min-width: 0;
}

.content-article {
  width: 100%;
}

.content-sections {
  width: 100%;
}

/* ===== CONTENT SECTIONS (injected via page.content) ===== */
.main-content section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
}

.main-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.main-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #1A237E;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.main-content h2 + p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.main-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1A237E;
  margin: 24px 0 10px;
}

.main-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: #2c2c3e;
  margin-bottom: 14px;
}

.main-content ul,
.main-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.main-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: #2c2c3e;
  margin-bottom: 6px;
}

.main-content a {
  color: #FF6F00;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.main-content a:hover { color: #e65c00; }

.main-content strong { color: #1A237E; font-weight: 700; }

.main-content blockquote {
  border-left: 4px solid #FF6F00;
  background: rgba(26,35,126,0.05);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
  font-style: normal;
  color: #1A237E;
  font-weight: 500;
}

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.main-content th {
  background: #1A237E;
  color: #F5F5F5;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.main-content td {
  padding: 9px 14px;
  border-bottom: 1px solid #e0e0e0;
  color: #2c2c3e;
}

.main-content tr:nth-child(even) td { background: rgba(26,35,126,0.04); }

/* card-like callout inside content */
.main-content .callout,
.main-content .tip,
.main-content .note {
  background: #fff;
  border: 2px solid #FF6F00;
  border-radius: 28px;
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(26,35,126,0.08);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1A237E;
  color: #F5F5F5;
  margin-top: auto;
  padding-bottom: 72px; /* clear bottom nav */
}

/* footer > section*n */
.site-footer > section {
  display: block;
}

.footer-contact {
  background: #FF6F00;
  padding: 40px 24px;
  text-align: center;
}

.footer-contact h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-contact .subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto 16px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #fff;
}

.sub-input {
  flex: 1 1 0;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  background: #fff;
  color: #1A1A2E;
  min-height: 48px;
}

.sub-btn {
  background: #1A237E;
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  min-height: 48px;
  transition: background 160ms ease;
}

.sub-btn:hover,
.sub-btn:focus-visible {
  background: #0d1557;
  outline: 2px solid #fff;
}

.footer-contact-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-contact-link a {
  color: #fff;
  text-decoration: underline;
}

.footer-info {
  display: flex;
  gap: 40px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-brand-col {
  flex: 1 1 0;
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #F5F5F5;
  margin-bottom: 10px;
}

.footer-brand-desc {
  color: rgba(245,245,245,0.72);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-links-col {
  flex: 0 0 200px;
}

.footer-links-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FF6F00;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li + li { margin-top: 6px; }

.footer-links a {
  color: rgba(245,245,245,0.78);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 160ms ease;
  display: block;
  min-height: 32px;
  line-height: 2;
}

.footer-links a:hover { color: #FF6F00; }

.footer-bottom {
  border-top: 1px solid rgba(245,245,245,0.15);
  text-align: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  color: rgba(245,245,245,0.55);
  line-height: 1.7;
}

.footer-bottom p + p { margin-top: 4px; }

/* ===== CARD STYLES (for potential use in content) ===== */
.card {
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(26,35,126,0.10);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,35,126,0.14);
}

/* ===== PARALLAX SCROLL EFFECT ===== */
.hero-deco {
  transition: transform 200ms ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cta { transition: none; }
  .hero-deco { transition: none; }
  .nav-link { transition: none; }
  .sidebar-link { transition: none; }
  .card { transition: none; }
  .sub-btn { transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-layout {
    flex-direction: column;
    padding: 28px 16px;
    gap: 0;
  }

  .sidebar {
    flex: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 28px;
    position: static;
  }

  .sidebar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .sidebar-title { width: 100%; margin-bottom: 4px; }

  .sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    flex: 1 1 auto;
  }

  .sidebar-links li { flex: 0 0 auto; }

  .sidebar-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
    font-size: 0.82rem;
    min-height: 36px;
  }

  .sidebar-link:hover { border-bottom-color: #FF6F00; background: transparent; }

  .sidebar-badge { width: 100%; }

  .footer-info {
    flex-direction: column;
    gap: 24px;
    padding: 28px 16px;
  }

  .footer-links-col { flex: none; }

  .hero-inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    padding-top: 40px;
  }

  .hero-deco { order: -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .hero-section {
    min-height: 70vh;
    padding: 32px 16px 40px;
  }

  .hero-content { max-width: 100%; }

  .hero-h1 { font-size: 1.9rem; }

  .hero-lead { font-size: 1rem; }

  .bottom-nav-inner { padding: 0 14px; }

  .brand-text { font-size: 0.88rem; }

  .subscribe-form { flex-direction: column; border-radius: 4px; }
  .sub-input { border-radius: 4px 4px 0 0; }
  .sub-btn { border-radius: 0 0 4px 4px; }

  .main-content h2 { font-size: 1.35rem; }

  .nav-menu { right: -4px; min-width: 180px; }
}

@media (min-width: 901px) {
  .hero-inner { min-height: calc(70vh - 80px); }
}

/* ===== UTILITY ===== */
img { max-width: 100%; height: auto; display: block; }

a:focus-visible {
  outline: 2px solid #FF6F00;
  outline-offset: 3px;
  border-radius: 2px;
}
