/* ============================================================
   Rutgers-Camden Pre-Orientation: Supporter Course
   Shared stylesheet — matches Canvas Module visual standard
   ============================================================ */

:root {
  --scarlet: #CC0033;
  --scarlet-dark: #A80028;
  --scarlet-deep: #8B0024;
  --black: #000000;
  --ink: #1A1A1A;
  --gray: #5F6A72;
  --gray-light: #8B949C;
  --gray-pale: #F3F3F3;
  --gray-warm: #F5F1E8;
  --blue-pale: #EAF1F8;
  --green-pale: #F0F7F0;
  --red-pale: #FFF4F5;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Skip link for accessibility ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--scarlet);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Site Header / Navigation ---------- */
.site-header {
  background: var(--white);
  border-top: 6px solid var(--scarlet);
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.site-brand-line1 {
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--scarlet);
}

.site-brand-line2 {
  font-size: 1em;
  font-weight: 600;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.92em;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
  position: relative;
}

.site-nav a:hover {
  background: var(--gray-pale);
  color: var(--scarlet);
}

.site-nav a:focus {
  outline: 2px solid var(--scarlet);
  outline-offset: 2px;
}

.site-nav a.active {
  color: var(--scarlet);
  font-weight: 600;
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--scarlet);
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--scarlet);
  color: var(--scarlet);
  padding: 6px 12px;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--scarlet) 0%, var(--scarlet-deep) 100%);
  color: var(--white);
  padding: 70px 30px 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow {
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 14px;
  animation: fadeUp 0.6s var(--ease) both;
}

.page-hero h1 {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  max-width: 800px;
  animation: fadeUp 0.6s var(--ease) 0.1s both;
}

.page-hero-lede {
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.55;
  margin-top: 20px;
  max-width: 720px;
  opacity: 0.95;
  animation: fadeUp 0.6s var(--ease) 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Page Container ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

main {
  padding-top: 50px;
  padding-bottom: 80px;
}

/* ---------- Section blocks ---------- */
.section {
  margin-bottom: 50px;
  animation: fadeUp 0.6s var(--ease) both;
}

.section:nth-child(2) { animation-delay: 0.05s; }
.section:nth-child(3) { animation-delay: 0.10s; }
.section:nth-child(4) { animation-delay: 0.15s; }
.section:nth-child(5) { animation-delay: 0.20s; }

.section h2 {
  color: var(--scarlet);
  font-size: 1.85em;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--scarlet);
  display: inline-block;
  min-width: 280px;
}

.section h3 {
  color: var(--ink);
  font-size: 1.3em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 14px;
}

.section p {
  font-size: 1.05em;
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 820px;
}

.section ul {
  margin: 8px 0 24px 0;
  padding-left: 24px;
}

.section ul li {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 820px;
}

.section ul li strong {
  color: var(--scarlet-dark);
}

