/* USATEACHER.COM — educator / trainer professional site
   Distinct from USAHouses state pages and CommercialRealEstate.team */

:root {
  --ink: #152033;
  --ink-soft: #3d4a5c;
  --ink-mute: #66748a;
  --paper: #f6f8fb;
  --paper-elev: #ffffff;
  --line: #d9e0ea;
  --teal: #1f6b63;
  --teal-deep: #154f49;
  --teal-soft: #e6f2f0;
  --sky: #e8eef6;
  --focus: #2a6fdb;
  --max: 1080px;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(21, 32, 51, 0.04), 0 12px 36px rgba(21, 32, 51, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-deep);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--teal); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip:focus { left: 1rem; top: 1rem; }

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

/* ——— Site header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

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

.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { color: var(--teal-deep); }

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

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-phone {
  display: none;
  text-decoration: none;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .nav-phone { display: inline; }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(31, 107, 99, 0.16), transparent 55%),
    radial-gradient(900px 480px at 0% 20%, rgba(42, 111, 219, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--paper) 72%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 40rem;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--ink);
  animation: rise 0.7s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 0.75s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
  animation: rise 0.75s ease 0.16s both;
}

.trust-line {
  margin: 0 0 1.75rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-mute);
  max-width: 38rem;
  animation: rise 0.75s ease 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.75s ease 0.28s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef2f7 0%, var(--paper) 100%);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

/* Offer cards — interaction containers for choosing a training area */
.offer-grid {
  display: grid;
  gap: 1rem;
}

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

.offer-card {
  background: var(--paper-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
  border-color: rgba(31, 107, 99, 0.45);
  transform: translateY(-2px);
}

.offer-num {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.offer-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}

.offer-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.about-copy p:last-child { margin-bottom: 0; }

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  padding: 0.95rem 1.05rem;
  background: var(--paper-elev);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Platforms — light list, not card-heavy */
.platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.platform-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.platform-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.platform-list a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.platform-list a:hover { color: var(--teal); }

.platform-list p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact band */
.contact-band {
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(31, 107, 99, 0.18), transparent 60%),
    linear-gradient(135deg, #123532 0%, #1a4a45 55%, #204f6a 100%);
  color: #eef6f5;
  padding: 3.5rem 0;
}

.contact-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  color: #fff;
}

.contact-band p {
  margin: 0 0 1.25rem;
  color: rgba(238, 246, 245, 0.88);
  max-width: 34rem;
}

.contact-band .btn-primary {
  background: #fff;
  color: var(--teal-deep);
}

.contact-band .btn-primary:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.contact-meta {
  margin-top: 1.15rem;
  font-size: 0.95rem;
  color: rgba(238, 246, 245, 0.78);
}

.contact-meta a {
  color: #fff;
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper-elev);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-inner a:hover { color: var(--teal); }

/* ——— Resume page: comfortable on screen; compression is print-only ——— */
.resume-page {
  font-size: 1.05rem;
  line-height: 1.62;
}

.resume-header {
  padding: 2.4rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 220px at 90% 0%, rgba(31, 107, 99, 0.1), transparent 60%),
    linear-gradient(180deg, #eef3f8 0%, var(--paper) 100%);
}

.resume-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.resume-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.resume-page h1 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.resume-title {
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 42rem;
}

.resume-contact {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.98rem;
}

.resume-contact a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
}

.resume-ideal {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.95rem;
  background: var(--teal-soft);
  border-radius: 8px;
  color: var(--teal-deep);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 40rem;
}

.resume-download { margin: 0.15rem 0 0; }

.resume-pdf-btn {
  width: 100%;
  max-width: 18rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .resume-pdf-btn { width: auto; }
}

.resume-body {
  padding: 2rem 0 3.5rem;
}

.resume-section {
  margin: 0 0 1.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.resume-section-end,
.resume-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  break-after: avoid;
  page-break-after: avoid;
}

.resume-section > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.group-label {
  margin: 1.25rem 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  break-after: avoid;
  page-break-after: avoid;
}

.group-label:first-of-type { margin-top: 0.2rem; }

.resume-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-lines > li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  margin: 0 0 0.9rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-lines > li:last-child { margin-bottom: 0; }

.rl-main {
  grid-column: 1;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}

.rl-dates {
  grid-column: 2;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-mute);
  white-space: nowrap;
  text-align: right;
}

.rl-detail {
  grid-column: 1 / -1;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.job-scope {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}

.compact-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.compact-list li {
  margin: 0.35rem 0;
  line-height: 1.5;
}

.two-col {
  display: grid;
  gap: 1.5rem 2rem;
  margin-bottom: 1.85rem;
}

@media (min-width: 760px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.two-col .resume-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}

.link-list a {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
}

/*
  Print only — aim ~2 pages (3 max).
  Compression lives here so on-screen stays readable.
*/
@media print {
  .site-header,
  .site-footer,
  .cta-row,
  .skip,
  .contact-band,
  .resume-download,
  .resume-pdf-btn { display: none !important; }

  @page {
    margin: 0.55in 0.6in;
    size: letter;
  }

  html,
  body,
  .resume-page {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.4pt;
    line-height: 1.36;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  .resume-header {
    padding: 0 0 0.45rem;
    margin-bottom: 0.45rem;
    border-bottom: 1px solid #bbb;
    background: none !important;
  }

  .resume-kicker {
    color: #333 !important;
    margin-bottom: 0.2rem;
    font-size: 8pt;
  }

  .resume-page h1 {
    font-size: 16.5pt;
    margin: 0 0 0.15rem;
    color: #111 !important;
  }

  .resume-title,
  .resume-contact {
    color: #333 !important;
    font-size: 9.5pt;
    line-height: 1.35;
    max-width: none;
  }

  .resume-title { margin-bottom: 0.2rem; }

  .resume-ideal {
    margin: 0.35rem 0 0;
    padding: 0.28rem 0.4rem;
    background: none !important;
    border: 1px solid #bbb;
    border-radius: 0;
    color: #111 !important;
    font-size: 9pt;
    font-weight: 600;
    line-height: 1.3;
    max-width: none;
  }

  .resume-body { padding: 0; }

  .resume-section {
    /* Large sections may break; keep headings with following content */
    break-inside: auto;
    page-break-inside: auto;
    border-bottom: 1px solid #ccc;
    margin: 0 0 0.55rem;
    padding-bottom: 0.4rem;
  }

  .resume-section-end,
  .resume-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .resume-section h2 {
    font-size: 11.5pt;
    margin: 0 0 0.28rem;
    color: #111 !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  .group-label {
    color: #333 !important;
    margin: 0.55rem 0 0.22rem;
    font-size: 8pt;
    break-after: avoid;
    page-break-after: avoid;
  }

  .resume-lines > li {
    margin-bottom: 0.35rem;
    row-gap: 0.08rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .rl-main {
    font-size: 9.7pt;
    line-height: 1.32;
    color: #111 !important;
  }

  .rl-dates {
    font-size: 8.5pt;
    color: #333 !important;
  }

  .rl-detail,
  .job-scope,
  .compact-list,
  .resume-section > p {
    font-size: 9.2pt;
    color: #222 !important;
    line-height: 1.32;
  }

  .job-scope { margin-top: 0.25rem; }

  .compact-list li { margin: 0.12rem 0; }

  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
    margin-bottom: 0.55rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .link-list { gap: 0.25rem 0.8rem; }
  .link-list a { font-size: 9pt; }

  a {
    color: #111 !important;
    text-decoration: none !important;
  }

  .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
