/* Real Estate Apprentice Foundation — landing page
   Palette sampled from the Foundation mark. */

:root {
  --blue:      #286BB5;
  --blue-lift: #3E86D6;
  --navy:      #253756;
  --navy-deep: #1A2740;
  --bone:      #EAEAE7;

  --ink:       #16202F;
  --ink-soft:  #4E5D73;
  --line:      #E2E5EA;
  --paper:     #FFFFFF;
  --paper-alt: #F6F7F9;

  --shell:     1120px;
  --r-sm:      10px;
  --r-md:      16px;
  --r-lg:      24px;

  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--blue-lift);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 39, 64, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

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

.brand {
  display: inline-flex; align-items: center; gap: .8rem;
  text-decoration: none; color: #fff;
}
.brand__mark { width: 38px; height: 38px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.brand__text span { font-size: .78rem; color: rgba(255,255,255,.62); letter-spacing: .09em; text-transform: uppercase; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px; white-space: nowrap;
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.pill--muted { color: rgba(255,255,255,.72); background: rgba(255,255,255,.1); }
.pill--amber { color: #8A5A08; background: #FDF3DE; }

@media (max-width: 30rem) {
  .masthead .pill { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 62%, #131E33 100%);
  color: #fff;
  padding-block: clamp(4.5rem, 3rem + 9vw, 8.5rem);
}

.hero__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(46% 52% at 78% 18%, rgba(40, 107, 181, .55), transparent 68%),
    radial-gradient(38% 44% at 12% 82%, rgba(62, 134, 214, .3), transparent 70%);
  z-index: -1;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.hero__inner { max-width: 46rem; }

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: 0 0 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: #A9CBF2;
}

.hero__lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
  margin: 0 0 2.25rem;
  max-width: 40rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 999px;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-lift); }
.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255,255,255,.06); }

/* ---------- status notice ---------- */

.notice { background: var(--bone); border-bottom: 1px solid var(--line); }
.notice__inner {
  display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap;
  padding-block: 1.35rem;
}
.notice p { margin: 0; font-size: .98rem; color: #3D4A5F; }
.notice strong { color: var(--ink); }

/* ---------- shared section type ---------- */

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}

.section-lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.075rem;
  margin: 0 0 3rem;
}

/* ---------- mission cards ---------- */

.mission { padding-block: clamp(4rem, 2.5rem + 7vw, 7rem); }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #CBD6E4;
  box-shadow: 0 18px 40px -24px rgba(37, 55, 86, .45);
}

.card__num {
  display: block;
  font-family: var(--serif);
  font-size: .95rem; font-weight: 600; letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--navy); margin: 0 0 .6rem;
}
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- statement ---------- */

.statement {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .82);
  padding-block: clamp(4rem, 2.5rem + 7vw, 7rem);
}

.statement__inner {
  display: grid;
  gap: 2.5rem 4rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56rem) {
  .statement__inner { grid-template-columns: 18rem minmax(0, 1fr); }
  .statement__meta { position: sticky; top: 6rem; align-self: start; }
}

.statement .section-title { color: #fff; margin-bottom: .5rem; }
.statement__date {
  margin: 0; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.statement__body { max-width: 40rem; }
.statement__body p { margin: 0 0 1.35rem; font-size: 1.05rem; line-height: 1.75; }
.statement__body p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  line-height: 1.45;
  color: #fff;
  padding-left: 1.25rem;
  border-left: 3px solid var(--blue);
}
.statement__sign {
  color: rgba(255, 255, 255, .55);
  font-size: .95rem !important;
  margin-bottom: 0 !important;
}

/* ---------- footer ---------- */

.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
}
.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__brand img { width: 34px; height: 34px; border-radius: 50%; }
.footer__brand p { margin: 0; font-weight: 600; font-size: .95rem; color: var(--navy); }

.footer__legal {
  margin: 0; display: flex; flex-direction: column; gap: .15rem;
  font-size: .85rem; color: var(--ink-soft); text-align: right;
}
@media (max-width: 40rem) {
  .footer__legal { text-align: left; }
}
