/* ===========================================================================
   askMary — shared stylesheet
   =========================================================================== */

/* --- Scroll fade-in ------------------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

/* --- Self-hosted Lato ---------------------------------------------------- */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("/assets/fonts/lato-100.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:        #ffffff;
  --color-fg:        #141d2b;
  --color-muted:     #edc191;   /* peach (darkAccent)   */
  --color-accent:    #9ed4ef;   /* sky blue (accent)    */
  --color-section:   #a3f2db;   /* mint (lightAccent)   */
  --color-border:    rgba(20, 29, 43, 0.15);
  --color-button:    #411442;   /* deep plum (live header CTA)   */
  --color-button-fg: #ffffff;

  /* Typography */
  --font-display: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Lato", "Helvetica Neue", Arial, sans-serif;

  --fs-hero:  clamp(3rem, 8vw, 6rem);     /* hero H1            */
  --fs-h2:    clamp(2rem, 4vw, 3rem);     /* section heading    */
  --fs-h3:    clamp(1.25rem, 2vw, 1.5rem);
  --fs-lead:  1.25rem;
  --fs-body:  1.0625rem;
  --fs-small: 0.875rem;

  --lh-heading: 1.25em;
  --lh-body:    1.4em;
  --ls-heading: 0.02em;
  --ls-body:    0.05em;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container-max: 1600px;
  --container-pad: 1.5rem;
}

