/* ============================================================
   Jaan Ali Consulting — jaanali.com
   One shared stylesheet for the whole site.
   Palette (all text pairs verified WCAG AA — see build notes):
     Navy text      #12263A   on white 15.40:1 · on tint 13.99:1 · on gold 8.48:1
     Teal accent    #0B5A6B   white text on it 7.81:1 · as link on white 7.81:1 · on tint 7.10:1
     Navy band      #0C2340   white text on it 15.79:1 · tint links #B9D9EA on it 10.66:1
     Hero gradient  #081C33 → #0D5A6B   white text: 17.15:1 (dark stop) · 7.80:1 (light stop)
     Gold banner    #F7B500   navy text on it 8.48:1
     Muted text     #3D5A73   on white 7.22:1 · on tint 6.56:1
     Focus outline  #C05600   4.59:1 on white · 3.44:1 on navy (non-text, needs 3:1)
   ============================================================ */

:root {
  --navy: #12263a;
  --navy-band: #0c2340;
  --navy-deep: #081c33;
  --teal: #0b5a6b;
  --teal-light-stop: #0d5a6b;
  --teal-dark: #083f4c;
  --gold: #f7b500;
  --gold-dark: #8a5a00;
  --tint: #eff5f8;
  --tint-border: #d7e4ea;
  --footer-link: #b9d9ea;
  --muted: #3d5a73;
  --focus: #c05600;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(12, 35, 64, 0.08), 0 14px 34px rgba(12, 35, 64, 0.10);
  --shadow-lift: 0 4px 10px rgba(12, 35, 64, 0.10), 0 20px 44px rgba(12, 35, 64, 0.16);
  --container: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.125rem; /* 18px base */
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

p,
ul,
ol {
  max-width: 70ch;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  font-weight: 750;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw + 1rem, 3.2rem);
}

h2 {
  font-size: clamp(1.65rem, 2.6vw + 0.8rem, 2.3rem);
  margin-top: 0;
}

h3 {
  font-size: 1.3rem;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--teal-dark);
}

/* Visible focus everywhere — same weight as hover, never removed */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--navy-band);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 4rem;
}

.section--tint {
  background: var(--tint);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-band) 58%, var(--teal-light-stop) 135%);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy a {
  color: var(--footer-link);
}

.section--navy a:hover {
  color: var(--white);
}

.lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 62ch;
}

.section--navy .lede {
  color: var(--footer-link);
}

/* Eyebrow label above headings */
.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section--navy .eyebrow,
.hero .eyebrow {
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-band) 70%);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}

.brand {
  text-decoration: none;
  color: var(--white);
  line-height: 1.15;
}

.brand:hover {
  color: var(--white);
}

.brand-name {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.main-nav a {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.main-nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--navy);
}

.main-nav a[aria-current="page"]:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- AODA deadline banner ---------- */
.deadline-banner {
  background: var(--gold);
  color: var(--navy);
  border-bottom: 3px solid var(--navy-band);
}

.deadline-banner .container {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.deadline-banner p {
  margin: 0;
  max-width: 58ch;
  font-size: 1.02rem;
}

.deadline-banner strong {
  font-weight: 800;
}

.deadline-banner a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  white-space: nowrap;
}

.deadline-banner a:hover {
  color: var(--navy);
  text-decoration-thickness: 0.16em;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(rgba(255, 255, 255, 0.13) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-band) 46%, var(--teal-light-stop) 115%);
  color: var(--white);
  padding-block: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5em;
}

.hero .lede {
  color: var(--footer-link);
  font-size: 1.3rem;
}

.hero p {
  color: #e7f0f5;
}

.portrait-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow-lift);
  border-top: 6px solid var(--gold);
  transform: rotate(1.2deg);
}

.portrait-card img {
  border-radius: 9px;
  width: 100%;
}

.portrait-card figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.7rem 0.25rem 0.2rem;
  text-align: center;
}

figure.portrait-card {
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
  box-shadow: 0 6px 18px rgba(11, 90, 107, 0.28);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: #d99e00;
  border-color: #d99e00;
  color: var(--navy);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ---------- Credibility strip ---------- */
.cred-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.25rem;
}

.cred-strip li {
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-left: 6px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  font-size: 1rem;
}

.cred-strip strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 0.15rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.card-grid p,
.card-grid ul {
  max-width: none;
}

.card {
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-top: 6px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.card--gold {
  border-top-color: var(--gold);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card .chip {
  align-self: flex-start;
  background: var(--tint);
  color: var(--teal-dark);
  border: 1px solid var(--tint-border);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.35rem 0 0.75rem;
}

.price .per {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.card ul {
  padding-left: 1.2rem;
  margin: 0.25rem 0 0;
}

.card li {
  margin-bottom: 0.35rem;
}

.card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.25rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 1.5rem;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  position: relative;
}

.steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* On navy sections the step cards stay white for readability */
.section--navy .steps li {
  color: var(--navy);
}

.section--navy .steps h3 {
  color: var(--navy);
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0 0 0 1.4rem;
  max-width: 60ch;
  border-left: 3px solid var(--tint-border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.9rem 1.6rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -2.24rem;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy-band);
}

.timeline .when {
  display: block;
  font-weight: 800;
  color: var(--teal);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.timeline .what {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
}

.timeline p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

/* ---------- Award / recognition cards ---------- */
.award {
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-left: 8px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.award h3 {
  font-size: 1.45rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.25rem;
}

.faq-item h2,
.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(rgba(255, 255, 255, 0.10) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(120deg, var(--teal-dark), var(--teal) 60%, var(--teal-light-stop));
  color: var(--white);
  text-align: left;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: #e7f0f5;
  font-size: 1.15rem;
}

/* ---------- Article ---------- */
.article-meta {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.divider {
  border: none;
  border-top: 3px solid var(--gold);
  width: 4.5rem;
  margin: 0 0 1.75rem;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.field .optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 2px solid #7d97a8;
  border-radius: 9px;
  padding: 0.7rem 0.9rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--tint-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list .label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-band) 70%);
  color: var(--white);
  border-top: 4px solid var(--gold);
  padding-block: 3.25rem 2.25rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.25rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.site-footer p {
  color: #d9e6ee;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

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

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer-tag {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.95rem;
  color: #d9e6ee;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 45rem) {
  .section {
    padding-block: 2.75rem;
  }

  .hero {
    padding-block: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portrait-card {
    transform: none;
    max-width: 22rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    margin-left: 0;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .main-nav a {
    display: block;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.5rem;
    text-align: center;
  }

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

  .deadline-banner .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .card:hover {
    transform: none;
  }
}

/* ---------- Photos ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.photo-card {
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  margin: 0;
}

.photo-card img {
  border-radius: 9px;
  width: 100%;
  height: auto;
  display: block;
}

.photo-card figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.7rem 0.25rem 0.2rem;
  text-align: center;
}

.photo-inline {
  max-width: 32rem;
  margin: 2rem auto;
}

@media (max-width: 45rem) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}
