/* ============================================================
   Hayley Jacobson — School Placement Advisor
   Stylesheet · v16b restructured
   ============================================================ */

:root {
  --navy: #1B3A5C;
  --navy-mid: #2A5480;
  --navy-deep: #0F2741;
  --gold: #B8974A;
  --gold-light: #D4B06A;
  --cream: #FAF8F4;
  --cream-dark: #F2EDE3;
  --warm-white: #FFFFFF;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-mid: #444;
  --text-light: #666;
  --text-muted: #999;
  --border: #E8E2D9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}
a { color: inherit; }

/* ============================================================
   NAV
   ============================================================ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s ease;
}
nav.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
/* Hide-on-scroll-down, reveal-on-scroll-up (slides up out of view) */
nav.site-nav.nav-hidden { transform: translateY(-100%); }

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500; font-size: 19px;
  color: var(--navy); letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex; gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--navy); background: rgba(27,58,92,0.05); }
.nav-links a.active { color: var(--navy); font-weight: 500; background: rgba(27,58,92,0.08); }

.nav-cta {
  display: inline-block;
  background: var(--navy); color: #fff;
  padding: 10px 22px; border-radius: 3px;
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-mid); }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); transition: 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav-drawer {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99;
  flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity 0.3s;
}
.nav-drawer.open { opacity: 1; }
.nav-drawer ul { list-style: none; text-align: center; }
.nav-drawer li { margin: 12px 0; }
.nav-drawer a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: var(--navy); text-decoration: none;
}

/* Spacer below fixed nav */
main { padding-top: 70px; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  display: grid; grid-template-columns: 3fr 1.2fr;
  min-height: calc(100vh - 70px);
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 80px 72px;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(40px, 5vw, 64px); font-weight: 500;
  color: var(--navy); margin-bottom: 24px; line-height: 1.1;
}
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 17px; color: var(--text-light); max-width: 540px;
  margin-bottom: 40px; line-height: 1.75;
}
.hero-buttons { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 14px 32px; border-radius: 3px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--navy-mid); }

.btn-secondary {
  display: inline-block; border: 1px solid var(--navy); color: var(--navy);
  padding: 13px 31px; border-radius: 3px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: all 0.2s;
  background: transparent;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.hero-stats { display: flex; gap: 48px; }
.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px; font-weight: 500; color: var(--navy); line-height: 1;
}
.stat-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 6px;
}

.hero-right {
  position: relative; overflow: hidden; background: var(--navy-mid);
}
.hero-right img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}

/* ============================================================
   SHARED SECTIONS
   ============================================================ */
.section { padding: 80px 72px; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); }
.section-white { background: var(--white); }

