/* 
 * Supreme Supermart CSS Stylesheet
 * A responsive design for a Brazilian supermarket website
 * Color palette: Deep blue (#1E3A8A), Coral red (#EF476F), Yellow gold (#FFD166), 
 * Mint green (#06D6A0), Azure blue (#118AB2), Light gray (#f8f9fa)
 */

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1E3A8A;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: #1E3A8A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #EF476F;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.primary-btn {
    background-color: #1E3A8A;
    color: white;
}

.primary-btn:hover {
    background-color: #152c69;
    color: white;
}

.secondary-btn {
    background-color: #EF476F;
    color: white;
}

.secondary-btn:hover {
    background-color: #d93a60;
    color: white;
}

/* Section styling */
section {
    padding: 5rem 0;
}

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

.section-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-divider {
    width: 200px;
    margin: 0 auto 1.5rem;
}

/* Header and Navigation */
.site-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 100px;
    height: 40px;
    margin-right: 1rem;
}

.logo-container h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #EF476F;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1E3A8A;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #118AB2 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    text-align: right;
    max-width: 500px;
}

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

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-basis: calc(33.333% - 1rem);
    min-width: 180px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature p {
    margin-bottom: 0;
    font-weight: 600;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-svg {
    width: 100%;
    height: auto;
}

/* Products Section */
.products-section {
    background-color: #f0f4f8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.product-card h3 {
    color: #1E3A8A;
    margin-bottom: 0.75rem;
}

.product-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Entertainment Section */
.entertainment-section {
    background-color: white;
}

.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.entertainment-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid #1E3A8A;
}

.entertainment-card:hover {
    border-top-color: #EF476F;
}

.entertainment-card a {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1E3A8A;
}

.entertainment-card a:hover {
    color: #EF476F;
}

.entertainment-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Locations Section */
.locations-section {
    background-color: #f0f4f8;
}

.locations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.location-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 280px;
    max-width: 350px;
    flex: 1;
}

.location-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.location-card h3 {
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.location-card p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1E3A8A;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.contact-info {
    flex: 1;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1E3A8A;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #EF476F;
    transform: translateY(-3px);
}

/* Footer */
.site-footer {
    background-color: #1E3A8A;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    color: white;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    flex: 1;
    min-width: 180px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: #FFD166;
}

.footer-newsletter {
    flex: 2;
    min-width: 300px;
}

.footer-newsletter h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-newsletter form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .contact-content > * {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        padding: 1rem 15px 0.5rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .products-grid,
    .entertainment-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: white;
        padding: 5rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 900;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .footer-content > * {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .feature {
        flex-basis: 100%;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
}
