/**
 * Evafran - Pofo Creative Modern Design System
 * Inspirado em:
 * - Home: Pofo Creative Branding Agency (https://www.themezaa.com/html/pofo/home-creative-branding-agency.html)
 * - Produtos: Pofo Portfolio Boxed Grid Overlay (https://www.themezaa.com/html/pofo/portfolio-boxed-grid-overlay.html)
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d80b9;
    --primary-hover: #0a6592;
    --dark-color: #232323;
    --dark-alt: #1a1a1a;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --text-muted: #6c757d;
    --text-dark: #212529;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Override Bootstrap text-danger / btn-danger / bg-danger for brand icons & badges */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

.btn-danger {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.border-danger {
    border-color: var(--primary-color) !important;
}

body {
    font-family: var(--font-body);
    color: #555555;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.3px;
}

a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-header-area {
    background-color: var(--dark-alt);
    color: #999999;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header-area a {
    color: #bbbbbb;
}

.top-header-area a:hover {
    color: #ffffff;
}

.top-social-links a {
    color: var(--primary-color) !important;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(13, 128, 185, 0.15);
    transition: var(--transition);
}

.top-social-links a:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(13, 128, 185, 0.1);
    color: var(--primary-color) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 128, 185, 0.25);
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color) !important;
    border: 1px solid rgba(13, 128, 185, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: var(--transition);
}

.footer-social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 128, 185, 0.35);
}

.main-navbar {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-navbar .navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-navbar .navbar-logo {
    height: 38px;
    width: auto;
    max-height: 44px;
    object-fit: contain;
    transition: var(--transition);
}

.main-navbar .navbar-logo:hover {
    transform: scale(1.02);
}

/* Botão Hamburger Mobile (3 risquinhos na cor azul da logo) */
.main-navbar .navbar-toggler {
    border: 1.5px solid rgba(13, 128, 185, 0.35);
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--primary-color);
    transition: var(--transition);
}

.main-navbar .navbar-toggler:focus,
.main-navbar .navbar-toggler:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 128, 185, 0.06);
    box-shadow: 0 0 0 3px rgba(13, 128, 185, 0.15);
}

.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813, 128, 185, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-navbar .nav-link {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark-color);
    padding: 10px 16px !important;
    position: relative;
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary-color);
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* Botão de Orçamento no Menu */
.btn-nav-orcamento {
    background: var(--primary-color);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 9px 20px !important;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-nav-orcamento:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 128, 185, 0.3);
}

