/* Astin.Life — colors taken from the logo and deck */
:root {
  --navy: #3D4F63;
  --navy-deep: #2B3947;
  --ink: #1E2833;
  --muted: #4E5D6C;
  --sage: #E6EDE6;
  --sage-deep: #CBD8CB;
  --olive: #AFA939;
  --olive-deep: #7E7A1F;
  --white: #FFFFFF;
  --focus: #1F6FB2;

  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;

  --page-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--sage-deep); background: var(--white); }

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.9rem var(--gutter) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo utility"
    "nav nav";
  align-items: center;
}

.logo { grid-area: logo; display: inline-block; line-height: 0; }
.logo-svg { width: 210px; height: auto; }

.utility-nav {
  grid-area: utility; justify-self: end; align-self: start;
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  font-size: 0.95rem;
}
.utility-nav a { text-decoration: none; color: var(--muted); }
.utility-nav a:hover, .utility-nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; }

.primary-nav { grid-area: nav; }
.primary-nav ul {
  list-style: none; margin: 0.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 2.25rem;
}
.primary-nav a {
  display: block; padding: 0.7rem 0 0.8rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  color: var(--navy); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--sage-deep); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--olive); }
.primary-nav .nav-utility { display: none; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo toggle" "nav nav";
    padding-bottom: 0.9rem;
  }
  .logo-svg { width: 170px; }
  .utility-nav { display: none; }
  .menu-toggle {
    grid-area: toggle; display: inline-flex; align-items: center; gap: 0.55rem;
    font: 500 1rem var(--font-display); color: var(--navy);
    background: none; border: 1.5px solid var(--navy); border-radius: 999px;
    padding: 0.45rem 1rem; cursor: pointer; min-height: 44px;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; margin-top: 0.8rem; }
  .primary-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--sage); font-size: 1.1rem; }
  .primary-nav a[aria-current="page"] { border-bottom: 1px solid var(--sage); color: var(--olive-deep); }
  .primary-nav .nav-utility { display: block; }
  .no-js .primary-nav { display: block; }
}

/* ------------------------------------------------------------ general */
main { display: block; }

.page-head, .content, .services-intro, .services-wheel, .difference, .form-layout, .band .split, .hero {
  max-width: var(--page-max);
  margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

.page-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1.5rem; }
.page-head .lede { max-width: 62ch; }
.lede { font-size: 1.25rem; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.5rem;
  font: 500 1.02rem var(--font-display);
  color: var(--white); background: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.button-quiet { background: transparent; color: var(--navy); }
.button-quiet:hover { background: var(--sage); color: var(--navy); border-color: var(--navy); }

.text-link { font-family: var(--font-display); font-weight: 500; }

/* ---------------------------------------------------------------- home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); max-width: 16ch; }
.hero .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 7% -3% -4% 7%;
  border-radius: 220px 220px 24px 24px; background: var(--sage);
}
.hero-photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: 220px 220px 24px 24px;
}

main { overflow-x: clip; }
.band { background: var(--sage); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.split p { max-width: 48ch; margin: 0; }

@media (max-width: 760px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; order: -1; }
}

/* --------------------------------------------------------------- about */
.content { padding-bottom: clamp(3rem, 7vw, 5rem); }
.statement { max-width: 62ch; margin-bottom: 2.25rem; }
.statement p { font-size: 1.3rem; line-height: 1.55; }

.life-curve { margin: 3rem 0 0; }
.life-curve-plot {
  position: relative; padding-top: 3.2rem;
  border-left: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep);
}
.life-curve-plot img { width: 100%; }
.curve-marker {
  position: absolute; top: 0; transform: translateX(-50%);
  font: 600 1.15rem var(--font-display); color: var(--navy); text-align: center;
}
.curve-marker::after {
  content: ""; display: block; width: 2px; height: 1.4rem; margin: 0.25rem auto 0;
  background: var(--navy);
}

/* ------------------------------------------------------------ services */
.services-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 1rem;
}
.offer { background: var(--sage); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.offer p { margin: 0; }

.services-wheel {
  display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
  padding-top: 2rem; padding-bottom: clamp(3rem, 7vw, 5rem);
}
.wheel-heading { font-size: 1.1rem; color: var(--muted); font-weight: 500; }

.checklist, .ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li, .ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; }
.checklist li::before, .ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3 6.8 11 12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.checklist li { font-size: 1.15rem; }

@media (max-width: 900px) {
  .services-intro, .services-wheel { grid-template-columns: 1fr; }
}

