/* 
 * TechVida - Main Stylesheet
 * Theme: Gadgets and Electronics Store
 * Language: Portuguese
 */

/* ====== VARIABLES ====== */
:root {
    --primary-color: 203, 85%, 47%; /* #2196F3 */
    --primary-dark: 203, 85%, 37%; /* #1976D2 */
    --primary-light: 203, 85%, 57%; /* #64B5F6 */
    --secondary-color: 340, 85%, 50%; /* #E91E63 */
    --accent-color: 16, 85%, 50%; /* #FF5722 */
    --text-dark: 210, 10%, 23%; /* #343A40 */
    --text-medium: 210, 10%, 40%; /* #616E7C */
    --text-light: 210, 15%, 70%; /* #A8B2C1 */
    --background: 210, 11%, 98%; /* #F5F7FA */
    --background-alt: 210, 10%, 96%; /* #EBEEF2 */
    --success: 145, 63%, 42%; /* #28A745 */
    --warning: 36, 100%, 50%; /* #FFC107 */
    --danger: 354, 70%, 54%; /* #DC3545 */
    --gray-100: 210, 10%, 95%; /* #F1F3F5 */
    --gray-200: 210, 10%, 90%; /* #E2E6EA */
    --gray-300: 210, 10%, 80%; /* #C3C9D0 */
    --gray-400: 210, 10%, 70%; /* #A8B2BD */
    --gray-500: 210, 10%, 60%; /* #8E99A4 */
    --gray-600: 210, 10%, 50%; /* #747D88 */
    --gray-700: 210, 10%, 40%; /* #5A616A */
    --gray-800: 210, 10%, 30%; /* #42474D */
    --gray-900: 210, 10%, 20%; /* #292D32 */
    
    --font-primary: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    
    --container-width: 1200px;
    --header-height: 80px;
    --footer-height: auto;
    
    --transition: all 0.3s ease;
}

/* ====== RESET ====== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: hsl(var(--text-dark));
    background-color: hsl(var(--background));
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-dark));
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.6rem;
}

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

a:hover {
    color: hsl(var(--primary-dark));
}

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ====== UTILITY CLASSES ====== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: hsl(var(--primary-color));
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    color: white;
}

.btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: white;
    color: hsl(var(--primary-color));
    border: 1px solid hsl(var(--primary-color));
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: hsl(var(--primary-light));
    color: white;
    border-color: hsl(var(--primary-light));
}

.btn-tertiary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: transparent;
    color: hsl(var(--text-dark));
    border: 1px solid hsl(var(--gray-300));
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-tertiary:hover {
    background-color: hsl(var(--gray-100));
}

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

.section-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
}

/* ====== LAYOUT ====== */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 5rem;
}

.logo img {
    height: 100%;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-weight: 600;
    color: hsl(var(--text-dark));
    position: relative;
}

.nav-menu a:hover {
    color: hsl(var(--primary-color));
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: hsl(var(--primary-color));
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: hsl(var(--text-dark));
    border-radius: 5px;
    transition: var(--transition);
}

section {
    padding: 8rem 0;
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    z-index: 200;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ====== MODAL ====== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 600px;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.4rem;
    cursor: pointer;
}

.cookie-settings {
    margin: 2rem 0;
}

.cookie-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--gray-200));
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 600;
    margin-left: 1rem;
}

.cookie-option p {
    margin-top: 0.5rem;
    margin-left: 2.5rem;
    font-size: 1.4rem;
    color: hsl(var(--text-medium));
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
}

/* ====== HERO SECTION ====== */
.hero {
    padding: 5rem 0;
    background-color: white;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 2rem;
}

.hero-text p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-image {
    flex: 1;
}

/* ====== ABOUT SECTION ====== */
.about {
    background-color: hsl(var(--background-alt));
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 4rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

/* ====== PRODUCTS SECTION ====== */
.products {
    background-color: white;
}

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

.product-card {
    background-color: hsl(var(--background));
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    color: hsl(var(--primary-color));
    margin-bottom: 2rem;
}

.product-card h3 {
    margin-bottom: 1.5rem;
}

/* ====== SERVICES SECTION ====== */
.services {
    background-color: hsl(var(--background-alt));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    color: hsl(var(--primary-color));
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

/* ====== TESTIMONIALS SECTION ====== */
.testimonials {
    background-color: white;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    position: relative;
}

.testimonial-card {
    background-color: hsl(var(--background));
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 100%;
    transition: var(--transition);
}

.testimonial-rating {
    margin-bottom: 2rem;
}

.star {
    color: hsl(var(--warning));
    font-size: 2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-title {
    color: hsl(var(--text-medium));
    font-size: 1.4rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-nav button {
    background-color: hsl(var(--gray-200));
    color: hsl(var(--text-dark));
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-nav button:hover {
    background-color: hsl(var(--primary-color));
    color: white;
}

/* ====== NEWSLETTER SECTION ====== */
.newsletter {
    background-color: hsl(var(--background-alt));
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content p {
    margin-bottom: 3rem;
}

.newsletter form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
}

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

.form-group label {
    font-weight: 600;
}

.form-group input {
    padding: 1.2rem;
    border: 1px solid hsl(var(--gray-300));
    border-radius: var(--border-radius);
    background-color: white;
}

.form-group input:focus {
    border-color: hsl(var(--primary-color));
}

.newsletter button {
    margin-top: 1rem;
}

/* ====== BLOG PREVIEW SECTION ====== */
.blog-preview {
    background-color: white;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.blog-card {
    background-color: hsl(var(--background));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
}

.view-all-posts {
    text-align: center;
    margin-top: 5rem;
}

/* ====== CONTACT SECTION ====== */
.contact {
    background-color: hsl(var(--background-alt));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2.4rem;
    color: hsl(var(--primary-color));
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: hsl(var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== FOOTER ====== */
footer {
    background-color: hsl(var(--gray-900));
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-logo {
    max-width: 15rem;
}

.footer-logo p {
    margin-top: 2rem;
    color: hsl(var(--gray-400));
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.footer-column a {
    color: hsl(var(--gray-400));
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-column p {
    color: hsl(var(--gray-400));
    margin-bottom: 1rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--gray-800));
}

.social-media {
    display: flex;
    gap: 1.5rem;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: hsl(var(--gray-800));
    border-radius: 50%;
    transition: var(--transition);
}

.social-media a:hover {
    background-color: hsl(var(--primary-color));
}

.social-media img {
    width: 2rem;
    height: 2rem;
}

.copyright {
    color: hsl(var(--gray-500));
    font-size: 1.4rem;
}

.cookie-settings-link button {
    background: none;
    color: hsl(var(--gray-400));
    text-decoration: underline;
    font-size: 1.4rem;
    transition: var(--transition);
}

.cookie-settings-link button:hover {
    color: white;
}

/* ====== THANK YOU PAGE ====== */
.thank-you {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 0;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-icon {
    color: hsl(var(--success));
    font-size: 9.6rem;
    margin-bottom: 3rem;
}

.thank-you-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

/* ====== LEGAL PAGES ====== */
.legal-page {
    padding: 5rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 5rem;
}

.legal-header p {
    color: hsl(var(--text-medium));
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    margin-bottom: 2rem;
}

.legal-section h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.legal-section ul, .legal-section ol {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.legal-section li {
    margin-bottom: 1rem;
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        order: 2;
        text-align: center;
    }
    
    .hero-image {
        order: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-logo {
        margin: 0 auto;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .social-media {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 2rem;
        transform: translateY(-100%);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .about-stats {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 54%;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .products-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-options {
        flex-direction: column;
    }
}