.badge-cart-count {
    background: #ffffff;
    color: var(--primary-color);
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Menu Mobile Responsivo (Telas < 992px) */
@media (max-width: 991.98px) {
    .main-navbar .navbar-logo {
        height: 32px;
        max-height: 36px;
    }

    .main-navbar .navbar-collapse {
        background: #ffffff;
        margin-top: 12px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .main-navbar .navbar-nav {
        gap: 4px;
    }

    .main-navbar .nav-link {
        padding: 11px 14px !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        font-size: 13.5px;
        border-left: 3px solid transparent;
    }

    .main-navbar .nav-link i {
        font-size: 16px;
        color: var(--primary-color);
        width: 22px;
        text-align: center;
    }

    /* Remove o sublinhado de largura total que ficava estranho no mobile */
    .main-navbar .nav-link::after {
        display: none !important;
    }

    .main-navbar .nav-link:hover,
    .main-navbar .nav-link.active {
        background-color: rgba(13, 128, 185, 0.08);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
    }

    .main-navbar .btn-nav-orcamento {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
        border-radius: 10px;
        margin-top: 6px;
        font-size: 13px;
        box-shadow: 0 4px 12px rgba(13, 128, 185, 0.22);
    }
}

/* ==========================================================================
   PAGE TITLE HERO (INSTITUTIONAL PAGES)
   ========================================================================== */
.page-title-section {
    background: linear-gradient(135deg, #1f1f1f 0%, #111111 100%);
    padding: 70px 0;
    position: relative;
    color: #ffffff;
    text-align: center;
}

.page-title-section h1 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.page-title-section .breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0;
    padding: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-title-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-title-section .breadcrumb-item.active {
    color: var(--primary-color);
}

/* ==========================================================================
   HERO BANNER SLIDER (HOME)
   ========================================================================== */
.hero-slider-section {
    position: relative;
    background: #ffffff;
}

.hero-slider .carousel-item {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.hero-slider .banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-slider .carousel-indicators {
    margin-bottom: 15px;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: #ffffff;
    opacity: 0.6;
    border: 1px solid rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.hero-slider .carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 12px;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 55px;
    opacity: 0.7;
    transition: var(--transition);
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    opacity: 1;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(0, 0, 0, 0.35);
    background-size: 50%;
    border-radius: 50%;
    transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev-icon,
.hero-slider:hover .carousel-control-next-icon {
    background-color: var(--primary-color);
}

.btn-pofo {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 14px 32px;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-pofo-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.btn-pofo-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 128, 185, 0.28);
}

.btn-pofo-outline-dark {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-pofo-outline-dark:hover {
    background-color: var(--dark-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-pofo-white {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.btn-pofo-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-pofo-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-pofo-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-pofo-outline-whatsapp {
    background-color: transparent;
    color: #198754;
    border: 2px solid #198754;
}

.btn-pofo-outline-whatsapp:hover {
    background-color: #198754;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .action-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }

    .action-btn-group .btn-pofo,
    .action-btn-group .btn {
        width: 100%;
        margin: 0 !important;
        padding: 14px 20px;
    }
}

/* ==========================================================================
   FEATURE BOXES (POFO STYLE)
   ========================================================================== */
.differentials-section {
    background: linear-gradient(180deg, #eef2f6 0%, #e5ebf1 100%);
    border-top: 1px solid #dde4ec;
    border-bottom: 1px solid #dde4ec;
}

.feature-box {
    background: #ffffff;
    padding: 40px 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 3px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    position: relative;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(13, 128, 185, 0.25);
    border-bottom-color: var(--primary-color);
}

.feature-box .icon-wrap {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(13, 128, 185, 0.16) 0%, rgba(13, 128, 185, 0.07) 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(13, 128, 185, 0.12);
    transition: var(--transition);
}

.feature-box:hover .icon-wrap {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(13, 128, 185, 0.35);
    transform: scale(1.06);
}

.feature-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ==========================================================================
   PORTFOLIO BOXED GRID OVERLAY (PRODUTOS - POFO TEMPLATE STYLE)
   ========================================================================== */
.catalog-section {
    background: linear-gradient(180deg, #edf2f7 0%, #e4ebf2 100%);
    border-top: 1px solid #d8e1eb;
    border-bottom: 1px solid #d8e1eb;
}

.portfolio-filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.portfolio-filter-nav .filter-btn {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 22px;
    border-radius: 30px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-filter-nav .filter-btn:hover,
.portfolio-filter-nav .filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 128, 185, 0.25);
}

/* Card Boxed Grid Overlay */
.product-box {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #cbd5e1;
    margin-bottom: 30px;
    transition: var(--transition);
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.product-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    border-color: rgba(13, 128, 185, 0.45);
}

.product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect Ratio */
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.product-image-wrap img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-image-wrap img.img-fallback {
    object-fit: contain !important;
    padding: 28% 18%;
    opacity: 0.85;
}

.product-box:hover .product-image-wrap img {
    transform: scale(1.06);
}

/* Overlay Suave no Hover (Pofo Overlay) */
.product-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0.1) 100%);
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition);
    z-index: 2;
}

.product-box:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.product-overlay .category-tag {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-overlay .product-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-overlay .overlay-actions {
    display: flex;
    gap: 8px;
}

/* Informações do Card abaixo da imagem */
.product-details {
    padding: 22px;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-details .product-title-text {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-specs {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #eef2f6;
}

.product-specs span {
    display: block;
}

.product-specs strong {
    color: #334155;
}

.btn-add-quote {
    margin-top: auto;
    background-color: rgba(13, 128, 185, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(13, 128, 185, 0.28);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 16px;
    border-radius: 6px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add-quote:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-add-quote:hover i {
    color: #ffffff !important;
}

/* ==========================================================================
   PÁGINAS INSTITUCIONAIS: QUEM SOMOS, LOCALIZAÇÃO, CONTATO
   ========================================================================== */
.about-hero-img {
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gallery-grid img {
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item .icon {
    font-size: 22px;
    color: var(--primary-color);
    min-width: 32px;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   ORÇAMENTO (ETAPAS 1 E 2)
   ========================================================================== */
.table-quote {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.table-quote th {
    background: #f8f9fa;
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-color);
    padding: 16px;
}

.table-quote td {
    padding: 16px;
    vertical-align: middle;
}

.quote-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.btn-remove-item {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-item:hover {
    background: #dc3545;
    color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--dark-alt);
    color: #999999;
    padding: 70px 0 30px;
    border-top: 3px solid var(--primary-color);
}

.site-footer h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.site-footer p {
    color: #a0a0a0;
    line-height: 22px;
}

.site-footer a,
.site-footer p a {
    color: #a0a0a0;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover,
.site-footer p a:hover {
    color: #ffffff;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul li a {
    color: #a0a0a0;
    transition: var(--transition);
}

.site-footer ul li a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #777777;
}

/* WhatsApp Floating Button */
.whatsapp-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1020;
    transition: var(--transition);
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    color: #ffffff;
}
