/* =========================================
   fritts — Shared Mobile Header Styles
   Used by all mobile pages (home, product, company)
   ========================================= */

/* ---------- Root font-size (unified across all mobile pages) ---------- */
html {
    font-size: calc(16px * 100vw / 390);
}

/* ---------- Header base ---------- */
header {
    position: fixed !important;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em 5em !important;
    z-index: 100;
    background-color: var(--color-brand-dark-teal) !important;
    transition: none !important;
}

/* Hide desktop nav + CTA */
.nav-links,
header > .btn-primary,
header > .header-right {
    display: none !important;
}

/* Mobile: trim left padding inherited from desktop main.css */
header > .header-left {
    padding-left: 0 !important;
    width: auto !important;
    justify-content: flex-start !important;
}

/* ---------- Header actions (contact + hamburger group) ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2em;
}

/* ---------- Header contact (legacy text strip — hidden on mobile, replaced by .contact-fab) ---------- */
.header-contact,
header > .header-left .header-contact-item,
header > .header-right .header-contact-item {
    display: none !important;
}

/* ---------- Contact circle button (mobile only, fixed bottom-right) ---------- */
.contact-fab {
    display: block !important;
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: auto;
    z-index: 1200;
    /* Anchor the em base to the viewport (same base as the shared footer)
       so the card renders identically on every page — product/pulse set
       body { font-size: 4em } and must not scale the fab. */
    font-size: 0.973vw;
}

.contact-fab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-brand-red);
    color: var(--color-brand-white);
    border: none;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.contact-fab-btn:hover {
    transform: scale(1.05);
}

.contact-fab-btn svg {
    width: 24px;
    height: 24px;
}

.contact-fab-card {
    position: absolute;
    bottom: calc(100% + 1em);
    right: 0;
    left: auto;
    background: var(--color-brand-white);
    color: var(--color-brand-navy);
    border-radius: 1.4em;
    padding: 1.6em 1.8em;
    min-width: 20em;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    z-index: 1201;
}

.contact-fab-card[hidden] {
    display: none;
}

.contact-fab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9em;
    color: var(--color-brand-navy);
    text-decoration: none;
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: 3.5em;
}

.contact-fab-link svg {
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
    color: var(--color-brand-red);
}

.contact-fab-link:hover {
    opacity: 0.75;
}

/* ---------- Logo ---------- */
.logo img {
    width: 100px !important;
    height: 25px !important;
    object-fit: contain;
    filter: none !important;
}

/* ---------- Hamburger Icon ---------- */
.hamburger {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 33px !important;
    height: 33px !important;
    min-width: 33px !important;
    flex: 0 0 33px !important;
    z-index: 1100;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}

.hamburger .hamburger-line {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: var(--color-brand-white) !important;
    border-radius: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* X state when menu is open */
.hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
