/* ============================================================
   PremedGuide.net — Main Stylesheet
   Palette: deep navy #0D1B2A, warm white #F8F6F1, 
            teal accent #2EC4B6, gold #E8B94F, slate #4A5568
   Type: 'Libre Baskerville' display, 'Inter' body
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --navy:   #0D1B2A;
  --navy2:  #162336;
  --teal:   #2EC4B6;
  --teal-d: #22968B;
  --gold:   #E8B94F;
  --warm:   #F8F6F1;
  --slate:  #4A5568;
  --muted:  #718096;
  --border: #E2E0DA;
  --white:  #FFFFFF;
  --red:    #E53E3E;
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.375rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.625rem;
  --fs-4xl: 3.5rem;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(13,27,42,0.10);
  --shadow-lg: 0 8px 32px rgba(13,27,42,0.16);
  --max:    1160px;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-md);
  color: var(--navy);
  background: var(--warm);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-d); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
p  { color: var(--slate); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: .5rem;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo span { color: var(--teal); }
.logo:hover { color: var(--warm); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(46,196,182,.15); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .65rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--navy2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  min-width: 200px;
  padding: .5rem 0;
  box-shadow: var(--shadow-lg);
}
.dropdown-menu a {
  display: block;
  padding: .55rem 1.1rem;
  white-space: nowrap;
  color: rgba(255,255,255,.75);
  font-size: var(--fs-sm);
}
.dropdown-menu a:hover { background: rgba(46,196,182,.12); color: var(--white); }
.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: .45rem 1rem !important;
}
.nav-cta:hover { background: var(--teal-d) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1a3a4a 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,196,182,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero p { color: rgba(255,255,255,.75); font-size: var(--fs-lg); max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item strong {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: var(--fs-3xl);
  color: var(--teal);
  line-height: 1;
}
.stat-item span { font-size: var(--fs-sm); color: rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #d4a43e; border-color: #d4a43e; color: var(--navy); }
.btn-sm { padding: .5rem 1.1rem; font-size: var(--fs-sm); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(46,196,182,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.card h4 { margin-bottom: .5rem; }
.card p { font-size: var(--fs-sm); }

/* ---------- Section headings ---------- */
.section-head { margin-bottom: 3rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { font-size: var(--fs-lg); max-width: 560px; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 0 3rem;
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: var(--fs-3xl); margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.7); font-size: var(--fs-lg); max-width: 600px; }
.breadcrumb {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
  display: flex;
  gap: .4rem;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ---------- Info boxes ---------- */
.info-box {
  background: rgba(46,196,182,.08);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p { color: var(--navy); margin: 0; }
.warn-box {
  background: rgba(232,185,79,.1);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warn-box p { color: var(--navy); margin: 0; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th {
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: .05em;
  text-transform: uppercase;
}
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--slate); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(46,196,182,.04); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--gold));
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem; top: .3rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--warm);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-date {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .25rem;
}
.timeline-item h4 { margin-bottom: .35rem; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: .75rem; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(46,196,182,.15);
  border: 2px solid var(--teal);
  flex-shrink: 0;
  margin-top: .1rem;
}
.check-item p { margin: 0; font-size: var(--fs-sm); }
.check-item strong { color: var(--navy); display: block; margin-bottom: .1rem; }

/* ---------- Profile template ---------- */
.school-profile-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.school-logo-placeholder {
  width: 90px; height: 90px;
  border-radius: 8px;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: var(--fs-xs);
  flex-shrink: 0;
  text-align: center;
  padding: .5rem;
}
.school-meta { flex: 1; }
.school-meta h2 { font-size: var(--fs-2xl); margin-bottom: .35rem; }
.school-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 20px;
  background: rgba(46,196,182,.12);
  color: var(--teal-d);
}
.tag.gold { background: rgba(232,185,79,.15); color: #9a7a2e; }
.tag.navy { background: rgba(13,27,42,.08); color: var(--navy); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-box strong { display: block; font-size: var(--fs-2xl); color: var(--navy); font-family: 'Libre Baskerville', serif; }
.stat-box span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Newsletter / Forms ---------- */
.newsletter-section {
  background: var(--navy);
  padding: 4rem 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-text h3 { color: var(--white); margin-bottom: .4rem; }
.newsletter-text p { color: rgba(255,255,255,.65); margin: 0; }
.newsletter-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: var(--fs-md);
  font-family: 'Inter', sans-serif;
  min-width: 260px;
  outline: none;
  transition: border .2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input[type="email"]:focus { border-color: var(--teal); }
.form-msg { font-size: var(--fs-sm); margin-top: .5rem; }
.form-msg.success { color: var(--teal); }
.form-msg.error   { color: #fc8181; }

.contact-form { max-width: 640px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); margin-bottom: .45rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-md);
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  transition: border .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.required { color: var(--red); margin-left: 2px; }

/* ---------- Accordion ---------- */
.accordion { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.accordion-item { border-bottom: 1px solid var(--border); background: var(--white); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy);
}
.accordion-btn::after { content: '+'; font-size: 1.3rem; color: var(--teal); font-weight: 400; }
.accordion-btn.open::after { content: '−'; }
.accordion-body { display: none; padding: 0 1.5rem 1.25rem; }
.accordion-body p { margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.5rem; }
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: var(--fs-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { margin-bottom: .35rem; }
.step-body p { font-size: var(--fs-sm); margin: 0; }

/* ---------- Tabs ---------- */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: .25rem;
}
.tab-btn {
  padding: .7rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: var(--fs-sm); margin-top: .75rem; max-width: 280px; }
.footer-col h5 {
  font-family: 'Libre Baskerville', serif;
  color: var(--white);
  font-size: var(--fs-md);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: var(--fs-sm);
  margin-bottom: .55rem;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-xs);
}

/* ---------- Alert Banner ---------- */
.alert-success {
  background: rgba(46,196,182,.12);
  border: 1px solid var(--teal);
  color: var(--teal-d);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --fs-4xl: 2.25rem; --fs-3xl: 1.875rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--navy2); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-dropdown .dropdown-menu { position: static; display: block; box-shadow: none; border: none; background: rgba(255,255,255,.05); margin-left: 1rem; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .newsletter-inner { flex-direction: column; }
  .school-profile-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
