/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-dark);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    text-decoration: underline;
}

:root {
    --blue: #007BFF;
    --blue-dark: #0b3d91;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;                  /* Adjust height as needed */
    background: url('/images/hero.jpg') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;            /* Vertical centering */
    justify-content: flex-start;    /* Align content to the left */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50); /* Slightly darker overlay for better text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 33%;                     /* ~left third – adjust to 30%–38% as needed */
    max-width: 480px;               /* Prevents it from getting too narrow on ultra-wide screens */
    min-width: 320px;               /* Keeps it readable on smaller desktops */
    padding-left: 6%;               /* Breathing room from left edge (percentage = viewport-relative) */
    padding-right: 2%;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7); /* Subtle shadow for readability */
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero {
        height: 380px;
    }

    .hero-content {
        width: 92%;
        padding-left: 4%;
        padding-right: 4%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        height: 450px;
        justify-content: center;     /* Center on tablets for better balance */
    }
    
    .hero-content {
        width: 85%;                 /* Almost full width */
        max-width: none;
        min-width: auto;
        padding-left: 5%;
        padding-right: 5%;
        text-align: center;         /* Center text on smaller screens */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* ==================== Hamburger Menu ==================== */

/* Hide mobile nav by default */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 999;
    padding-top: 80px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 2rem;
}

.mobile-nav a {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.3rem;
    color: var(--blue-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    text-decoration: underline;
}

/* Hamburger Button */
.hamburger {
    display: none;                /* hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .header-inner {
        justify-content: space-between;
    }
}

/* Optional: overlay when menu open */
body.menu-open {
    overflow: hidden;
}

/* ==================== Footer ==================== */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
}

.site-footer .tagline {
    color: #0b0b0b;
    font-weight: 500;
}

.site-footer a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-legal-links {
    display: inline-block;
    margin-top: 0.75rem;
}

.separator {
    color: #999;
    margin: 0 0.5rem;
    user-select: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
    
    .footer-legal-links {
        display: block;
        line-height: 2.2;           /* increased for better spacing between lines */
    }
    
    /* Keep separators visible – no display: none */
    
    .site-footer {
        padding: 2rem 0 1.5rem;
    }
}

/* About Page */
.about-container {
  max-width: 800px;
  margin: 0 auto;          /* centers the block */
  padding: 4rem 20px;      /* adds side breathing room */
}

.about-container p {
  margin: 2rem 0;
}

.about-container a {
    color: var(--blue-dark);
    text-decoration: none;
}

.about-container a:hover {
    text-decoration: underline;
}

.about-container ul {
    display: block;
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
}

.about-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 1.25rem 0 2rem;
  color: #1f2d3d;
  font-weight: 500;
}

@media (max-width: 992px) {
  .about-container {
    padding: 3rem 24px;
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 2.5rem 18px;
  }
}

/* Contact Form Styles */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a7d95;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #1f2d3d;
}

#contactForm {
    max-width: 600px;
    margin: 2rem auto 0;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
}

#contactForm textarea {
    resize: vertical;
    min-height: 140px;
}

#contactForm button {
    background: var(--blue-dark);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: background 0.2s;
}

#contactForm button:hover {
    background: var(--blue);
}

.honeypot {
    display: none;
}

#formResponse {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    min-height: 1.5em;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    #contactForm {
        padding: 1.8rem;
    }
    #contactForm input,
    #contactForm textarea {
        font-size: 16px; /* prevent iOS zoom */
    }
}

/* Minimal 404 Page */
.error-404 {
    min-height: calc(100vh - var(--header-height, 80px) - var(--footer-height, 120px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
    background: #f8f9fa; /* light background to match site feel */
}

.error-container {
    max-width: 600px;
    width: 100%;
}

.error-404 h1 {
    font-size: 7rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 0 0 1rem;
    line-height: 1;
}

.error-404 h2 {
    font-size: 2.2rem;
    margin: 0 0 1.5rem;
    color: #333;
}

.error-404 p {
    font-size: 1.25rem;
    margin: 0 0 2.5rem;
    color: #555;
}

.error-404 .back-link {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--blue-dark);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.error-404 .back-link:hover,
.error-404 .back-link:focus {
    background: var(--blue-dark);
    color: white;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .error-404 {
        padding: 3rem 1rem;
    }

    .error-404 h1 {
        font-size: 5rem;
    }

    .error-404 h2 {
        font-size: 1.8rem;
    }

    .error-404 p {
        font-size: 1.15rem;
    }

    .error-404 .back-link {
        font-size: 1.2rem;
        padding: 0.7rem 1.5rem;
    }
}

/* Legal Pages (Privacy, Disclosures, etc.) */
.legal-page {
    min-height: calc(100vh - var(--header-height, 80px) - var(--footer-height, 120px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 8rem;
    background: #f8f9fa; /* matches site feel */
}

.legal-container {
    max-width: 720px;
    width: 100%;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.legal-container h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
    text-align: center;
}

.legal-container .effective-date {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 2.5rem;
}

.legal-container h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: #333;
}

.legal-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
}

.legal-container ul {
    margin: 1rem 0 2rem 1.5rem;
    list-style: disc;
}

.legal-container ul li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.legal-container a {
    color: var(--blue-dark);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .legal-page {
        padding: 4rem 1rem 6rem;
    }

    .legal-container {
        padding: 2rem 1.5rem;
    }

    .legal-container h1 {
        font-size: 2.2rem;
    }

    .legal-container h2 {
        font-size: 1.4rem;
    }

    .legal-container p,
    .legal-container ul li {
        font-size: 1rem;
    }
}

/* Enhanced Disclaimer Styling */
.disclaimer-highlight {
    font-size: 1.15rem;
    font-weight: 600;
    color: #d32f2f;                /* Red for emphasis */
    margin: 1rem 0;
    padding: 1rem;
    background: #ffebee;
    border-left: 5px solid #d32f2f;
    border-radius: 4px;
}

.disclaimer-list {
    margin: 1.5rem 0 2.5rem 1.5rem;
    list-style: disc;
}

.disclaimer-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #444;
}

/* Back Links */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* === TABLE STYLING (Desktop) === */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
}
.content-table th, .content-table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #e2e8f0;
}
.content-table th {
  background-color: var(--blue-dark);
  color: white;
  font-weight: 600;
}
.content-table tr:nth-child(even) {
  background-color: #f4f7fc;
}
.content-table tr:hover {
  background-color: #dbeafe;
}
.content-table td {
  color: #5b636e;
}
.table-bold {
  font-weight: bold;
}

