/* ==========================================================================
   Lisa Martin — static site stylesheet
   Mobile-first. Breakpoints: 545px (large phone / tablet), 922px (desktop).
   Values are taken from the live WordPress site; see brief.md section 2.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --color-accent: #737880;
  --color-accent-hover: #65696f;
  --color-heading: #151616;
  --color-text: #393c40;
  --color-bg: #f6f6f6;
  --color-white: #ffffff;
  --color-border-soft: #f1f0f0;
  --color-rule: #e8e8e8;
  --color-dark: #232529;
  --color-error: #dc2626;
  --color-field-bg: rgba(21, 22, 22, 0.02);
  --color-field-border: rgba(21, 22, 22, 0.25);

  --font-body: "Roboto", sans-serif;
  --font-heading: "Barlow Semi Condensed", sans-serif;
  --font-button: "Montserrat", sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --section-space: 64px;
  --radius: 4px;
}

/* ---------- 2. Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.857;
}

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

img {
  height: auto;
}

a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s linear;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px dotted currentColor;
  outline-offset: 3px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 20px;
}

figure,
blockquote {
  margin: 0;
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
}

h1 { font-size: 32px; line-height: 1.4; }
h2 { font-size: 25px; line-height: 1.3; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.2; }
h5 { font-size: 15px; line-height: 1.2; }
h6 { font-size: 13px; line-height: 1.25; }

.eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow--muted {
  color: var(--color-accent);
}

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-white);
  color: var(--color-heading);
}

.skip-link:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  /* The live buttons overflow a 32px-tall wrapper by 9px above and below. */
  margin-block: -9px;
  transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
}

.btn:hover,
.btn:focus {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn--white {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-heading);
}

.btn--white:hover,
.btn--white:focus {
  border-color: var(--color-bg);
  background: var(--color-bg);
  color: var(--color-heading);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
}

.btn--outline:hover,
.btn--outline:focus {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--outline-white {
  padding: 14px 20px;
  border-color: var(--color-white);
  background: transparent;
  color: var(--color-white);
  font-size: 12px;
  line-height: 12px;
  margin-block: 0;
}

.btn--outline-white:hover,
.btn--outline-white:focus {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-dark);
}

/* ---------- 6. Site header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 87px;
}

.site-logo img {
  width: 56px;
  height: 40px;
}

.nav-toggle {
  display: inline-flex;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

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

.site-nav a {
  display: block;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 3.2;
}

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

.site-header__actions {
  display: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-links a {
  display: block;
  color: inherit;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: 128px 0 78px;
  background: var(--color-dark) url("images/2021/02/business-consulting-hero-img-bg.jpg") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0.5;
  content: "";
}

.hero__content {
  position: relative;
}

.hero .eyebrow,
.hero h1,
.hero p {
  color: var(--color-white);
}

.hero .eyebrow {
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero p {
  margin-bottom: 40px;
  font-weight: 600;
}

/* ---------- 8. Featured-in logos ---------- */
.featured {
  padding: 64px 0;
  text-align: center;
}

.featured .eyebrow {
  margin-bottom: 30px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
}

.logo-grid img {
  width: 162px;
  height: 92px;
}

/* ---------- 9. Topics ---------- */
.topics__title {
  margin-bottom: 30px;
  text-align: center;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
}

.topic {
  padding: 20px 0 6px;
}

.topic__number {
  margin-bottom: 14px;
  color: var(--color-accent);
  font-weight: 600;
}

.topic h4 {
  margin-bottom: 10px;
}

/* ---------- 10. Services teaser ---------- */
.services-teaser__inner {
  display: grid;
  gap: 48px;
}

.services-teaser__intro h3 {
  margin-bottom: 32px;
}

.service-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-list li + li {
  margin-top: 28px;
}

.service-list svg {
  flex: none;
  width: 32px;
  height: 32px;
  fill: #333333;
}

/* ---------- 11. About intro ---------- */
.about-intro {
  padding-top: 10px;
}

.about-intro__inner {
  display: grid;
  gap: 32px;
}

.about-intro .eyebrow {
  margin-bottom: 24px;
}

.about-intro__text::before {
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 25px;
  background: var(--color-accent);
  content: "";
}

.about-intro__text p {
  margin-bottom: 39px;
}

/* ---------- 12. Quote ---------- */
.quote__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.quote__photo img {
  width: 100%;
}

