/* Student Doc Relief — site stylesheet */

:root {
  --navy-deep: #071427;
  --navy: #0B1F3A;
  --navy-2: #14315a;
  --navy-3: #1c3f68;
  --gold: #C9A227;
  --gold-light: #e3c765;
  --gold-dark: #8f7118;
  --cream: #F7F4EC;
  --cream-2: #efe8d5;
  --ink: #1a2330;
  --muted: #5b6b7c;
  --muted-on-navy: #b7c5d6;
  --border: #e2dcc8;
  --border-navy: rgba(255,255,255,0.14);
  --radius: 5px;
  --radius-lg: 12px;
  --max: 1180px;
  --serif: 'Fraunces', Georgia, "Times New Roman", serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--navy); }
a:hover { color: var(--gold-dark); }

img, svg { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.faq-item summary:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 300;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Motion primitives ------------------------------------------------- */

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
  opacity: 0;
  animation: reveal-up 0.9s var(--ease) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(1) { transition-delay: .02s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .22s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .32s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .42s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .52s; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim, .reveal, .stagger > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  border-color: var(--gold);
  box-shadow: 0 8px 20px -8px rgba(201,162,39,0.55);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(201,162,39,0.65); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-width: 1.5px;
  border-color: rgba(255,255,255,0.65);
}
.btn-secondary:hover { background: rgba(255,255,255,0.16); border-color: #fff; box-shadow: 0 8px 20px -12px rgba(255,255,255,0.3); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 20, 39, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201,162,39,0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo span.mark { color: var(--gold); font-style: italic; }
.main-nav {
  display: none;
  gap: 28px;
}
.main-nav a {
  color: var(--muted-on-navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.main-nav a:hover { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  font-family: var(--serif);
}
.header-phone:hover { color: var(--gold); }

@media (min-width: 860px) {
  .main-nav { display: flex; }
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 140px 0 80px;
  background:
    radial-gradient(1200px 680px at 90% -10%, rgba(201,162,39,0.24), transparent 58%),
    radial-gradient(820px 640px at 6% 4%, rgba(28,63,104,0.6), transparent 56%),
    radial-gradient(1000px 720px at -6% 106%, rgba(28,63,104,0.85), transparent 60%),
    radial-gradient(760px 560px at 58% 48%, rgba(20,49,90,0.55), transparent 66%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 68px),
    repeating-linear-gradient(25deg, rgba(201,162,39,0.035) 0px, rgba(201,162,39,0.035) 1px, transparent 1px, transparent 90px),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 600;
  font-variant: all-small-caps;
  letter-spacing: 0.14em;
  font-size: 1rem;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 500;
  max-width: 20ch;
  letter-spacing: -0.015em;
}
.hero p.lead {
  color: #cfd9e6;
  font-size: 1.14rem;
  max-width: 54ch;
  margin-top: 20px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-proof {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 2px solid rgba(201,162,39,0.7);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 30px 60px -28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.09);
}
.hero-proof-label {
  display: block;
  font-family: var(--sans);
  font-variant: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(201,162,39,0.35);
  padding-bottom: 12px;
}
.trust-strip {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.trust-strip li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #dbe3ec;
  font-size: 0.93rem;
}
.trust-strip svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--gold); }

@media (max-width: 699px) {
  .hero { padding: 104px 0 56px; min-height: auto; }
  .hero .wrap { gap: 36px; }
  .hero-ctas { margin-top: 24px; }
}
@media (min-width: 700px) {
  .hero h1 { font-size: 3.2rem; }
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero-proof { justify-self: end; width: 100%; max-width: 400px; }
}

/* Section scaffolding ---------------------------------------------------- */
section { padding: 88px 0; }
.section-alt { background: var(--cream-2); }
.section-navy {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.hero::after,
.section-navy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.55) 25%, rgba(201,162,39,0.55) 75%, transparent);
  pointer-events: none;
}
.section-navy h2 { color: #fff; }
.section-head {
  max-width: 62ch;
  margin: 0 0 48px;
}
.section-head .kicker {
  display: block;
  color: var(--gold-dark);
  font-family: var(--sans);
  font-weight: 700;
  font-variant: all-small-caps;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
  margin-bottom: 14px;
  position: relative;
  padding-left: 30px;
}
.section-head .kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 20px;
  height: 1.5px;
  background: var(--gold-dark);
}
.section-navy .section-head .kicker { color: var(--gold); }
.section-navy .section-head .kicker::before { background: var(--gold); }
.section-head h2 { font-size: 2.1rem; font-weight: 500; margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-navy .section-head p { color: var(--muted-on-navy); }

/* How it works ------------------------------------------------------------ */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  box-shadow: 0 2px 10px -6px rgba(11,31,58,0.18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -18px rgba(11,31,58,0.32);
  border-color: rgba(201,162,39,0.5);
}
.step .step-num {
  display: block;
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Services ------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 14px -6px rgba(11,31,58,0.14);
  padding: 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px -16px rgba(11,31,58,0.36);
}
.service-card h3 { font-size: 1.2rem; font-weight: 600; }
.service-card p { color: var(--muted); font-size: 0.96rem; }
.service-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; }
.service-card li { margin-bottom: 7px; }

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Trust / compliance ----------------------------------------------------- */
.trust-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 4px 18px -10px rgba(0,0,0,0.3);
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.trust-item:hover {
  border-color: rgba(201,162,39,0.55);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 16px 32px -14px rgba(0,0,0,0.42);
  transform: translateY(-3px);
}
.trust-item svg { flex: none; color: var(--gold); margin-top: 3px; }
.trust-item h3 { font-size: 1.02rem; margin-bottom: 6px; color: #fff; font-weight: 600; }
.trust-item p { font-size: 0.93rem; color: var(--muted-on-navy); margin: 0; }

@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

.disclaimer-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  font-size: 0.93rem;
  color: #e6ecf2;
}
.disclaimer-box strong { color: #fff; }
.disclaimer-box a { color: var(--gold); }

/* FAQ -------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(201,162,39,0.5); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.04rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform-origin: center;
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item .faq-answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.96rem;
}
.faq-answer a { color: var(--navy); font-weight: 600; }

/* Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.contact-info h2 { font-size: 1.8rem; }
.contact-phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  margin: 10px 0 4px;
}
.contact-info .hours { color: var(--muted); font-size: 0.93rem; margin-bottom: 26px; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; color: var(--muted); font-size: 0.93rem; }
.contact-list li { margin-bottom: 10px; padding-left: 24px; position: relative; }
.contact-list li svg { position: absolute; left: 0; top: 3px; color: var(--gold-dark); }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 50px -24px rgba(11,31,58,0.3);
}
.form-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 24px; }

.field { position: relative; margin-bottom: 22px; }
.field input {
  width: 100%;
  padding: 23px 14px 9px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field label {
  position: absolute;
  left: 15px;
  top: 17px;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transition: all .18s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-dark);
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.consent-row input { margin-top: 4px; flex: none; accent-color: var(--gold-dark); }
.consent-row label { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.form-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 18px;
}
.form-disclaimer a { color: var(--navy); font-weight: 600; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c4d1;
  padding: 56px 0 30px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(201,162,39,0.45);
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-variant: all-small-caps;
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b9c4d1; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-logo { color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.footer-logo span { color: var(--gold); font-style: italic; }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.8rem;
  color: #8ea0b3;
  line-height: 1.65;
}
.footer-disclaimer p { margin: 0 0 10px; }
.footer-disclaimer strong { color: #b9c4d1; }
.footer-disclaimer a { color: var(--gold); }
.footer-bottom {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #8ea0b3;
}
.footer-bottom a { color: #8ea0b3; }
.footer-bottom a:hover { color: var(--gold); }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Simple content pages (privacy/terms) --------------------------------------- */
.legal-page main .wrap { max-width: 800px; padding-top: 64px; padding-bottom: 24px; }
.legal-page h2 { margin-top: 1.7em; font-size: 1.32rem; font-weight: 600; }
.legal-page h1 { font-size: 2.1rem; font-weight: 500; }
.legal-page p, .legal-page li { color: var(--ink); }
.legal-page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }
