/**
 * Public Layout Styles
 * Estilos para o layout público do site
 */

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Forçar fonte Roboto no Header */
.site-header,
.site-header *,
.header-top,
.header-top *,
.header-main,
.header-main *,
.main-nav,
.main-nav *,
.header-contact,
.header-contact *,
.header-user-menu,
.header-user-menu *,
.header-login {
    font-family: 'Roboto', sans-serif !important;
}

/* Header Principal */
.site-header {
    background: var(--secondary-color, #004274);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 1000;
    padding: 12px 0;
}

/* Header Top Bar */
.header-top {
    background: var(--secondary-color, #004274);
    color: #ffffff;
    padding: 10px 0;
    font-size: 13px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.header-contact a:hover {
    opacity: 0.8;
}

/* Header Login/User Menu */
.header-login,
.header-user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 13px;
    cursor: pointer;
    border: none;
}

.header-login:hover,
.header-user-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-login svg,
.header-user-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.header-user-name {
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User Dropdown Menu */
.header-user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.header-user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: var(--secondary-color, #004274);
    padding-left: 25px;
}

.user-dropdown a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.user-dropdown a.logout {
    color: #dc3545;
}

.user-dropdown a.logout:hover {
    background: #fff5f5;
    color: #c82333;
}

/* Header Main */
.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo img {
    max-height: 90px;
    max-width: 350px;
    object-fit: contain;
}

.site-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.site-logo a {
    color: #ffffff;
    text-decoration: none;
}

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

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color, #00aeff);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color, #00aeff);
    transition: width 0.3s ease;
}

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

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

.header-phone,
.header-favorites,
.btn-login {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.header-phone:hover,
.header-favorites:hover,
.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-favorites {
    position: relative;
}

.favorites-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff9933;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.has-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #374151;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    text-transform: none;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color, #00aeff);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color, #004274) 0%, var(--primary-color, #00aeff) 100%);
    padding: 120px 0 80px;
    color: #ffffff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--secondary-color, #004274);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
    margin-top: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 90px;
    max-width: 350px;
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--primary-color, #00aeff);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

/* Footer Social Icons */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-icons .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icons .social-icon.facebook {
    background: #1877f2;
}

.footer-social-icons .social-icon.facebook:hover {
    background: #0c5bb8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.footer-social-icons .social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social-icons .social-icon.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.footer-social-icons .social-icon.youtube {
    background: #ff0000;
}

.footer-social-icons .social-icon.youtube:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.footer-social-icons .social-icon svg {
    color: #ffffff;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: var(--primary-color, #00aeff);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark, #0098e5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 174, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color, #00aeff);
    color: var(--primary-color, #00aeff);
}

.btn-outline:hover {
    background: var(--primary-color, #00aeff);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #00aeff);
    box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Ocultar WhatsApp na header em mobile */
    .header-phone {
        display: none !important;
    }

    .hero-title {
        font-size: 32px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .site-logo img {
        max-height: 60px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* ========================================
   BANNER DE VENDA
   ======================================== */
.selling-banner-section {
    padding: 80px 0;
    background-color: #f7f8f9;
}

.selling-banner-card {
    background: var(--secondary-color, #004274);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 70px;
    position: relative;
    min-height: 300px;
}

.selling-banner-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selling-banner-col-left {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 60px;
}

.selling-banner-col-right {
    padding-left: 0;
}

.selling-banner-subtitle {
    color: #e7cc79;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.selling-banner-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
}

.selling-banner-description {
    color: #b8c5d4;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.selling-banner-button {
    background-color: #e7cc79;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 50%;
    text-align: center;
}

.selling-banner-button:hover {
    background-color: #d4b85e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 204, 121, 0.3);
}


/* Responsivo - Banner de Venda */
@media (max-width: 991px) {
    .selling-banner-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 40px;
        text-align: center;
    }

    .selling-banner-col-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 40px;
    }

    .selling-banner-col-right {
        padding-left: 0;
    }

    .selling-banner-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .selling-banner-section {
        padding: 40px 0;
    }

    .selling-banner-card {
        padding: 30px 20px;
        gap: 25px;
    }

    .selling-banner-col-left {
        padding-bottom: 25px;
    }

    .selling-banner-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .selling-banner-title {
        font-size: 22px;
    }

    .selling-banner-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .selling-banner-button {
        padding: 12px 30px;
        font-size: 12px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .selling-banner-card {
        padding: 25px 15px;
        gap: 20px;
    }

    .selling-banner-subtitle {
        font-size: 12px;
    }

    .selling-banner-title {
        font-size: 20px;
    }

    .selling-banner-description {
        font-size: 13px;
    }

    .selling-banner-button {
        padding: 10px 25px;
        font-size: 11px;
    }
}
