/*
 * Scoped CSS for Kameos navbar & footer on Odoo pages (blog, contact, etc.)
 * All rules are prefixed with .kameos-scope to avoid conflicts with Odoo CSS.
 * Critical link styles use !important to override Odoo's global a {} rules.
 */

/* ===== CSS VARIABLES (available inside scope) ===== */
.kameos-scope {
    --red: #9B1916;
    --red-dark: #7a1412;
    --red-light: rgba(155, 25, 22, 0.08);
    --dark: #0f0f1a;
    --gray-50: #f8f9fc;
    --gray-100: #f1f3f7;
    --gray-200: #e2e5ec;
    --gray-400: #636980;
    --gray-600: #4a5068;
    --gray-800: #1e2235;
    --white: #ffffff;
    --max-w: 1200px;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.kameos-scope *, .kameos-scope *::before, .kameos-scope *::after { box-sizing: border-box; }

/* Push Odoo page content below the fixed navbar */
#wrapwrap { padding-top: 72px; }

/* Reset all links & images inside scope */
.kameos-scope a {
    text-decoration: none !important;
    color: inherit !important;
    background-image: none !important;
    box-shadow: none !important;
}
.kameos-scope a:hover {
    text-decoration: none !important;
}
.kameos-scope img { max-width: 100%; height: auto; display: block; }
.kameos-scope ul { margin: 0; padding: 0; }
.kameos-scope .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.kameos-scope .navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s var(--transition);
}
.kameos-scope .navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.kameos-scope .navbar .container {
    display: flex; align-items: center; justify-content: space-between;
}
.kameos-scope .logo {
    font-size: 1.6rem; font-weight: 900; letter-spacing: -0.5px;
    color: var(--dark) !important;
    display: flex; align-items: center; gap: 2px;
}
.kameos-scope .logo img { height: 36px; width: auto; object-fit: contain; }
.kameos-scope .logo-icon { color: var(--red) !important; font-size: 1.8rem; line-height: 1; }
.kameos-scope .nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.kameos-scope .nav-links a {
    font-size: 0.9rem !important; font-weight: 500 !important; color: var(--gray-600) !important;
    position: relative; transition: color 0.3s;
    text-decoration: none !important;
    border-bottom: none !important;
}
.kameos-scope .nav-links a::after {
    content: '' !important; position: absolute; bottom: -4px; left: 0; width: 0;
    height: 2px; background: var(--red); transition: width 0.3s var(--transition);
    display: block !important;
}
.kameos-scope .nav-links a:hover { color: var(--dark) !important; }
.kameos-scope .nav-links a:hover::after { width: 100% !important; }
.kameos-scope .nav-phone {
    font-size: 0.85rem; font-weight: 500; color: var(--gray-600) !important;
    display: flex; align-items: center; gap: 6px;
}
.kameos-scope .nav-phone svg { width: 16px; height: 16px; }
.kameos-scope .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: var(--red) !important; color: white !important;
    font-weight: 600; font-size: 0.9rem;
    border: none !important; border-radius: 10px; cursor: pointer;
    transition: all 0.4s var(--transition);
    box-shadow: 0 4px 15px rgba(155, 25, 22, 0.3) !important;
    position: relative; overflow: hidden;
}
.kameos-scope .btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.kameos-scope .btn-primary:hover::before { left: 100%; }
.kameos-scope .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 25, 22, 0.4) !important;
    color: white !important;
}
/* ===== MOBILE NAV ===== */
.kameos-scope .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.kameos-scope .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: all 0.3s; border-radius: 2px; }

/* ===== FOOTER ===== */
.kameos-scope .footer { background: var(--white); color: var(--gray-600); padding: 64px 0 32px; border-top: 1px solid var(--gray-200); }
.kameos-scope .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.kameos-scope .footer-brand .logo { color: var(--dark) !important; margin-bottom: 16px; }
.kameos-scope .footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 300px; color: var(--gray-400); }
.kameos-scope .footer-heading { font-size: 0.85rem; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.kameos-scope .footer-links { list-style: none; margin: 0; padding: 0; }
.kameos-scope .footer-links li { margin-bottom: 10px; }
.kameos-scope .footer-links a {
    font-size: 0.85rem !important; color: var(--gray-400) !important;
    transition: color 0.3s; text-decoration: none !important; border-bottom: none !important;
}
.kameos-scope .footer-links a:hover { color: var(--red) !important; }
.kameos-scope .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.kameos-scope .footer-contact a {
    font-size: 0.85rem !important; display: flex; align-items: center; gap: 8px;
    color: var(--gray-400) !important; transition: color 0.3s;
    text-decoration: none !important; border-bottom: none !important;
}
.kameos-scope .footer-contact a:hover { color: var(--red) !important; }
.kameos-scope .footer-contact svg { width: 16px; height: 16px; }
.kameos-scope .footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .kameos-scope .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .kameos-scope .nav-links { display: none !important; }
    .kameos-scope .nav-phone { display: none !important; }
    .kameos-scope .nav-toggle { display: block !important; }
    .kameos-scope .nav-links.active {
        display: flex !important; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: white; padding: 24px; gap: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
    .kameos-scope .footer-grid { grid-template-columns: 1fr; }
    .kameos-scope .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
