/* ============================================
   Supermercado Bandeirinha — Folha de Estilos
   Cores da marca: Rosa/Magenta #D91B7C
   ============================================ */

/* ── Variáveis ── */
:root {
    --rosa:         #D91B7C;
    --rosa-escuro:  #AA1360;
    --rosa-claro:   #F2A8D4;
    --rosa-bg:      #FDF0F8;
    --cinzento:     #9E9E9E;
    --cinzento-cl:  #F5F5F5;
    --text:         #2C2C2C;
    --text-light:   #666666;
    --branco:       #FFFFFF;
    --sombra:       0 4px 20px rgba(217, 27, 124, 0.12);
    --sombra-hover: 0 8px 30px rgba(217, 27, 124, 0.22);
    --radius:       12px;
    --radius-sm:    8px;
    --transition:   0.3s ease;
    --font-head:    'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--branco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover, a:focus {
    color: var(--rosa-escuro);
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid var(--rosa);
    outline-offset: 3px;
    border-radius: 4px;
}

ul { list-style: none; }

address { font-style: normal; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Section comum ── */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--rosa-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--rosa-escuro);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ── Botões ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none !important;
    white-space: nowrap;
}

.btn-primary {
    background: var(--rosa);
    color: var(--branco);
    border-color: var(--rosa);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--rosa-escuro);
    border-color: var(--rosa-escuro);
    color: var(--branco);
    box-shadow: var(--sombra-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--branco);
    border-color: var(--branco);
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--branco);
    color: var(--rosa);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: box-shadow var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: all var(--transition);
    text-decoration: none !important;
}

.nav-link:hover, .nav-link:focus {
    color: var(--rosa);
    background: var(--rosa-bg);
}

.nav-cta {
    background: var(--rosa);
    color: var(--branco) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

.nav-cta:hover, .nav-cta:focus {
    background: var(--rosa-escuro) !important;
    color: var(--branco) !important;
}

/* Hamburguer */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rosa-escuro) 0%, var(--rosa) 50%, #E84FAD 100%);
    overflow: hidden;
    padding-top: 72px; /* navbar height */
}

/* Padrão de pontos decorativo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo-wrap {
    animation: fadeInDown 0.7s ease both;
}

.hero-logo {
    height: 130px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
    object-fit: contain;
    margin: 0 auto;
}

.hero-slogan-wrap {
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-slogan {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.hero-tagline {
    font-family: var(--font-head);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    max-width: 500px;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.7s ease 0.6s both;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ========================================
   SECÇÕES
   ======================================== */
.seccoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.seccao-card {
    background: var(--branco);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--sombra);
    transition: all var(--transition);
    text-align: center;
    border: 1px solid rgba(217, 27, 124, 0.08);
    cursor: default;
}

.seccao-card:hover, .seccao-card:focus {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
    border-color: var(--rosa-claro);
    outline: none;
}

.seccao-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--rosa-bg), #FAD5EC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--rosa);
    transition: all var(--transition);
}

.seccao-card:hover .seccao-icon {
    background: linear-gradient(135deg, var(--rosa), var(--rosa-escuro));
    color: var(--branco);
}

.seccao-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rosa-escuro);
    margin-bottom: 0.6rem;
}

.seccao-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ========================================
   FOLHETOS
   ======================================== */
.folhetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.folheto-card {
    background: var(--branco);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: all var(--transition);
    border: 1px solid rgba(217, 27, 124, 0.1);
    display: flex;
    flex-direction: column;
}

.folheto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.folheto-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folheto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folheto-pdf {
    background: linear-gradient(135deg, #fff0f8, #fad5ec);
    font-size: 4rem;
    color: var(--rosa);
}

.folheto-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.folheto-info h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.folheto-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.folhetos-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.folhetos-empty p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ========================================
   SOBRE NÓS
   ======================================== */
.sobre-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--rosa-escuro);
    margin-bottom: 1rem;
}

.sobre-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.sobre-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.sobre-badges {
    margin-top: 1.5rem;
}

.badge-pme {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.sobre-destaque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.destaque-item {
    background: var(--branco);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    box-shadow: var(--sombra);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 4px solid var(--rosa);
    transition: transform var(--transition);
}

.destaque-item:hover { transform: translateY(-4px); }

.destaque-num {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rosa);
    line-height: 1.2;
}

.destaque-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   HORÁRIO
   ======================================== */
.horario-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.horario-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--branco);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
}

.horario-table thead {
    background: var(--rosa);
}

.horario-table thead th {
    padding: 1rem 1.25rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--branco);
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.horario-table tbody tr {
    border-bottom: 1px solid rgba(217, 27, 124, 0.08);
    transition: background var(--transition);
}

.horario-table tbody tr:last-child { border-bottom: none; }

.horario-table tbody tr:hover { background: var(--rosa-bg); }

.horario-table tbody td {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
}

.horario-table tbody tr.hoje {
    background: var(--rosa-bg);
    font-weight: 600;
}

.hoje-tag {
    display: inline-block;
    background: var(--rosa);
    color: var(--branco);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-family: var(--font-head);
}

.aberto-label { color: #2a9d2a; font-weight: 600; }
.fechado-label { color: #c0392b; }

.horario-nota {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ========================================
   CONTACTOS
   ======================================== */
.contactos-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contactos-lista {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.contactos-lista li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contacto-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--rosa-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rosa);
    font-size: 1rem;
    margin-top: 2px;
}

.contactos-lista li strong {
    display: block;
    font-family: var(--font-head);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 0.1rem;
}

/* Formulário */
.contacto-form-wrap h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rosa-escuro);
    margin-bottom: 1.25rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--branco);
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rosa);
    box-shadow: 0 0 0 3px rgba(217,27,124,0.12);
}

.form-nota {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Mapa */
.contactos-mapa {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    height: 100%;
    min-height: 480px;
}

.contactos-mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 480px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.8);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1.25rem;
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--branco);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-col ul li i {
    color: var(--rosa-claro);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.footer-col a:hover { color: var(--branco); }

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-slogan {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
    text-decoration: none !important;
}

.social-fb {
    background: #1877F2;
    color: var(--branco) !important;
}

.social-fb:hover {
    background: #0d63d4;
    transform: translateY(-2px);
}

.footer-pme-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.75;
}

.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 1rem 1.25rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--rosa);
    color: var(--branco);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(217, 27, 124, 0.35);
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--rosa-escuro);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet (≤900px) */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--branco);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .nav-cta { margin-left: 0; margin-top: 0.25rem; }

    .sobre-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contactos-inner {
        grid-template-columns: 1fr;
    }

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

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .section { padding: 3.5rem 0; }

    .hero-logo { height: 100px; }
    .hero-slogan { height: 60px; }

    .seccoes-grid {
        grid-template-columns: 1fr;
    }

    .sobre-destaque {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.25rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}
