/* css/site.css - the public website's design layer. Linked LAST, and only by pages/*.html (never by the student or staff app), so it refines
 * css/style.css and the page stylesheets without touching the portals. One idea throughout: every section's BACKGROUND runs edge to edge, its CONTENT
 * stays in a centred column (--wrap), which the header, hero, sections and footer all share. */

:root {
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --edge: max(var(--pad), calc((100% - var(--wrap)) / 2));   /* side padding of a full-width band; % resolves where it is used */
  --band: clamp(56px, 7vw, 88px);                            /* vertical rhythm of a section */
  --hdr-pad: var(--edge);

  --navy: #042940;
  --teal: #007791;                                           /* white on it: 5.1:1 */
  --teal-hover: #04627a;
  --aqua: #00afb9;                                           /* accent on navy only */
  --line: #dfe6ec;
  --card-r: 14px;
  --btn-r: 10px;
}
@media (min-width: 1281px) { :root { --hdr-pad: var(--edge); } }

/* ---------------------------------------------------------------- full-width bands, centred content */
body > section, body > .page-header, body > footer { max-width: none; width: auto; margin: 0; }
body > section { padding: var(--band) var(--edge); }
body > section:nth-of-type(even) { background: #fff; }

/* ---------------------------------------------------------------- type */
body { font-size: 16px; }
p { color: #4b5a6b; }
h1, h2, h3 { text-wrap: balance; }
.section-eyebrow { display: inline-block; margin-bottom: 10px; color: var(--teal); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section-title { margin: 0 0 12px; color: var(--navy); font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.25rem); font-weight: 750; line-height: 1.2; letter-spacing: -0.022em; }
.section-subtitle { margin: 0; color: #4b5a6b; font-size: 1.02rem; line-height: 1.65; }
body > section > .section-title, body > section > .section-subtitle, .wrap > .section-title, .wrap > .section-subtitle { max-width: 720px; margin-inline: auto; text-align: center; }
body > section > .section-subtitle, .wrap > .section-subtitle { margin-bottom: 36px; }
.section-header { max-width: 720px; margin: 0 auto 40px; }
.wrap { max-width: 1040px; margin-inline: auto; }

/* ---------------------------------------------------------------- one button system: teal = the conversion action, outline = the second choice */
.btn { min-height: 44px; padding: 0.7rem 1.35rem; border-radius: var(--btn-r); font-size: 0.92rem; font-weight: 650; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
.btn-lg { min-height: 50px; padding: 0.85rem 1.7rem; font-size: 1rem; border-radius: var(--btn-r); }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.85rem; border-radius: 8px; }
.btn:hover, .btn-primary:hover, .btn-outline:hover { transform: none; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 1px 2px rgba(4, 41, 64, 0.18); }
.btn-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; box-shadow: 0 4px 14px rgba(0, 119, 145, 0.28); }
.btn-outline { background: transparent; border-color: #b8c6d1; color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.btn-ghost { color: var(--navy); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* on navy: the same hierarchy, inverted for contrast */
.hero-actions .btn-primary, .fp-actions .btn-primary, .band-dark .btn-primary { background: var(--teal); border-color: #2ab3c0; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); }
.hero-actions .btn-primary:hover, .fp-actions .btn-primary:hover, .band-dark .btn-primary:hover { background: #0a8aa6; border-color: #6fd6df; transform: none; }
.hero-actions .btn-outline, .fp-actions .btn-outline, .band-dark .btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero-actions .btn-outline:hover, .fp-actions .btn-outline:hover, .band-dark .btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.fp-join .btn-outline, .join .btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.fp-join .btn-outline:hover, .join .btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.fp-join .fp-join-main { background: #fff; border-color: #fff; color: var(--navy); box-shadow: none; }
.fp-join .fp-join-main:hover { background: #dff3f5; border-color: #dff3f5; color: var(--navy); }

/* ---------------------------------------------------------------- top bar and header */
.top-notice-inner { padding-block: 7px; }
header, header.scrolled { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
header.scrolled { box-shadow: 0 6px 20px rgba(4, 41, 64, 0.08); }
nav { min-height: 72px; padding-block: 0.7rem; }
.logo-badge { background: var(--navy); box-shadow: none; }
.nav-links a { font-weight: 550; color: #334155; }
.nav-links a.active { color: var(--navy); font-weight: 700; }
.nav-links a::after { background: var(--teal); }
.nav-actions .btn { min-height: 44px; }

/* ---------------------------------------------------------------- page headers (inner pages) */
.page-header, .page-header.fac-hero { padding: clamp(44px, 6vw, 72px) var(--edge); background: linear-gradient(135deg, #031c2d 0%, var(--navy) 55%, #055a66 100%); text-align: center; }
.page-header h1 { max-width: 22ch; margin: 0 auto; font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.15; }
.page-header p { max-width: 62ch; margin: 12px auto 0; color: #d5e9f0; opacity: 1; }

/* ---------------------------------------------------------------- cards */
.card, .po-card, .cred-card, .bento-card { border: 1px solid var(--line); border-radius: var(--card-r); box-shadow: 0 1px 3px rgba(4, 41, 64, 0.05); }
.card:hover, .bento-card:hover { transform: none; box-shadow: 0 6px 20px rgba(4, 41, 64, 0.08); border-color: #c4d6df; }
.card:hover .card-icon { transform: none; }

/* ---------------------------------------------------------------- home: hero */
.hero-wrapper { padding: clamp(48px, 6vw, 80px) var(--edge); }
.hero-container { max-width: none; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 4vw, 56px); }
.hero-content h1 { font-size: clamp(2.1rem, 1.2rem + 3.1vw, 3.25rem); line-height: 1.1; }
.hero-tagline { font-size: 1.15rem; margin-bottom: 0.9rem; }
.hero-content p.hero-desc { font-size: 1.02rem; margin-bottom: 1.75rem; }
.hero-audience { display: block; margin-top: 8px; color: #bae6fd; font-weight: 600; }
.hero-actions { margin-bottom: 0; gap: 12px; }
.hero-photo { border-radius: 18px; }
@media (max-width: 1024px) { .hero-container { grid-template-columns: minmax(0, 1fr); } .hero-visual { width: 100%; max-width: 680px; margin-inline: auto; } .hero-content p.hero-desc { margin-inline: auto; } }

.hero-kicker { align-items: flex-start; gap: 10px; font-size: 0.75rem; letter-spacing: 0.09em; line-height: 1.6; }
.hero-kicker .kicker-dot { flex: none; margin-top: 0.45em; }
@media (min-width: 1025px) { .hero-content h1 { font-size: clamp(2.5rem, 1.1rem + 2.4vw, 3rem); } }
@media (max-width: 520px) { .hero-kicker .kicker-dot { display: none; } .hero-actions { flex-direction: column; align-items: stretch; } .hero-actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- next enrollment date, shown beside the enrollment buttons (colour follows the section) */
.enroll-date { display: flex; flex-direction: column; gap: 2px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding-left: 12px; border-left: 3px solid #2ab3c0; text-align: left; color: inherit; line-height: 1.35; }
.enroll-date[hidden] { display: none; }
.enroll-cycle { font-size: 0.95rem; font-weight: 700; color: inherit; overflow-wrap: anywhere; }
.join-cycle { display: block; margin: 0 auto 6px; max-width: 40ch; font-size: 1.15rem; color: #fff; overflow-wrap: anywhere; }
.join-cycle[hidden] { display: none; }
.enroll-date strong { font-size: 1.15rem; color: inherit; }
.hero-content .enroll-date, .fp-hero .enroll-date, .fp-join .enroll-date, .flagship .enroll-date { color: #fff; }
.flagship .enroll-date { margin: 28px 0 0; }
.enroll-date-center { margin-inline: auto; }
.enroll-date-center:has(+ .cluster) { margin-top: 50px; }
.enroll-date-note { width: auto; padding: 12px 16px; background: #fff; border-radius: 6px; color: var(--navy); }
.enroll-date-note em { font-style: normal; font-size: 0.95rem; }
@media (max-width: 1024px) { .hero-content .enroll-date, .fp-hero .enroll-date { margin-inline: auto; } }

/* ---------------------------------------------------------------- home: the four reasons, in verified facts only */
body > section.why { padding-block: 28px; background: #fff; border-bottom: 1px solid var(--line); }
.why-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-list i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #e5f3f7; color: var(--teal); font-size: 1.05rem; }
.why-list strong { display: block; color: var(--navy); font-size: 0.95rem; line-height: 1.3; }
.why-list span { display: block; margin-top: 2px; color: #4b5a6b; font-size: 0.85rem; line-height: 1.45; }
@media (max-width: 960px) { .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- home: sections */
body > section.po { background: var(--c-bg); }
body > section.ach { padding: var(--band) var(--edge); background: linear-gradient(160deg, #031c2d 0%, var(--navy) 55%, #053b5c 100%); }
body > section.hf { background: #fff; }
body > section.hi { background: var(--c-bg); }
body > section.join { padding: 0; background: linear-gradient(135deg, #032030 0%, var(--navy) 52%, #005c53 100%); }
.join-card { padding: var(--band) var(--edge); border-radius: 0; background: none; box-shadow: none; }
.join-btn-main { background: #fff; border-color: #fff; color: var(--navy); }
.join-btn-main:hover { background: #dff3f5; border-color: #dff3f5; color: var(--navy); }
.join-btn-alt { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.po-name { color: var(--teal); }
.po-btn { margin-top: auto; }
.hi-card { max-width: 1000px; margin-inline: auto; }

/* ---------------------------------------------------------------- instructors */
body > section.fp-hero { padding: clamp(44px, 6vw, 72px) var(--edge); background: linear-gradient(135deg, #031c2d 0%, var(--navy) 48%, #053b5c 100%); }
body > section.fp-cred, body > section.fp-areas { background: var(--c-bg); }
body > section.fp-phil { background: #fff; }
body > section.fp-join { padding: 0; background: linear-gradient(135deg, #032030 0%, var(--navy) 52%, #005c53 100%); }
body > section.fp-join > * { max-width: none; margin: 0; padding: var(--band) var(--edge); border-radius: 0; background: none; box-shadow: none; }

/* ---------------------------------------------------------------- programs */
.module-nav { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px var(--edge); background: #fff; border-bottom: 1px solid var(--line); }
.module-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: 0.88rem; font-weight: 600; }
.module-nav a strong { color: var(--teal); font-weight: 750; }
.module-nav a:hover { border-color: var(--teal); background: #f1f9fb; }
.flagship { margin-bottom: var(--band); padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: linear-gradient(135deg, var(--navy) 0%, #045266 60%, #007791 100%); color: #fff; }
.flagship .btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.flagship .btn-light:hover { background: #dff3f5; border-color: #dff3f5; color: var(--navy); }
.flagship .btn-line { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.flagship .btn-line:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.module-card { overflow: hidden; padding: 0; }
.module-card .module-art-banner { width: 100%; margin: 0; }
@media (max-width: 480px) { .module-card > div:last-child { padding: 18px !important; } }

/* ---------------------------------------------------------------- facilities, contact, apply */
body > section.fac-showcase { background: var(--c-bg); }
body > section.fac-gallery { background: #fff; }
body > section.location-band { padding-block: 44px; background: #eaf3f6; text-align: center; }
body > section.map-band { padding: 0; margin: 0; line-height: 0; }
.map-band iframe { display: block; width: 100%; height: clamp(300px, 44vw, 440px); border: 0; }
.form-control, .auth-container .form-control { min-height: 46px; border: 1px solid #b8c6d1; border-radius: var(--btn-r); background: #fff; font-size: 1rem; }
.form-control:focus, .auth-container .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 119, 145, 0.18); outline: 2px solid transparent; }
.form-group label { color: var(--navy); font-weight: 600; }
.form-control::placeholder { color: #64748b; }
.card .social-links a { background: var(--navy); }

/* ---------------------------------------------------------------- contrast and calm (WCAG AA) */
.auth-footer, .separator, .auth-container .auth-footer, .auth-container .separator { color: #5f6e7e; }
.auth-footer a { color: var(--teal); }
.nav-links a.btn-primary, .nav-links a.btn-primary.active { color: #fff; justify-content: center; padding-inline: 1.2rem; }
.nav-links a.btn-primary::after { display: none; }
.location-band p[style], .location-band p[style] i { color: #035f7a !important; }   /* the landmark line carries an inline light blue */
.hero-gradient-text { background: none; -webkit-text-fill-color: currentColor; color: #5fd3da; }
.hero-kicker .kicker-dot { animation: none; box-shadow: none; }

/* ---------------------------------------------------------------- footer */
body > footer { padding: clamp(52px, 6vw, 72px) var(--edge) 28px; }
.footer-grid, .footer-bottom { max-width: none; }
.footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.footer-col h3 { font-size: 1rem; }
.footer-col p, .footer-links li { color: #b6c6d2; }
.footer-links a { color: #d3e0e9; }
.footer-links a:hover { padding-left: 0; text-decoration: underline; color: #fff; }
.footer-links li i { margin-right: 8px; color: var(--aqua); }
.footer-bottom, .footer-bottom p { color: #8fa5b5; }
.social-links a { width: 44px; height: 44px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- phones: the enrollment action stays one tap away (the header has no room for it) */
.m-enroll { display: none; }
@media (max-width: 480px) {
  .m-enroll { display: flex; gap: 10px; position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(4, 41, 64, 0.1); }
  .m-enroll .btn { flex: 1 1 0; }
  .m-enroll .btn-primary { flex-grow: 2; flex-direction: column; gap: 0; line-height: 1.25; }
  .m-enroll .btn small { font-size: 0.75rem; font-weight: 500; }
  body:has(.m-enroll) { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  body:has(#nav-dashboard:not([style*="none"])) .m-enroll { display: none; }      /* a signed-in student has the portal button instead */
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav-links a { transition: none; }
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .kicker-dot { animation: none !important; }
}
