/* Saturn Speaks — shared styles for every page.
   Sizes and spacing are measured from the original Squarespace site.
   Fonts are free Google Fonts stand-ins for the Squarespace (Adobe) fonts:
   Futura PT -> Jost, DIN Condensed -> Barlow Condensed, Hypatia Sans -> Alegreya Sans.
   The nav uses Source Sans 3, matching the original Source Sans Pro. */

:root {
  --text: rgb(91, 87, 87);
  --logo: rgb(111, 109, 109);
  --nav: rgb(39, 40, 42);
  --nav-active: rgb(16, 46, 198);
  --blue: rgb(11, 30, 153);
  --navy: rgb(8, 19, 89);
  --button: rgb(34, 46, 119);
  --submit: rgb(9, 19, 83);
  --footer-text: rgb(57, 56, 56);
  --bg: #ffffff;
  --rule: rgba(0, 0, 0, 0.09);

  --font-heading: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-logo: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --font-body: "Alegreya Sans", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --content: 1720px;   /* content grows with the window up to this width, like the original */
  --gutter: 100px;
  --block-gap: 86px;    /* space between one offering/class and the next */
  --footer-gap: 167px;  /* space between the last content and the footer band */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27.2px;
  letter-spacing: 0.78px; /* Alegreya Sans runs narrower than the original Hypatia; this matches its line breaks */
  color: var(--text);
  background: var(--bg);
}

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

a { color: inherit; }

.wrap {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 118px;
}

.site-title {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -1.4px;
  text-transform: uppercase;
  color: var(--logo);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 17px;
}

.site-nav a {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--nav);
  text-decoration: none;
  padding: 8.65px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--nav-active); }

/* ---------- Home banner ---------- */
.banner {
  background: url("../images/banner.jpg") center / cover no-repeat;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.banner h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 27.2px;
  letter-spacing: 0.8px;
  white-space: pre;
  color: rgb(118, 107, 107);
}

/* ---------- Page content ---------- */
main { padding-bottom: var(--footer-gap); }
main.page { padding-top: 8px; }
main.home-content { padding-top: 7px; padding-bottom: 149px; }
main.about { padding-bottom: 211px; } /* the original page has extra blank space at the bottom */
main.contact { padding-bottom: 200px; }

main .wrap > :first-child { margin-top: 0; }
main .wrap > :last-child { margin-bottom: 0; }

h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 34px;
  line-height: 40.8px;
  letter-spacing: normal;
  color: var(--navy);
  margin: 0 0 28.22px;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2.8px; /* Jost is wider than Futura PT; this matches the original line lengths */
  text-transform: uppercase;
  color: var(--blue);
  margin: 15px 0 16px;
}

p { margin: 17px 0; }

strong { font-weight: 700; }
/* Alegreya Sans bold and italic run narrower than the regular weight; this matches the original line lengths */
p strong, p em { letter-spacing: 1.2px; }

main p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

blockquote {
  margin: 17px 0 0;
  padding-left: 26.5px;
  border-left: 1px solid var(--rule);
}
blockquote p { margin: 17px 0; }
blockquote p:first-child { margin-top: 0; }
blockquote p:last-child { margin-bottom: 0; }

/* One reading/offering per section, separated by a thin rule like the original */
.offering + .offering {
  margin-top: calc(var(--block-gap) / 2);
  padding-top: calc(var(--block-gap) / 2);
  border-top: 1px solid var(--rule);
}
.offering > :first-child { margin-top: 0; }
.offering > :last-child { margin-bottom: 0; }

/* Classes page is one long list: space each class out the same way */
.classes p + h3,
.classes p + h2,
.classes blockquote + h3 {
  margin-top: calc(var(--block-gap) / 2);
  padding-top: calc(var(--block-gap) / 2);
  border-top: 1px solid var(--rule);
}

/* Titles are bold on the original; section labels like "Client Testimonials" are not */
h2 { font-weight: 700; }
h3 strong,
h2 + h3,
.offering > h3:first-child,
.classes h3 { font-weight: 700; }

/* Pill buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 34px;
  margin-top: 34px;
}
h3 + .buttons { margin-top: 33px; }

.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 3.3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--button);
  background: transparent;
  border: 2px solid var(--button);
  border-radius: 300px;
  padding: 21px 34px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.button:hover { background: var(--button); color: #fff; }

.button.small {
  border-radius: 0;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 2.2px;
  padding: 13px 28px;
}

/* Mentoring page: two buttons sit in two equal columns */
.buttons.two-col {
  display: grid;
  grid-template-columns: 5fr 7fr;
  justify-items: center;
}

/* Two-column layouts (About, Gift Cards) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 34px;
  align-items: start;
}
.split > div > :first-child { margin-top: 0; }
.split > div > :last-child { margin-bottom: 17px; }

/* About: photo floats right and the text wraps beside it, like the original */
main.about .wrap { display: flow-root; }
.about-heading { margin-bottom: 33px; }
.about-photo {
  float: right;
  width: calc(50% - 17px);
  margin: 0 0 17px 34px;
}
.about-first { margin-top: 0; }
.about-practice { margin-top: 62px; }
.about-practice > :first-child { margin-top: 0; }
.about-practice > :last-child { margin-bottom: 0; }

.square-img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; max-width: 600px; justify-self: center; } /* never larger than the original file */