.section-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(32px, 3vw, 44px); color: var(--navy);
  margin-bottom: 16px;
}
.section-heading-light { color: #fff; }
.section-intro {
  font-size: 17px; color: var(--text-light); max-width: 720px;
  line-height: 1.75; margin-bottom: 8px;
}
.section-intro-light { color: rgba(255,255,255,0.72); }

/* Inner container for paged content */
.page-inner { max-width: 1200px; margin: 0 auto; }

/* Page header band (used at top of inner pages) */
.page-header {
  padding: 64px 72px 32px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.page-header .page-inner { max-width: 1200px; }
.page-header h1 {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--navy);
  margin-bottom: 14px;
}
.page-header p {
  font-size: 17px; color: var(--text-light); max-width: 720px;
  line-height: 1.7;
}

/* ============================================================
   WHO I SERVE (home)
   ============================================================ */
.serve-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 40px;
}
.serve-card {
  padding: 40px 36px; background: var(--warm-white);
  border-top: 3px solid transparent; transition: border-color 0.2s, transform 0.2s;
}
.serve-card:hover { border-top-color: var(--gold); transform: translateY(-2px); }
.serve-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-weight: 500; color: var(--navy);
  margin-bottom: 12px;
}
.serve-body { font-size: 15px; color: var(--text-light); line-height: 1.75; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-bio-band {
  background: var(--white);
  padding: 72px 72px 56px;
}
.about-bio-inner { max-width: 1200px; margin: 0 auto; }
.about-heading {
  font-size: clamp(32px, 3vw, 44px);
  color: var(--navy);
  margin-bottom: 24px;
}
.about-bio-cols {
  display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start;
}
.about-bio-left p {
  font-size: 16px; color: var(--text); line-height: 1.8; margin-bottom: 16px;
}
.about-pullquote {
  border-left: 3px solid var(--gold); padding-left: 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-style: italic; color: var(--navy);
  margin: 28px 0; line-height: 1.5;
}
.about-pull-block {
  background: var(--navy); padding: 28px 28px; border-radius: 2px;
  margin-bottom: 20px;
}
.about-pull-block p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; font-style: italic; color: rgba(255,255,255,0.92);
  line-height: 1.65; margin: 0;
}
.scope-note {
  font-size: 13px; color: var(--text-light); line-height: 1.7;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* About credentials band */
.about-cred-band {
  background: var(--navy);
  padding: 48px 72px;
}
.about-cred-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.cred-education { flex-shrink: 0; }
.cred-band-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; display: block;
}
.cred-degree {
  font-size: 21px; color: rgba(255,255,255,0.85); line-height: 1.85; margin: 0;
  letter-spacing: 0.01em;
}
.cred-divider {
  width: 1px; align-self: stretch; background: rgba(255,255,255,0.14);
  flex-shrink: 0;
}
.cred-memberships { flex: 1; min-width: 0; }
.cred-logo-row {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cred-logo-row .mb-logo-link {
  display: flex; align-items: center;
  text-decoration: none;
}
.cred-logo-row .mb-logo-frame {
  height: 44px; display: flex; align-items: center; justify-content: center;
}
.cred-logo-row .mb-logo-frame img {
  max-height: 44px; max-width: 90px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.82;
  transition: opacity 0.2s;
  display: block;
}
.cred-logo-row .mb-logo-link:hover .mb-logo-frame img { opacity: 1; }

/* ============================================================
   HOW I WORK
   ============================================================ */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}
.process-step {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.process-step:nth-child(3n) { border-right: none; }
.process-step:nth-last-child(-n+3) { border-bottom: none; }
.step-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px; color: var(--gold); opacity: 0.7;
  margin-bottom: 12px; line-height: 1;
}
.step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; color: #fff; margin-bottom: 12px; font-weight: 500;
}
.step-body { font-size: 14.5px; color: rgba(255,255,255,0.7); line-height: 1.75; }

/* ============================================================
   WHAT I DO (services)
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px; margin-top: 40px;
}
.service-card {
  background: #fff; padding: 44px 40px;
  border: 1px solid var(--border); border-radius: 2px;
  border-top: 3px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.service-tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 12px;
}
.service-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; color: var(--navy); margin-bottom: 16px; font-weight: 500;
  line-height: 1.25;
}
.service-body { font-size: 15px; color: var(--text-light); line-height: 1.8; }

/* ============================================================
   WHO I WORK WITH (profiles)
   ============================================================ */
