/* ============================================================
   HOMEi PM site stylesheet (redesign)
   Tokens and rules from STYLE_GUIDE.md. Page sections carry the
   approved designs' inline styles verbatim; this file holds the
   shared chrome: base, responsive behaviour, mobile menu, motion,
   and the consent banner.
   ============================================================ */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
    background: #101B2D;
}

html { scroll-behavior: smooth; }

a { text-decoration: none; }

img { max-width: 100%; }

input, select, textarea, button { font-family: 'Public Sans', sans-serif; }

h1, h2, h3 { text-wrap: pretty; }

.hidden { display: none !important; }

/* Skip link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 200;
    background: #E8730C;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.skip-to-content:focus {
    left: 16px;
    top: 16px;
}

:focus-visible {
    outline: 2px solid #E8730C;
    outline-offset: 2px;
}

/* ===== Marquee ===== */
@keyframes homei-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hx-marquee-track { animation: none !important; }
}

/* ===== Mobile menu ===== */
.hx-mobile-btn {
    display: none;
    background: none;
    border: none;
    color: #B9C4D4;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
}

.hx-mobile-menu {
    display: none;
    background: #0B1523;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 2px;
}

.hx-mobile-menu.open { display: flex; }

.hx-mobile-menu a {
    color: #B9C4D4;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 8px;
    border-radius: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.hx-mobile-menu a:hover { color: #fff; }

.hx-mobile-menu .hx-mobile-cta {
    background: #E8730C;
    color: #fff;
    font-weight: 600;
    justify-content: center;
    border-radius: 6px;
    margin-top: 10px;
}

/* ===== Responsive (per handoff: collapse at 900px) ===== */
@media (max-width: 900px) {
    .hx-grid { grid-template-columns: 1fr !important; }
    .hx-grid > * { min-width: 0; }
    .hx-grid select, .hx-grid input, .hx-grid textarea { max-width: 100%; }
    .hx-stats { grid-template-columns: 1fr 1fr !important; }
    .hx-stats > div { padding: 22px 20px !important; }
    .hx-nav { display: none !important; }
    .hx-nav-cta { display: none !important; }
    .hx-mobile-btn { display: inline-flex; align-items: center; justify-content: center; }
    .hx-section { padding-left: 20px !important; padding-right: 20px !important; }
    .hx-hero h1 { font-size: 36px !important; }
    .hx-h2 { font-size: 28px !important; }
    .hx-sticky { position: static !important; }
    .hx-toc { position: static !important; }
    .hx-flow { grid-template-columns: 1fr !important; }
}

/* ===== Cookie consent banner (restyled to the new tokens; same
       ids/classes scripts/cookie-consent.js expects) ===== */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    background: #0B1523;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 16px 20px;
}

.cookie-consent-inner {
    max-width: 1184px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-consent p {
    margin: 0;
    font-size: 13.5px;
    color: #B9C4D4;
    line-height: 1.55;
}

.cookie-consent p a {
    color: #F5A356;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-accept {
    background: #E8730C;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    min-height: 44px;
    cursor: pointer;
}

.cookie-reject-link {
    background: none;
    border: none;
    color: #8FA0B8;
    font-size: 13.5px;
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
    padding: 8px;
}
