/* Preaching Mentor — shared stylesheet */

:root {
  --charcoal: #1F1E1C;
  --greige: #D2CDC5;
  --bone: #EEEAE3;
  --ink: #1F1E1C;
  --stone: #5C5750;
  --gold: #94702B;
  --gold-dk: #775920;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;
  --wide: 76rem;
  --gutter: 1.5rem;
  --header-h: 4.25rem;
  --section-space: 7rem;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--greige);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--gold-dk);
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--gold);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 1.05rem 2.25rem;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: var(--gold);
  color: #fff;
}

.button:hover,
.button:active {
  background: var(--gold-dk);
  border-color: var(--gold-dk);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--gold-dk);
}

.button-secondary:hover,
.button-secondary:active {
  background: transparent;
  color: var(--ink);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--charcoal);
  color: var(--bone);
}

.site-header-inner {
  max-width: var(--wide);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--bone);
  opacity: 0.8;
}

/* ---------- Hero: headline over a full-width photo ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-start;
  background: var(--charcoal);
  color: var(--bone);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* Flat dark wash so the headline reads over the photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.55);
}

.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 7vh var(--gutter) 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 1.05;
  max-width: 14em;
  margin: 0 auto;
}

.hero h1 span {
  display: block;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-space) var(--gutter);
}

.section-dark {
  background: var(--charcoal);
  color: var(--bone);
}

.measure {
  max-width: var(--measure);
  margin: 0 auto;
}

/* Larger serif paragraph for short, statement-like sections */
.lead {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

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

/* Bold sans label used in place of a heading ("My story", "How it works") */
.label {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.section-dark .label {
  color: var(--gold);
}

.section-dark a {
  color: var(--bone);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.section-dark a:hover {
  color: var(--gold);
}

.text-link {
  font-weight: 700;
}

/* ---------- Two columns: text one side, photo the other ---------- */

.split {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
}

.split-text {
  max-width: 34rem;
}

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Full-width break photo between sections ---------- */

.photo-break {
  margin: 0;
}

.photo-break img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- How it works ---------- */

.steps .lead {
  margin-bottom: 4rem;
}

.step + .step {
  margin-top: 3.5rem;
}

.step h3 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}

.section-dark .step h3 {
  color: var(--gold);
}

.substep {
  margin-top: 2.25rem;
}

.substep h4 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.section-dark .substep h4 {
  color: var(--gold);
}

.steps-closing {
  margin-top: 4rem;
}

.steps-closing .lead {
  margin-bottom: 2.25rem;
}

.split-top {
  align-items: start;
}

/* Keep both men in frame when cropped tall */
.split-photo .photo-conversation {
  object-position: 58% center;
}

/* ---------- Proof (hidden at launch) ---------- */

.quotes {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 3rem;
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.quote figcaption {
  color: var(--stone);
  font-size: 0.95rem;
}

/* ---------- Free guide + email signup ---------- */

.signup h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.signup-form input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--bone);
  border-radius: 10px;
  background: var(--bone);
  color: var(--ink);
}

.signup-form input[type="email"]::placeholder {
  color: var(--stone);
}

.signup-form .button {
  flex: 0 0 auto;
  cursor: pointer;
}

.bot-field {
  display: none;
}

/* ---------- Partner invitation ---------- */

/* Landscape photo in a split, kept wide so group shots aren't cropped */
.split-photo-wide img {
  aspect-ratio: 3 / 2;
  object-position: center;
}

.partner .lead {
  margin-bottom: 2.25rem;
}

/* ---------- Footer (every page) ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--bone);
  padding: 5rem var(--gutter) 3rem;
  font-size: 1rem;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.site-footer address {
  font-style: normal;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--bone);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.site-footer a:hover {
  color: var(--gold);
}

/* Footer Contact button: opens an email without printing the address on the page */
.site-footer .footer-contact {
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  margin-top: 0.5rem;
}

.site-footer .footer-contact:hover {
  color: #fff;
}

.footer-legal {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 234, 227, 0.2);
  color: rgba(238, 234, 227, 0.75);
  font-size: 0.9rem;
}

.footer-legal p {
  margin: 0 0 0.25rem;
}

/* ---------- About page top: modest title, photo with text wrapping beside it ---------- */

.about-top h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}

