
/* =========================================================
   AFRICENTRIC MOTORS
   Folha de estilos principal
   Bootstrap 5 + estilos personalizados
   ========================================================= */

/* 1. VARIÁVEIS GLOBAIS
   --------------------------------------------------------- */

:root {
    --am-dark: #000;
    --am-green: #ffa704;
    --am-green-hover: #e0c31f;
    --am-green-light: #e4f3e9;

    --am-gold: #ffa704;
    --am-gold-hover: #b28735;

    --am-light: #f4f6f3;
    --am-white: #ffffff;
    --am-text: #26332c;
    --am-little: #151515;
    --am-muted: #68746c;
    --am-border: #d9e0db;
    --am-danger: #c62828;
    --am-success: #187344;

    --am-radius: 10px;
    --am-radius-lg: 16px;
    --am-shadow: 0 8px 28px rgba(20, 40, 28, 0.08);
    --am-transition: 0.2s ease;
}

/* 2. BASE E ELEMENTOS GLOBAIS
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--am-text);
    background: var(--am-dark);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--am-green);
    transition: color var(--am-transition);
}

a:hover {
    color: var(--am-green-hover);
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

:focus-visible {
    outline: 3px solid var(--am-gold);
    outline-offset: 3px;
}

.text-muted,
.text-secondary {
    color: var(--am-muted) !important;
}

/* 3. MARCA E CABEÇALHO
   --------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--am-dark);
    border-bottom: 1px solid #17251f;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--am-white);
    text-decoration: none;
}

.brand:hover {
    color: var(--am-light);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--am-green);
    color: var(--am-white);
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: var(--am-white);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.brand-name b {
    color: var(--am-green);
}

.brand-copy small {
    color: var(--am-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Pesquisa do cabeçalho */

.header-search {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 540px;
    min-width: 0;
}

.header-search input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--am-text);
    border-right: 0;
    border-radius: var(--am-radius) 0 0 var(--am-radius);
    background: var(--am-dark);
    outline: none;
}

.header-search input:focus {
    border-color: var(--am-green);
    box-shadow: 0 0 0 3px rgba(23, 107, 69, 0.1);
}

.header-search button {
    display: grid;
    place-items: center;
    min-width: 48px;
    padding: 0 15px;
    border: 1px solid var(--am-green);
    border-radius: 0 var(--am-radius) var(--am-radius) 0;
    background: var(--am-green);
    color: var(--am-white);
}

.header-search button:hover {
    background: var(--am-green-hover);
    border-color: var(--am-green-hover);
}

/* Ações do cabeçalho */

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--am-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: left;
}

.header-action:hover {
    color: var(--am-green);
}

.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    color: var(--am-white);
    text-decoration: none;
    font-size: 1.4rem;
}

.header-icon:hover {
    color: var(--am-green);
}

.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--am-green);
    color: var(--am-white);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/* Compatibilidade com o carrinho que usa outro nome de classe */

.cart-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid #000;
    border-radius: 50%;
    
    color: var(--am-white);
    text-decoration: none;
    transition:
        background var(--am-transition),
        border-color var(--am-transition),
        transform var(--am-transition);
}

