/* Shared page rhythm; page-specific rules describe layout, not a separate style. */
.nav nav a.active {
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.home-hero,
.page-hero,
.contact-page,
.legal-hero {
  padding-block: var(--hero-space) var(--section-space);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero h1,
.page-hero h1,
.contact-page h1,
.legal-hero h1 {
  margin-block: 20px 24px;
  font-size: var(--font-hero);
}

.home-hero-copy > p,
.page-hero > p,
.profile-hero-copy > p,
.contact-page > p,
.legal-hero > p {
  max-width: 700px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-hero > .button {
  margin-top: 32px;
}

.home-hero {
  padding-top: 0;
}

.home-hero-banner {
  --ink: #fff;
  --green: #dfe9d9;
  --muted: #f2f5f1;
  position: relative;
  isolation: isolate;
  padding-block: var(--hero-space) var(--section-space);
  color: var(--ink);
  background: #253d3c;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the mountain horizon, rather than the empty sky, at the crop's center. */
  object-position: 50% 52%;
}

.home-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 35, 32, .78) 0%, rgba(16, 35, 32, .7) 60%, rgba(16, 35, 32, .32) 100%);
}

.home-hero-copy > p {
  max-width: 620px;
}

.home-about,
.page-content,
.business-offers,
.bio-section,
.credentials-section,
.engagement-section,
.price-section,
.form-section,
.legal-content {
  padding-block: var(--section-space);
}

/* The homepage uses the same cards and heading scale as the inner pages. */
.audience-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 36px;
  gap: var(--grid-gap);
}

.audience-choice > a {
  display: flex;
  flex-direction: column;
  padding: var(--card-space);
  color: var(--ink);
  text-decoration: none;
}

.audience-choice small,
.business-card > span,
.engagement-grid small,
.price-grid small,
.contact-ways small {
  color: var(--green);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.audience-choice strong {
  margin: 24px 0 16px;
  font-size: var(--font-card);
  font-weight: 600;
  line-height: 1.3;
}

.audience-choice > a > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.audience-choice b {
  color: var(--green);
}

.home-proof {
  padding-block: 28px;
}

.home-proof .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-proof p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.home-proof .wrap > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.home-proof span {
  font-size: 0.75rem;
  font-weight: 600;
}

.home-about p {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--muted);
}

/* Shared service, business and qualification cards. */
.services,
.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service,
.business-card,
.credential-grid article,
.engagement-grid article,
.price-grid > div {
  padding: var(--card-space);
}

.service,
.business-card,
.credential-grid article,
.price-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service .num {
  position: static;
  color: var(--green);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
}

.credential-logo {
  display: flex;
  align-items: center;
  width: 100%;
  height: 96px;
}

.credential-logo img {
  display: block;
  width: 88px;
  height: 88px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Balance the wide wordmarks against the square certification badges. */
.credential-logo--mikrotik img {
  width: 240px;
  height: auto;
}

.credential-logo--itil img {
  width: 208px;
  height: auto;
}

.service .icon {
  position: absolute;
  top: var(--card-space);
  right: var(--card-space);
  margin: 0;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--green);
}

.service p,
.business-card p,
.credential-grid p,
.engagement-grid p,
.price-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.service p {
  min-height: 0;
  flex: 1;
}

.service ul,
.engagement-grid ul {
  width: 100%;
  margin: 24px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service li,
.engagement-grid li {
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.service li::before,
.engagement-grid li::before {
  content: '↳';
  margin-right: 8px;
  color: var(--green);
}

.price-section h2 {
  margin-block: 16px 36px;
}

.price-grid strong {
  margin-block: 24px 16px;
  font-size: var(--font-card);
  font-weight: 600;
  line-height: 1.3;
  color: var(--green);
}

.business-note,
.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.business-note i,
.availability i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.business-note b,
.availability b {
  color: var(--ink);
}

.engagement-grid article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
}

.engagement-grid article > span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--green);
}

.engagement-grid h3 {
  margin-top: 24px;
}

/* The portrait shares the card frame instead of overlapping the hero text. */
.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: 48px;
  align-items: start;
  width: 100%;
}

.profile-headshot {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--glass-shadow);
}

.profile-headshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 42%;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.bio-grid > div > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.facts {
  padding: 0 var(--card-space);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass);
}

.fact-row {
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-color: var(--line);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row b {
  font-size: var(--font-card);
}

.fact-row small {
  color: var(--muted);
}

/* All closing calls to action use the same treatment, including business pages. */
.mini-cta {
  padding-block: var(--section-space);
}

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

.mini-cta h2 {
  margin: 0;
}

.mini-cta .kicker {
  display: inline-block;
  margin-bottom: 16px;
}

/* Business pages keep their own palette; dimensions and components stay shared. */
.business-page {
  --ink: #24302b;
  --green: #3b604f;
  --line: #aebfb5;
  --muted: #506159;
}

.lime {
  color: white;
  background: var(--green);
}

.primary:hover,
.lime:hover {
  background: #27493d;
}

.business-page .footer {
  border-top: 1px solid #46534d;
}

@media (max-width: 800px) {
  .home-hero-banner::after {
    background: rgba(16, 35, 32, .72);
  }

  .wrap {
    width: min(1080px, calc(100% - 32px));
  }

  .audience-choice,
  .services,
  .price-grid,
  .business-grid,
  .engagement-grid,
  .credential-grid,
  .profile-hero-grid,
  .bio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-hero-grid,
  .bio-grid {
    gap: 32px;
  }

  .profile-headshot {
    max-width: 480px;
  }

  .home-proof .wrap,
  .mini-cta .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