.quote__icon {
  width: 40px;
  height: 40px;
  margin: 5px 5px 29px;
  fill: var(--color-accent);
}

.quote__text {
  margin-bottom: 40px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.quote__signature {
  width: 117px;
  height: 59px;
}

/* ---------- 13. Testimonials ---------- */
.testimonials {
  padding: 50px 0 30px;
}

.testimonials .eyebrow {
  margin-bottom: 20px;
}

.testimonials__title {
  margin-bottom: 40px;
}

.testimonial-grid {
  display: grid;
  background: var(--color-white);
}

.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 30px 20px;
}

.testimonial__avatar {
  flex: none;
  width: 70px;
  height: 70px;
  border-radius: 100px;
}

.testimonial__quote {
  margin-bottom: 21px;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.testimonial__name {
  margin: 0;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 2px;
}

/* ---------- 14. Pre-footer call to action ---------- */
.cta {
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  max-width: 480px;
  margin: 0 auto 30px;
}

/* ---------- 15. Site footer ---------- */
.site-footer {
  font-size: 14px;
  line-height: 26px;
}

.site-footer__main {
  display: grid;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.site-footer p {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin-bottom: 24px;
  color: var(--color-text);
  font-size: 24px;
  line-height: 36px;
}

.site-footer a {
  color: var(--color-text);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-heading);
}

.site-footer__logo {
  width: 56px;
  height: 40px;
  margin-bottom: 14px;
}

.site-footer .social-links {
  gap: 20px;
  margin-bottom: 14px;
}

.site-footer address {
  font-style: normal;
}

.site-footer address p {
  margin-bottom: 0;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-rule);
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  text-decoration: underline;
}

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: var(--color-text);
  color: var(--color-white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s linear, visibility 0.2s linear;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top svg {
  width: 13px;
  height: 8px;
  fill: currentColor;
  transform: rotate(180deg);
}

/* ---------- 16. Button states and text button ---------- */
/* .is-hover and .is-active mirror :hover and :active so design-system.html can show them. */
.btn.is-hover {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn:active,
.btn.is-active {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-white);
}

.btn--white.is-hover {
  border-color: var(--color-bg);
  background: var(--color-bg);
  color: var(--color-heading);
}

.btn--white:active,
.btn--white.is-active {
  border-color: var(--color-rule);
  background: var(--color-rule);
  color: var(--color-heading);
}

.btn--outline.is-hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--outline:active,
.btn--outline.is-active {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn--outline-white.is-hover,
.btn--outline-white:active,
.btn--outline-white.is-active {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-dark);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Text-only button, as used for "Get Started Now" on the service cards. */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-text:hover,
.btn-text:focus,
.btn-text.is-hover {
  color: var(--color-heading);
}

/* ---------- 17. Forms ---------- */
.form {
  display: grid;
  gap: 20px;
}

.form__row {
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.field__required {
  color: var(--color-error);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 10px 12px;
  border: 1px solid var(--color-field-border);
  border-radius: 6px;
  background: var(--color-field-bg);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  transition: border-color 0.2s linear, box-shadow 0.2s linear;
}

.field input,
.field select {
  height: 44px;
}

.field textarea {
  min-height: 117px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-accent);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.field .is-focus {
  border-color: var(--color-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(115, 120, 128, 0.25);
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--color-error);
}

.field__hint,
.field__error {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.field__error {
  color: var(--color-error);
}

.btn--submit {
  justify-self: start;
  margin-block: 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: normal;
}

/* ---------- 18. Cards ---------- */
.card {
  padding: 40px;
  background: var(--color-white);
}

.card > :last-child {
  margin-bottom: 0;
}

/* Service card: sits on the dark "Main Services" band. */
.service-card {
  padding: 48px 32px 48px 24px;
  background: var(--color-dark);
  color: var(--color-white);
}

.service-card__number,
.service-card h3 {
  color: var(--color-white);
}

.service-card__number {
  margin-bottom: 44px;
}

.service-card h3 {
  margin-bottom: 20px;
}

.service-card p {
  margin-bottom: 26px;
  font-size: 14px;
  line-height: 26px;
}

.service-card .btn-text {
  color: var(--color-white);
}

.service-card .btn-text:hover,
.service-card .btn-text:focus {
  color: var(--color-rule);
}

/* Blog post card: photo with a dark overlay and white text, as on the live blog. */
.post-card {
  position: relative;
  display: flex;
  min-height: 366px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-dark);
  box-shadow: 0 6px 15px -2px rgba(16, 24, 40, 0.05);
  color: var(--color-white);
}

.post-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(30, 41, 59, 0.65);
  content: "";
}

.post-card__body {
  position: relative;
  z-index: 2;
  padding: 25px;
}

.post-card__title {
  margin-bottom: 5px;
  font-size: 26px;
  line-height: 1.3;
}

.post-card a,
.post-card__title {
  color: var(--color-white);
}

.post-card a:hover,
.post-card a:focus {
  color: var(--color-rule);
}

.post-card__meta {
  margin-bottom: 20px;
  line-height: 1.45;
}

.post-card__excerpt {
  margin-bottom: 26px;
}

/* ---------- 19. Badges ---------- */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.badge--outline {
  background: transparent;
  color: var(--color-accent);
}

.badge--light {
  border-color: var(--color-rule);
  background: var(--color-rule);
  color: var(--color-text);
}

.badge--dark {
  border-color: var(--color-dark);
  background: var(--color-dark);
}

/* ==========================================================================
   Tablet: 545px and up
   ========================================================================== */
@media (min-width: 545px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 26px; }
  h4 { font-size: 20px; }
  h5 { font-size: 17px; }
  h6 { font-size: 15px; }

  .quote__text { font-size: 26px; }

  .logo-grid,
  .topics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .site-footer__main {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ==========================================================================
   Desktop: 922px and up
   ========================================================================== */
@media (min-width: 922px) {
  :root {
    --gutter: 40px;
    --section-space: 104px;
  }

  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  h3 { font-size: 30px; }
  h4 { font-size: 24px; }
  h5 { font-size: 20px; }
  h6 { font-size: 17px; }

  /* Header */
  .site-header__inner {
    justify-content: flex-start;
    min-height: 106px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    width: auto;
    margin-left: 20px;
    background: transparent;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
  }

  .site-nav a {
    padding: 0 22px;
    border: 0;
    color: var(--color-white);
    line-height: 70px;
  }

  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav a[aria-current="page"] {
    color: #fcfcfc;
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 44px;
    margin-left: auto;
    color: var(--color-white);
  }

  /* Hero */
  .hero {
    padding: 270px 0 256px;
  }

  .hero__content {
    width: 50%;
    margin-left: auto;
  }

  .hero .eyebrow {
    margin-bottom: 48px;
  }

  .hero p {
    margin-right: 80px;
  }

  /* Featured-in */
  .featured {
    padding: 104px 0;
  }

  .featured .eyebrow {
    margin-bottom: 50px;
  }

  .logo-grid {
    grid-template-columns: repeat(4, 162px);
    justify-content: space-between;
    row-gap: 68px;
    padding: 24px 99px 24px 24px;
  }

  /* Topics */
  .topics__title {
    margin-bottom: 60px;
  }

  .topics-grid {
    column-gap: 0;
  }

  .topic {
    padding: 33px 72px 5px 0;
  }

  .topic__number {
    margin-bottom: 24px;
  }

  /* Services teaser */
  .services-teaser__inner {
    grid-template-columns: 591fr 589fr;
    gap: 20px;
  }

  .services-teaser__intro {
    padding-right: 144px;
  }

  .services-teaser__intro h3 {
    margin-bottom: 84px;
  }

  .service-list li + li {
    margin-top: 63px;
  }

  .service-list svg {
    width: 40px;
    height: 40px;
  }

  /* About intro */
  .about-intro {
    padding-bottom: 105px;
  }

  .about-intro__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
  }

  .about-intro__heading {
    padding-right: 96px;
  }

  .about-intro .eyebrow {
    margin-bottom: 50px;
  }

  .about-intro__text {
    padding: 0 48px 0 96px;
  }

  /* Quote */
  .quote {
    padding-bottom: 0;
  }

  .quote__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .quote__body {
    padding-left: 96px;
  }

  .quote__icon {
    margin: 5px 5px 29px;
  }

  .quote__text {
    margin-bottom: 70px;
    font-size: 30px;
  }

  /* Testimonials */
  .testimonials {
    padding: 100px 0 50px;
  }

  .testimonials__title {
    margin-bottom: 70px;
  }

  .testimonial {
    padding: 40px 48px 43px 40px;
  }

  /* Call to action */
  .cta {
    padding: 104px 0;
  }

  /* Footer */
  .site-footer__main {
    grid-template-columns: repeat(4, 1fr);
    gap: 49px;
    padding-top: 104px;
    padding-bottom: 80px;
  }

  .site-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ==========================================================================
   20. Inner pages (About, Services, Contact, Blog, posts)
   ========================================================================== */

/* Solid header for pages without a dark band behind the navigation */
.site-header--solid {
  position: relative;
  background: var(--color-dark);
}

/* Dark title band under the transparent header */
.page-header {
  padding: 128px 0 48px;
  background: var(--color-dark);
  color: var(--color-white);
}

.page-header h1,
.page-header h6 {
  color: var(--color-white);
}

.page-header__intro {
  max-width: 504px;
  margin: 20px 0 0;
}

/* Heading left, text right. Shares the homepage "About Me" pattern. */
.about-intro--page {
  padding-top: var(--section-space);
}

/* About: heading with portrait overlapping the title band */
.about-hero {
  padding: 48px 0;
}

.about-hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-hero__photo img {
  width: 100%;
}

.about-bio {
  padding-bottom: var(--section-space);
}

.about-bio__inner {
  display: grid;
  gap: 0 20px;
}

.about-bio p {
  color: var(--color-heading);
}

.featured--flush {
  padding-top: 0;
}

.topics--tight {
  padding-bottom: 52px;
}

.media-banner img {
  width: 100%;
}

.section-head {
  padding: 64px 0 32px;
}

.section-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.section-head .btn {
  margin-block: 0;
}

/* Services: single featured testimonial */
.testimonial-feature {
  padding-bottom: var(--section-space);
  text-align: center;
}

.testimonial-feature img {
  width: 80px;
  height: 80px;
  margin-inline: auto;
  border-radius: 100px;
}

.testimonial-feature__quote {
  max-width: 800px;
  margin: 20px auto 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
}

.testimonial-feature__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Services: "Main Services" band over a photo */
.services-band {
  position: relative;
  padding-top: 64px;
  background: var(--color-dark) url("images/2021/02/business-consulting-main-services-img-bg.jpg") center / cover no-repeat;
}

.services-band::before {
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0.8;
  content: "";
}

.services-band > .container {
  position: relative;
}

.services-band h2 {
  color: var(--color-white);
  text-align: center;
}

.services-band__grid {
  display: grid;
  margin-top: 32px;
}

.services-band .service-card {
  background: transparent;
}

/* Contact */
.contact-hero {
  display: grid;
  gap: 48px;
}

.contact-info {
  margin-top: 44px;
  font-style: normal;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 23px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #434856;
}

.contact-info__icon {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 16px;
  border-radius: 100px;
  background: var(--color-accent);
}

.contact-info__icon svg {
  width: 14px;
  height: 14px;
  fill: var(--color-white);
}

.contact-info h6 {
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-info p {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.857;
}

.contact-info a {
  color: inherit;
}

.contact-social .eyebrow {
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.contact-social .social-links {
  gap: 30px;
}

.contact-social .social-links svg {
  width: 24px;
  height: 24px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.contact-main {
  padding: var(--section-space) 0;
}

.contact-main__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.contact-main .eyebrow {
  margin-bottom: 24px;
}

.contact-main h2 {
  margin-bottom: 24px;
}

.contact-main__text > p {
  margin-bottom: 40px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 4px;
}

.check-list li + li {
  margin-top: 9px;
}

.check-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

.form-box {
  padding: 30px 20px;
  background: var(--color-white);
}

/* Hosted Tally form. Reserving its height stops the page shifting while it loads
   and when it swaps to the thank-you message after sending. */
.form-box iframe {
  display: block;
  width: 100%;
  min-height: 372px;
  border: 0;
}

/* Booking page: container for the scheduling widget */
.booking {
  padding: var(--section-space) 0;
}

.embed-box {
  max-width: 960px;
  min-height: 480px;
  margin-inline: auto;
  padding: 30px 20px;
  background: var(--color-white);
}

.embed-box iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Service picker above the calendars. Without JavaScript the buttons are hidden
   and every panel shows its heading and a direct booking link. */
.booking-tabs {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto 32px;
}

.booking.is-enhanced .booking-tabs {
  display: flex;
}

.booking-tabs .btn {
  flex: 1 1 100%;
  justify-content: center;
  margin-block: 0;
}

.booking-tabs .btn[aria-selected="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.booking-panel + .booking-panel {
  margin-top: 32px;
}

.booking-panel[hidden] {
  display: none;
}

.booking-panel__title {
  margin-bottom: 24px;
  text-align: center;
}

.booking-panel__fallback {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

.booking-panel__fallback a {
  text-decoration: underline;
}

.form__status {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

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

/* Blog archive */
.blog-list {
  padding: 48px 0;
}

.post-grid {
  display: grid;
  gap: 34px;
}

/* Single post */
.post-banner {
  padding: 40px 0;
  background: var(--color-heading);
  color: var(--color-bg);
  text-align: center;
}

.post-banner h1 {
  margin-bottom: 10px;
  color: var(--color-white);
  font-size: 26px;
  line-height: 1.2;
}

.post-banner p {
  margin: 0;
  line-height: 1.45;
}

.post-banner a {
  color: inherit;
}

.post-layout {
  display: grid;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.post-layout__main {
  min-width: 0;
}

.post-featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Privacy and Terms: one readable column of prose on a white card */
.legal {
  padding: var(--section-space) 0;
}

.legal__body {
  max-width: 812px;
  margin: 0 auto;
}

.legal__updated {
  font-size: 14px;
  line-height: 26px;
}

.legal__body a {
  text-decoration: underline;
}

.legal__body li + li {
  margin-top: 8px;
}

.post-article {
  padding: 30px 20px;
  background: var(--color-white);
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p {
  margin-bottom: 17px;
}

.prose h2 {
  margin: 34px 0 20px;
}

.prose ul,
.prose ol {
  margin: 0 0 25px;
  padding-left: 22px;
  list-style: revert;
}

.prose blockquote {
  margin: 28px 0;
  padding: 20px;
  border-left: 5px solid rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  font-style: italic;
}

.prose blockquote p {
  margin: 0;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 34px;
}

.post-nav a {
  color: var(--color-text);
}

.post-nav a:hover,
.post-nav a:focus {
  color: var(--color-heading);
}

.related {
  margin-top: 34px;
  padding: 30px 20px;
  background: var(--color-white);
}

.related h2 {
  margin-bottom: 24px;
  font-size: 26px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(163px, 1fr));
  gap: 30px;
}

.related__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 17px;
  object-fit: cover;
}

.related__item h3 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1;
}

.related__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.post-sidebar h2 {
  font-size: 24px;
}

.post-sidebar li {
  margin-bottom: 4px;
  line-height: 34px;
}

.post-sidebar a {
  color: var(--color-text);
}

.post-sidebar a:hover,
.post-sidebar a:focus {
  color: var(--color-heading);
}

@media (min-width: 545px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-feature__quote {
    font-size: 24px;
  }

  .form-box {
    padding: 48px 48px 40px;
  }

  .embed-box {
    padding: 48px;
  }

  .booking-tabs .btn {
    flex: 0 1 auto;
  }

  .post-article {
    padding: 48px;
  }

  .related {
    padding: 42px;
  }
}

@media (min-width: 922px) {
  .page-header {
    padding: 160px 0 80px;
  }

  .about-intro--page {
    padding-bottom: var(--section-space);
  }

  .about-intro--page .about-intro__text {
    padding-right: 48px;
  }

  .about-intro--page .about-intro__text p {
    margin-bottom: 0;
  }

  .about-hero {
    padding: 104px 0 50px;
  }

  .about-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
  }

  /* The portrait rises 260px to overlap the dark title band. */
  .about-hero__photo {
    margin-top: -260px;
  }

  .about-bio {
    padding-bottom: 100px;
  }

  .about-bio__inner {
    grid-template-columns: 1fr 1fr;
  }

  .quote--spaced {
    padding-bottom: 100px;
  }

  .section-head {
    padding: 100px 0 50px;
  }

  .testimonial-feature {
    padding-bottom: 130px;
  }

  .services-band {
    padding-top: 100px;
  }

  .services-band__grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 70px;
  }

  .contact-hero {
    grid-template-columns: 504px 1fr;
    gap: 96px;
  }

  .contact-map iframe {
    height: 100%;
    min-height: 480px;
  }

  .contact-main__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .contact-main__text {
    padding-right: 80px;
  }

  .blog-list {
    padding: 68px 0;
  }

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

  .post-banner {
    padding: 51px 0;
  }

  .post-layout {
    grid-template-columns: minmax(0, 812fr) 288fr;
    gap: 60px;
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .post-article {
    padding: 90px 113px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
