/* ==========================================================================
   PA Schedule OC Guide: Demo Site Stylesheet
   FundEDU internal review site. Not for public distribution.
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-navy: #1D3769;
  --color-navy-dark: #0C1C38;
  --color-gold: #D8A83B;
  --color-charcoal: #262323;
  --color-white: #FFFFFF;
  --color-light-gray: #F5F5F5;
  --color-mid-gray: #E0E0E0;
  --color-body-secondary: #555555;
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --max-width: 1120px;
  --transition-speed: 0.2s;
  --color-gold-text: var(--color-gold);
  --color-nav-hover-bg: #F9FAFB;
  --color-gold-hover: #c49930;
  --color-disclaimer-bg: #FFFDF5;
  --color-footer-bg: #152B50;
  --color-footer-link-hover: #E0B84D;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
  scroll-behavior: smooth;
  scroll-padding-top: 156px; /* the two-tier header is 149px tall at desktop widths */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-gold-text);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  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);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HEADER: two tiers, modelled on the BG white-label landing page (spec B)
   ========================================================================== */
.eftc-section-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 4px solid var(--color-gold);
}
.eftc-section-nav__bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
}
.eftc-section-nav__logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 4px 0;
}
.eftc-section-nav__logo a {
  display: flex;
  align-items: center;
}
.eftc-section-nav__logo img {
  height: 72px;
  width: auto;
}
.eftc-section-nav__back {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-navy);
  white-space: nowrap;
}
.eftc-section-nav__toggle {
  display: none;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 2px solid var(--color-navy);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.eftc-section-nav__hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  position: relative;
}
.eftc-section-nav__hamburger::before,
.eftc-section-nav__hamburger::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  position: absolute;
  left: 0;
}
.eftc-section-nav__hamburger::before { top: -6px; }
.eftc-section-nav__hamburger::after { top: 6px; }
.eftc-section-nav__bar > nav {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}
.eftc-section-nav__list {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 36px;
}
.eftc-section-nav__list a {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--color-navy);
  padding: 8px 0 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.eftc-section-nav__list a:hover,
.eftc-section-nav__list a:focus,
.eftc-section-nav__item--active a {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold-text);
}
@media (max-width: 1054px) {
  .nav-js .eftc-section-nav__bar {
    padding-bottom: 12px;
  }
  .nav-js .eftc-section-nav__toggle {
    display: inline-flex;
  }
  .nav-js .eftc-section-nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-white);
    border-bottom: 4px solid var(--color-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 16px 16px;
    z-index: 101;
  }
  .nav-js .eftc-section-nav__list--open {
    display: flex;
  }
  .nav-js .eftc-section-nav__list a {
    padding: 12px 0 10px;
  }
}
@media (max-width: 600px) {
  .eftc-section-nav__logo img {
    height: 56px;
  }
  .eftc-section-nav__logo {
    gap: 12px;
  }
  .eftc-section-nav__logo a.eftc-section-nav__back {
    display: none;
  }
}

.hero,
.page-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 88px 24px;
  text-align: center;
}
.hero h1,
.page-header h1 {
  color: var(--color-white);
  font-size: clamp(34px,4.5vw,52px);
  line-height: 1.15;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 20px;
}
.hero p,
.page-header p {
  font-size: 24px;
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto 28px;
  opacity: 1;
}
.btn-gold {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
  text-decoration: none;
}
.btn-gold:hover {
  background: var(--color-gold-hover);
  color: var(--color-navy-dark);
  transform: translateY(-1px);
}
.btn-gold:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}
.section {
  padding: 64px 24px;
}
.section--alt {
  background: var(--color-light-gray);
}
.section h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 24px;
}
.section h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section h4 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .hero,
  .page-header {
    padding: 48px 20px;
  }
  .hero h1,
  .page-header h1 {
    font-size: 30px;
  }
  .hero p,
  .page-header p {
    font-size: 20px;
  }
  .section h2 {
    font-size: 30px;
  }
}

/* ==========================================================================
   DISCLAIMER BOX
   ========================================================================== */
.disclaimer-box {
  background: var(--color-disclaimer-bg);
  border-left: 4px solid var(--color-gold);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
  margin: 0 auto;
  max-width: var(--max-width);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-charcoal);
}

.disclaimer-box strong {
  color: var(--color-navy);
}

