/* common/style.css – GLOBAL STYLES FOR ALL PAGES */

:root {
    --bg: #ffffff;
    --text: #0b0b0b;
    --muted: #666666;
    --accent: #EFBF04; /* Brand Yellow */
    --border: #e5e5e5;
    --nav-h: 96px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth !important;
    overflow-y: auto;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    opacity: 1;
    transition: opacity .5s ease;
    overflow-y: auto;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* Scrollbar */
html::-webkit-scrollbar { width: 12px; background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(0,0,0,.3); border-radius: 6px; }
html::-webkit-scrollbar-track { background: transparent; }

/* Intro Header */
#intro {
    position: fixed; top: 0; left: 0; width: 100%;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    z-index: 1000; height: 100vh; overflow: hidden; pointer-events: none;
    transition: background .25s ease; transform: translateZ(0);
}

#logo {
    font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: .2px;
    color: var(--text); display: flex; align-items: center;
    transform-origin: center; will-change: transform; backface-visibility: hidden;
}

.dot-color {
    color: var(--accent) !important;
}

/* Fixed Nav Sides */
.nav-left.fixed, .nav-right.fixed {
    position: fixed; top: 0; z-index: 1001; height: var(--nav-h);
    display: flex; align-items: center; opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.nav-left.fixed { left: 20px; }
.nav-right.fixed { right: 20px; }

#hamburger {
    width: 44px; height: 44px; background: transparent; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 24px; color: var(--text);
    transition: background .2s ease;
}

#hamburger .fa-times { display: none; }
#hamburger.open .fa-bars { display: none; }
#hamburger.open .fa-times { display: block; }

/* Fullscreen Menu */
#menuFull {
    position: fixed; inset: 0; background: var(--bg); z-index: 850;
    display: none; flex-direction: column; justify-content: center;
    align-items: flex-start; padding: 80px 12vw; gap: 28px; overflow: auto;
}
.menu-list { display: flex; flex-direction: column; gap: 24px; }
.menu-list a {
    font-size: 44px; color: var(--muted); text-decoration: none;
    font-weight: 600; transition: color .3s ease, transform .2s ease;
}
.menu-list a:hover { color: var(--text); transform: translateX(5px); }
.menu-footer {
    position: absolute; left: 12vw; bottom: 48px;
    font-size: 16px; color: var(--muted);
}

/* ===== ARLO-STYLE FOOTER (REVISED) ===== */
.arlo-footer-wrapper {
    width: 100%;
    padding: 60px 20px 20px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.arlo-container {
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid var(--border);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.footer-top-left {
    flex: 1;
    padding: 60px 40px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-top-right {
    flex: 1.5;
    padding: 60px 40px;
    display: flex;
    align-items: center;
}

.footer-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

/* Avatar images (if used) */
.footer-avatars img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -12px;
    object-fit: cover;
}

.footer-avatars img:first-child {
    margin-left: 0;
}

/* Gray circle avatars (used site-wide) */
.footer-avatars .gray-circle {
    width: 45px;
    height: 45px;
    background-color: #d1d5db;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.footer-avatars .gray-circle:first-child {
    margin-left: 0;
}

.footer-top-left h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    line-height: 1.2;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.footer-top-left h2 i {
    color: var(--accent);
    font-style: italic;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    width: 100%;
}

.footer-links-grid a {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
}

.footer-links-grid a:hover {
    color: var(--accent);
}

.link-arrow {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Final Fixed Bottom Section */
.footer-bottom {
    position: relative;
    padding: 80px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 400px;
    overflow: hidden;
}

.footer-brand-huge {
    font-size: clamp(60px, 18vw, 280px);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: #000;
    margin: 0 0 20px -5px;
    user-select: none;
    z-index: 1;
}

.footer-socials {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 12px;
    z-index: 10; /* ensure above other elements */
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s ease;
    cursor: pointer; /* ensure clickable */
    pointer-events: auto;
}

/* Hover: golden background, golden border, white icon */
.footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.footer-copyright {
    align-self: flex-end;
    text-align: right;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
    line-height: 1.6;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .footer-top {
        flex-direction: column;
    }
    .footer-top-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 40px;
    }
    .footer-top-right {
        padding: 40px;
    }
    .footer-bottom {
        min-height: 300px;
        padding: 60px 20px 40px 20px;
    }
}

@media (max-width: 600px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        align-items: center;
        text-align: center;
    }
    .footer-socials {
        top: 30px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-brand-huge {
        margin: 0 0 30px 0;
        text-align: center;
    }
    .footer-copyright {
        align-self: center;
        text-align: center;
        margin-top: 20px;
    }
}