/* ============================================================
   Axorum public website — layout glue.
   The page markup carries the design canvas's inline styles
   verbatim; this file supplies the pseudo-states the canvas
   expressed with style-hover, plus the responsive behaviour a
   real site needs (the canvas was authored desktop-only).
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* Skip link (accessibility) */
.ax-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--prussian-700); color: #FBFAF5;
  font-family: var(--font-mono); font-size: 13px;
  padding: 10px 16px; border-radius: 0 0 6px 0; text-decoration: none;
}
.ax-skip:focus { left: 0; }

/* ---- Hover states (were style-hover in the design canvas) ---- */
.nav-link { transition: color var(--duration-fast) var(--ease-standard); }
.nav-link:hover { color: var(--text-accent); }

.announce-link:hover { color: #FFFFFF !important; }

.foot-link { transition: color var(--duration-fast) var(--ease-standard); }
.foot-link:hover { color: var(--mach-bone); }

.lift-card { transition: box-shadow var(--duration-base) var(--ease-standard),
                         transform var(--duration-base) var(--ease-standard); }
.lift-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.cta-ghost { transition: background var(--duration-fast) var(--ease-standard),
                         border-color var(--duration-fast) var(--ease-standard); }
.cta-ghost:hover { background: rgba(251,250,245,0.10); border-color: rgba(251,250,245,0.7); }

.card-contact { transition: color var(--duration-fast) var(--ease-standard); }
.card-contact:hover { color: var(--text-link-hover); }

/* Mobile nav toggle — hidden on desktop */
.nav-toggle { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .ax-wrap { padding-left: 24px !important; padding-right: 24px !important; }

  /* Hero → single column */
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hero-title { font-size: 52px !important; }

  /* The gap → 3 across */
  .gap-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Verdict outcomes → wrap to a flexible grid */
  .verdict-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Explore cards → stack */
  .explore-grid { grid-template-columns: 1fr !important; }

  /* Two laws → stack */
  .laws-grid { grid-template-columns: 1fr !important; }
  .laws-grid > div + div { border-left: none !important; border-top: 1px solid var(--book-rule) !important; }

  /* Footer → 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}

@media (max-width: 720px) {
  /* Collapse the center nav links and secondary CTA; keep the primary CTA + toggle */
  .nav-links { display: none !important; }
  .nav-signin { display: none !important; }
  .nav-toggle { display: inline-flex !important; }

  .section-title { font-size: 34px !important; }
  .hero-title { font-size: 44px !important; }
  .cta-title { font-size: 36px !important; }

  /* The shift → stack */
  .shift-grid { grid-template-columns: 1fr !important; }
  .shift-grid > div + div { border-left: none !important; border-top: 1px solid var(--book-hair) !important; }

  /* The gap → 2 across */
  .gap-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Verdict outcomes → single column */
  .verdict-grid { grid-template-columns: 1fr !important; }

  /* Footer → single column */
  .footer-grid { grid-template-columns: 1fr !important; }

  .hero-stats { flex-wrap: wrap; gap: 14px !important; }
}

@media (max-width: 460px) {
  .gap-grid { grid-template-columns: 1fr !important; }
}

/* ---- Mobile nav sheet (toggled by checkbox, no JS) ---- */
#nav-open { position: absolute; opacity: 0; pointer-events: none; }
.nav-sheet {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--book-hair);
  background: var(--book-sheet);
}
.nav-sheet a {
  font-size: 15px; color: var(--text-body); text-decoration: none;
  padding: 11px 0; border-bottom: 1px solid var(--book-hair);
}
.nav-sheet a:last-child { border-bottom: none; }
#nav-open:checked ~ .nav-sheet { display: flex; }
@media (min-width: 721px) { .nav-sheet { display: none !important; } }