/* ==========================================================================
   GATHER DOCUMENTS
   ========================================================================== */
.doc-list {
  list-style: none;
  padding: 0;
  max-width: 720px;
}

.doc-list li {
  padding: 14px 0 14px 40px;
  position: relative;
  border-bottom: 1px solid var(--color-mid-gray);
  line-height: 1.55;
}

.doc-list li:last-child {
  border-bottom: none;
}

/* Spec C (2026-09-17): nothing on the page below 16px; base is 19px. */
.doc-list li::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.doc-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--color-light-gray);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 720px;
}

/* ==========================================================================
   GUIDE CARDS (homepage)
   ========================================================================== */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-mid-gray);
  border-radius: 8px;
  padding: 28px 24px;
  text-decoration: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.guide-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: var(--color-charcoal);
}

.guide-card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.guide-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.guide-card-icon svg {
  width: 24px;
  height: 24px;
}

.guide-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--color-body-secondary);
  line-height: 1.55;
  flex: 1;
}

.guide-card .card-link-text {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-text);
}

@media (max-width: 680px) {
  .guide-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WIDGET IFRAME
   ========================================================================== */
.widget-frame-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.widget-frame {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--color-white);
  display: block;
}

/* Tighten widget section on mobile */
@media (max-width: 680px) {
  .section:has(.widget-frame-wrap) {
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .section:has(.page-nav) {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ==========================================================================
   RESOURCE CARDS
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.resource-card {
  background: var(--color-white);
  border: 1px solid var(--color-mid-gray);
  border-radius: 8px;
  padding: 28px 24px;
}

.resource-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-card h3 svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-gold-text);
}

.resource-card ul {
  list-style: none;
  padding: 0;
}

.resource-card li {
  padding: 6px 0;
}

.resource-card a {
  font-size: 0.92rem;
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-speed), color var(--transition-speed);
}

.resource-card a:hover {
  color: var(--color-gold-text);
  text-decoration-color: var(--color-gold);
}

@media (max-width: 680px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact Section --- */
.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-item {
  padding: 20px;
  background: var(--color-light-gray);
  border-radius: 8px;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   BOTTOM PAGE NAV
   ========================================================================== */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 0 0;
  border-top: 1px solid var(--color-mid-gray);
}

.page-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color var(--transition-speed);
}

.page-nav a:hover {
  color: var(--color-gold-text);
}

.page-nav .nav-next {
  margin-left: auto;
}

/* ==========================================================================
   FOOTER: matches FSTC hub footer
   ========================================================================== */
.eftc-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.eftc-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    padding: 64px 0 0;
}

.eftc-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.eftc-footer__brand img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.eftc-footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 32ch;
    margin: 0;
}

.eftc-footer__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold-text);
    margin: 0 0 16px 0;
}

.eftc-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eftc-footer__links li {
    margin-bottom: 8px;
}

.eftc-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 150ms ease;
}

.eftc-footer__links a:hover,
.eftc-footer__links a:focus {
    color: var(--color-white);
}

.eftc-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 48px;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.eftc-footer__bottom a {
    color: var(--color-gold-text);
    text-decoration: none;
    transition: color 150ms ease;
}

.eftc-footer__bottom a:hover,
.eftc-footer__bottom a:focus {
    color: var(--color-footer-link-hover);
}

@media (max-width: 1024px) {
    .eftc-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .eftc-footer {
        padding: 48px 0 0;
    }

    .eftc-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .eftc-footer__brand p {
        max-width: none;
    }

    .eftc-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==========================================================================
   CONTENT PROSE
   ========================================================================== */
.prose {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 16px;
}

.section .prose {
  margin-bottom: 20px;
}

.moved-list {
  max-width: 820px;
  padding-left: 24px;
}

.moved-list li {
  margin-bottom: 12px;
  line-height: 1.55;
}

/* ==========================================================================
   SCHOOL VARIANT (hand-maintained since 2026-09-17)
   ========================================================================== */
.eftc-section-nav__school {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.eftc-section-nav__school img {
    width: auto;
    max-width: 240px;
}
.eftc-section-nav__back:hover,
.eftc-section-nav__back:focus {
    color: var(--color-gold-text);
    text-decoration: underline;
}
.eftc-footer__school {
    margin: 0 0 8px;
    color: var(--color-white);
}
.eftc-footer__school strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
}
