/* ==========================================================================
   NAVIS — National AI Valuation Institute and Standards
   Site-wide stylesheet
   ========================================================================== */

/* --- Google Fonts (Inter) loaded via <link> in HTML --- */

/* --- Reset & Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #0d1b2a;
  line-height: 1.3;
}

a { color: #2d6a9f; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* --- Utility ------------------------------------------------------------- */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  background: #0d1b2a;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #c8952a;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.site-nav__logo {
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav__logo a { color: inherit; }
.site-nav__logo a:hover { text-decoration: none; }

.site-nav__logo .logo-full { display: inline; }
.site-nav__logo .logo-abbr { display: none; }

.site-nav__links {
  list-style: none;
  display: flex;
  gap: 4px;
}

.site-nav__links a {
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 3px;
  display: block;
}

.site-nav__links a:hover,
.site-nav__links a.active {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.site-nav__links a.active {
  border-bottom: 2px solid #c8952a;
}

/* Hamburger — CSS-only checkbox trick */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #ffffff;
  height: 2px;
  width: 24px;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after  { top:  7px; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: #0d1b2a;
  color: #ffffff;
  padding: 64px 0 56px;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.hero__rule {
  width: 80px;
  height: 3px;
  background: #c8952a;
  border: none;
  margin: 0 auto 24px;
}

.hero__mission {
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.7;
}

/* --- Sections ------------------------------------------------------------ */
.section {
  padding: 56px 0;
}

.section--gray {
  background: #f4f6f8;
}

.section__heading {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: #2d6a9f;
}

.section__subheading {
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.section p + p { margin-top: 16px; }

/* --- Callout ------------------------------------------------------------- */
.callout {
  border-left: 4px solid #c8952a;
  padding: 32px;
  margin: 0;
}

.callout__heading {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #0d1b2a;
}

.callout__badge {
  display: inline-block;
  background: #c8952a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 3px;
  margin-top: 16px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover { text-decoration: none; opacity: 0.9; }

.btn--navy {
  background: #0d1b2a;
  color: #ffffff;
}

.btn--steel {
  background: #2d6a9f;
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: #0d1b2a;
  border: 2px solid #0d1b2a;
}

/* --- Tables -------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.data-table th {
  background: #0d1b2a;
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tbody tr:nth-child(even) {
  background: #f4f6f8;
}

.status-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #1a7a3a;
}

.status-active::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #1a7a3a;
  border-radius: 50%;
}

/* --- Process Steps ------------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step-counter;
}

.step {
  counter-increment: step-counter;
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

.step:last-child { border-bottom: none; }

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #2d6a9f;
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step__content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #0d1b2a;
}

.step__content p {
  font-size: 0.95rem;
}

/* --- Section Summary (Standards page) ------------------------------------ */
.standard-sections {
  list-style: none;
}

.standard-section {
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.standard-section:last-child { border-bottom: none; }

.standard-section__number {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #2d6a9f;
  margin-right: 8px;
}

.standard-section h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.standard-section p {
  font-size: 0.9rem;
  margin-left: 0;
}

/* --- Accordion (CSS-only) ------------------------------------------------ */
.accordion { margin-top: 8px; }

.accordion__item {
  border-bottom: 1px solid #ddd;
}

.accordion__trigger {
  display: none;
}

.accordion__label {
  display: block;
  padding: 18px 40px 18px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0d1b2a;
  cursor: pointer;
  position: relative;
}

.accordion__label::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #2d6a9f;
  font-weight: 400;
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion__content div {
  padding: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.accordion__trigger:checked + .accordion__label::after {
  content: '\2212';
}

.accordion__trigger:checked ~ .accordion__content {
  max-height: 300px;
}

/* --- Forms --------------------------------------------------------------- */
.form { max-width: 560px; }

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #0d1b2a;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #ffffff;
  color: #333333;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: #2d6a9f;
  box-shadow: 0 0 0 2px rgba(45,106,159,0.15);
}

.form__group textarea {
  min-height: 120px;
  resize: vertical;
}

.form__note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 16px;
}

/* --- Contact Info -------------------------------------------------------- */
.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d6a9f;
  margin-bottom: 8px;
}

.contact-address {
  font-style: normal;
  font-size: 0.9rem;
  color: #666;
  margin-top: 16px;
}

/* --- Page Header (non-home pages) ---------------------------------------- */
.page-header {
  background: #0d1b2a;
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.85;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: #0d1b2a;
  color: #ffffff;
  padding: 48px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: #c8952a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li + li { margin-top: 8px; }

.footer-col ul a {
  color: #ffffff;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-col ul a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 768px) {
  .site-nav__logo .logo-full { display: none; }
  .site-nav__logo .logo-abbr { display: inline; }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0d1b2a;
    flex-direction: column;
    padding: 8px 24px 16px;
    border-bottom: 2px solid #c8952a;
  }

  .nav-toggle:checked ~ .site-nav__links {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav__links a {
    padding: 10px 0;
  }

  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 1.5rem; }
  .hero__tagline { font-size: 1rem; }

  .section { padding: 40px 0; }
  .section__heading { font-size: 1.25rem; }

  .page-header { padding: 28px 0; }
  .page-header h1 { font-size: 1.375rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .data-table { font-size: 0.8rem; }
  .data-table th,
  .data-table td { padding: 8px 10px; }

  .step { flex-direction: column; gap: 12px; }

  .callout { padding: 20px; }
}

@media (max-width: 480px) {
  .data-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-nav, .site-footer, .nav-toggle-label { display: none !important; }
  body { color: #000; background: #fff; }
  h1, h2, h3, h4, h5, h6 { color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  .hero h1, .page-header h1 { color: #000; }
  .page-header { background: #fff; color: #000; }
  .section--gray { background: #fff; }
  .data-table th { background: #ddd; color: #000; }
  .callout { border-left-color: #999; }
  .btn { border: 1px solid #000; background: #fff; color: #000; }
}
