/**
 * G2 Accounting - Homepage responsive / accessibility enhancements
 *
 * Slimmed from ~1300 lines: removed two large commented-out blocks (with
 * CSS comment-nesting bugs) and all the legacy WordPress-era rules
 * (.serv_sec / .clients_sec / .main_foot / .navbar / .nextsecarow / cloud
 * classes) that the redesign replaced. Kept only the rules that still apply
 * to the current homepage plus the generic accessibility helpers.
 *
 * Loaded on the homepage only.
 *
 * @version 3.0.0
 */

/* Custom properties used by the rules below.
   NB: this stylesheet is now async-loaded on the homepage (media="print"
   onload swap), so it must NOT carry any above-the-fold critical layout.
   Accordingly the following were moved to g2-main.css (render-blocking):
     - the --spacing-sm / --spacing-md / --transition-normal tokens
     - the `html { scroll-behavior:smooth; ... }` smoothness block (now global)
     - the homepage fluid `.container` padding (now `.home .container`)
   What remains here is non-critical: hero wizard spacing, touch-target sizing,
   and the accessibility helpers (skip link, focus ring) — none of which affect
   first paint above the fold. */
:root {
  --color-primary: #FFF73A;
  --color-dark: #181818;
  --transition-fast: 0.2s ease-in-out;
}

/* (The hero booking-wizard / #opening spacing moved to g2-main.css — it is
   above the fold, so it must stay render-blocking now that THIS file is
   async-loaded.) */

/* Touch-friendly target sizes on mobile */
@media (max-width: 767px) {
  a,
  button,
  .clickable {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ----- Accessibility ----- */

*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Skip-to-content link (injected by responsive-enhancements.js) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-dark);
  color: var(--color-primary);
  padding: 1rem;
  text-decoration: none;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
}

/* ----- 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;
  }
}
