/* LocalCollegeReviews.com — blue & white, clean and direct. */

:root {
  --blue: #084ccf;
  --blue-hover: #0a3fae;
  --blue-tint: #ebf3fd;
  --ink: #101e34;
  --body: #474d5a;
  --muted: #7a7f86;
  --line: #e6eaf0;
  --white: #fff;
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

/* An author `display` rule outranks the hidden attribute's UA style, which
   once left the application modal painted on every page load. Never again. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: .75rem 1.25rem; background: var(--ink); color: #fff;
  font-size: .875rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8125rem 1.75rem;
  font: inherit; font-size: .9375rem; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }

.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-tint); transform: translateY(-1px); }

.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-tint); transform: translateY(-1px); }

.btn-sm { padding: .625rem 1.375rem; font-size: .875rem; }
.btn-block { width: 100%; padding-block: .9375rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}

.logo { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; color: var(--blue); }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.logo-tld { color: var(--ink); }

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

.nav-link {
  position: relative;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  padding-bottom: .375rem;
  transition: color .18s;
}
.nav-link:hover { color: var(--blue); }
.nav-link--active { color: var(--blue); font-weight: 600; }
.nav-link--active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--blue); border-radius: 1px;
}

.header-cta { margin-left: .5rem; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: .5rem; margin-right: -.5rem;
  background: none; border: none; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
}

/* Copy sits in the normal page container so it lines up with the header logo. */
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 4rem 0;
}

.hero-copy-inner { max-width: 27rem; }

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.035em;
  color: var(--ink);
}
.text-blue { color: var(--blue); }

.hero-sub {
  margin: 0 0 2.25rem;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--body);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* Photo fills the right side and bleeds off the edge. */
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(54%, 940px);
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Dissolves into the white page on its left edge, as in the design. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .8) 10%, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

/* ---------- How it works ---------- */

.how { padding: 4.5rem 0 5rem; text-align: center; }

.eyebrow {
  margin: 0 0 .625rem;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}

.section-title {
  margin: 0 0 3.5rem;
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
  color: var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: left;
}

.step { padding: 0 2.25rem; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step + .step { border-left: 1px solid var(--line); }

.step-icon {
  width: 92px; height: 92px; margin: 0 auto 1.75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint); border-radius: 50%;
  color: var(--blue);
}
.step-icon svg { width: 46px; height: 46px; }

.step-title {
  display: flex; align-items: center; gap: .625rem;
  margin: 0 0 .75rem;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink);
}

.step-num {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  font-size: .8125rem; font-weight: 700; color: #fff;
  background: var(--blue); border-radius: 50%;
}

.step-desc { margin: 0; font-size: .9688rem; line-height: 1.62; color: var(--body); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 3.75rem 0;
  background: var(--blue);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 140% at 82% 30%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(60% 120% at 8% 90%, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, 0) 60%);
}

.cta-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem;
}

.cta-title {
  margin: 0 0 .625rem;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 800; letter-spacing: -.03em; color: #fff;
}

.cta-sub { margin: 0; max-width: 30rem; font-size: 1.0625rem; color: rgba(255, 255, 255, .92); }

.cta-btn { flex-shrink: 0; padding: 1rem 2.25rem; font-size: 1rem; }

/* ---------- Contact ---------- */

.contact { padding: 4.5rem 0 5rem; }

.contact-inner { max-width: 560px; margin-inline: auto; }
.contact-head { text-align: center; }
.contact-head .section-title { margin-bottom: 2.25rem; }

.field { margin-bottom: 1.125rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field label {
  display: block; margin-bottom: .375rem;
  font-size: .8125rem; font-weight: 600; color: var(--ink);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem .9375rem;
  font: inherit; font-size: .9375rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 76, 207, .14);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #d94a4a;
  box-shadow: 0 0 0 3px rgba(217, 74, 74, .12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a3a9b4; }

.contact-form textarea { resize: vertical; min-height: 104px; }

.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%237a7f86' stroke-width='1.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

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

.form-status {
  margin: .875rem 0 0; min-height: 1.25rem;
  font-size: .875rem; text-align: center; color: var(--body);
}
.form-status--success { color: #157347; font-weight: 500; }
.form-status--error { color: #c2333c; }

.form-done { padding: 2.5rem 1rem; text-align: center; }
.form-done-mark {
  width: 56px; height: 56px; margin: 0 auto 1.125rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--blue);
  background: var(--blue-tint); border-radius: 50%;
}
.form-done h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.form-done p { margin: 0; color: var(--body); font-size: .9375rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0; }

.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer-nav a { font-size: .9375rem; font-weight: 500; color: var(--ink); transition: color .18s; }
.footer-nav a:hover { color: var(--blue); }

.copyright { margin: 0; font-size: .875rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 3rem 0 2.5rem; }
  .hero-copy-inner { max-width: 34rem; }

  .hero-media {
    position: static;
    width: 100%;
    height: clamp(260px, 46vw, 400px);
  }
  .hero-media::after {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .55) 9%, rgba(255, 255, 255, 0) 28%);
  }

  .steps { grid-template-columns: 1fr; gap: 2.5rem; max-width: 420px; margin-inline: auto; }
  .step, .step:first-child, .step:last-child { padding: 0; }
  .step + .step { border-left: none; border-top: 1px solid var(--line); padding-top: 2.5rem; }
  .step-icon { margin-inline: 0; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-sub { margin-inline: auto; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px -20px rgba(16, 30, 52, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-link { padding: .875rem 0; border-bottom: 1px solid var(--line); }
  .nav-link--active::after { display: none; }
  .header-cta { margin: .875rem 0 0; padding: .8125rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 2rem, var(--max)); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* ---------- Student application modal ---------- */

.nav-link--button,
.footer-link-button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}
.nav-link--button { padding-bottom: .375rem; }
.footer-link-button { font-size: .9375rem; font-weight: 500; color: var(--ink); transition: color .18s; }
.footer-link-button:hover { color: var(--blue); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

/* `display:flex` above beats the hidden attribute's UA rule, so restate it. */
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 30, 52, .55);
  backdrop-filter: blur(3px);
  animation: modal-fade .18s ease;
}

.modal-panel {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.25rem 2rem 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(16, 30, 52, .45);
  animation: modal-rise .22s cubic-bezier(.22, 1, .36, 1);
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: .875rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.modal-close:hover { background: var(--blue-tint); color: var(--ink); }

.modal-title {
  margin: 0 0 .5rem;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.modal-sub {
  margin: 0 0 1.75rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--body);
}

.apply-form .field { margin-bottom: 1rem; }

.apply-form input {
  width: 100%;
  padding: .75rem .9375rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.apply-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 76, 207, .14);
}
.apply-form input.is-invalid {
  border-color: #d94a4a;
  box-shadow: 0 0 0 3px rgba(217, 74, 74, .12);
}
.apply-form input::placeholder { color: #a3a9b4; }
.apply-form .btn { margin-top: .5rem; }

body.modal-open { overflow: hidden; }

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-panel { animation: none; }
}

@media (max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }

  .modal-panel {
    width: 100%;
    max-height: 92dvh;
    padding: 1.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }

  .modal-title { font-size: 1.4375rem; }
  .modal-sub { margin-bottom: 1.25rem; font-size: .9062rem; }
  .apply-form .field { margin-bottom: .8125rem; }
}

/* Short landscape phones: let the panel scroll rather than overflow. */
@media (max-height: 560px) {
  .modal { align-items: flex-start; padding: .5rem; }
  .modal-panel { max-height: calc(100dvh - 1rem); padding-top: 1.5rem; }
}
