/* common.css - Shared styles for header, footer, WhatsApp button, and base elements */

:root {
    --crimson: #b00017;
    --charcoal: #1b1f20;
    --white: #ffffff;
    --white-muted: rgba(255, 255, 255, 0.65);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glow-crimson: 0 0 12px rgba(176, 0, 23, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--charcoal);
    font-family: 'Cairo', sans-serif;
    color: var(--white);
    line-height: 1.5;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1b1f20;
}

::-webkit-scrollbar-thumb {
    background: var(--crimson);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d41a2f;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--crimson) #1b1f20;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--crimson);
    outline-offset: 2px;
}

a, button, .nav-link, .footer-col a {
    -webkit-tap-highlight-color: transparent;
}

input, textarea, button, a, div {
    -webkit-touch-callout: none;
}

/* ========== HEADER ========== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(27, 31, 32, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.site-header.scrolled {
    position: fixed;
    background: rgba(18, 21, 22, 0.96);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(176, 0, 23, 0.25);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12)) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    transition: filter 0.3s ease;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #fff 60%, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-right: 1px solid var(--border-subtle);
    padding-right: 0.85rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    gap: 2.75rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white-muted);
    transition: color 0.25s;
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--crimson);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--white);
    text-shadow: 0 0 8px rgba(176, 0, 23, 0.3);
}

.header-accent {
    display: flex;
    align-items: center;
}

.accent-indicator {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--crimson);
    box-shadow: var(--glow-crimson);
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

/* ========== BURGER MENU ========== */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 98;
}

.menu-overlay.active {
    display: block;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #0f1112;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--crimson), transparent);
    opacity: 0.3;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: start;
}

.footer-brand {
    text-align: right;
    max-width: 350px;
}

.footer-logo-icon {
    height: 104px;
    width: auto;
    opacity: 0.92;
    transform: scale(1.2);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--white-muted);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white-muted);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--crimson);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links-grid {
    display: contents;
}

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 28px;
    height: 1px;
    background: var(--crimson);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--white-muted);
    transition: color 0.2s, padding-right 0.2s;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--white);
    padding-right: 0.5rem;
    border-right: 1px solid var(--crimson);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 2rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.legal-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.legal-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--crimson);
}

.dev-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.dev-credit span {
    color: rgba(255, 255, 255, 0.35);
}

.dev-credit a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dev-credit a:hover {
    color: var(--crimson);
}

.dev-credit img {
    height: 16px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dev-credit a:hover img {
    opacity: 1;
}

/* ========== FOOTER LEGAL LINKS ========== */
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--crimson);
}

.legal-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b859;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========== MOBILE RESPONSIVE (Header & Footer) ========== */
@media (max-width: 768px) {
    .header-accent {
        display: none;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .burger {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0f1112;
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 80px 0 0 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav .nav-list {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
        margin: 0;
        gap: 20px;
    }
    
    .main-nav .nav-list li {
        width: 100%;
        list-style: none;
    }
    
    .main-nav .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        color: var(--white);
        text-decoration: none;
    }
    
    /* Footer Mobile */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
    }
    
    .footer-logo-mark {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .footer-logo-icon {
        transform: scale(1);
    }
    
    .footer-tagline {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-col a:hover {
        padding-right: 0;
        border-right: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .dev-credit {
        flex-wrap: wrap;
        margin-top: 0.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .brand-logo {
        height: 34px;
    }
}