/**
 * Ekonbee UX & Accessibility fixes — Phase 1 of the 30/60/90-Day UX Plan.
 * Loaded after main.css on every page. Uses the brand accent (#ee9002).
 */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #1d1918;
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Visible keyboard focus ---------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-color, #ee9002);
  outline-offset: 2px;
}

/* ---------- Hero: h1 + primary/secondary CTAs ---------- */
.hero .welcome h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: var(--heading-color, #ffffff);
}
@media (max-width: 768px) {
  .hero .welcome h1 { font-size: 30px; }
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-cta-primary {
  background: var(--accent-color, #ee9002);
  color: #1d1918;
  border: 2px solid var(--accent-color, #ee9002);
}
.btn-cta-primary:hover,
.btn-cta-primary:focus-visible {
  background: #c77800;
  border-color: #c77800;
  color: #ffffff;
}
.btn-cta-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}
.btn-cta-secondary:hover,
.btn-cta-secondary:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.hero-checks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hero-checks li {
  position: relative;
  padding-left: 26px;
}
.hero-checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent-color, #ee9002);
}

/* ---------- Breadcrumbs ---------- */
.ux-breadcrumbs {
  background: color-mix(in srgb, #313030, transparent 96%);
  border-bottom: 1px solid color-mix(in srgb, #313030, transparent 90%);
  padding: 12px 0;
}
.ux-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.ux-breadcrumbs li + li::before {
  content: "/";
  padding-right: 8px;
  color: color-mix(in srgb, #313030, transparent 55%);
}
.ux-breadcrumbs a {
  color: #9c5f00; /* darkened accent: ≥4.5:1 on the light bar */
  text-decoration: none;
}
.ux-breadcrumbs a:hover { text-decoration: underline; }
.ux-breadcrumbs [aria-current="page"] {
  color: #313030;
  font-weight: 600;
}

/* ---------- Contextual CTA band ---------- */
.cta-band {
  padding: 64px 0;
  background-color: #1d1918;
  color: #ffffff;
}
.cta-band h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}
.cta-band p { margin-bottom: 0; opacity: 0.92; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Touch targets ---------- */
@media (max-width: 1199px) {
  .navmenu a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .mobile-nav-toggle {
    padding: 10px;
    margin: -10px;
  }
}
.scroll-top { width: 46px; height: 46px; }
.faq-item h3 { cursor: pointer; padding: 4px 0; }
.faq-item .faq-toggle { padding: 8px; margin: -8px; cursor: pointer; }

/* ---------- Readability ---------- */
.section-title p {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}
.lead-strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color, #473d3a);
  max-width: 60rem;
  margin: 8px auto 12px;
}
.faq-content a {
  color: #9c5f00;
  font-weight: 600;
}
.faq-content a:hover { color: #7a4a00; }

/* ---------- Forms ---------- */
.php-email-form .form-control { min-height: 48px; }
.php-email-form textarea.form-control { min-height: 140px; }
.php-email-form .form-control:focus {
  border-color: var(--accent-color, #ee9002);
  box-shadow: 0 0 0 3px color-mix(in srgb, #ee9002, transparent 75%);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
  .pulsating-play-btn::before,
  .pulsating-play-btn::after { animation: none !important; }
}

/* ---------- Phase 2: key takeaways ---------- */
.ux-takeaways {
  background: color-mix(in srgb, #ee9002, transparent 93%);
  border: 1px solid color-mix(in srgb, #ee9002, transparent 70%);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 8px;
}
.ux-takeaways h2 {
  font-size: 17px;
  font-weight: 700;
  color: #473d3a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ux-takeaways h2 i { color: #9c5f00; }
.ux-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 992px) {
  .ux-takeaways ul { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.ux-takeaways li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  margin: 0;
}
.ux-takeaways li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #9c5f00;
  font-weight: 700;
}

/* ---------- Phase 2: architecture diagram ---------- */
.ux-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.ux-lane {
  background: #ffffff;
  border: 1px solid #e5e0dc;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ux-lane h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b625d;
  margin: 0 0 4px;
}
.ux-node {
  display: block;
  background: #faf7f4;
  border: 1px solid #eee6df;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #313030;
}
.ux-lane--core {
  background: #364757;
  border-color: #364757;
}
.ux-lane--core h3 { color: #f5c77d; }
.ux-lane--core .ux-node {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.ux-flow {
  display: flex;
  align-items: center;
  font-size: 26px;
  color: #9c5f00;
}
@media (max-width: 991px) {
  .ux-diagram { grid-template-columns: 1fr; }
  .ux-flow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- Phase 2: related services ---------- */
.ux-related-grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .ux-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.ux-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e0dc;
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: #313030;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ux-related-card:hover,
.ux-related-card:focus-visible {
  border-color: #ee9002;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.ux-related-card h3 { font-size: 18px; font-weight: 700; color: #473d3a; margin: 0; }
.ux-related-card p { font-size: 14px; margin: 0; color: #5a524e; }
.ux-related-more {
  margin-top: auto;
  padding-top: 6px;
  color: #9c5f00;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Phase 2: inline form validation ---------- */
.ux-field-error {
  color: #b42318;
  font-size: 14px;
  margin-top: 6px;
}
.ux-field-error:empty { display: none; }
.php-email-form .ux-invalid {
  border-color: #b42318;
}

/* ---------- Phase 3: readiness quiz ---------- */
.ux-quiz { display: grid; gap: 22px; }
.ux-quiz-q {
  border: 1px solid #e5e0dc;
  border-radius: 10px;
  padding: 20px 24px;
  background: #ffffff;
  margin: 0;
}
.ux-quiz-q legend {
  font-size: 17px;
  font-weight: 700;
  color: #473d3a;
  padding: 0 6px;
}
.ux-quiz-q label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  margin: 0;
}
.ux-quiz-q label:hover { background: #faf7f4; }
.ux-quiz-q input[type="radio"] { accent-color: #ee9002; width: 18px; height: 18px; }
.ux-quiz-result {
  margin-top: 26px;
  border: 2px solid #ee9002;
  border-radius: 12px;
  background: color-mix(in srgb, #ee9002, transparent 94%);
  padding: 26px 28px;
}
.ux-quiz-result h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9c5f00;
  margin-bottom: 6px;
}
.ux-quiz-result h3 { font-size: 24px; font-weight: 700; color: #473d3a; }
.ux-quiz-result .hero-cta { margin-top: 16px; }
.btn-cta-quiz-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid #9c5f00;
  color: #9c5f00;
  font-weight: 700;
  text-decoration: none;
}
.btn-cta-quiz-secondary:hover { background: #9c5f00; color: #ffffff; }
.ux-quiz-alt { margin: 14px 0 0; font-size: 14px; }
.ux-quiz-alt a { color: #9c5f00; font-weight: 600; }

/* ---------- Phase 3: platform matrix ---------- */
.ux-matrix { background: #ffffff; margin-bottom: 10px; }
.ux-matrix th[scope="col"] {
  background: #364757;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}
.ux-matrix th[scope="row"] {
  font-weight: 700;
  color: #473d3a;
  white-space: nowrap;
}
.ux-matrix td, .ux-matrix th { padding: 14px 16px; font-size: 15px; vertical-align: top; }
.ux-matrix a { color: #9c5f00; font-weight: 600; text-decoration: none; }
.ux-matrix a:hover { text-decoration: underline; }
.ux-matrix-note { font-size: 15px; }
.ux-matrix-note a { color: #9c5f00; font-weight: 600; }

/* ---------- Phase 3: CTA band tertiary link ---------- */
.ux-band-link-wrap { margin: 18px 0 0; }
.ux-band-link {
  color: #f5c77d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ux-band-link:hover { color: #ffffff; }
