/* =========================================================
   Calby.edu landing page styles
   Design language inspired by webb.edu — collegiate, calm,
   serif headings, generous whitespace, deep brand color.
   ========================================================= */

:root {
  --brand-deep: #0e3b43;       /* deep teal — primary */
  --brand-mid: #1f6b75;        /* medium teal — accents */
  --brand-warm: #c9a96a;       /* warm gold — highlight */
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --paper-cream: #faf6ef;
  --paper-mist: #f1f4f5;
  --rule: #d8d2c4;
  --danger: #b3261e;
  --success: #1b5e20;

  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,.08);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--brand-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: .2px;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

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

/* ---------- announcement bar ---------- */
.announce {
  background: var(--brand-deep);
  color: #fff;
  text-align: center;
  font-size: .9rem;
  padding: 8px 16px;
  letter-spacing: .3px;
}
.announce strong { color: var(--brand-warm); }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative; /* FIX: anchors the absolute-positioned mobile dropdown */
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  background: var(--brand-deep);
  color: var(--brand-warm);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: var(--radius);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brand-deep);
  font-weight: 600;
  letter-spacing: .5px;
}
.brand-name span { color: var(--brand-warm); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: var(--brand-warm);
  color: var(--brand-deep);
}

.nav-cta {
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.nav-cta:hover { background: var(--brand-mid); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px;
  /* FIX: ensure tap target is reachable above any overlapping content */
  position: relative;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 16px 24px;
    gap: 12px;
    /* FIX: sit above page content so nothing blocks taps */
    z-index: 200;
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-cta {
    display: inline-block;
    margin: 12px 24px 16px;
  }
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(14,59,67,.85), rgba(31,107,117,.7)),
    radial-gradient(circle at 70% 30%, var(--brand-mid), var(--brand-deep));
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201,169,106,.25), transparent 70%);
  border-radius: 50%;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em {
  font-style: normal;
  color: var(--brand-warm);
  border-bottom: 3px solid var(--brand-warm);
  padding-bottom: 4px;
}
.hero-lede {
  font-size: 1.2rem;
  max-width: 56ch;
  color: rgba(255,255,255,.92);
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  max-width: 720px;
}
.hero-stat {
  border-left: 3px solid var(--brand-warm);
  padding-left: 14px;
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  display: block;
}
.hero-stat .lbl {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--brand-warm); color: var(--brand-deep); }
.btn-primary:hover { background: #d6b97c; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.65);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn-dark { background: var(--brand-deep); color: #fff; }
.btn-dark:hover { background: var(--brand-mid); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  color: var(--brand-mid);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.bg-cream { background: var(--paper-cream); }
.bg-mist  { background: var(--paper-mist); }
.bg-deep  { background: var(--brand-deep); color: #fff; }
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: #fff; }

/* ---------- highlight grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card .icon {
  width: 44px; height: 44px;
  background: var(--brand-deep);
  color: var(--brand-warm);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

/* ---------- locations ---------- */
.location-card {
  border-top: 4px solid var(--brand-warm);
  background: var(--paper);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.location-card h3 { margin-bottom: 6px; }
.location-card .meta {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ---------- timeline ---------- */
.timeline {
  border-left: 2px solid var(--brand-warm);
  padding-left: 28px;
  margin: 0;
}
.timeline-item { margin-bottom: 28px; position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 8px;
  width: 14px; height: 14px;
  background: var(--brand-deep);
  border-radius: 50%;
  border: 3px solid var(--brand-warm);
}
.timeline-item h4 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--brand-deep);
}
.timeline-item .week {
  color: var(--brand-mid);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--brand-deep);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0 auto 24px; }
.cta-fee {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: .9rem;
}
.cta-fee strong { color: var(--brand-warm); }

/* ---------- footer ---------- */
.site-footer {
  background: #082930;
  color: rgba(255,255,255,.8);
  padding: 60px 0 30px;
  font-size: .92rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: .8rem;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--brand-warm); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- prose pages (our-story, faq, etc.) ---------- */
.page-header {
  background: var(--paper-cream);
  border-bottom: 1px solid var(--rule);
  padding: 70px 0 50px;
}
.page-header .breadcrumb {
  font-size: .85rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p, .prose ul, .prose ol { font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--brand-warm);
  background: var(--paper-cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--brand-deep);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.faq-q {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brand-warm);
  margin-left: 16px;
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { content: "\2013"; }
.faq-a { padding-top: 10px; color: var(--ink-soft); }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand-warm);
  outline-offset: 1px;
  border-color: var(--brand-mid);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-help { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.checkbox-row input { margin-top: 4px; }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 18px 0;
  font-size: .95rem;
}
.alert-info { background: #eef5f6; border: 1px solid #b9d6da; color: var(--brand-deep); }
.alert-warn { background: #fff4e0; border: 1px solid #f1d093; color: #6a4a07; }
.alert-error { background: #fde7e6; border: 1px solid #f0b3b0; color: var(--danger); }
.alert-success { background: #e8f3e9; border: 1px solid #a7cdab; color: var(--success); }

/* ---------- payment lock ---------- */
.lock-screen {
  text-align: center;
  padding: 50px 24px;
}
.lock-screen .icon-lock {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper-cream);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: var(--brand-deep);
  font-size: 1.8rem;
  font-family: var(--serif);
}

/* ---------- admin dashboard ---------- */
.admin-shell {
  background: var(--paper-mist);
  min-height: 100vh;
  padding: 40px 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
@media (max-width: 800px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.kpi {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand-warm);
}
.kpi .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.kpi .num { font-family: var(--serif); font-size: 2.2rem; color: var(--brand-deep); font-weight: 600; }

.admin-table-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}
.admin-table-wrap header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper-cream);
}
.admin-table-wrap header h3 { margin: 0; font-family: var(--sans); font-size: 1.05rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.admin-table th, .admin-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.admin-table th {
  background: var(--paper-cream);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .75rem;
  color: var(--ink-soft);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--paper-cream); }

.bar {
  display: inline-block;
  height: 8px;
  background: var(--brand-mid);
  border-radius: 4px;
  vertical-align: middle;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-cream);
  border: 1px solid var(--rule);
  font-size: .75rem;
  color: var(--brand-deep);
}

/* ---------- utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.spacer-lg { height: 60px; }
.spacer-md { height: 30px; }

/* skip-link */
.skip {
  position: absolute; left: -999px; top: auto;
  background: var(--brand-deep);
  color: #fff;
  padding: 8px 14px;
}
.skip:focus { left: 12px; top: 12px; z-index: 999; }
