/* Immaculate Heart Sisters Coaching
   Palette drawn from Immaculate Heart iconography: Marian blue + the rose of the heart. */

:root {
  --ink:   #17233F;
  --slate: #4C5872;
  --paper: #F6F7F9;
  --mist:  #E5EAF2;
  --rose:  #A6455C;
  --line:  #D3D9E4;
  --white: #FFFFFF;

  --serif: "Fraunces", Iowan Old Style, Palatino, Georgia, serif;
  --sans:  "Karla", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}

a { color: inherit; }

img { max-width: 100%; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.wrap {
  max-width: 78rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
  max-width: 15rem;
}
.wordmark span { display: block; }
.wordmark span + span {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--slate);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rose);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 11vw, 8rem) clamp(2.5rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero__kicker {
  font-size: 0.9375rem;
  color: var(--rose);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.375rem, 6.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 20ch;
}

.hero__lede {
  margin: 1.75rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--slate);
}

.hero--page h1 { font-size: clamp(2rem, 5vw, 3.25rem); }

/* Homepage opening question */
.opener {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.375rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--rose);
  max-width: 34ch;
}

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

section { padding-block: clamp(3rem, 8vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }

.band {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band + section { border-top: 0; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 22ch;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.875rem;
}

p { max-width: var(--measure); }
section > .wrap > p:first-of-type { margin-top: 0; }

.prose p { margin-block: 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose { color: var(--slate); }
.prose strong { color: var(--ink); font-weight: 700; }

.signature {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--ink);
  margin-top: 1.75rem;
}
.signature span { display: block; color: var(--slate); font-size: 0.9375rem; font-family: var(--sans); }

/* Two-column intro */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split h2 { margin-bottom: 0; }
}

/* ---------- Topic list ---------- */

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

.topic {
  display: grid;
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.topic:first-child { border-top: 0; padding-top: 0; }
.topic:last-child { padding-bottom: 0; }

@media (min-width: 60rem) {
  .topic { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); }
}

.topic h3 { margin: 0; }
.topic__body > *:first-child { margin-top: 0; }
.topic__body > *:last-child { margin-bottom: 0; }

/* Questions — the signature treatment */
.ask {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--rose);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.9vw, 1.4375rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 46ch;
}
.ask p { margin: 0 0 0.5rem; max-width: none; }
.ask p:last-child { margin-bottom: 0; }

.answer { color: var(--slate); margin: 0 0 1rem; }
.answer:last-child { margin-bottom: 0; }

/* Plain lists */
.marks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
  max-width: 46rem;
}
.marks li {
  break-inside: avoid;
  padding-left: 1.125rem;
  position: relative;
  color: var(--slate);
  margin-bottom: 0.375rem;
}
.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.5rem;
  height: 1px;
  background: var(--rose);
}
@media (max-width: 40rem) { .marks { columns: 1; } }

.aside-note { color: var(--slate); font-size: 0.9375rem; margin-top: 0.5rem; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.plan {
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
@media (min-width: 55rem) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .plan { padding-inline: clamp(1.25rem, 2.5vw, 2.25rem); border-bottom: 0; border-left: 1px solid var(--line); }
  .plan:first-child { padding-left: 0; border-left: 0; }
  .plan:last-child { padding-right: 0; }
}

.plan__price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.plan__term {
  font-size: 0.9375rem;
  color: var(--rose);
  margin: 0.5rem 0 1.25rem;
}
.plan h3 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.plan p { color: var(--slate); font-size: 0.9375rem; margin: 0; max-width: none; }
.plan .btn { margin-top: auto; padding-top: 1.75rem; }

/* ---------- Schedule table ---------- */

.table-scroll { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 40rem;
  font-size: 1rem;
}
caption {
  text-align: left;
  color: var(--slate);
  font-size: 0.9375rem;
  padding-bottom: 1rem;
}
th, td {
  text-align: left;
  padding: 0.875rem 1.25rem 0.875rem 0;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--slate);
  border-bottom-color: var(--ink);
}
tbody th {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
  white-space: nowrap;
}
td { color: var(--slate); }
.yes { color: var(--ink); }
.no { color: var(--slate); opacity: 0.55; }

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 55rem) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.quotes figure { margin: 0; }
.quotes blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.5;
}
.quotes blockquote p { margin: 0; max-width: none; }
.quotes figcaption { font-size: 0.9375rem; color: var(--slate); }
.quotes figcaption::before { content: "— "; color: var(--rose); }

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: var(--white);
  border: 0;
}
.cta h2 { color: var(--white); margin-bottom: 1rem; }
.cta p { color: rgba(255, 255, 255, 0.76); margin: 0 0 2rem; }
.cta .btn a {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.cta .btn a:hover { background: var(--mist); border-color: var(--mist); }

.btn a {
  display: inline-block;
  padding: 0.8125rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn a:hover { background: var(--ink); color: var(--white); }

.textlink {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rose);
  padding-bottom: 1px;
}
.textlink:hover { color: var(--rose); }

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

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 58rem) {
  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

.details { margin: 0; }
.details div { padding-block: 1rem; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; padding-top: 0; }
.details dt { font-size: 0.875rem; color: var(--rose); margin-bottom: 0.25rem; }
.details dd { margin: 0; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 0.375rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.875rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--rose); outline-offset: 1px; }

button.send {
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
button.send:hover { background: var(--rose); border-color: var(--rose); }

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.9375rem;
  color: var(--slate);
}
.footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48rem) {
  .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer h2 {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: 0;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.375rem; }
.footer a { color: var(--slate); text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { color: var(--ink); border-bottom-color: var(--rose); }
.footer p { margin: 0 0 0.375rem; }
.colophon {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(0.75rem); animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
