:root {
  --page: #f7f8f6;
  --surface: #ffffff;
  --surface-muted: #eef3ef;
  --ink: #202523;
  --muted: #5d6863;
  --line: #d8ded8;
  --teal: #23685b;
  --teal-dark: #16483f;
  --amber: #b26d35;
  --blue: #496d89;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 42, 38, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: 1rem;
  width: auto;
  z-index: 50;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
}

.site-header {
  align-items: center;
  background: rgba(247, 248, 246, 0.94);
  border-bottom: 1px solid rgba(216, 222, 216, 0.82);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  font-weight: 700;
}

.brand__mark {
  align-items: center;
  background: var(--teal);
  border-radius: 6px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.86rem;
  height: 34px;
  justify-content: center;
  width: 40px;
}

.brand__text {
  white-space: nowrap;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 0.2rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--amber);
  color: var(--ink);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 42px;
}

.nav-toggle__line {
  background: var(--ink);
  display: block;
  height: 2px;
  position: absolute;
  width: 18px;
}

.nav-toggle__line:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle__line:nth-child(3) {
  transform: translateY(6px);
}

.hero {
  align-items: center;
  display: grid;
  min-height: calc(86svh - 68px);
  overflow: hidden;
  position: relative;
}

.hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  position: absolute;
  width: 100%;
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(20, 29, 26, 0.78) 0%, rgba(20, 29, 26, 0.62) 38%, rgba(20, 29, 26, 0.18) 72%, rgba(20, 29, 26, 0.04) 100%);
  inset: 0;
  position: absolute;
}

.hero__content {
  color: var(--white);
  max-width: 760px;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 7vw, 6rem);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4bd7b;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.hero__lead {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.22;
  max-width: 700px;
}

.hero__summary {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  max-width: 650px;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.button--primary {
  background: var(--teal);
  color: var(--white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--teal-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--white);
}

.proof-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-strip__item {
  background: var(--surface);
  min-height: 132px;
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.proof-strip__item strong {
  color: var(--teal);
  display: block;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.proof-strip__item span {
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 7vw, 6.8rem) clamp(1rem, 3vw, 2.5rem);
}

.section--light {
  background: var(--surface);
}

.section--accent {
  background: #e7f0eb;
}

.section--media {
  background: #f4f1ea;
}

.section__inner,
.contact-section__inner {
  margin: 0 auto;
  max-width: var(--max);
}

.section__heading {
  max-width: 790px;
  margin-bottom: 2rem;
}

.section__heading p,
.text-flow,
.expertise-layout p {
  color: var(--muted);
}

.two-column,
.expertise-layout,
.format-layout,
.contact-section__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.text-flow p + p {
  margin-top: 1rem;
}

.service-grid,
.credential-grid,
.video-grid {
  display: grid;
  gap: 1rem;
}

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

.credential-grid,
.video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.service-card,
.credential-card,
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  padding: 1.25rem;
}

.service-card p,
.credential-card p,
.video-card p,
.timeline p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(35, 104, 91, 0.15);
  border-radius: var(--radius);
  padding: 0.95rem 1rem 0.95rem 2.4rem;
  position: relative;
}

.check-list li::before {
  background: var(--teal);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 1rem;
  position: absolute;
  top: 1.5rem;
  width: 8px;
}

.timeline {
  border-left: 2px solid var(--line);
  display: grid;
  gap: 1.25rem;
  margin-left: 0.35rem;
  padding-left: clamp(1.2rem, 3vw, 2rem);
}

.timeline__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(31, 42, 38, 0.06);
  display: grid;
  gap: 1rem;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 1.2rem;
  position: relative;
}

.timeline__item::before {
  background: var(--amber);
  border: 4px solid var(--page);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: calc(-2rem - 8px);
  position: absolute;
  top: 1.45rem;
  width: 14px;
}

.timeline__date {
  color: var(--teal);
  font-weight: 800;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.format-list span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  padding: 0.65rem 0.95rem;
}

.video-card {
  overflow: hidden;
  padding: 0;
}

.video-card h3,
.video-card p {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.video-card h3 {
  margin-top: 1rem;
}

.video-card p {
  padding-bottom: 1.2rem;
}

.video-card__poster {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(35, 104, 91, 0.92), rgba(73, 109, 137, 0.86)),
    url("../img/hero-accounting-automation.png") center / cover;
  position: relative;
}

.video-card__poster::after {
  background: var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow);
  content: "";
  height: 54px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
}

.video-card__poster::before {
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--teal);
  border-top: 10px solid transparent;
  content: "";
  left: calc(50% - 5px);
  position: absolute;
  top: calc(50% - 10px);
  z-index: 1;
}

.video-card__poster--alt {
  background:
    linear-gradient(135deg, rgba(178, 109, 53, 0.88), rgba(35, 104, 91, 0.78)),
    url("../img/hero-accounting-automation.png") center / cover;
}

.video-card__poster--third {
  background:
    linear-gradient(135deg, rgba(73, 109, 137, 0.9), rgba(32, 37, 35, 0.72)),
    url("../img/hero-accounting-automation.png") center / cover;
}

.contact-section {
  background: var(--teal-dark);
  color: var(--white);
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 3vw, 2.5rem);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section .button--secondary {
  color: var(--ink);
}

.site-footer {
  align-items: center;
  background: #18211e;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 3vw, 2.5rem);
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 980px) {
  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .two-column,
  .expertise-layout,
  .format-layout,
  .contact-section__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: 1rem;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
  }

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

  .hero {
    min-height: calc(84svh - 62px);
  }

  .hero__image {
    object-position: 66% center;
  }

  .hero__overlay {
    background: rgba(20, 29, 26, 0.68);
  }

  .hero__content {
    padding: 4.5rem 1rem;
  }

  .proof-strip,
  .service-grid,
  .credential-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .timeline__item {
    grid-template-columns: 1fr;
  }

  .timeline__item::before {
    display: none;
  }

  .button {
    width: 100%;
  }
}

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