.cart-menu-link:hover {
    
    border-color: var(--am-green);
    color: var(--am-green);
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid var(--am-w);
    border-radius: 999px;
    background: var(--am-green);
    color: var(--am-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* 4. NAVEGAÇÃO PRINCIPAL
   --------------------------------------------------------- */

.main-nav {
    background: var(--am-dark);
}

.main-nav .navbar-nav {
    gap: 4px;
}

.main-nav .nav-link {
    padding: 14px 12px;
    color: var(--am-white);
    font-size: 0.92rem;
    font-weight: 600;
    transition:
        color var(--am-transition),
        background var(--am-transition);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active,
.main-nav .nav-link[aria-current="page"] {
    color: #ffa704;
}

.main-nav .nav-link:focus-visible {
    outline-color: var(--am-gold);
    outline-offset: -3px;
}

.nav-toggle {
    margin: 8px 0;
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-toggle .navbar-toggler-icon {
    filter: invert(1);
}

/* 5. SECÇÕES E TÍTULOS
   --------------------------------------------------------- */

.section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--am-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.products-empty,
.catalog-empty {
    padding: 45px 20px;
    border-radius: 14px;
    background: #000;
    text-align: center;
}

.catalog-empty h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

/* 6. CARTÕES DE PRODUTOS
   --------------------------------------------------------- */

.product-card,
.catalog-product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #404040;
    border-radius: 12px;
    background: var(--am-dark);
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #000;
}

.product-card-image img,
.catalog-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #404040;
}

.product-condition {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 30px;
    background: var(--am-green);
    color: var(--am-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.product-name a {
    color: var(--am-white);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--am-white);
}

.product-card .product-price {
    margin: 10px 0;
    color: var(--am-green);
    font-size: 1.1rem;
    font-weight: 800;
}

.product-card .product-price span {
    color: var(--am-green);
    font-size: 0.75rem;
    font-weight: 400;
}

.product-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--am-green);
    color: var(--am-dark);
    text-decoration: none;
    transition:
        background var(--am-transition),
        color var(--am-transition);
}

.product-view-link:hover {
    background: var(--am-white);
    color: var(--am-dark);
}

/* 7. CATÁLOGO E FILTROS
   --------------------------------------------------------- */

.catalog-page {
    min-height: 60vh;
    padding: 42px 0 72px;
}

.catalog-heading {
    margin-bottom: 28px;
}

.catalog-heading h1 {
    font-weight: 850;
    letter-spacing: -0.035em;
}

.catalog-filter-card {
    padding: 22px;
    border: 1px solid #e8e6e1;
    border-radius: 14px;
    background: var(--am-white);
}

.catalog-filter-card h2 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 800;
}

.catalog-filter-card label {
    margin-bottom: 7px;
    font-size: 0.88rem;
    font-weight: 650;
}

.catalog-filter-card .form-control,
.catalog-filter-card .form-select {
    min-height: 44px;
}

.catalog-search {
    padding: 22px;
    margin-bottom: 26px;
    border-radius: 14px;
    background: #f7f6f2;
}

.catalog-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.catalog-results-heading p {
    margin: 0;
    color: var(--am-muted);
    font-size: 0.92rem;
}

.catalog-product-card {
    display: flex;
    flex-direction: column;
    transition:
        transform var(--am-transition),
        box-shadow var(--am-transition);
}

.catalog-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.catalog-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}

.catalog-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 210px;
    padding: 17px;
}