.profiles-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 40px;
}
.profile-card {
  padding: 36px 28px; background: var(--cream);
  border-top: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.profile-card:hover { border-top-color: var(--gold); transform: translateY(-2px); }
.profile-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; color: var(--navy); font-weight: 500;
  margin-bottom: 12px; line-height: 1.25;
}
.profile-body { font-size: 14px; color: var(--text-light); line-height: 1.75; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 40px;
}
.testimonial {
  padding: 36px 32px; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
}
.testimonial-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px; font-style: italic; color: rgba(255,255,255,0.92);
  line-height: 1.6; margin: 0 0 20px;
}
.testimonial-attr {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh;
}
.contact-left {
  background: var(--navy); padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-left .section-label { color: var(--gold); }
.contact-heading {
  font-size: clamp(30px, 3vw, 42px); color: #fff;
  margin-bottom: 24px; line-height: 1.25;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
}
.contact-body {
  font-size: 16px; color: rgba(255,255,255,0.78); line-height: 1.8;
  margin-bottom: 16px;
}
.contact-email {
  color: var(--gold); font-size: 16px; text-decoration: none;
  display: block; width: fit-content; margin: 6px 0; letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(184,151,74,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.contact-email:first-of-type { margin-top: 8px; }
.contact-email:last-of-type { margin-bottom: 24px; }
.contact-email:hover { border-color: var(--gold); }
/* Schedule button sits on navy — white fill gives it contrast without blending in */
.contact-left .btn-primary {
  background: #fff; color: var(--navy);
  border: none;
}
.contact-left .btn-primary:hover {
  background: var(--cream); color: var(--navy);
}
.contact-right {
  background: var(--cream); padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
  font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); background: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text);
  border-radius: 2px; outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23999' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
  padding-right: 36px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy);
}
.form-group textarea { height: 110px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.btn-form {
  width: 100%; background: var(--navy); color: #fff;
  border: none; cursor: pointer;
  padding: 15px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; transition: background 0.2s;
}
.btn-form:hover { background: var(--navy-mid); }

/* ============================================================
   MEMBERSHIPS BAR (footer top strip)
   ============================================================ */
.memberships-bar {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 36px 56px 32px;
  text-align: center;
}
.mb-heading {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.mb-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.mb-logo-link {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-decoration: none;
  max-width: 130px; transition: opacity 0.2s;
}
.mb-logo-link:hover { opacity: 0.7; }
.mb-logo-frame {
  height: 56px; display: flex; align-items: center; justify-content: center;
}
.mb-logo-frame img {
  max-height: 56px; max-width: 110px; width: auto; object-fit: contain;
}
.mb-logo-label {
  font-size: 10.5px; color: var(--text-muted); line-height: 1.4;
  text-align: center; font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--navy-deep);
}
.footer-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 72px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px; color: rgba(255,255,255,0.85); letter-spacing: 0.02em;
}
.footer-logo span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-top: 4px;
}
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,1); }
.footer-copy {
  font-size: 11.5px; color: rgba(255,255,255,0.35);
  padding: 18px 72px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* ============================================================
   FADE-IN
   Content is visible by default. Only when JS is active
   (html.js-enabled) do we hide it for the scroll animation,
   so a JS failure can never leave sections invisible.
   ============================================================ */
.js-enabled .fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-enabled .fade-in.visible { opacity: 1; transform: translateY(0); }

/* Respect users who prefer reduced motion: no transform/fade. */
@media (prefers-reduced-motion: reduce) {
  .js-enabled .fade-in {
    opacity: 1; transform: none; transition: none;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  nav.site-nav { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  main { padding-top: 62px; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 56px 24px 40px; }
  .hero-right { height: 360px; order: -1; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }

  .section { padding: 56px 24px; }
  .page-header { padding: 48px 24px 24px; }

  .serve-grid { grid-template-columns: 1fr; gap: 2px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step,
  .process-step:nth-child(3n) {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .process-step:last-child { border-bottom: none; }

  .about-bio-band { padding: 56px 24px 40px; }
  .about-bio-cols { grid-template-columns: 1fr; gap: 32px; }
  .about-cred-band { padding: 32px 24px; }
  .about-cred-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cred-divider { display: none; }
  .cred-logo-row { gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .profiles-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  #contact { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 48px 24px; }

  /* 16px minimum prevents iOS Safari from auto-zooming on field focus */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  .memberships-bar { padding: 28px 24px; }
  .mb-logos { gap: 28px; }
  .mb-logo-link { max-width: 95px; }
  .mb-logo-frame { height: 44px; }
  .mb-logo-frame img { max-height: 44px; max-width: 85px; }

  .footer-main {
    flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 20px;
  }
  .footer-copy { padding: 16px 24px; }
  /* Roomier tap targets: more space between wrapped footer links */
  .footer-links { gap: 16px 22px; }
  .footer-links a { padding: 4px 0; }
}

/* Full-width hero buttons feel more confident on phones */
@media (max-width: 600px) {
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .profiles-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
  .stat-num { font-size: 40px; }

  /* Keep the logo from crowding the hamburger on small phones */
  .nav-logo { font-size: 16px; }
  .nav-logo span { font-size: 9px; letter-spacing: 0.14em; }

  /* Shorter hero image so the headline appears sooner on small phones */
  .hero-right { height: 280px; }
}