/* ---------- Contact form ---------- */
.contact-form fieldset { border: 0; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form .row label { display: block; }
.contact-form .field { display: block; margin-bottom: 17px; line-height: 22px; }
.contact-form legend {
  display: block;
  font-size: 17px;
  line-height: 22px;
  margin-bottom: 4px;
}
.contact-form .label {
  display: block;
  font-size: 17px;
  line-height: 22px;
  padding-bottom: 4px;
}
.contact-form .sub {
  display: block;
  font-size: 12px;
  line-height: 15px;
  margin-bottom: 2px;
}
.contact-form .req { font-size: 12px; color: #9a9595; margin-left: 0.35rem; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  line-height: normal;
  letter-spacing: normal;
  color: var(--text);
  background: #fafafa;
  border: 1px solid rgb(169, 169, 169);
  border-radius: 0;
  padding: 10px;
}
.contact-form input { height: 44px; }
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.contact-form .button {
  margin-top: 0;
  font-size: 17px;
  line-height: 27.2px;
  letter-spacing: 4.2px;
  color: var(--submit);
  border-color: var(--submit);
  padding: 17px 42.5px;
}
.contact-form .button:hover { background: var(--submit); color: #fff; }

/* ---------- Thank-you page (after booking) ---------- */
/* "for [client name]" sits under the heading as a subtitle, like Acuity's page */
.booked-for {
  font-size: 22px;
  line-height: 30px;
  margin: -12px 0 28px;
}

/* Extra space above the "you will receive an email" line so it stands apart */
.booked-note { margin-top: 44px; }

/* ---------- Scheduling embed ---------- */
.schedule-note { margin-bottom: 40px; }
.sessions { list-style: none; margin: 0 0 48px; padding: 0; border-top: 1px solid var(--rule); }
.sessions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.sessions strong { display: block; font-size: 19px; }
.sessions span { display: block; }
.sessions .button { flex-shrink: 0; padding: 14px 34px; }
#booking-frame { width: 100%; height: 1100px; border: 0; }

@media (max-width: 760px) {
  .sessions li { flex-direction: column; align-items: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 81px; text-align: center; }

.footer-band {
  background: url("../images/footer.jpg") center / cover no-repeat;
  aspect-ratio: 2500 / 130; /* scales with the page width, like the original */
}

.site-footer h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--footer-text);
  margin-top: 16px;
}
.footer-band + h4 { margin-top: 52px; }

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

/* ---------- Smaller screens ---------- */
@media (max-width: 1024px) {
  :root { --gutter: calc(10.6vw - 45px); } /* 64px at 1024 wide, 36px at 768, like the original */
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

@media (max-width: 760px) {
  :root { --block-gap: 56px; --footer-gap: 96px; }
  main.home-content, main.about, main.contact { padding-bottom: var(--footer-gap); }
  .site-header .wrap { flex-direction: column; justify-content: center; text-align: center; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .site-nav { justify-content: center; }
  .site-nav a { font-size: 13px; }
  .banner { height: 200px; }
  .split, .buttons.two-col { grid-template-columns: 1fr; justify-items: start; }
  .about-photo { float: none; width: 100%; margin: 0 0 17px; }
  .contact-form .row { grid-template-columns: 1fr; }
  h2 { font-size: 28px; line-height: 34px; }
  .site-footer h4 { font-size: 13px; letter-spacing: 2.6px; }
}

/* ---------- Phone layout (under 500px wide, like the original) ----------
   The original switches to a fixed top bar with a small logo and a menu button;
   the menu opens as a grey panel. Text spacing is tuned so lines break where the
   original's do at phone width. */
.menu-toggle, .menu-close { display: none; }

@media (max-width: 499px) {
  body { padding-top: 54px; letter-spacing: 0.66px; }
  body.menu-open { overflow: hidden; }

  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.94);
  }
  .site-header .wrap {
    flex-direction: row; justify-content: space-between; flex-wrap: nowrap;
    min-height: 54px; padding: 8px 12px; gap: 0; text-align: left;
  }
  .site-title { font-size: 22px; line-height: 22px; letter-spacing: -0.88px; padding: 8px; }

  .menu-toggle {
    display: block; width: 40px; height: 34px; padding: 8px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle svg { display: block; width: 24px; height: 18px; }
  .menu-toggle path { stroke: var(--navy); stroke-width: 1; fill: none; }

  .site-nav {
    display: none;
    position: fixed; inset: 0; z-index: 100;
    flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 0;
    padding: 46px 36px;
    background: linear-gradient(90deg, rgb(197, 198, 206) calc(100% - 60px), #fff 0);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a,
  .site-nav a[aria-current="page"] {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 16px; line-height: 19.2px; letter-spacing: 2.5px; /* Jost bold is wider than Futura */
    color: rgb(77, 77, 81); padding: 0 0 9.888px; align-self: flex-start;
  }
  .menu-close {
    display: block; position: absolute; top: 0; right: 0;
    width: 60px; height: 60px; padding: 22px;
    background: rgb(197, 198, 206); border: 0; cursor: pointer;
  }
  .menu-close svg { display: block; width: 16px; height: 16px; }
  .menu-close path { stroke: #fff; stroke-width: 1.5; fill: none; }

  :root { --footer-gap: 209px; }
  main.page, main.home-content { padding-top: 24px; }
  main.contact { padding-bottom: 243px; }
  .sessions { margin-bottom: 0; }
  .banner { height: 182px; }
  h3, h4 { letter-spacing: 2.4px; }

  .footer-band { display: none; }
  .site-footer h4 { font-size: 16px; letter-spacing: 2.8px; margin-top: 15px; }
  .site-footer h4:first-of-type { margin-top: 0; }
  .site-footer { padding-bottom: 115px; }
}
