/* ============================================================
   Craig Isaacs — Accountability Partner
   Warm, personal, human. Not corporate.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --linen:        #f4ece1;   /* warm linen background */
  --linen-deep:   #ece0d1;   /* slightly deeper linen for alt sections */
  --charcoal:     #2b2622;   /* dark charcoal text */
  --charcoal-soft:#4a423b;   /* softer body text */
  --sage:         #8a9a7b;   /* sage green accent */
  --sage-deep:    #6f7f60;
  --terracotta:   #c1654a;   /* terracotta CTA */
  --terracotta-deep:#a8513a;
  --cream:        #fbf7f1;   /* card surface on linen */
  --dark:         #2b2622;   /* dark section bg */
  --dark-2:       #342e29;   /* dark card surface */

  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 18px 40px -22px rgba(43, 38, 34, 0.45);
  --shadow-soft:  0 10px 30px -20px rgba(43, 38, 34, 0.4);

  --maxw:         1120px;
  --gutter:       clamp(20px, 5vw, 48px);

  --font-head: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--linen);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared typographic helpers ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.75rem;
}
.eyebrow--light { color: var(--sage); }

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 0.5rem;
}
.section__title--light { color: var(--cream); }

.section__lead {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
  max-width: 48ch;
  margin-inline: auto;
}
.section__lead--light { color: rgba(251, 247, 241, 0.75); }

.section__head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn--cta {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(193, 101, 74, 0.9);
}
.btn--cta:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(43, 38, 34, 0.25);
}
.btn--ghost:hover {
  border-color: var(--charcoal);
  background: rgba(43, 38, 34, 0.04);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 247, 241, 0.35);
}
.btn--ghost-dark:hover {
  border-color: var(--cream);
  background: rgba(251, 247, 241, 0.08);
}

.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* ---------- Placeholders ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    var(--linen-deep),
    var(--linen-deep) 14px,
    #e3d6c4 14px,
    #e3d6c4 28px
  );
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 2px dashed rgba(43, 38, 34, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.placeholder--portrait { aspect-ratio: 4 / 5; width: 100%; }
.placeholder--square    { aspect-ratio: 1 / 1; width: 100%; }
.about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 8px;
}
.placeholder--logo {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  border-width: 1px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 236, 225, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(43, 38, 34, 0.08);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--charcoal);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--charcoal-soft);
  position: relative;
  transition: color 0.18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.2s ease;
}
.nav__link:hover { color: var(--charcoal); }
.nav__link:hover::after { width: 100%; }

.nav__cta { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(138, 154, 123, 0.22), transparent 60%),
    var(--linen);
}
.hero__inner {
  display: flex;
  justify-content: center;
  text-align: center;
}
.hero__content {
  max-width: 720px;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 1.1rem;
}
.hero__subtitle {
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin: 0 auto 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Staggered launch animation — fires immediately on load */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content--animate > * {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
}
.hero__content--animate > .eyebrow       { animation-delay: 0.1s; }
.hero__content--animate > .hero__title   { animation-delay: 0.3s; }
.hero__content--animate > .hero__subtitle { animation-delay: 0.5s; }
.hero__content--animate > .hero__actions { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .hero__content--animate > * {
    opacity: 1;
    animation: none;
  }
}

/* ============================================================
   PROBLEM (dark)
   ============================================================ */
.problem {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
}
.problem__quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 auto;
  position: relative;
  border: none;
  padding: 0;
}
.problem__quote::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--terracotta);
  border-radius: 4px;
  margin: 0 auto 2rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--linen-deep); }
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__content p {
  color: var(--charcoal-soft);
  font-size: 1.08rem;
}
.about__not {
  margin-top: 2rem;
  background: var(--cream);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
}
.about__not h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.about__not em { color: var(--terracotta); font-style: italic; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--linen); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}
.step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(43, 38, 34, 0.06);
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.step__title {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.step p { color: var(--charcoal-soft); }

/* ============================================================
   WHO THIS IS FOR
   ============================================================ */
.who { background: var(--linen-deep); }
.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.who__card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(43, 38, 34, 0.06);
  border-top: 3px solid var(--sage);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.who__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.who__card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.who__card p { color: var(--charcoal-soft); margin: 0; }

/* ============================================================
   PRICING (dark)
   ============================================================ */
.pricing { background: var(--dark); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 820px;
  margin-inline: auto;
}
.price-card {
  background: var(--dark-2);
  border: 1px solid rgba(251, 247, 241, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 1px var(--terracotta), var(--shadow);
}
.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card__name {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.price-card__price {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--sage);
  margin-bottom: 1.5rem;
  line-height: 1;
}
.price-card--featured .price-card__price { color: var(--terracotta); }
.price-card__price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(251, 247, 241, 0.6);
}
.price-card__list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.price-card__list li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(251, 247, 241, 0.85);
}
.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background:
    linear-gradient(120deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: #fff;
  text-align: center;
}
.cta-banner__title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  margin-bottom: 1.75rem;
  max-width: 18ch;
  margin-inline: auto;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--linen); }
.form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(43, 38, 34, 0.06);
}
.form__row { margin-bottom: 1.4rem; }
.form__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}
.form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--linen);
  border: 1.5px solid rgba(43, 38, 34, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form__input::placeholder { color: rgba(43, 38, 34, 0.4); }
.form__input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138, 154, 123, 0.25);
}
.form__textarea { resize: vertical; min-height: 120px; }

.form__input.is-invalid {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193, 101, 74, 0.18);
}
.form__error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--terracotta-deep);
  font-weight: 500;
}
.form__success {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: rgba(138, 154, 123, 0.18);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  color: var(--sage-deep);
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(251, 247, 241, 0.75);
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__brand { display: flex; flex-direction: column; }
.footer__name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--cream);
}
.footer__tag { font-size: 0.85rem; color: var(--sage); }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer__nav a {
  font-size: 0.95rem;
  color: rgba(251, 247, 241, 0.75);
  transition: color 0.18s ease;
}
.footer__nav a:hover { color: var(--cream); }
.footer__copy { font-size: 0.85rem; margin: 0; width: 100%; padding-top: 1rem; border-top: 1px solid rgba(251, 247, 241, 0.1); }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger cards within a grid a little */
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.who__grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.who__grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.who__grid .reveal:nth-child(4) { transition-delay: 0.06s; }
.who__grid .reveal:nth-child(5) { transition-delay: 0.12s; }
.who__grid .reveal:nth-child(6) { transition-delay: 0.18s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--cream);
    padding: 6rem 2rem 2rem;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.15rem; }
  .nav__cta { width: 100%; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .who__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .price-card--featured { order: -1; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.001ms !important; }
}