.catalog-product-category {
    color: var(--am-gold-hover);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.catalog-product-title {
    margin: 8px 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.4;
}

.catalog-product-title a {
    color: var(--am-dark);
    text-decoration: none;
}

.catalog-product-title a:hover {
    color: var(--am-green);
}

.catalog-product-meta {
    color: var(--am-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.catalog-product-price {
    margin-top: auto;
    padding-top: 14px;
    color: var(--am-dark);
    font-size: 1.2rem;
    font-weight: 850;
}

.catalog-condition {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f5eddd;
    color: #624817;
    font-size: 0.75rem;
    font-weight: 750;
}

.catalog-pagination .page-link {
    color: var(--am-white);
}

.catalog-pagination .active .page-link {
    border-color: var(--am-green);
    background: var(--am-green);
    color: var(--am-white);
}

.catalog-reset {
    color: var(--am-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.catalog-reset:hover {
    color: var(--am-green);
}

/* 8. PÁGINA DE DETALHES DO PRODUTO
   --------------------------------------------------------- */

.product-panel {
    overflow: hidden;
    border: 1px solid #000;
    border-radius: 18px;
    background: var(--am-dark);
}

/* Galeria */

.main-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
    background: #f0f0ee;
}

.main-image {
    width: 100%;
    height: 420px;
    padding: 16px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
}

.thumbnail-button {
    padding: 3px;
    border: 2px solid #dedede;
    border-radius: 10px;
    background: var(--am-white);
    cursor: pointer;
    transition:
        border-color var(--am-transition),
        transform var(--am-transition);
}

.thumbnail-button:hover {
    border-color: var(--am-gold);
    transform: translateY(-2px);
}

.thumbnail-button.active {
    padding: 2px;
    border: 3px solid var(--am-gold);
    box-shadow: 0 0 0 2px rgba(198, 154, 67, 0.16);
}

.thumbnail {
    display: block;
    width: 76px;
    height: 70px;
    border-radius: 6px;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--am-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    font-size: 25px;
}

.gallery-arrow:hover {
    background: var(--am-gold);
}

.gallery-arrow.prev {
    left: 12px;
}

.gallery-arrow.next {
    right: 12px;
}

.image-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(246, 248, 247, 0.82);
    color: var(--am-white);
    font-size: 12px;
}

/* Ampliação da imagem */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: 0;
    background: transparent;
    color: var(--am-white);
    font-size: 38px;
}

/* Informações do produto */

.product-panel .product-price {
    color: var(--am-dark);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
}

.product-label {
    color: var(--am-muted);
    font-size: 0.9rem;
}

.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid #000;
}

.detail-row:last-child {
    border-bottom: 0;
}

.availability {
    color: var(--am-success);
    font-weight: 700;
}

/* 9. BOTÕES PERSONALIZADOS
   --------------------------------------------------------- */

.btn-am {
    border: 1px solid var(--am-dark);
    background: var(--am-dark);
    color: var(--am-white);
    font-weight: 700;
}

.btn-am:hover,
.btn-am:focus {
    border-color: var(--am-green);
    background: var(--am-green);
    color: var(--am-white);
}

.btn-gold {
    border: 1px solid var(--am-gold);
    background: var(--am-gold);
    color: var(--am-dark);
    font-weight: 700;
}

.btn-gold:hover,
.btn-gold:focus {
    border-color: var(--am-gold-hover);
    background: var(--am-gold-hover);
    color: var(--am-dark);
}

.btn-register,
.btn-login {
    min-height: 49px;
    border: 0;
    border-radius: 9px;
    background: var(--am-green);
    color: var(--am-dark);
    font-weight: 700;
}

.btn-register:hover,
.btn-login:hover {
    background: var(--am-green-hover);
    color: var(--am-white);
}

/* 10. CARRINHO
   --------------------------------------------------------- */

.cart-panel {
    border: 1px solid #ececec;
    border-radius: 16px;
    background: var(--am-white);
}

.cart-image {
    width: 100px;
    height: 90px;
    border-radius: 10px;
    background: #f2f2f0;
    object-fit: contain;
}

.cart-product-name {
    color: var(--am-dark);
    font-weight: 700;
    text-decoration: none;
}

.cart-product-name:hover {
    color: var(--am-green);
}

.cart-price {
    color: var(--am-dark);
    font-weight: 800;
    white-space: nowrap;
}

.quantity-input {
    max-width: 90px;
}

/* 11. CHECKOUT
   --------------------------------------------------------- */

.checkout-card {
    padding: 24px;
    border-radius: 14px;
    background: var(--am-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.total-value {
    font-size: 1.3rem;
    font-weight: 700;
}

/* 12. AUTENTICAÇÃO: LOGIN E REGISTO
   --------------------------------------------------------- */

/* Mantém o fundo suave apenas nas páginas de autenticação. */

.login-wrap,
.register-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 36px 16px;
    background: var(--am-light);
}

.login-card,
.register-card {
    width: 100%;
    max-width: 500px;
    padding: 34px;
    border-radius: 18px;
    background: var(--am-white);
    box-shadow: 0 12px 40px rgba(20, 40, 28, 0.08);
}

.login-icon,
.register-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--am-green-light);
    color: var(--am-green);
    font-size: 1.7rem;
}

.login-card .form-label,
.register-card .form-label {
    font-size: 0.93rem;
    font-weight: 600;
}

.login-card .form-control,
.register-card .form-control {
    min-height: 47px;
    border-color: var(--am-border);
    border-radius: 9px;
}

.login-card .form-control:focus,
.register-card .form-control:focus {
    border-color: var(--am-green);
    box-shadow: 0 0 0 0.2rem rgba(23, 107, 69, 0.12);
}

.login-card .small-note,
.register-card .note {
    color: var(--am-muted);
    font-size: 0.9rem;
}

.topbar {
    padding: 19px 0;
    background: var(--am-dark);
}

.topbar .brand,
.topbar .brand-name {
    color: var(--am-white);
    text-decoration: none;
    font-weight: 800;
}

.topbar .brand span {
    color: #79d6a4;
}

.topbar .top-link {
    color: var(--am-white);
    text-decoration: none;
}

