/* ============================================================
   SentinelPeak Insurance — layout.css
   Page shell, navigation, hero, section wrappers, footer.
   ============================================================ */

/* ── NOTIFICATION BANNER ───────────────────────────────── */
.notification-banner {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 10px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.notification-banner[hidden] { display: none; }

.notification-content {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
}

.notification-content p {
  flex: 1;
  text-align: center;
}

.notification-close {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  margin-left: auto;
}

/* ── NAVIGATION BAR ──────────────────────────────────────
   3-column grid keeps the logo perfectly centered regardless of how
   wide the left/right groups become. */
.navigation-bar {
  background: var(--color-white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 40px;
  width: 100%;
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--color-border);
}

.nav-links {
  justify-self: start;
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav-link:hover { color: var(--color-brand); }
.nav-link[aria-current="page"] { color: var(--color-brand); font-weight: 500; }

.nav-logo {
  justify-self: center;
  display: flex;
  align-items: center;
  height: 42px;
}

.nav-logo a { display: flex; align-items: center; height: 100%; }
.nav-logo img { height: 42px; width: auto; max-width: 300px; object-fit: contain; }

.nav-actions {
  justify-self: end;
  display: flex;
  gap: 24px;
  align-items: center;
  height: 48px;
}

/* Auth-state groups: exactly one is visible at a time, toggled by auth.js. */
.nav-group {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 48px;
}

.nav-group[hidden] { display: none; }

/* ── Frontdoor (Zone A) nav modifier ─────────────────────
   Zone A pages run a slim header: centered SentinelPeak logo with a
   single profile-avatar trigger on the far right. No marketing
   links, no Zone B CTAs — the frontdoor experience stays separate
   from the main consumer site. The 3-column grid keeps the logo
   visually centered regardless of the avatar's presence. */
.navigation-bar--frontdoor {
  grid-template-columns: 1fr auto 1fr;
  padding: 12px 24px;
  min-height: 64px;
}

.navigation-bar--frontdoor .nav-logo { justify-self: center; }
.navigation-bar-spacer { justify-self: start; }
.navigation-bar-account { justify-self: end; display: flex; align-items: center; }

.nav-account {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  padding: 4px 0;
}

.nav-account:hover { color: var(--color-brand); }

/* Standout-box treatment for the signed-in Account link. Same pill
   shape and brand-pink fill as the legacy nav CTA, with a subtle
   lift on hover so it reads as the primary nav action. */
.nav-account--cta {
  background: var(--color-brand);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(229, 171, 213, 0.25);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.nav-account--cta:hover {
  background: var(--color-brand-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(185, 88, 205, 0.28);
}

.nav-account--cta:focus-visible {
  outline: 2px solid var(--color-brand-deep, var(--color-brand));
  outline-offset: 3px;
}

.nav-signin-btn {
  background: var(--color-brand);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-signin-btn:hover { background: var(--color-brand-hover); }

.nav-login-btn {
  background: transparent;
  color: inherit;
  border: none;
  padding: 8px 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-login-btn:hover { color: var(--color-brand); }

@media (max-width: 1024px) {
  .navigation-bar { padding: 14px 24px; }
  .nav-links { gap: 16px; }
}

@media (max-width: 768px) {
  .navigation-bar {
    padding: 12px 16px;
    min-height: 64px;
    flex-wrap: wrap;
  }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .nav-logo { height: 36px; }
  .nav-logo img { height: 36px; max-width: 256px; }
  .nav-account { display: none; }
  /* Keep the standout Account CTA visible on phones; just tighten it. */
  .nav-account--cta { display: inline-flex; padding: 8px 14px; font-size: 13px; }
  .nav-signin-btn { padding: 10px 14px; font-size: 13px; }
}

/* ── HERO SECTION ──────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  padding: 40px 24px 80px 24px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 896px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-icon {
  width: 94px;
  height: auto;
}

.hero-headline {
  font-family: var(--font-family-heading);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-dark);
  text-align: center;
}

.hero-subheadline {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
}

/* Small label above hero/section headlines (Tools, About, etc.). */
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-deep);
  margin-bottom: 12px;
}

/* Centered "back to home" link row, used at the bottom of utility pages. */
.page-back-row {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}

/* About-page story paragraphs (max-width column for readability). */
.about-story {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-story-paragraph {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-mid);
}

@media (max-width: 1024px) {
  .hero-headline { font-size: 56px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 32px 16px 56px 16px; }
  .hero-headline { font-size: 40px; }
  .hero-subheadline { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; }
}

/* ── SECTION WRAPPER ───────────────────────────────────── */
.section-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) 80px;
}

@media (max-width: 1024px) {
  .section-wrapper { padding: 60px 40px; }
}

@media (max-width: 768px) {
  .section-wrapper { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .section-wrapper { padding: 32px 16px; }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-title { font-size: 36px; }
  .section-header { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 28px; }
}

/* ── STATS BAND (dark, full-width) ─────────────────────── */
.stats-band {
  background: var(--color-dark-deep);
  color: var(--color-white);
  padding: 80px 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.stat-item {
  flex: 1 0 0;
  min-width: 0;
  text-align: center;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-family-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 16px;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .stats-band { flex-wrap: wrap; padding: 48px 24px; gap: 32px; }
  .stat-item { flex-basis: calc(50% - 16px); }
  .stat-number { font-size: 36px; }
}

@media (max-width: 480px) {
  .stats-band { padding: 40px 16px; }
  .stat-item { flex-basis: 100%; }
}

/* ── CTA BAND ──────────────────────────────────────────── */
.cta-band {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 100px 40px;
  text-align: center;
}

.cta-band-inner {
  max-width: 664px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.cta-band-headline {
  font-family: var(--font-family-heading);
  font-size: 48px;
  font-weight: 600;
  color: var(--color-white);
}

.cta-band-subtext {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-band-footnote {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .cta-band { padding: 64px 24px; }
  .cta-band-headline { font-size: 36px; }
}

@media (max-width: 480px) {
  .cta-band-headline { font-size: 28px; }
  .cta-band-actions { flex-direction: column; width: 100%; }
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 80px 40px 40px 40px;
}

/* Zone A pages use a slim legal-only footer (no product/marketing
   columns since those would cross into Zone B). Drops the top
   padding/border and tightens the bar. */
.footer--legal-only {
  padding: 24px 40px;
}
.footer--legal-only .footer-bottom {
  margin: 0 auto;
  border-top: none;
  padding-top: 0;
}

.footer-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 412px;
}

.footer-logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.footer-logo img { height: 100%; width: auto; object-fit: contain; }

.footer-disclaimer {
  font-size: 16px;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  background: var(--color-dark-deep);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.social-icon:hover { background: rgba(255, 255, 255, 0.15); }

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.footer-column { min-width: 160px; }

.footer-column h3 {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column a {
  font-size: 16px;
  color: var(--color-white);
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.footer-column a:hover { opacity: 0.75; }

.footer-bottom {
  max-width: var(--content-max-width);
  margin: 33px auto 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 14px;
  color: var(--color-white);
}

.footer-legal {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-legal a {
  font-size: 14px;
  color: var(--color-white);
}

.footer-legal a:hover { opacity: 0.75; }

@media (max-width: 1024px) {
  .footer-content { gap: 40px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 768px) {
  .footer { padding: 56px 24px 32px 24px; }
  .footer-content { flex-direction: column; gap: 40px; }
  .footer-left { max-width: 100%; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .footer-column { min-width: calc(50% - 16px); flex: 0 0 calc(50% - 16px); }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer { padding: 40px 16px 24px 16px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-column { min-width: 100%; }
  .footer-legal { flex-wrap: wrap; gap: 16px; }
}