/* Scroll note (hidden on desktop) */
.scroll-note {
  display: none;
  background-color: #f2f2f2;
  color: #d32f2f;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #ddd;
  font-weight: 500;
}

/* === RESPONSIVE TABLE (Mobile ≤800px) === */
@media screen and (max-width: 800px) {
  .content-layout {
    display: block !important;   /* Temporarily break flex on mobile to contain overflow */
  }

  .responsive-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block !important;
    width: 100% !important;
    margin: 0 0 2rem 0;
  }

  .content-table {
    margin-top: 1rem;
  }

  .responsive-table table {
    min-width: 700px !important;
  }

  .scroll-note {
    display: block;
  }

  /* Optional: smaller text/padding on mobile */
  .content-table th,
  .content-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .responsive-table th:first-child,
  .responsive-table td:first-child {
    position: static;
    left: auto;
    z-index: auto;
    border-right: 1px solid #e2e8f0;
  }

  .responsive-table th:first-child {
    background: var(--blue-dark);
    z-index: 3;
  }
}
/* ==================== Benchmark (Fed-style) ==================== */

.benchmark-hero {
  position: relative;
  height: 500px;                  /* Adjust height as needed */
  background: url('/images/hero.jpg') center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;            /* Vertical centering */
  justify-content: flex-start;    /* Align content to the left */
}

.benchmark-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50); /* Slightly darker overlay for better text contrast */
  z-index: 1;
}

.benchmark-hero-content {
  position: relative;
  z-index: 2;
  width: 33%;                     /* ~left third – adjust to 30%–38% as needed */
  max-width: 480px;               /* Prevents it from getting too narrow on ultra-wide screens */
  min-width: 320px;               /* Keeps it readable on smaller desktops */
  padding-left: 6%;               /* Breathing room from left edge (percentage = viewport-relative) */
  padding-right: 2%;
  text-align: left;
}

.benchmark-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7); /* Subtle shadow for readability */
}

.benchmark-hero p {
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.95;
}

.version-footer .label,
.version-meta .label {
  opacity: 0.85;
  margin-right: 0.35rem;
  margin-left: 0.35rem;
}

.benchmark-section {
  padding-top: 3.5rem;
}

.benchmark-container {
  max-width: 1100px; /* slightly narrower feels more “report-like” */
}

.benchmark-block {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}

.benchmark-header {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}

.block-header {
  margin-bottom: 1.25rem;
}

.benchmark-title {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
  text-align: left; /* more institutional than centered */
}

.benchmark-caption {
  color: #566;
  font-size: 1rem;
  margin: 0;
  max-width: 80ch;
}

.benchmark-table tr:hover {
  background-color: #eef5ff;
}

/* Signal Note box */
.signal-note {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  background: #fbfcfe;
}

.signal-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.signal-note ul {
  margin-left: 1.25rem;
}

.signal-note li {
  margin-bottom: 0.5rem;
  color: #334155;
}

/* Methodology box */
.methodology-box {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.25rem;
  background: #fbfcfe;
}

.methodology-box p {
  margin-bottom: 0.75rem;
  color: #334155;
}

/* Version meta - footer */
.version-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid #e9ecef;
}

.version-footer {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid #e9ecef;
}

/* === Benchmark meta rows — keep tight and readable === */

.version-meta > div,
.version-footer > div {
  display: grid;
  grid-template-columns: 170px 1fr;  /* label column fixed, value takes the rest */
  column-gap: 0.75rem;
  align-items: baseline;
}

/* keep labels from breaking awkwardly */
.version-meta .label,
.version-footer .label {
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
}

/* allow values to wrap if absolutely necessary */
.version-meta .value,
.version-footer .value {
  min-width: 0;
  white-space: normal;
  color: var(--blue);
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .benchmark-title {
    text-align: left;
  }
  .benchmark-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .benchmark-hero {
    height: 360px;
  }
  .benchmark-hero-content {
    width: 92%;
    max-width: none;
    min-width: 0;       /* important: removes the forced 320px */
    padding-left: 4%;
    padding-right: 4%;
    text-align: center;   /* or center if you prefer */
  }
  .benchmark-block {
    padding: 1.5rem 1.1rem;
  }
  .benchmark-header {
    padding: 1.25rem 1rem;      /* slightly smaller outer padding */
  }
  .benchmark-hero h1 {
    font-size: 2rem;
  }
  .benchmark-hero p {
    font-size: 1.1rem;
  }
  .version-meta,
  .version-footer {
    max-width: 100%;
    font-size: 0.85rem;
  }

  .version-meta > div,
  .version-footer > div {
    grid-template-columns: minmax(92px, 38%) 1fr; /* label capped */
    column-gap: 0.5rem;
  }

  .version-meta .label,
  .version-footer .label {
    white-space: normal;          /* allow wrap on tiny screens */
  }

  .version-meta .value,
  .version-footer .value {
    min-width: 0;
  }
}