.topbar .top-link:hover {
    color: #ffa704;
}

/* 13. RODAPÉ
   --------------------------------------------------------- */

.site-footer {
    margin-top: 48px;
    background: var(--am-dark);
    color: #e8eee9;
}

.site-footer h2 {
    color: var(--am-white);
}

.site-footer a {
    color: #c4e8d1;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--am-white);
    text-decoration: underline;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.25);
}

/* 14. RESPONSIVIDADE
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
    .header-main {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-nav .navbar-nav {
        gap: 0;
    }

    .main-nav .nav-link {
        padding: 12px 14px;
    }
}

@media (max-width: 767.98px) {
    .catalog-page {
        padding-top: 26px;
    }

    .catalog-filter-card,
    .catalog-search {
        padding: 17px;
    }

    .catalog-product-body {
        padding: 13px;
    }

    .catalog-product-price {
        font-size: 1.05rem;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail {
        width: 62px;
        height: 58px;
    }

    .gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .checkout-card {
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .header-main {
        gap: 14px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-copy small {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action {
        gap: 5px;
        font-size: 0.8rem;
    }

    .header-icon {
        min-width: 30px;
        font-size: 1.2rem;
    }

    .cart-image {
        width: 76px;
        height: 76px;
    }

    .login-card,
    .register-card {
        padding: 25px 20px;
    }

    .gallery-thumbnails {
        gap: 8px;
        padding: 12px;
    }
}

/* 15. ACESSIBILIDADE: MOVIMENTO REDUZIDO
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* =========================================================
   PÁGINA INICIAL — HERO, CATEGORIAS, VANTAGENS E SOBRE
   ========================================================= */

/* Espaçamento comum das secções */

.section-space {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-title h2,
.about-section h2 {
    margin-bottom: 12px;
    color: var(--am-white);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
}

.section-title p,
.about-section p {
    color: var(--am-muted);
}

.text-link {
    flex-shrink: 0;
    color: var(--am-green);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--am-green-hover);
}

/* Banner principal */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 490px;
    overflow: hidden;
    background-color: var(--am-dark);
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 7, 7, 0.94) 10%,
            rgba(8, 8, 8, 0.78) 20%,
            rgba(7, 7, 7, 0.3) 100%
        ),
        url("../assets/images/hero.jpg");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        transparent
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 64px;
    padding-bottom: 64px;
    color: var(--am-white);
}

.hero .eyebrow,
.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #ffa704;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 0 0 20px;
    color: var(--am-white);
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    margin-top: 12px;
    color: #ffa704;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.3;
}

.hero-description {
    max-width: 560px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 700;
}

.btn-gold {
    border: 1px solid var(--am-gold);
    background: var(--am-gold);
    color: var(--am-dark);
}

.btn-gold:hover {
    border-color: var(--am-gold-hover);
    background: var(--am-gold-hover);
    color: var(--am-dark);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

/* Categorias */

.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #404040;
    border-radius: 12px;
    background: var(--am-dark);
    color: var(--am-white);
    text-decoration: none;
    transition:
        transform var(--am-transition),
        box-shadow var(--am-transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--am-shadow);
    color: var(--am-green);
}

.category-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--am-dark);
}

.category-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
}

.category-card-body strong {
    font-size: 0.95rem;
    line-height: 1.35;
}

.category-card-body small {
    color: var(--am-muted);
    font-size: 0.78rem;
}

/* Faixa de vantagens */

.benefits-strip {
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #404040;
    border-radius: 14px;
    background: var(--am-little);
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 100px;
    padding: 18px;
}

.benefit + .benefit {
    border-left: 1px solid #404040;
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    
    color: var(--am-green);
    font-size: 2rem;
}

.benefit strong,
.benefit small {
    display: block;
}

.benefit strong {
    margin-bottom: 4px;
    color: var(--am-white);
    font-size: 0.88rem;
    line-height: 1.35;
}

