/* =========================================================
   MAMBODLA PROFESSIONAL ACCOUNTANTS
   PRE-LAUNCH ACCESSIBILITY UTILITIES
   ---------------------------------------------------------
   This file intentionally sits after style.css.
   It adds launch-only utilities without reopening the locked
   visual system.
========================================================= */

:root {
  --color-gold-text: #8f6f39;
}

/* =========================================================
   SKIP LINK
========================================================= */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5000;
  padding: 0.7rem 0.95rem;
  border-radius: 0.3rem;
  color: var(--color-white);
  background: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* =========================================================
   ACCESSIBLE GOLD FOR SMALL TEXT ON LIGHT SURFACES
   Decorative gold and gold on navy remain unchanged.
========================================================= */

.about-eyebrow,
.about-story-eyebrow,
.about-director-eyebrow,
.about-brand-book-eyebrow,
.services-eyebrow,
.services-detail-eyebrow,
.service-detail-label,
.insights-hero-eyebrow,
.featured-insight-eyebrow,
.featured-insight-category,
.latest-insights-eyebrow,
.latest-insight-category,
.insights-tax-resources-eyebrow,
.insights-tax-resource-type,
.contact-hero-eyebrow,
.contact-details-eyebrow,
.legal-eyebrow,
.legal-section-kicker,
.error-eyebrow,
.error-visual-kicker,
.insight-article-category,
.insight-article-section-number,
.insight-article-takeaway-label,
.insight-article-footer-label,
.latest-insight-detail-eyebrow,
.latest-insights-empty-eyebrow,
.tax-calculator-back,
.tax-calculator-eyebrow,
.tax-calculator-period-label,
.tax-calculator-panel-eyebrow,
.tax-calculator-result-eyebrow,
.tax-calculator-notes-eyebrow,
.tax-calculator-breakdown-heading span,
.tax-calculator-advice > p {
  color: var(--color-gold-text);
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* =========================================================
   404 PAGE — LARGE DESKTOP AUTHORITY PASS
   1920 / 2200 / 2560
========================================================= */

@media (min-width: 1536px) {
  .error-page-body {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }

  /* Match the locked large-desktop header language */
  .error-page-body .header-inner {
    min-height: clamp(112px, 6.4vw, 142px);
  }

  .error-page-body .brand-logo {
    width: clamp(100px, 5.4vw, 136px);
  }

  .error-page-body .desktop-nav {
    gap: clamp(2.3rem, 2.75vw, 3.8rem);
  }

  .error-page-body .nav-link {
    font-size: clamp(1rem, 0.82vw, 1.16rem);
  }

  /* Let the 404 composition occupy the remaining viewport */
  .error-main {
    flex: 1;
    width: 100%;
    min-height: 0;

    display: grid;
    align-items: center;

    padding: clamp(3.5rem, 4.5vh, 5.5rem) 0;
  }

  .error-shell {
    width: min(calc(100% - (var(--page-padding) * 2)), 1180px);
  }

  .error-code {
    margin-bottom: clamp(0.8rem, 0.7vw, 1rem);

    font-size: clamp(0.78rem, 0.62vw, 0.9rem);
  }

  .error-title {
    max-width: 1080px;

    font-size: clamp(5.4rem, 4.5vw, 7.2rem);
    line-height: 0.96;
  }

  .error-copy {
    max-width: 760px;

    margin-top: clamp(1.4rem, 1.3vw, 1.8rem);

    font-size: clamp(1rem, 0.8vw, 1.14rem);
    line-height: 1.75;
  }

  .error-actions {
    gap: clamp(0.8rem, 0.8vw, 1rem);

    margin-top: clamp(2rem, 1.8vw, 2.5rem);
  }

  .error-actions a {
    min-height: clamp(50px, 2.6vw, 56px);

    padding: clamp(0.8rem, 0.75vw, 0.95rem) clamp(1.1rem, 1vw, 1.4rem);

    font-size: clamp(0.84rem, 0.66vw, 0.96rem);
  }

  /* Footer gets the same authority as the locked pages */
  .error-page-body .footer-inner {
    gap: clamp(1.9rem, 2.6vw, 3.6rem);

    padding-top: clamp(1.5rem, 1.35vw, 1.9rem);
    padding-bottom: clamp(1.8rem, 1.55vw, 2.2rem);
  }

  .error-page-body .footer-copyright p,
  .error-page-body .footer-legal a {
    font-size: clamp(0.88rem, 0.72vw, 1rem);
  }

  .error-page-body .footer-social a {
    width: clamp(34px, 1.8vw, 40px);
    height: clamp(34px, 1.8vw, 40px);
  }

  .error-page-body .footer-social img {
    width: clamp(20px, 1.05vw, 23px);
    height: clamp(20px, 1.05vw, 23px);
  }
}

@media (min-width: 2300px) {
  .error-shell {
    width: min(calc(100% - (var(--page-padding) * 2)), 1280px);
  }

  .error-title {
    max-width: 1160px;
    font-size: 7.2rem;
  }

  .error-copy {
    max-width: 800px;
    font-size: 1.16rem;
  }

  .error-actions a {
    min-height: 58px;
    font-size: 0.98rem;
  }
}

/* =========================================================
   404 — HARD VIEWPORT ANCHOR
   Single-screen 404 only.
========================================================= */

@media (min-width: 1536px) {
  .error-page-body {
    --error-header-height: clamp(112px, 6.4vw, 142px);
    --error-footer-height: clamp(78px, 4.2vw, 94px);

    position: relative;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;

    overflow: hidden;
  }

  /* HEADER */
  .error-page-body .site-header {
    height: var(--error-header-height);
  }

  .error-page-body .header-inner {
    height: 100%;
    min-height: 0;
  }

  /* MAIN — exact space between header and footer */
  .error-main {
    width: 100%;
    height: calc(
      100dvh - var(--error-header-height) - var(--error-footer-height)
    );

    min-height: 0;

    display: grid;
    align-items: center;

    padding: clamp(2rem, 3vh, 3.25rem) 0;
  }

  /* FOOTER — physically attached to viewport bottom */
  .error-page-body .site-footer {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: var(--error-footer-height);

    margin: 0;
  }

  .error-page-body .footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;

    width: 100%;
    height: 100%;

    gap: clamp(1.6rem, 2vw, 3rem);

    padding-top: 0;
    padding-bottom: 0;
  }

  .error-page-body .footer-copyright,
  .error-page-body .footer-legal,
  .error-page-body .footer-social {
    flex: 0 0 auto;
  }

  .error-page-body .footer-copyright p,
  .error-page-body .footer-legal a {
    white-space: nowrap;
  }

  .error-page-body .footer-legal {
    flex-wrap: nowrap;
  }
}
