/* InVerse Coaching — shared styles */

:root {
  --ivory: #FEFCF7;
  --charcoal: #383837;
  --forest: #29483F;
  --forest-deep: #1F3730;
  --sand: #E8E0D3;
  --gold: #B89A63;
  --muted: #5C5B58;
  --line: #D9D0C1;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-deep); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.75rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.65rem; font-weight: 600; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: 38em; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  font-weight: 500;
}
.subhead {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
  margin-top: -0.2em;
}
.note { color: var(--muted); font-size: 0.95rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: var(--ivory); padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--ivory); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--forest-deep); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1.25rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 252, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.75rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--charcoal); }
.brand img { width: 2.4rem; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1; }
.brand:hover { color: var(--charcoal); }

.nav ul { display: flex; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--charcoal); text-decoration: none; font-size: 0.98rem; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); color: var(--charcoal); }
.nav a[aria-current="page"] { border-bottom-color: var(--forest); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 0.95rem; color: var(--charcoal);
  padding: 0.4rem 1rem; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--forest); font-weight: 500; border-bottom-color: var(--line); }
}

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

.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--forest h2, .section--forest h3 { color: var(--ivory); }
.section--forest a:not(.btn) { color: var(--ivory); }

.split { display: grid; grid-template-columns: 1fr; gap: 1.5rem 4rem; }
@media (min-width: 860px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split > :first-child h2 { position: sticky; top: 7rem; }
}

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

.hero { padding: clamp(3rem, 7vw, 6rem) 0 var(--section); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 7fr 5fr; gap: 4rem; }
}
.hero h1 { max-width: 11em; }
.hero .lede { max-width: 26em; color: var(--charcoal); }

/* The portrait sits inside the logo's circle, with an offset gold ring. */
.portrait {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  margin: 0 auto;
}
.portrait__frame {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
  display: grid; place-items: center;
}
.portrait__frame img.photo { width: 100%; height: 100%; object-fit: cover; }
.portrait__frame img.mark { width: 46%; opacity: 0.9; }
.portrait__ring {
  position: absolute; inset: -6%;
  width: 112%; height: 112%;
  pointer-events: none;
  overflow: visible;
}
.portrait__ring circle {
  fill: none; stroke: var(--gold); stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.portrait__dot { fill: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .portrait__ring circle {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2.4s cubic-bezier(.6,.1,.2,1) 0.3s forwards;
  }
  .portrait__dot { opacity: 0; animation: appear 0.8s ease 2.4s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Home: meaning ---------- */

.meaning p { font-size: 1.15rem; }
.meaning p:last-child {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  font-weight: 500;
  margin-top: 1.75rem;
  max-width: 28em;
}

/* ---------- Mission band ---------- */

.mission .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .mission .wrap { grid-template-columns: auto 1fr; gap: 5rem; } }
.mission img { width: 7rem; height: auto; opacity: 0.85; }
.mission h2 { max-width: 14em; }
.mission p { color: rgba(254, 252, 247, 0.86); font-size: 1.1rem; }

/* ---------- Benefits ---------- */

.benefits { display: grid; grid-template-columns: 1fr; gap: 2.25rem 3rem; margin-top: 3rem; }
@media (min-width: 700px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit h3 { font-size: 1.45rem; display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.4em; }
.benefit h3::before {
  content: ""; flex: none;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--gold);
  transform: translateY(-0.12em);
}
.benefit p { color: var(--muted); margin: 0; padding-left: 1.2rem; }

/* ---------- Service cards (home) ---------- */

.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; flex-direction: column;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--ivory);
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--forest); color: var(--charcoal); }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); flex: 1; }
.card__link { color: var(--forest); font-weight: 500; font-size: 0.98rem; }
.card:hover .card__link { text-decoration: underline; }

/* ---------- Meet Eduardo ---------- */

.meet .wrap { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 860px) { .meet .wrap { grid-template-columns: 4fr 7fr; gap: 5rem; } }
.meet .portrait { width: min(100%, 20rem); }

/* ---------- Closing invitation ---------- */

.invite h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.invite .questions {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.35;
  font-style: italic;
  max-width: 24em;
}

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 13em; }
.page-head p { font-size: 1.12rem; }

/* ---------- Services page ---------- */

.jump { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 2.25rem 0 0; }
.jump a {
  display: inline-block; text-decoration: none;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--charcoal); font-size: 0.95rem;
  background: var(--ivory);
}
.jump a:hover { border-color: var(--forest); color: var(--forest); }

.service .wrap { display: grid; grid-template-columns: 1fr; gap: 1rem 4rem; }
@media (min-width: 900px) {
  .service .wrap { grid-template-columns: 5fr 7fr; }
  .service__title { position: sticky; top: 7rem; align-self: start; }
}
.service h2 { margin-bottom: 0.3em; }
.service .subhead { margin-bottom: 0; }
.service .btn { margin-top: 1rem; }

/* ---------- About page ---------- */

.story .wrap { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 960px) { .story .wrap { grid-template-columns: 15rem 1fr; gap: 5rem; } }
.toc { display: none; }
@media (min-width: 960px) {
  .toc { display: block; position: sticky; top: 7rem; align-self: start; }
  .toc ul { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--line); }
  .toc li { margin: 0 0 0.7rem; }
  .toc a { color: var(--muted); text-decoration: none; font-size: 0.95rem; line-height: 1.4; display: block; }
  .toc a:hover { color: var(--forest); }
}
.chapter { padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.chapter h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.chapter figure { margin: 2rem 0; }
.chapter figure img { border-radius: 1rem; width: 100%; }
.chapter figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }

/* ---------- Contact page ---------- */

.contact .wrap { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: 5fr 7fr; gap: 5rem; } }

.form { display: grid; gap: 1.75rem; }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 0.45rem; padding: 0; }
.field .hint { display: block; color: var(--muted); font-size: 0.92rem; font-weight: 400; margin-top: -0.3rem; margin-bottom: 0.5rem; }
.optional { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.choice input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }

.form-status { margin: 0; font-size: 0.98rem; }
.form-status.is-error { color: #8A2E21; }

.success {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.5rem;
}
.success p { font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; font-weight: 500; }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: rgba(254, 252, 247, 0.78); padding: 4.5rem 0 2.5rem; font-size: 0.98rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; } }
.site-footer img { width: 9rem; margin-bottom: 1.5rem; }
.site-footer .tagline { font-family: var(--serif); font-size: 1.5rem; color: var(--ivory); margin-bottom: 0.5rem; }
.site-footer p { margin-bottom: 0.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(254, 252, 247, 0.15); padding-top: 1.5rem; font-size: 0.88rem; color: rgba(254, 252, 247, 0.6); }

.cards-note { margin-top: 2rem; }
