/*
Theme Name: Divi MOD Child
Description: Divi child theme for Michael's of Denver Catering — overrides + brand tokens.
Author: Daniel
Template: Divi
Version: 1.1.1
Text Domain: divi-mod-child
*/

/* (2026-06 code review) The :root token block was REMOVED: it silently re-declared
   --mod-ink / --mod-line with values that conflicted with the design system in
   mod-modernize.php (now the single token source), and its five legacy tokens had
   no remaining consumers. The 2px teal focus-visible override was also removed —
   it beat the design system's 3px gold ring via !important while failing the 3:1
   non-text contrast minimum on cream. mod-modernize owns focus styles now. */

/* Tighten the parallax-fixed hero on mobile so it doesn't jank */
@media (max-width: 980px) {
  .et_pb_section.et_pb_section_parallax {
    background-attachment: scroll !important;
  }
}

/* Skip-link from mu-plugin: hidden until focused */
.mod-skip-link {
  position: absolute;
  left: -10000px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
  background: var(--mod-ink); color: #fff;
  padding: 12px 16px; z-index: 100000;
  text-decoration: none;
  font-weight: 700;
}
.mod-skip-link:focus {
  left: 0; width: auto; height: auto; overflow: visible;
}

/* Header proportions: Divi capped the square legacy mark at 54% of an 80px bar,
   making it hard to recognize on wide monitors and phones. */
#main-header .container {
  width: min(90%, 1280px);
  max-width: 1280px;
}
#main-header #logo {
  max-height: 78% !important;
  width: auto !important;
}
@media (max-width: 980px) {
  #main-header #logo { max-height: 70px !important; }
}
