:root {
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #17202a;
  --muted: #52616d;
  --line: #dfe5df;
  --primary: #116466;
  --primary-dark: #0b4d4f;
  --accent: #d59b2d;
  --soft: #e9f3ef;
  --dark: #101820;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

html,
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

body {
  min-height: 100vh;
}

a {
  color: #063fd1;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: #082f9f;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 12px;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
}

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

.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;
}

header {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
linear-gradient(90deg, rgba(8, 18, 24, .82) 0%, rgba(8, 18, 24, .76) 42%, rgba(8, 18, 24, .70) 100%),
url("images/hero-ai.jpg") center / cover no-repeat;
background:
  linear-gradient(90deg, rgba(8, 18, 24, .82) 0%, rgba(8, 18, 24, .76) 42%, rgba(8, 18, 24, .70) 100%),
  image-set(
    url("images/hero-ai.avif") type("image/avif"),
    url("images/hero-ai.webp") type("image/webp"),
    url("images/hero-ai.jpg") type("image/jpeg")
  ) right / cover no-repeat;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
}

nav a:hover,
nav a:focus {
  color: #f7d78f;
  text-decoration: underline;
}

.hero {
  flex: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  font-weight: 700;
  color: #f7d78f;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: 2.8rem;
  max-width: 720px;
}

.hero-lead {
  font-size: 1.25rem;
  margin: 18px 0 0;
  max-width: 680px;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #121212;
}

.btn.primary:hover,
.btn.primary:focus {
  background: #f0bf54;
  color: #121212;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, .8);
  color: #fff;
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: #fff;
  color: var(--primary-dark);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.hero-fact {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border-radius: 8px;
  padding: 14px;
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, .64);
}

.hero-fact strong {
  display: block;
  color: var(--primary-dark);
}

main {
  background: var(--bg);
}