/* --- Base typography ----------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-fg);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 100;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.125rem; }

p + p {
  margin-top: var(--space-2);
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

a {
  color: var(--color-fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Layout primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.section--mint {
  background-color: var(--color-section);
}

.section--peach {
  background-color: var(--color-muted);
}

.section-heading {
  text-align: left;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 100;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

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

/* --- Site header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
  position: relative;
}

.site-header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 11px 8px;
  margin-left: auto;
}

.site-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-fg);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-header__hamburger span + span {
  margin-top: 5px;
}

.site-header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.site-header__logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.site-nav__link {
  text-decoration: none;
  font-weight: 400;
  font-size: var(--fs-body);
}

.site-nav__link:hover {
  text-decoration: underline;
}

/* --- Site footer --------------------------------------------------------- */
.site-footer {
  background: linear-gradient(135deg, #9ed4ef 0%, #3a8b9e 60%, #2c6f7e 100%);
  color: #ffffff;
  padding-block: var(--space-5);
}

.site-footer a {
  color: #ffffff;
}

.site-footer .site-footer__logo img {
  filter: brightness(0) invert(1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-footer__logo img {
  height: 56px;
  width: auto;
}

.site-footer__copy {
  font-size: var(--fs-small);
}

.site-footer__copy em {
  font-style: italic;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer__nav a {
  font-size: var(--fs-body);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__social {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  color: var(--color-fg);
}

/* --- Homepage: Hero ------------------------------------------------------ */
.hero {
  position: relative;
  background-image: url("/assets/img/hero-gradient.jpg");
  background-size: cover;
  background-position: center;
  padding-block: var(--space-6) 0;
  overflow: hidden;
}

.hero.container {
  max-width: none;
  padding-inline: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding-inline: 1.5rem 0;
  padding-block: var(--space-5) var(--space-7);
}

.hero__copy > * + * {
  margin-top: var(--space-4);
}

.hero__h1 {
  font-weight: 100;
  font-size: clamp(3rem, 8.5vw, 7rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.hero__phone {
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
}

.hero__media {
  display: flex;
  justify-content: flex-end;
}

.hero__media img {
  max-width: 100%;
  width: clamp(420px, 42vw, 600px);
  height: auto;
  -webkit-mask-image: radial-gradient(circle at center, #fff 60%, transparent 100%);
  mask-image: radial-gradient(circle at center, #fff 60%, transparent 100%);
}

/* --- Homepage: Intro (Ask Mary explainer) ------------------------------- */
.intro {
  padding-block: var(--space-7);
}

.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.intro__media {
  display: flex;
  justify-content: center;
}

.intro__media img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

.intro__h2 {
  font-weight: 100;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-3);
}

.intro__tagline {
  font-size: var(--fs-lead);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.intro__body {
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* --- Homepage: Why grid -------------------------------------------------- */
.why {
  padding-block: var(--space-7);
  background-color: var(--color-section);
  border-radius: 0 0 64px 64px;
}

/* .why uses .container utility but we want the rounded bg to bleed full-width;
   override the inline container padding so the heading sits inside but the bg fills */
.why.container {
  max-width: none;
  padding-inline: var(--container-pad);
}

.why__decor {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.why__decor img {
  max-width: 540px;
  width: 100%;
  height: auto;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.why__item {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why__item .why__card {
  margin-bottom: var(--space-3);
}

.why__item .why__label {
  margin-bottom: var(--space-2);
}

.why__card {
  background: var(--color-bg);
  width: 180px;
  height: 180px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px -12px rgba(20, 29, 43, 0.22),
              0 4px 10px -4px rgba(20, 29, 43, 0.10);
}

.why__icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.why__label {
  font-weight: 700;
  font-size: 1.0625rem;
}

.why__body {
  font-size: var(--fs-body);
  max-width: 28ch;
}

/* --- Homepage: Expert spotlight ------------------------------------------ */
.expert {
  background-color: var(--color-bg);
  padding-block: var(--space-7);
}

.expert__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.expert__copy > * + * {
  margin-top: var(--space-3);
}

.expert__heading {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 100;
  letter-spacing: -0.005em;
  line-height: 1.1;
  max-width: 18ch;
}

.expert__media {
  display: flex;
  justify-content: center;
}

.expert__media img {
  max-width: 560px;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* --- Homepage: Team grid ------------------------------------------------- */
.team {
  padding-block: var(--space-7);
  background-color: var(--color-bg);
  position: relative;
  z-index: 1;
  /* clip-path: url(#team-curve);  -- TODO: re-enable when curve is right */
}

.team.container {
  max-width: none;
  padding-inline: var(--container-pad);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
  max-width: 1100px;
  margin-inline: auto;
}

.team-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
}

.team-card__photo {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-section);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__name {
  font-weight: 100;
  font-size: 1.25rem;
  margin-top: var(--space-2);
}

.team-card__role {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card__expertise {
  font-size: var(--fs-small);
  font-style: italic;
  max-width: 22ch;
}

/* --- Homepage: Ready, text, go ------------------------------------------- */
.ready {
  background-image: url("/assets/img/contact-gradient.jpg");
  background-size: cover;
  background-position: center;
  padding-block: var(--space-7);
  position: relative;
  z-index: 0;
}

.ready__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.ready__media {
  order: -1;
}

.ready__copy > * + * {
  margin-top: var(--space-3);
}

.ready__copy h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 100;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.ready__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-3);
  list-style: disc;
  padding-left: 1.5rem;
}

.ready__step {
  font-size: var(--fs-body);
}

.ready__media img {
  max-width: 560px;
  width: 100%;
  height: auto;
}

.ready__cta-wrap {
  margin-top: var(--space-4);
}

.ready__media {
  display: flex;
  justify-content: center;
}

.ready__media img {
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* --- Homepage: FAQ ------------------------------------------------------- */
.faq {
  padding-block: var(--space-7);
}

.faq .section-heading {
  max-width: 22ch;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-top: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq__summary {
  font-weight: 400;
  font-size: 1.4rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 20px;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-left: auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23141d2b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 200ms ease;
}

.faq__item[open] .faq__summary::after {
  transform: rotate(180deg);
}

.faq__answer {
  padding-block: 0 30px;
  font-size: var(--fs-body);
  line-height: 1.55;
}

.faq__item[open] .faq__answer {
  animation: faq-fade-in 380ms ease-out;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__answer {
    animation: none;
  }
}

.faq__answer a {
  font-weight: 700;
}

/* --- Homepage: Values grid ----------------------------------------------- */
.values {
  background-image: url("/assets/img/contact-gradient.jpg");
  background-size: cover;
  background-position: center;
  padding-block: var(--space-7);
}

.values .section-heading {
  margin-bottom: var(--space-6);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}

.values__item {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.values__item .values__card {
  margin-bottom: var(--space-3);
}

.values__item .values__label {
  margin-bottom: var(--space-2);
}

.values__card {
  background: var(--color-bg);
  width: 200px;
  height: 200px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px -12px rgba(20, 29, 43, 0.22),
              0 4px 10px -4px rgba(20, 29, 43, 0.10);
}

.values__icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.values__label {
  font-weight: 700;
  font-size: 1.125rem;
}

.values__body {
  font-size: var(--fs-body);
  max-width: 32ch;
}

/* --- Blog index ---------------------------------------------------------- */
.blog-index {
  padding-block: var(--space-6);
}

.blog-index__heading {
  text-align: center;
  margin-bottom: var(--space-5);
}

.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.blog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(20, 29, 43, 0.18);
}

.blog-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-section);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-card__title a {
  text-decoration: none;
}

.blog-card__title a:hover {
  text-decoration: underline;
}

.blog-card__date {
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.blog-card__more {
  margin-top: auto;
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Contact page -------------------------------------------------------- */
.contact-page {
  padding-block: var(--space-6);
}

.contact-page__inner {
  max-width: 640px;
  margin-inline: auto;
}

.contact-page__heading {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: var(--space-3);
}

.contact-page__body {
  text-align: center;
  margin-bottom: var(--space-5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-form__label {
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-fg);
}

.contact-form__textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
}

.contact-form__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2);
}

/* --- Contact dialog ------------------------------------------------------ */
.contact-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 2rem);
  background: var(--color-bg);
  color: var(--color-fg);
  box-shadow: 0 20px 60px -10px rgba(20, 29, 43, 0.4);
}

.contact-dialog::backdrop {
  background: rgba(20, 29, 43, 0.45);
}

.contact-dialog__inner {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-dialog__heading {
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-dialog__body {
  font-size: var(--fs-body);
}

.contact-dialog__close-wrap {
  display: flex;
  justify-content: flex-end;
}

/* --- Legal (privacy / terms) -------------------------------------------- */
.legal {
  padding-block: var(--space-6);
}

.legal__inner {
  max-width: 760px;
  margin-inline: auto;
}

.legal__heading {
  margin-bottom: var(--space-3);
}

.legal__updated {
  font-size: var(--fs-small);
  opacity: 0.7;
  margin-bottom: var(--space-4);
}

.legal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal p {
  margin-bottom: var(--space-2);
}

.legal ul {
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
  list-style: disc;
}

.legal li {
  margin-bottom: var(--space-1);
}

/* --- 404 ----------------------------------------------------------------- */
.not-found {
  padding-block: var(--space-7);
  text-align: center;
}

.not-found__inner {
  max-width: 600px;
  margin-inline: auto;
}

.not-found__heading {
  margin-bottom: var(--space-3);
}

.not-found__body {
  font-size: var(--fs-lead);
}

/* --- Blog post ----------------------------------------------------------- */
.post {
  padding-block: var(--space-6);
}

.post__inner {
  max-width: 760px;
  margin-inline: auto;
}

.post__header {
  margin-bottom: var(--space-4);
}

.post__date {
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: var(--space-2);
}

.post__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 100;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.post__cover {
  margin-bottom: var(--space-5);
}

.post__cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post__body p {
  margin-bottom: var(--space-3);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.post__body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.post__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.post__body h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
  letter-spacing: 0.02em;
}

.post__body ul,
.post__body ol {
  margin-bottom: var(--space-3);
  padding-left: 1.5rem;
  list-style: disc;
}

.post__body ol {
  list-style: decimal;
}

.post__body li {
  margin-bottom: var(--space-1);
  line-height: 1.6;
}

.post__body figure {
  margin: var(--space-4) 0;
}

.post__body figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post__back {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-small);
}

/* --- Components: links / buttons (defined late for source-order wins) ---- */
a.section-link,
a.faq-link {
  font-weight: 700;
}

a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1.1rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--color-button);
  color: var(--color-button-fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease;
}

a.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

a.cta-image {
  display: inline-block;
  text-decoration: none;
  border: none;
}

a.cta-image img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* --- Responsive: tablet -------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner,
  .expert__inner,
  .ready__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* --- Responsive: hamburger nav --------------------------------------------- */
@media (max-width: 760px) {
  .site-header__hamburger {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) var(--container-pad);
    box-shadow: 0 12px 24px -16px rgba(20, 29, 43, 0.18);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    width: 100%;
    padding-block: 0.4rem;
  }

  .site-nav .btn {
    width: 100%;
  }
}

/* --- Responsive: mobile -------------------------------------------------- */
@media (max-width: 560px) {
  :root {
    --container-pad: 1.25rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .site-nav {
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .why__grid,
  .values__grid,
  .blog-index__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-block: var(--space-5);
  }

  .hero__copy {
    text-align: center;
  }

  .hero__h1 {
    font-size: clamp(3rem, 18vw, 5rem);
    line-height: 1;
  }

  .hero__cta-wrap {
    align-items: center;
  }

  .hero__phone {
    text-align: center;
  }

  .hero__media {
    margin-right: 0;
    justify-content: center;
  }

  .hero__media img {
    width: 360px;
  }

  .intro__h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