.benefit small {
    color: var(--am-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Destaques da página inicial */

.featured-products {
    background: #000;
}

.featured-products .section-eyebrow {
    color: var(--am-gold-hover);
}

.featured-products .section-title {
    color: var(--am-white);
    font-weight: 800;
}

/* Categorias e metadados dos cartões de produtos */

.product-category {
    color: var(--am-gold-hover);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-meta {
    color: var(--am-muted);
    font-size: 0.84rem;
}

/* Sobre a marca */

.about-section {
    background: var(--am-little);
}

.about-section h2 {
    max-width: 650px;
}

.about-highlight {
    padding: 32px;
    border-radius: 18px;
    background: var(--am-dark);
    color: var(--am-white);
}

.about-highlight-mark {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--am-green);
    color: var(--am-white);
    font-size: 1.2rem;
    font-weight: 800;
}

.about-highlight h3 {
    color: var(--am-white);
    font-size: 1.5rem;
    font-weight: 800;
}

.about-highlight p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsividade da página inicial */

@media (max-width: 991.98px) {
    .hero {
        min-height: 440px;
    }

    .benefit {
        border-bottom: 1px solid #e8ebe7;
    }

    .benefit:nth-child(odd) {
        border-left: 0;
    }

    .benefit:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .section-space {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .hero {
        min-height: 420px;
        background-position: 60% center;
    }

    .hero-content {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .section-title {
        align-items: flex-start !important;
    }

    .benefit {
        align-items: flex-start;
        gap: 8px;
        padding: 12px 8px;
    }

    
.benefit .benefit-icon {
    display: inline-block;
    font-size: 2rem;
    color: #ffa704;
    flex-shrink: 0;
}


    .benefit strong {
        font-size: 0.78rem;
    }

    .benefit small {
        font-size: 0.72rem;
    }

    .about-highlight {
        padding: 24px;
    }
}


/* =========================================
   NAVEGAÇÃO PRINCIPAL — ESPAÇAMENTO
========================================= */

.main-nav .navbar-collapse {
    justify-content: center;
}

.main-nav .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.main-nav .nav-menu .nav-link {
    padding: 12px 13px;
    white-space: nowrap;
    font-size: 0.94rem;
    font-weight: 500;
}

/* Tablets e ecrãs médios */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        width: 100%;
    }

    .main-nav .nav-menu {
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .main-nav .nav-menu .nav-link {
        padding: 11px 14px;
        white-space: normal;
    }
}

.product-detail-page {
            min-height: 60vh;
        }

        .product-detail-page .product-panel {
            height: 100%;
            min-width: 0;
            overflow: hidden;
            background: #000;
            border: 1px solid #404040;
            border-radius: 14px;
            box-shadow: 0 6px 24px rgba(20, 40, 28, .06);
        }

        .product-detail-page .main-image-wrap {
            position: relative;
            width: 100%;
            height: clamp(280px, 42vw, 520px);
            overflow: hidden;
            background: #000;
            border-radius: 14px 14px 0 0;
        }

        .product-detail-page .main-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
            cursor: zoom-in;
        }

        .product-detail-page .gallery-thumbnails {
            display: flex;
            gap: 10px;
            padding: 14px;
            overflow-x: auto;
        }

        .product-detail-page .thumbnail-button {
            flex: 0 0 76px;
            width: 76px;
            height: 68px;
            padding: 3px;
            overflow: hidden;
            background: #17251f;
            border: 1px solid #404040;
            border-radius: 8px;
            cursor: pointer;
        }

        .product-detail-page .thumbnail-button.active {
            border: 2px solid #6b5c17;
        }

        .product-detail-page .thumbnail {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .product-detail-page .gallery-arrow {
            position: absolute;
            z-index: 2;
            top: 50%;
            display: grid;
            width: 40px;
            height: 40px;
            place-items: center;
            color: #17251f;
            font-size: 28px;
            line-height: 1;
            background: rgba(255, 188, 2, 0.92);
            border: 0;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
            transform: translateY(-50%);
            cursor: pointer;
        }

        .product-detail-page .gallery-arrow.prev {
            left: 12px;
        }

        .product-detail-page .gallery-arrow.next {
            right: 12px;
        }

        .product-detail-page .image-counter {
            position: absolute;
            right: 12px;
            bottom: 12px;
            padding: 4px 10px;
            color: #17251f;
            font-size: 12px;
            background: rgba(255, 217, 0, 0.65);
            border-radius: 20px;
        }

        .product-detail-page .product-price {
            color: #ffbb00;
            font-size: clamp(1.6rem, 3vw, 2rem);
            font-weight: 800;
            overflow-wrap: anywhere;
        }

        .product-detail-page .detail-row {
            padding: 11px 0;
            border-bottom: 1px solid #404040;
        }

        .product-detail-page .product-label {
            color: #68746c;
        }

        .product-detail-page .availability {
            color: #fff;
            font-weight: 600;
        }

        .product-detail-page .btn-am {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 46px;
            color: #000;
            background: #fff;
            border: 1px solid #fff;
            border-radius: 8px;
            text-decoration: none;
        }

        .product-detail-page .btn-am:hover {
            color: #fff;
            background: #ffe600;
            border-color: #ffe600;
        }

        .product-detail-page .gallery-lightbox {
            position: fixed;
            z-index: 2000;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 60px 70px;
            background: rgba(0, 0, 0, .92);
        }

        .product-detail-page .gallery-lightbox.open {
            display: flex;
        }

        .product-detail-page .lightbox-image {
            display: block;
            max-width: 100%;
            max-height: 85vh;
            object-fit: contain;
        }

        .product-detail-page .lightbox-close {
            position: absolute;
            top: 14px;
            right: 22px;
            color: #fff;
            font-size: 38px;
            background: transparent;
            border: 0;
            cursor: pointer;
        }

        .product-detail-page .gallery-lightbox .gallery-arrow {
            position: fixed;
            top: 50%;
        }

        .product-detail-page .gallery-lightbox .gallery-arrow.prev {
            left: 18px;
        }

        .product-detail-page .gallery-lightbox .gallery-arrow.next {
            right: 18px;
        }

        @media (max-width: 575.98px) {
            .product-detail-page {
                padding-top: 20px !important;
            }

            .product-detail-page .main-image-wrap {
                height: 280px;
            }

            .product-detail-page .gallery-lightbox {
                padding: 55px 12px;
            }

            .product-detail-page .gallery-lightbox .gallery-arrow.prev {
                left: 5px;
            }

            .product-detail-page .gallery-lightbox .gallery-arrow.next {
                right: 5px;
            }
        }

        
/* ===== Correcção do catálogo Africentric Motors ===== */

.catalog-page {
    width: 100%;
    padding: 32px 0 48px;
    overflow-x: clip;
}

.catalog-page .container {
    max-width: 1320px;
}

.catalog-heading {
    margin-bottom: 28px;
}

.catalog-search,
.catalog-filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
}

.catalog-filter-card {
    position: static;
    height: auto;
}

.catalog-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.catalog-results-heading p {
    margin: 0;
}

.catalog-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.catalog-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.catalog-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    overflow-wrap: anywhere;
}

.catalog-product-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 8px 0 12px;
}