.about-photo {
  float: right;
  width: 46%;
  margin: 0.4rem 0 1.5rem 2rem;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-top .prose::after {
  content: "";
  display: block;
  clear: both;
}

/* On wide screens the photo reaches into the right margin so the text beside it isn't cramped */
@media (min-width: 1100px) {
  .about-photo {
    width: 21rem;
    margin-right: -9rem;
    margin-left: 2.5rem;
  }
}

/* On phones the photo sits full width above the story */
@media (max-width: 600px) {
  .about-photo {
    float: none;
    width: 100%;
    margin: 0 0 2rem;
  }
}

/* ---------- Quiet text link (to the philosophy page) ---------- */

.quiet-link {
  margin-top: 2rem;
  font-weight: 500;
}

/* ---------- Philosophy page ---------- */

.philosophy h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--stone);
  margin-bottom: 3rem;
}

.philosophy h2 {
  margin-top: 3.5rem;
}

.philosophy .button {
  margin-top: 0.5rem;
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  margin: 3.5rem 0 0;
}

/* Visible placeholder Steven still needs to fill in */
.todo {
  background: var(--bone);
  color: var(--stone);
  font-weight: 700;
  padding: 0 0.3em;
}

/* ---------- Ready cover (signup + thank-you page) ---------- */

.book-feature img {
  aspect-ratio: auto;
  max-width: 22rem;
  margin: 0 auto;
}

.thanks-cover {
  width: 9rem;
  height: auto;
  margin-bottom: 2rem;
}

@media (max-width: 760px) {
  .book-feature img {
    max-width: 14rem;
    margin: 0;
  }
}

/* ---------- Thank-you page (after signup) ---------- */

.thanks {
  min-height: calc(70svh - var(--header-h));
}

.thanks h1 {
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.thanks .button {
  margin-top: 1rem;
}

.thanks-back {
  margin-top: 2.5rem;
}

/* ---------- Secondary page top (title beside a photo) ---------- */

.page-hero {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.page-hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  line-height: 1;
  color: var(--gold);
  margin: 0;
}

/* ---------- Long-form text ---------- */

.prose .lead {
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.prose-photo {
  margin: 0 0 2.5rem;
}

.prose-photo img {
  width: 100%;
  height: auto;
}

.section-continued {
  padding-top: 0;
}

.closing .lead {
  margin-bottom: 2.25rem;
}

/* ---------- Books (Resources page) ---------- */

.books {
  max-width: 56rem;
  margin: 0 auto;
}

.book {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.book + .book {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(92, 87, 80, 0.3);
}

.book-cover img {
  width: 100%;
  outline: 1px solid rgba(31, 30, 28, 0.15);
}

.book-cover .placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.book-cover .placeholder {
  font-size: 0.8rem;
  word-break: break-word;
}

.book h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.book-link {
  margin: 0;
  font-weight: 700;
}

.book-meta {
  color: var(--stone);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

/* Menu links jump to sections (#research, #coaching); keep headings clear of the sticky bar */
section[id] {
  scroll-margin-top: var(--header-h);
}

/* ---------- One-page sections: What we do, Resources, Partner ---------- */

.section-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 2.5rem;
}

.section-dark .section-title {
  color: var(--gold);
}

.subsection + .subsection {
  margin-top: 3rem;
}

.subsection h3 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.subsection.lead {
  margin-top: 2.5rem;
  margin-bottom: 2.25rem;
}

/* Signup at the bottom sits on the light background */
.signup:not(.section-dark) .signup-form input[type="email"] {
  border-color: rgba(31, 30, 28, 0.35);
  background: #fff;
}

.give-link {
  margin: 2.5rem 0 0;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Photo placeholder (missing image) ---------- */

.split-photo .placeholder {
  aspect-ratio: 4 / 5;
}


.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--bone);
  color: var(--stone);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  :root {
    --gutter: 1.25rem;
    --header-h: 3.75rem;
    --section-space: 4rem;
  }

  body {
    font-size: 17px;
  }

  .wordmark {
    font-size: 1.3rem;
  }

  /* On phones the headline sits at the bottom so it doesn't cover Steven */
  .hero {
    min-height: 85svh;
    align-items: flex-end;
  }

  .hero-text {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  /* Photo above text on phones */
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split-photo {
    order: -1;
  }

  .photo-break img {
    aspect-ratio: 4 / 3;
  }

  .steps .lead {
    margin-bottom: 3rem;
  }

  .signup-form .button {
    flex: 1 1 100%;
  }

  .book {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.25rem;
  }

  .book + .book {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }
}
