/* ========================================
   SMART SOUZA SUPERMERCADO — Landing Page
   ======================================== */

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

:root {
    --red-primary: #E31B23;
    --red-dark: #B91420;
    --red-light: #FF3B42;
    --red-glow: rgba(227, 27, 35, 0.25);
    --white: #FFFFFF;
    --off-white: #F8F6F3;
    --cream: #FFF9F0;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-500: #888888;
    --gray-700: #444444;
    --gray-900: #1A1A1A;
    --green-whatsapp: #25D366;
    --green-whatsapp-dark: #1EBE57;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-red: 0 8px 30px rgba(227, 27, 35, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.about-card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.about-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.dept-card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.dept-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.info-card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }


/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

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

.logo-link {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

.header.scrolled .logo-img {
    height: 42px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    transition: all var(--transition-fast);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--gray-700);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.header.scrolled .nav-link:hover {
    background: var(--gray-100);
    color: var(--red-primary);
}

.btn-whatsapp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--green-whatsapp);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-whatsapp-header:hover {
    background: var(--green-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.header.scrolled .hamburger span {
    background: var(--gray-900);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('hero.png') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(227, 27, 35, 0.88) 0%,
        rgba(185, 20, 32, 0.92) 40%,
        rgba(26, 26, 26, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    height: 120px;
    margin: 0 auto 32px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    display: inline;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-whatsapp);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background: var(--green-whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--red-primary);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--red-primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-small:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 8px auto 0;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: scrollDown 2s ease-in-out infinite;
}


/* ---- Sections ---- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(227, 27, 35, 0.08);
    color: var(--red-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title .highlight {
    color: var(--red-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ---- About Section ---- */
.section-about {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(227, 27, 35, 0.08), rgba(227, 27, 35, 0.04));
    border-radius: 50%;
    color: var(--red-primary);
    transition: all var(--transition-smooth);
}

.about-card:hover .about-icon {
    background: var(--red-primary);
    color: var(--white);
    transform: scale(1.1);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}


/* ---- Departments Section ---- */
.section-departments {
    background: var(--white);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.dept-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid var(--gray-200);
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.dept-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.dept-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dept-card:hover .dept-img {
    transform: scale(1.08);
}

.dept-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
}

.dept-info {
    padding: 28px;
}

.dept-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.dept-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}


/* ---- Info Section (Hours & Location) ---- */
.section-info {
    background: var(--off-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.info-card-icon {
    color: var(--red-primary);
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.schedule-day {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.schedule-time {
    font-weight: 700;
    color: var(--red-primary);
    font-size: 1rem;
    background: rgba(227, 27, 35, 0.06);
    padding: 6px 16px;
    border-radius: 50px;
}

.schedule-divider {
    height: 1px;
    background: var(--gray-200);
}

.location-address {
    font-size: 1.05rem;
    color: var(--gray-700);
    margin-bottom: 24px;
    line-height: 1.7;
}


/* ---- CTA Section ---- */
.section-cta {
    background: linear-gradient(
        135deg,
        var(--red-primary) 0%,
        var(--red-dark) 50%,
        #8B0000 100%
    );
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.section-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

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

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--green-whatsapp);
    color: var(--white);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    background: var(--green-whatsapp-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}


/* ---- Footer ---- */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 72px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 60px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}


/* ---- WhatsApp Float Button ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: var(--green-whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-fast);
    animation: pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
    animation: none;
}


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

@media (max-width: 1024px) {
    .about-grid,
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .departments-grid .dept-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-smooth);
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        color: var(--gray-700) !important;
        font-size: 1.05rem;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover {
        background: var(--gray-100) !important;
        color: var(--red-primary) !important;
    }

    .btn-whatsapp-header {
        display: none;
    }

    .about-grid,
    .departments-grid {
        grid-template-columns: 1fr;
    }

    .departments-grid .dept-card:last-child {
        grid-column: span 1;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .hero-logo {
        height: 90px;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cta-phone {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .info-card {
        padding: 36px 28px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px;
    }

    .about-card {
        padding: 32px 24px;
    }

    .dept-img-wrapper {
        height: 180px;
    }
}