.catalog-product-title a {
    color: #17251f;
    text-decoration: none;
}

.catalog-product-title a:hover {
    text-decoration: underline;
}

.catalog-product-meta {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #626b66;
}

.catalog-product-price {
    margin-top: auto;
    padding-top: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #17251f;
}

.catalog-product-body .btn {
    align-self: flex-start;
}

.catalog-empty {
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

@media (max-width: 575.98px) {
    .catalog-page {
        padding-top: 20px;
    }

    .catalog-search,
    .catalog-filter-card {
        padding: 15px;
    }

    .catalog-product-body {
        padding: 11px;
    }

    .catalog-product-title {
        font-size: 0.9rem;
    }

    .catalog-product-price {
        font-size: 1rem;
    }

    .catalog-product-meta {
        font-size: 0.8rem;
    }
}


/* =========================================================
   AFRICENTRIC MOTORS — CORREÇÃO DO CABEÇALHO E CATÁLOGO
   ========================================================= */

/* Cabeçalho */
.site-header {
    width: 100%;
    max-width: 100%;
    z-index: 100;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
}

.brand {
    min-width: 0;
    max-width: 100%;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    overflow-wrap: anywhere;
}

.header-search {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 540px;
}

.header-search input {
    min-width: 0;
    width: 100%;
}

.header-actions {
    flex-shrink: 0;
    min-width: 0;
}

/* Área do catálogo */
.catalog-page {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.catalog-page .container {
    width: 100%;
    max-width: 1320px;
}

.catalog-page .row {
    min-width: 0;
}

.catalog-page [class*="col-"] {
    min-width: 0;
}

/* Cartões dos produtos */
.catalog-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9e0db;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.catalog-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f6f3;
}

.catalog-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    overflow-wrap: anywhere;
}

