/**
 * Sorodiesel - Layout CSS (Público)
 * Top bar, header, footer e estrutura geral
 */

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-base);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-left a,
.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    opacity: 0.9;
}

.top-bar-left a:hover {
    opacity: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 24px;
}

.logo-text h1 {
    font-size: 26px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav a {
    padding: 12px 18px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 30px;
}

.nav a:hover {
    color: var(--secondary);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    padding: 12px 24px;
    font-size: var(--font-size-base);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
}

.admin-btn {
    background: var(--bg-gray);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-btn:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 2000;
    transform: translateX(-100%);
    transition: var(--transition);
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav a {
    display: block;
    padding: 18px 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-gray);
}

.mobile-nav a:hover {
    color: var(--secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    opacity: 0.88;
    line-height: 1.8;
    margin: 20px 0 25px;
    font-size: var(--font-size-base);
}

.footer-title {
    font-size: var(--font-size-lg);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: var(--font-size-base);
    opacity: 0.75;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: var(--font-size-base);
    opacity: 0.85;
}

.footer-contact-item i {
    margin-top: 4px;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: var(--font-size-base);
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    height: 400px;
    background: var(--bg-gray);
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    gap: 20px;
}

.map-placeholder i {
    font-size: 60px;
    opacity: 0.5;
}

.map-placeholder p {
    font-size: var(--font-size-lg);
    opacity: 0.8;
}

.map-placeholder a {
    color: var(--accent);
    text-decoration: underline;
}

/* ========================================
   WHATSAPP & SCROLL BUTTONS
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: var(--text-white);
    padding: 16px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   RESPONSIVE - LAYOUT
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-btn {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
