/* ============================================================
   CullenFrye.com — Stylesheet
   Hand-written. Zero framework dependencies.
   Typefaces: DM Sans (body) + DM Serif Display (accent)
   Palette: near-white bg, slate text, teal primary, warm rule
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap");

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --teal: #8b1500;
  --teal-dark: #6b1000;
  --teal-light: #f8eeec;
  --rule: #8b1500; /* the accent rule motif — matches CF logo crimson */
  --text: #1c2432;
  --text-mid: #4a5568;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-wash: #f7f9fb;
  --border: #e2e8f0;
  --nav-h: 66px;
  --w-full: 1100px;
  --w-prose: 760px;
  --r: 6px;
  --r-sm: 4px;
  --font-body: "DM Sans", sans-serif;
  --font-display: "DM Serif Display", serif;
  --ease: 0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 18px;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover {
  color: var(--teal-dark);
}
ul,
ol {
  list-style: none;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

.nav__inner {
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav__brand:hover {
  color: var(--teal);
}
.nav__brand img {
  height: 40px;
  width: auto;
  border-radius: var(--r-sm);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__links a {
  padding: 0.35rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition:
    background var(--ease),
    color var(--ease);
}
.nav__links a:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.nav__links a.active {
  color: var(--teal);
  background: var(--teal-light);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ── Layout shell ───────────────────────────────────────── */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

.wrap {
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--prose {
  max-width: var(--w-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section spacing ────────────────────────────────────── */
.section {
  padding: 1.5rem 0;
}
.section--wash {
  background: var(--bg-wash);
}

/* ── Section label (eyebrow motif) ─────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__photo {
  flex-shrink: 0;
  width: 253px;
  height: 253px;
  border-radius: 50%;
  object-fit: cover;
  /* Signature element: teal rule ring */
  outline: 3px solid var(--rule);
  outline-offset: 5px;
  box-shadow: 0 8px 32px rgba(139, 21, 0, 0.12);
}

.hero__body {
  flex: 1;
}

.hero__body h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero__body p {
  color: var(--text-mid);
  margin-bottom: 0.85rem;
  max-width: 58ch;
}

.cta-band + .section {
  padding-top: 1rem;
}

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  padding: 1.25rem 1.5rem;
  background: var(--teal-light);
  border-bottom: 1px solid #c5e4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cta-band p {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--teal-dark);
  color: #fff;
}

/* ── Connect cards ──────────────────────────────────────── */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(6, 200px);
  gap: 1.1rem;
  width: max-content;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.connect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.75rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  transition:
    box-shadow var(--ease),
    transform var(--ease),
    border-color var(--ease);
}
.connect-card:hover {
  box-shadow: 0 4px 20px rgba(139, 21, 0, 0.1);
  transform: translateY(-2px);
  border-color: #c5e4ee;
  color: var(--text);
}
.connect-card img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.connect-card h3 {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
}
.connect-card span {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.1rem;
}

/* Signature motif: left teal rule, matching hero ring color */
.testimonial {
  padding: 1.4rem 1.4rem 1.4rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--rule);
  border-radius: var(--r);
  background: var(--bg);
}

.testimonial blockquote {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 0.85rem;
}

.testimonial cite {
  font-size: 0.78rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ── Certifications ─────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: box-shadow var(--ease);
}
.cert-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}
.cert-card img {
  height: 132px;
  width: auto;
  max-width: 222px;
  object-fit: contain;
}
.cert-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.cert-card .cert-dates {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
}
.cert-card .cert-issuer {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline-page {
  padding: 3.5rem 0;
}

.timeline-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  text-align: center;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  display: none;
}

.tl-item {
  position: relative;
  padding: 0 0 2rem 1.25rem;
}
.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(-1.15rem + 5px);
  top: 11px;
  bottom: -11px;
  width: 2px;
  background: var(--border);
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rule);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--rule);
}

.tl-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}

.tl-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.tl-sub {
  font-size: 0.99rem;
  color: var(--text-light);
}

/* ── Contact form ───────────────────────────────────────── */
.contact-page {
  padding: 3.5rem 0;
}

.contact-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.contact-page .lead {
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 55ch;
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(139, 21, 0, 0.13);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* ── Content pages (PMP, interviewing) ──────────────────── */
.content-page {
  padding: 3.5rem 0;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.content-page .lead {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 58ch;
}

.content-page h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--rule); /* rule motif on content headings */
}

.content-page p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.content-page ol,
.content-page ul {
  list-style: revert;
  padding-left: 1.3rem;
  margin-bottom: 1.25rem;
}

.content-page li {
  color: var(--text-mid);
  margin-bottom: 0.65rem;
  line-height: 1.65;
}

.content-page strong {
  color: var(--text);
}
.content-page a {
  color: var(--teal);
}
.content-page a:hover {
  color: var(--teal-dark);
}

/* Resource cards */
.resource-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 1rem;
  background: var(--bg-wash);
}
.resource-card img {
  height: 105px;
  width: auto;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.resource-card h3 {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.resource-card .price {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.resource-card p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin: 0;
}

/* Video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r);
  margin-bottom: 2.5rem;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #111827;
  color: #6b7280;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.82rem;
  margin-top: auto;
}
.footer a {
  color: var(--teal);
}
.footer a:hover {
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .connect-grid {
    grid-template-columns: repeat(3, 1fr);
    width: auto;
    position: static;
    left: auto;
    transform: none;
  }
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
  }
  .hero__photo {
    width: 200px;
    height: 200px;
  }
  .hero__body h1 {
    font-size: 1.65rem;
  }
  .hero__body p {
    max-width: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .connect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links a {
    padding: 0.65rem 0.5rem;
    font-size: 0.95rem;
  }
  .nav__toggle {
    display: flex;
  }
  .section-heading {
    font-size: 1.5rem;
  }
}

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