/* the wheel */
.wheel-svg { width: 100%; height: auto; display: block; overflow: visible; }
.wheel-word { font: 500 88px var(--font-display); fill: var(--navy); letter-spacing: -1px; }
.wheel-tag { font: 400 34px Georgia, "Times New Roman", serif; fill: var(--muted); }
.wheel-node { cursor: pointer; }
.wheel-node:focus { outline: none; }
.wheel-halo { fill: none; stroke: transparent; stroke-width: 7; }
.wheel-node:hover .wheel-halo { stroke: var(--sage-deep); }
.wheel-node:focus-visible .wheel-halo { stroke: var(--focus); stroke-width: 9; }
.wheel-node.is-current .wheel-halo { stroke: var(--navy); stroke-dasharray: none; }

/* compact list that replaces the wheel on small screens */
.service-grid { display: none; list-style: none; margin: 0; padding: 0; }
.service-grid a {
  display: flex; align-items: center; gap: 0.75rem; min-height: 56px;
  padding: 0.45rem 0.6rem; border-radius: 12px;
  font: 500 1rem/1.25 var(--font-display); text-decoration: none; color: var(--navy);
}
.service-grid a:hover { background: var(--sage); }
.service-grid a[aria-current="page"] { background: var(--sage); box-shadow: inset 0 0 0 2px var(--navy); }
.service-grid svg { width: 42px; height: 42px; flex: none; }
.service-grid span { min-width: 0; }

@media (max-width: 640px) {
  .wheel { display: none; }
  .service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
  .service-grid a { font-size: 0.95rem; gap: 0.6rem; }
}
@media (max-width: 380px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* individual service page */
.service-page {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 70vh;
}
.service-wheel { padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 3rem); align-self: center; }
.service-wheel .wheel { max-width: 720px; margin-left: auto; }
.service-detail {
  background: var(--sage);
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
}
.service-detail > * { max-width: 34rem; }
.service-badge { width: 76px; height: 76px; display: block; margin-bottom: 1.2rem; }
.service-detail h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); }
.service-lead { font-style: italic; color: var(--muted); font-size: 1.2rem; }

.service-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.service-list > li {
  padding: 0.6rem 0; border-bottom: 1px solid var(--sage-deep); font-size: 1.15rem;
}
.service-list.grouped > li { padding: 0.9rem 0; }
.group-head { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.service-list ul { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.service-list ul li { padding: 0.15rem 0 0.15rem 1.1rem; position: relative; color: var(--muted); font-size: 1.05rem; }
.service-list ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--olive);
}
.footnote { font-size: 0.95rem; color: var(--muted); font-style: italic; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .service-page { grid-template-columns: minmax(0, 1fr); }
  .service-detail { order: -1; }
  .service-wheel .wheel { margin: 0 auto; }
}

/* ---------------------------------------------------------- difference */
.difference {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.difference-col { background: var(--sage); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.difference-col h2 + .ticks { margin-bottom: 2rem; }
.difference-col p { margin: 0; }
@media (max-width: 760px) { .difference { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- forms */
.form-layout {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.form-layout-single { grid-template-columns: minmax(0, 44rem); }
.form-aside h3 { margin-top: 1.6rem; }
.form-aside p { max-width: 48ch; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }

.site-form {
  background: var(--sage); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: 1.15rem;
}
.site-form h2 { margin-bottom: 0; }
.site-form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 1rem; }
.site-form input:not([type="radio"]):not([type="file"]), .site-form select, .site-form textarea {
  font: 400 1.05rem var(--font-body); color: var(--ink);
  background: var(--white); border: 1.5px solid #9AA8A0; border-radius: 10px;
  padding: 0.7rem 0.85rem; min-height: 48px; width: 100%;
}
.site-form textarea { resize: vertical; }
.site-form input[type="file"] { font: 400 1rem var(--font-body); }
.site-form input:focus-visible, .site-form select:focus-visible, .site-form textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy);
}
.site-form [aria-invalid="true"] { border-color: #A3262A !important; }
.site-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-form legend { font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.site-form .choice { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; font-size: 1.05rem; }
.site-form .choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); }
.site-form .button { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

.form-status {
  margin: 0; padding: 0.9rem 1rem; border-radius: 10px;
  background: var(--white); border: 1.5px solid var(--navy); color: var(--navy);
}
.form-status.is-error { border-color: #A3262A; color: #7E1C1F; }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #DDE5EC; }
.footer-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 2.5rem var(--gutter);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; align-items: baseline;
}
.footer-brand { font: 500 1.35rem var(--font-display); color: var(--white); margin: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-self: end; }
.footer-nav a { color: #DDE5EC; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; margin: 0.5rem 0 0; font-size: 0.9rem; color: #B7C4CF; }
.site-footer :focus-visible { outline-color: #9CCBF0; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }
}

/* -------------------------------------------------------- coming soon */
.coming-soon main {
  min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 2rem;
}
.coming-soon h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 0.4em; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