section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 2rem;
  color: var(--dark);
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.card h3 {
  font-size: 1.28rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.card p,
.card ul {
  margin: 0;
  color: var(--muted);
}

.card ul,
.check-list {
  padding-left: 20px;
}

.check-list li {
  margin: 8px 0;
}

.band {
  width: 100%;
  background: #edf5f1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band section {
  padding: 54px 0;
}

.program {
  counter-reset: step;
}

.program .card {
  position: relative;
  padding-left: 62px;
}

.program .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.pricing {
  align-items: stretch;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.price-card.highlight {
  border: 2px solid var(--accent);
}

.price {
  color: var(--primary-dark);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  margin: 10px 0;
}

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

.profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;
}

.profile picture,
.profile img {
  display: block;
}

.profile img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.testimonial p {
  font-style: italic;
  color: var(--ink);
}

.author {
  margin-top: 12px;
  font-weight: 700;
  color: var(--primary-dark);
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

address {
  font-style: normal;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.contact-line img {
  width: 20px;
  height: 20px;
}

footer {
  background: var(--dark);
  color: #dce6ea;
  padding: 28px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

footer a {
  color: #f7d78f;
}

.subpage-header {
  min-height: 58vh;
}

.answer-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 22px;
}

.answer-box p {
  margin: 0;
}

.steps-list {
  margin: 0;
  padding-left: 24px;
}

.steps-list li {
  margin: 12px 0;
}

.service-area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.service-area-list li {
  min-height: 44px;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--primary-dark);
}

.link-card {
  position: relative;
  padding: 0;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.link-card .full-card-link {
  display: block;
  min-height: 100%;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.link-card h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link-card .full-card-link:hover h3,
.link-card .full-card-link:focus h3 {
  text-decoration-thickness: 2px;
}

.link-card .full-card-link h3 {
  color: var(--primary-dark);
}

.link-card:hover,
.link-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(17, 100, 102, .14);
  transform: translateY(-1px);
}

.link-card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.fact-list {
  margin: 0;
  padding-left: 20px;
}

.fact-list li {
  margin: 8px 0;
}

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

.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (max-width: 860px) {
  header {
    min-height: auto;
  }

  .topbar {
    align-items: flex-start;
  }

  .menu-button {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 56px;
    right: 16px;
    width: min(260px, calc(100% - 32px));
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .menu-toggle:checked ~ nav ul {
    display: flex;
  }

  .hero {
    padding: 54px 0;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-facts,
  .grid.three,
  .grid.two,
  .profile,
  .contact-panel,
  .summary-grid,
  .service-area-list {
    grid-template-columns: 1fr;
  }

  .profile {
    gap: 18px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1215;
    --paper: #161d22;
    --ink: #e8eef2;
    --muted: #bcc8cf;
    --line: #2d3941;
    --soft: #16251f;
    --dark: #06090b;
  }

  header {
    background:
linear-gradient(90deg, rgba(3, 8, 11, .84) 0%, rgba(3, 8, 11, .76) 48%, rgba(3, 8, 11, .70) 100%),
url("images/hero-ai.jpg") center / cover no-repeat;
background:
  linear-gradient(90deg, rgba(3, 8, 11, .84) 0%, rgba(3, 8, 11, .76) 48%, rgba(3, 8, 11, .70) 100%),
  image-set(
    url("images/hero-ai.avif") type("image/avif"),
    url("images/hero-ai.webp") type("image/webp"),
    url("images/hero-ai.jpg") type("image/jpeg")
  ) right / cover no-repeat;
  }

  .band {
    background: #121d18;
  }

  .section-head h2,
  .faq summary {
    color: #fff;
  }

  .hero-fact {
    background: rgba(18, 25, 30, .92);
    color: var(--ink);
    border-color: rgba(255, 255, 255, .14);
  }

  .hero-fact strong,
  .card h3,
  .author,
  .price {
    color: #8fe0ce;
  }

  .service-area-list li,
  .link-card .full-card-link h3 {
    color: #8fe0ce;
  }

  .link-card:hover,
  .link-card:focus-within {
    border-color: #8fe0ce;
    box-shadow: 0 10px 24px rgba(143, 224, 206, .14);
  }

  .btn.secondary:hover,
  .btn.secondary:focus {
    color: var(--dark);
  }
}

@media (max-width: 860px) {
  .subpage-header .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .subpage-header nav ul {
    display: flex;
    position: static;
    width: auto;
    max-width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

/* Keyboard access and contrast corrections; existing layout and palette are retained. */
:root { --focus: #9b6909; }
:focus-visible,
.link-card:focus-within { outline-color: var(--focus); }
.skip-link:focus { color: #fff; }
header :focus-visible,
footer :focus-visible { outline-color: #d59b2d; }
footer a:hover,
footer a:focus { color: #fff; }

.menu-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
}
.menu-button[hidden] { display: none; }
.contact-line { flex-wrap: wrap; }
.contact-line a { min-width: 0; overflow-wrap: anywhere; }
.card,
.hero-content,
.footer-inner > * { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .menu-button:not([hidden]) {
    display: block;
    min-width: 44px;
    min-height: 44px;
    margin-top: -9px;
    margin-bottom: -9px;
  }
  .menu-button[aria-expanded="true"] ~ nav ul { display: flex; z-index: 10; }
  .primary-navigation a { display: inline-flex; align-items: center; min-height: 44px; }

}

@media (prefers-color-scheme: dark) {
  :root { --focus: #d59b2d; }
  main a { color: #8bb9ff; }
  main a:hover,
  main a:focus { color: #b4d0ff; }
  main .btn.primary { color: #121212; }
  main .full-card-link { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card { transition: none; }
  .link-card:hover,
  .link-card:focus-within { transform: none; }
}


/* Allow long words to reflow under enlarged type and custom text spacing. */
body { overflow-wrap: anywhere; }
.topbar { flex-wrap: wrap; }
.menu-button { flex-shrink: 0; }

header :focus-visible { outline-color: #f7d78f; }
