/* ============================================================
   Niche University — Enrollment Journey Static Site
   ============================================================ */

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

:root {
  /* Core */
  --pine:      #003024;
  --greige:    #F3E9E3;
  --white:     #FFFFFF;
  --emerald:   #016853;
  /* Secondary */
  --jade:      #00BE76;
  --hazelnut:  #A97332;
  --amber:     #FF9B00;
  --tiger:     #F15D22;
  --flamingo:  #FF90E7;
  --cornflower:#8CA6FF;
  /* Utility */
  --text:      #1a1a1a;
  --text-light:#555;
  --border:    #ddd;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,48,36,.08);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pine); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-header {
  background: var(--pine);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}
.logo-link img { height: 48px; width: auto; }
.header-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.header-nav a {
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pine);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .45;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 24px;
}
.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.15rem;
  opacity: .92;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--amber); color: var(--pine); }
.btn-primary:hover { background: #e88d00; color: var(--pine); }
.btn-secondary { background: var(--white); color: var(--pine); }
.btn-secondary:hover { background: var(--greige); }
.btn-outline { background: transparent; color: var(--emerald); border: 2px solid var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: var(--white); }

/* --- Section --- */
.section { padding: 56px 0; }
.section:nth-child(even) { background: var(--greige); }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 640px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,48,36,.1); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--pine);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(1,104,83,.12); }
select.form-control { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* --- Tables --- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cost-table th {
  background: var(--pine);
  color: var(--white);
  text-align: left;
  padding: 14px 20px;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cost-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:hover td { background: rgba(0,48,36,.02); }
.cost-table .total td { font-weight: 700; background: var(--greige); }

/* --- Callout --- */
.callout {
  background: var(--greige);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout-emerald { border-left-color: var(--emerald); }
.callout h3 { font-size: 1rem; color: var(--pine); margin-bottom: 6px; }

/* --- Accordion / FAQ --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  color: var(--pine);
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--emerald); transition: transform var(--transition); }
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 20px 16px; color: var(--text-light); font-size: .92rem; line-height: 1.7; }

/* --- Checklist --- */
.checklist { list-style: none; }
.checklist li {
  padding: 10px 0;
  padding-left: 32px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--jade);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Testimonial --- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--emerald);
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin: 32px 0;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--pine);
  margin-top: 12px;
  font-size: .88rem;
}

/* --- Counselor Cards --- */
.counselor-card {
  text-align: center;
  padding: 32px 24px;
}
.counselor-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--greige);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.counselor-card h3 { font-size: 1.05rem; color: var(--pine); margin-bottom: 4px; }
.counselor-card .role { color: var(--text-light); font-size: .85rem; margin-bottom: 12px; }

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(243,233,227,.3);
}
.upload-zone:hover { border-color: var(--emerald); background: rgba(1,104,83,.04); }
.upload-icon { font-size: 2.4rem; margin-bottom: 12px; }
.upload-zone p { color: var(--text-light); font-size: .92rem; }

/* --- Confetti Banner (Confirm page) --- */
.confetti-banner {
  background: linear-gradient(135deg, var(--pine) 0%, var(--emerald) 100%);
  text-align: center;
  padding: 48px 24px;
  color: var(--white);
}
.confetti-banner h1 { font-size: 2.6rem; margin-bottom: 12px; }
.confetti-banner p { font-size: 1.15rem; opacity: .9; }

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Footer --- */
.site-footer {
  background: var(--pine);
  color: rgba(255,255,255,.7);
  padding: 40px 0 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-links h4 { color: var(--white); font-size: .88rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.footer-links a { display: block; color: rgba(255,255,255,.6); font-size: .85rem; padding: 3px 0; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  text-align: center;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-content h1 { font-size: 2rem; }

  .menu-toggle { display: block; }

  .header-inner { flex-wrap: wrap; }

  .header-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    padding: 10px 8px;
    font-size: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .header-nav a:last-child { border-bottom: none; }
}
