/* ==========================================================================
   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: 1280px;
  --transition-speed: 0.2s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@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);
}

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 — matches EFTC hub section nav
   ========================================================================== */
html, body {
  overflow-x: hidden;
}

.eftc-section-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-mid-gray);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.eftc-section-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.eftc-section-nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.eftc-section-nav__logo a {
    display: flex;
    align-items: center;
}

.eftc-section-nav__logo img {
    height: 70px;
    width: auto;
}

/* Hamburger toggle — mobile only */
.eftc-section-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.eftc-section-nav__hamburger {
    display: block;
    width: 1.25rem;
    height: 2px;
    background-color: var(--color-navy);
    position: relative;
    transition: background-color 150ms ease;
}

.eftc-section-nav__hamburger::before,
.eftc-section-nav__hamburger::after {
    content: '';
    display: block;
    width: 1.25rem;
    height: 2px;
    background-color: var(--color-navy);
    position: absolute;
    left: 0;
    transition: transform 150ms ease;
}

.eftc-section-nav__hamburger::before { top: -6px; }
.eftc-section-nav__hamburger::after { top: 6px; }

/* Animate hamburger to X */
.eftc-section-nav__toggle[aria-expanded="true"] .eftc-section-nav__hamburger {
    background-color: transparent;
}
.eftc-section-nav__toggle[aria-expanded="true"] .eftc-section-nav__hamburger::before {
    transform: translateY(6px) rotate(45deg);
}
.eftc-section-nav__toggle[aria-expanded="true"] .eftc-section-nav__hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Nav list — mobile: dropdown */
.eftc-section-nav__list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-mid-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 101;
}

.eftc-section-nav__list--open {
    display: block;
}

.eftc-section-nav__list a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-charcoal);
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}

.eftc-section-nav__list a:hover,
.eftc-section-nav__list a:focus {
    color: var(--color-gold);
    background-color: #F9FAFB;
}

.eftc-section-nav__item--active a {
    color: var(--color-gold);
    font-weight: 700;
}

/* Desktop: horizontal flex, no hamburger */
@media (min-width: 768px) {
    .eftc-section-nav__toggle {
        display: none;
    }

    .eftc-section-nav__list,
    .eftc-section-nav__list--open {
        display: flex;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0;
    }

    .eftc-section-nav__list a {
        position: relative;
        padding: 28px 20px;
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }

    /* Gold underline — expands from center on hover */
    .eftc-section-nav__list a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--color-gold);
        transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1),
                    left 250ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .eftc-section-nav__list a:hover::after,
    .eftc-section-nav__list a:focus::after {
        width: 100%;
        left: 0;
    }

    .eftc-section-nav__list a:hover,
    .eftc-section-nav__list a:focus {
        background-color: transparent;
    }

    .eftc-section-nav__item--active a {
        color: var(--color-gold);
    }

    .eftc-section-nav__item--active a::after {
        width: 100%;
        left: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .eftc-section-nav__logo img {
        height: 50px;
    }

    .eftc-section-nav__list a {
        padding: 20px 12px;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 48px 24px 44px;
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.25rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 12px;
}

.hero p {
  font-size: 1.125rem;
  max-width: 680px;
  margin: 0 auto 24px;
  opacity: 0.9;
  line-height: 1.6;
}

.btn-gold {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  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: #c49930;
  color: var(--color-navy-dark);
  transform: translateY(-1px);
}

.btn-gold:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .hero {
    padding: 36px 20px 32px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   PAGE HEADER (non-home pages)
   ========================================================================== */
.page-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 32px 24px 28px;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header p {
  max-width: var(--max-width);
  margin: 12px auto 0;
  opacity: 0.85;
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .page-header {
    padding: 24px 20px 20px;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 36px 24px;
}

.section--alt {
  background: var(--color-light-gray);
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ==========================================================================
   DISCLAIMER BOX
   ========================================================================== */
.disclaimer-box {
  background: #FFFDF5;
  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;
}

.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.8rem;
  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);
}

@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);
}

.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-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);
}

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

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

.eftc-footer {
    background-color: #152B50;
    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.875rem;
    line-height: 1.6;
    max-width: 32ch;
    margin: 0;
}

.eftc-footer__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    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.875rem;
    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.75rem;
    color: rgba(255, 255, 255, 0.5);
}

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

.eftc-footer__bottom a:hover,
.eftc-footer__bottom a:focus {
    color: #E0B84D;
}

@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;
}
