/* =========================================================
   Net Income Success - layout.css
   Repeated page structure: header, nav, heroes, sections, footer
   ========================================================= */

/* Header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.nav-toggle-bars {
  display: grid;
  gap: 0.375rem;
}

.nav-toggle-bars span {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 700px) {
  .header-inner {
    position: relative;
    min-height: 4.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: none;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 0.55rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    text-align: center;
  }
}

.brand { text-decoration: none; display: flex; align-items: center; }
.brand-wm { display: flex; flex-direction: column; }
.brand-rule { width: 100%; height: 2px; background: #C49A38; opacity: 0.6; margin-bottom: 7px; }
.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 3.69vw, 2.5rem);
  font-weight: 600;
  color: #ECE7DE;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-sub {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(.6rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #C49A38;
  margin-top: 5px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-white);
}

.nav-cta {
  padding: 0.55rem 0.9rem;
  color: var(--color-dark) !important;
  background: var(--color-accent);
  border-radius: 999px;
}

/* Reusable inner-page hero */

.page-hero {
  color: var(--color-white);
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(23, 32, 51, 0.76) 42%, rgba(17, 24, 39, 0.36) 100%),
    linear-gradient(90deg, #111827 0%, #263247 52%, #7b8492 100%);
}

.page-hero-inner {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.hero-lead {
  max-width: 68ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-note {
  max-width: 62ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

/* Sections */

.section {
  padding-block: var(--section-space);
}

.section-white {
  background: var(--color-surface);
}

.section-dark {
  color: var(--color-white);
  background: var(--color-navy);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section-intro {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-intro.centered {
  margin-inline: auto;
  text-align: center;
}

.section-intro p {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.section-dark .section-intro p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* Footer */

.site-footer {
  padding-block: 3rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--color-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: var(--color-white);
}

/* Responsive layout */

@media (max-width: 860px) {
  /*.header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }*/

  .site-nav ul {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .site-nav ul,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav ul {
    gap: 0.65rem;
  }

  .nav-cta {
    text-align: center;
  }
}
