/* ========================================
   SHARED HEADER & FOOTER — oxone.ca
   Loaded by components.js on all pages
   ======================================== */

/* HEADER */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    background: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    z-index: 99999;
    display: flex;
    align-items: center;
    padding: 0 5%;
    transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px -4px rgba(0,0,0,0.06);
    background: rgba(250, 250, 249, 0.98);
    border-bottom-color: transparent;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.brand-logo {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 24px;
    color: #1C1917;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
    text-decoration: none;
}
.brand-logo:hover { transform: scale(1.02); }
.brand-logo .dot {
    color: #EA580C;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-logo:hover .dot { transform: scale(1.3); }
.brand-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #78716C;
    letter-spacing: 0.5px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #D6D3D1;
    text-transform: uppercase;
}
@media (max-width: 520px) {
    .brand-tagline { display: none; }
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-item {
    color: #78716C;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}
.nav-item:hover { color: #1C1917; }
.nav-item.active { color: #1C1917; font-weight: 700; }
.nav-rescue { color: #D97706; font-weight: 600; }
.nav-rescue:hover { color: #92400E; }

/* Dictate — our own free Mac app. Carries its real app icon so it reads as a
   product, not another nav link. */
.nav-app {
    display: inline-flex; align-items: center; gap: 8px;
    color: #57534E; font-size: 15px; font-weight: 500;
    text-decoration: none; transition: color .2s;
}
.nav-app img { width: 21px; height: 21px; border-radius: 5px; display: block; }
.nav-app:hover { color: #1C1917; }
.nav-app .tagfree {
    font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: #EA580C; background: #FDF1E8; border: 1px solid #FBD7B8;
    padding: 2px 7px; border-radius: 50px;
}

/* Footer: same app, given a little card so the icon has somewhere to sit. */
.footer-app {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
    padding: 11px 16px 11px 12px; border-radius: 14px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    text-decoration: none; transition: background .2s, border-color .2s;
}
.footer-app + .footer-app { margin-left: 10px; }
.footer-app:hover { background: rgba(234,88,12,.12); border-color: rgba(234,88,12,.4); }
.footer-app img { width: 38px; height: 38px; border-radius: 9px; display: block; flex-shrink: 0; }
.footer-app .fa-n { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25; }
.footer-app .fa-d { color: #A8A29E; font-size: 12.5px; line-height: 1.35; }
.btn-header {
    padding: 10px 24px;
    background: #1C1917;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-header:hover { background: #EA580C; }

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1C1917;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .site-header { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: rgba(250, 250, 249, 0.98);
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .mobile-toggle { display: flex; }
}

/* FOOTER */
.footer-wrapper {
    background: linear-gradient(180deg, #1C1917 0%, #0F0D0C 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.footer-wrapper::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(234, 88, 12, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.footer-cta {
    text-align: center;
    padding: 100px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}
.footer-cta-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-wrap: balance;
}
.footer-cta-sub {
    color: #A8A29E;
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-wrap: pretty;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1C1917;
    padding: 20px 44px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px -4px rgba(255,255,255,0.15);
    text-decoration: none;
}
.btn-primary::after {
    content: '\2192';
    transition: transform 0.25s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #EA580C, #F97316);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px -4px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover::after { transform: translateX(4px); }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px 5%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-heading {
    color: #A8A29E;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-link { color: #D6D3D1; transition: color 0.2s; font-size: 15px; text-decoration: none; }
.footer-link:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
    text-align: center;
    color: #57534E;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-cta { padding: 60px 20px; }
    .footer-cols { padding: 40px 20px; gap: 32px; }
}