.section a {
  color: var(--scarlet);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section a:hover {
  color: var(--scarlet-deep);
}

.section a:focus {
  outline: 2px solid var(--scarlet);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Welcome / accent banner ---------- */
.welcome-banner {
  background: var(--gray-pale);
  padding: 28px 32px;
  border-left: 6px solid var(--scarlet);
  margin-bottom: 40px;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
}

.welcome-banner h2 {
  color: var(--scarlet);
  font-size: 1.6em;
  margin-bottom: 10px;
  border: none;
  padding: 0;
  display: block;
}

.welcome-banner p {
  font-size: 1.08em;
  line-height: 1.7;
  margin-bottom: 12px;
}

.welcome-banner p:last-child {
  margin-bottom: 0;
}

/* ---------- Callout boxes ---------- */
.callout {
  background: var(--gray-warm);
  border-top: 4px solid var(--scarlet);
  border-radius: 0 0 8px 8px;
  padding: 24px 28px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.callout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.callout.callout-blue {
  background: var(--blue-pale);
}

.callout.callout-quote {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-top: 4px solid var(--scarlet);
  font-style: italic;
}

.callout h4,
.callout .callout-label {
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--scarlet);
  margin-bottom: 12px;
  display: block;
}

.callout p {
  font-size: 1.02em;
  line-height: 1.65;
  margin-bottom: 10px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.callout ul li {
  font-size: 1em;
  margin-bottom: 6px;
}

/* ---------- Comparison two-column tables ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 24px 0 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-col {
  padding: 0;
  background: var(--white);
}

.compare-col-header {
  background: var(--scarlet);
  color: var(--white);
  padding: 16px 22px;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.2px;
}

.compare-col-body {
  padding: 22px 24px;
}

.compare-col.compare-less .compare-col-body {
  background: var(--red-pale);
}

.compare-col.compare-more .compare-col-body {
  background: var(--green-pale);
}

.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-col ul li {
  position: relative;
  padding-left: 22px;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 12px;
}

.compare-col ul li::before {
  content: '•';
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--scarlet);
  font-weight: 700;
  font-size: 1.2em;
}

.compare-col ul li:last-child {
  margin-bottom: 0;
}

/* ---------- Section nav / next-section card ---------- */
.next-section {
  margin-top: 60px;
  padding: 32px;
  background: linear-gradient(135deg, #FAFAFA 0%, var(--gray-pale) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #E5E7EB;
}

.next-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--scarlet);
}

.next-section:focus {
  outline: 2px solid var(--scarlet);
  outline-offset: 4px;
}

.next-section-label {
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--scarlet);
  display: block;
  margin-bottom: 6px;
}

.next-section-title {
  font-size: 1.35em;
  font-weight: 600;
  color: var(--ink);
}

.next-section-arrow {
  font-size: 1.6em;
  color: var(--scarlet);
  transition: transform 0.3s var(--ease);
}

.next-section:hover .next-section-arrow {
  transform: translateX(6px);
}

/* ---------- Home / Index hero & cards ---------- */
.home-hero {
  background: linear-gradient(135deg, var(--scarlet) 0%, var(--scarlet-deep) 100%);
  color: var(--white);
  padding: 100px 30px 80px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.home-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-hero-eyebrow {
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 20px;
}

.home-hero h1 {
  font-size: 3.4em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 850px;
  margin-bottom: 24px;
}

.home-hero-lede {
  font-size: 1.3em;
  font-weight: 300;
  line-height: 1.55;
  max-width: 720px;
  opacity: 0.95;
}

.home-intro {
  max-width: 1200px;
  margin: 60px auto 50px;
  padding: 0 30px;
}

.home-intro-inner {
  max-width: 820px;
}

.home-intro p {
  font-size: 1.15em;
  line-height: 1.75;
  margin-bottom: 18px;
  color: var(--ink);
}

.home-intro p.lede {
  font-size: 1.3em;
  font-weight: 300;
  color: var(--gray);
}

.section-cards {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.section-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--scarlet);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.section-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--scarlet);
}

.section-card:hover::before {
  transform: scaleX(1);
}

.section-card:focus {
  outline: 2px solid var(--scarlet);
  outline-offset: 3px;
}

.section-card-number {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--scarlet);
  margin-bottom: 10px;
}

.section-card-title {
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--ink);
}

.section-card-desc {
  font-size: 0.98em;
  line-height: 1.6;
  color: var(--gray);
  flex-grow: 1;
}

.section-card-cta {
  margin-top: 22px;
  font-size: 0.92em;
  font-weight: 600;
  color: var(--scarlet);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-card-cta-arrow {
  transition: transform 0.3s var(--ease);
}

.section-card:hover .section-card-cta-arrow {
  transform: translateX(4px);
}

/* ---------- Promise / closing block ---------- */
.promise-block {
  background: linear-gradient(135deg, var(--scarlet) 0%, var(--scarlet-deep) 100%);
  color: var(--white);
  padding: 50px 40px;
  border-radius: 12px;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
}

.promise-block::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
}

.promise-block h3 {
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
  position: relative;
}

.promise-block p {
  font-size: 1.25em;
  line-height: 1.6;
  font-weight: 300;
  position: relative;
  margin: 0;
  max-width: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C0C8CE;
  padding: 50px 30px 30px;
  margin-top: 80px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.site-footer p {
  font-size: 0.9em;
  line-height: 1.6;
  color: #A0A8AE;
  margin-bottom: 8px;
}

.site-footer a {
  color: #C0C8CE;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  font-size: 0.9em;
  margin-bottom: 8px;
}

.site-footer-bottom {
  border-top: 1px solid #2A2A2A;
  padding-top: 24px;
  font-size: 0.85em;
  color: #808890;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-cards {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 2.1em;
  }

  .home-hero h1 {
    font-size: 2.4em;
  }

  .home-hero {
    padding: 70px 24px 60px;
  }

  .home-hero-lede {
    font-size: 1.1em;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 20px;
    border-top: 1px solid #E5E7EB;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav a.active::after {
    display: none;
  }

  .page-hero {
    padding: 50px 24px 40px;
  }

  .page-hero h1 {
    font-size: 1.8em;
  }

  .page {
    padding: 0 20px;
  }

  .section h2 {
    font-size: 1.5em;
  }

  .callout,
  .welcome-banner {
    padding: 20px 22px;
  }

  .next-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
  }

  .promise-block {
    padding: 36px 28px;
  }

  .promise-block p {
    font-size: 1.1em;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-nav,
  .nav-toggle,
  .next-section,
  .site-footer {
    display: none;
  }
  .page-hero,
  .promise-block {
    background: var(--white) !important;
    color: var(--ink) !important;
    border: 2px solid var(--scarlet);
  }
}
