/* ==========================================================================
   Site Full - Public Header CSS
   ========================================================================== */

.sf-header {
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

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

.sf-header__container--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sf-header__navbar {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sf-header__navbar .sf-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sf-header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sf-header__logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.sf-header__logo .sf-site-title {
    font-size: 22px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

/* Right wrapper: nav + socials side by side */
.sf-header__right-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sf-header__nav .sf-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.sf-header__nav .sf-menu--centered {
    justify-content: center;
    margin-top: 12px;
}

.sf-header__nav .sf-menu a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    opacity: 1;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.sf-header__nav .sf-menu a:hover {
    color: #e00000;
    text-decoration: none;
}

.sf-header__nav .sf-menu a.sf-menu__link--active,
.sf-header__nav .sf-menu .current-menu-item a,
.sf-header__nav .sf-menu .current_page_item a,
.sf-header__nav .sf-menu .current-menu-ancestor a {
    color: #e00000;
    font-weight: 700;
}

/* Social Icons */
.sf-header__socials {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sf-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.sf-social-icon:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sf-social-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Platform-specific hover colors foram removidas.
   As cores de hover são controladas dinamicamente pelas configurações
   do admin (sf_home_header_hover_color) via CSS inline nos templates. */

/* Hero */
.sf-header__hero {
    padding: 60px 0;
}

.sf-header__hero--has-bg {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 90px 0;
}

.sf-header__hero--has-bg .sf-header__title,
.sf-header__hero--has-bg .sf-header__subtitle {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.sf-header__hero--centered {
    text-align: center;
}

.sf-header__title {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.sf-header__subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.6;
}

.sf-header__hero--centered .sf-header__subtitle {
    margin: 0 auto;
}

/* Mobile hamburger toggle */
.sf-header__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1001;
}

.sf-header__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Overlay escuro atrás do drawer */
.sf-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sf-mobile-overlay.sf-overlay-visible {
    display: block;
    opacity: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .sf-header__mobile-toggle {
        display: flex;
    }

    /* === Drawer lateral – desliza da DIREITA para a ESQUERDA === */
    .sf-header__right-wrap {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 80vw);
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 72px 28px 32px;
        gap: 24px;
        z-index: 999;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        /* Estado fechado: fora da tela à direita */
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        /* Sempre no DOM, visível via transform */
        display: flex;
        overflow-y: auto;
    }

    /* Estado aberto: entra pela direita */
    .sf-header__right-wrap.sf-menu-open {
        transform: translateX(0);
    }

    /* Botão X dentro do drawer para fechar */
    .sf-header__right-wrap::before {
        content: '';
    }

    .sf-header__nav .sf-menu {
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .sf-header__nav .sf-menu a {
        font-size: 17px;
    }

    .sf-header__socials {
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
        flex-wrap: wrap;
    }

    .sf-header__title {
        font-size: 26px;
    }

    .sf-header__subtitle {
        font-size: 15px;
    }

    /* Centered header mobile nav */
    .sf-header__container--centered .sf-header__nav {
        width: 100%;
    }
}

/* ============================================================
   Grids de produtos e serviços no front-end
   ============================================================ */
.sf-public-products-grid,
.sf-public-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.sf-product-card,
.sf-service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
}

.sf-product-card:hover,
.sf-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sf-product-card__img img,
.sf-service-card__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.sf-service-card__icon {
    height: 120px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c63ff;
}

.sf-service-card__icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.sf-product-card__content,
.sf-service-card__content {
    padding: 20px;
}

.sf-product-card__content h3,
.sf-service-card__content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.sf-product-card__content p,
.sf-service-card__content p {
    margin: 0 0 14px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.sf-product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}