.catalog-product-title {
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.catalog-product-title a {
    color: #17251f;
    text-decoration: none;
}

.catalog-product-meta {
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.catalog-product-price {
    margin-top: auto;
    padding-top: 14px;
    color: #17251f;
    font-size: 1.15rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* Pesquisa e filtros */
.catalog-search,
.catalog-filter-card {
    width: 100%;
    min-width: 0;
    height: auto;
    background: #ffffff;
    border: 1px solid #d9e0db;
    border-radius: 12px;
}

.catalog-search input,
.catalog-filter-card input,
.catalog-filter-card select,
.catalog-filter-card .form-control,
.catalog-filter-card .form-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Telemóveis */
@media (max-width: 767.98px) {
    .header-main {
        gap: 12px;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header-actions {
        margin-left: auto;
        gap: 8px;
    }

    .catalog-page {
        padding-top: 20px;
    }

    .catalog-product-body {
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .header-action {
        font-size: 0.75rem;
    }

    .catalog-product-title {
        font-size: 0.9rem;
    }

    .catalog-product-price {
        font-size: 1rem;
    }
}


.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #ffffff;
}

.btn-whatsapp i {
    margin-right: 8px;
    font-size: 1.2rem;
}


/* Ícones da secção de categorias */
.category-card-icon {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 10px 10px;
   
    color: #ffa704;
}

.category-card-icon i {
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.category-card:hover .category-card-icon i {
    transform: scale(1.12);
}

.category-card {
    display: block;
    text-decoration: none;
}



/* SECÇÃO SOBRE - AFRICENTRIC MOTORS */

.about-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(10, 18, 28, 0.78),
            rgba(10, 18, 28, 0.86)
        ),
        url("/africentric-motors/assets/images/sobre-fundo.jpg")
        center center / cover no-repeat !important;

    color: #ffffff;
    padding: 90px 0;
}

.about-section .eyebrow {
    color: #f0b429;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-section h2,
.about-section .about-highlight h3 {
    color: #ffffff;
    font-weight: 800;
}

.about-section p {
    color: #f1f5f9;
    line-height: 1.8;
}

.about-section .about-highlight {
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-section .about-highlight-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #f0b429;
    color: #17202b;
    font-size: 24px;
    font-weight: 900;
}

@media (max-width: 767px) {
    .about-section {
        padding: 60px 0;
    }

    .about-section .about-highlight {
        padding: 25px;
    }
}

/* =====================================================
   NAVBAR AFRICENTRIC MOTORS
   Alinhamento à esquerda e indicador activo
====================================================== */

.main-nav .navbar-collapse {
    justify-content: flex-start;
}

.main-nav .nav-menu {
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.main-nav .nav-item {
    display: flex;
    align-items: stretch;
}

.main-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 16px 14px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;

    transition: color 0.25s ease;
}

/* Efeito ao passar o rato */
.main-nav .nav-link:hover {
    color: #b8860b;
}

/* Barra dourada */
.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;

    height: 3px;
    border-radius: 3px;
    background-color: #d6a52a;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

/* Barra visível na página activa */
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}

.main-nav .nav-link.active {
    color: #b8860b;
}

/* Menu em dispositivos móveis */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        width: 100%;
    }

    .main-nav .nav-menu {
        align-items: stretch;
        gap: 0;
        padding-top: 10px;
    }

    .main-nav .nav-item {
        display: block;
    }

    .main-nav .nav-link {
        padding: 12px 14px;
    }

    .main-nav .nav-link::after {
        left: 0;
        right: auto;
        bottom: 7px;
        width: 4px;
        height: calc(100% - 14px);
        border-radius: 4px;

        transform: scaleY(0);
        transform-origin: top;
    }

    .main-nav .nav-link.active::after {
        transform: scaleY(1);
    }
}


/* =====================================================
   RODAPÉ MODERNO — AFRICENTRIC MOTORS
====================================================== */

.site-footer {
    --footer-bg: #000;
    --footer-bg-deep: #404040;
    --footer-text: #b7c1cc;
    --footer-white: #f8fafc;
    --footer-gold: #e0ad35;

    position: relative;
    overflow: hidden;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.95rem;
}

.site-footer a {
    text-decoration: none;
}

/* Newsletter */
.footer-newsletter {
    padding: 48px 0;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(224, 173, 53, 0.13),
            transparent 38%
        ),
        #182431;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.footer-newsletter h2 {
    margin: 12px 0;
    color: var(--footer-white);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.7px;
}

.footer-newsletter p {
    max-width: 500px;
    margin: 0;
    color: #c2ccd6;
    line-height: 1.8;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.newsletter-input-group input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: #17212b;
    font-size: 0.95rem;
}

.newsletter-input-group input:focus-visible {
    outline: 2px solid var(--footer-gold);
    outline-offset: -2px;
    border-radius: 6px;
}

.newsletter-input-group button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--footer-gold);
    color: #17212b;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-input-group button:hover {
    background: #f0c45c;
    transform: translateY(-1px);
}

.newsletter-input-group button:focus-visible,
.footer-social a:focus-visible,
.footer-links a:focus-visible,
.footer-contact-button:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid var(--footer-gold);
    outline-offset: 4px;
}

.newsletter-form > small {
    display: block;
    margin: 12px 4px 0;
    color: #aebbc8;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Conteúdo principal */
.footer-main {
    padding-top: 58px;
    padding-bottom: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--footer-white);
}

.site-footer .footer-brand .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--footer-gold);
    color: #14202b;
    font-size: 25px;
    font-weight: 900;
}

.site-footer .footer-brand .brand-copy {
    display: flex;
    flex-direction: column;
}

.site-footer .footer-brand .brand-name {
    color: var(--footer-white);
    font-size: 1.2rem;
    font-weight: 700;
}

.site-footer .footer-brand .brand-name b {
    color: var(--footer-gold);
}

.site-footer .footer-brand .brand-copy small {
    margin-top: 3px;
    color: #aebbc8;
    font-size: 0.78rem;
}

.footer-description {
    max-width: 360px;
    margin: 22px 0;
    color: var(--footer-text);
    line-height: 1.9;
}

.footer-heading {
    position: relative;
    margin: 5px 0 24px;
    padding-bottom: 14px;
    color: var(--footer-white);
    font-size: 1rem;
    font-weight: 800;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--footer-gold);
}

/* Links */
.footer-links,
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-block;
    color: var(--footer-text);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--footer-gold);
    transform: translateX(4px);
}

/* Redes sociais */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--footer-white);
    font-size: 1.15rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: var(--footer-gold);
    border-color: var(--footer-gold);
    color: #000;
}

/* Contactos */
.footer-contact-list {
    gap: 17px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    line-height: 1.7;
}

.footer-contact-list li > i {
    margin-top: 3px;
    color: var(--footer-gold);
    font-size: 1.05rem;
}

.footer-contact-list a {
    color: var(--footer-text);
    overflow-wrap: anywhere;
}

.footer-contact-list a:hover {
    color: var(--footer-gold);
}

.footer-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    padding: 11px 16px;
    border: 1px solid rgba(248, 174, 0, 0.932);
    border-radius: 9px;
    color: var(--footer-gold);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-contact-button:hover {
    background: var(--footer-gold);
    color: #000;
}

/* Barra inferior */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding: 25px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-copy p {
    margin: 0;
    color: #aebbc8;
    font-size: 0.82rem;
    line-height: 1.8;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--footer-gold);
    font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.back-to-top:hover {
    background: var(--footer-gold);
    color: #14202b;
}

/* Telemóveis */
@media (max-width: 767.98px) {
    .footer-newsletter {
        padding: 38px 0;
    }

    .newsletter-input-group {
        flex-direction: column;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .newsletter-input-group input {
        min-height: 48px;
        border-radius: 9px;
        background: #fff;
    }

    .newsletter-input-group button {
        min-height: 48px;
        width: 100%;
    }

    .footer-main {
        padding-top: 42px;
    }

    .footer-heading {
        margin-top: 0;
        margin-bottom: 18px;
    }

    .footer-bottom {
        align-items: flex-start;
        margin-top: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


.newsletter-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(224, 173, 53, 0.12);
    color: #f5d889;
    font-size: 0.9rem;
    line-height: 1.6;
}