/*
Theme Name: JF Eletrônica - Assistência Técnica
Author: Manus AI
Description: Tema personalizado para a JF Eletrônica, Assistência Técnica em São Gonçalo do Amarante, RN.
Version: 3.0 - Otimizado e Responsivo
*/

/* --- VARIÁVEIS DE COR --- */
:root {
    --primary-color: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #0066cc;
    --secondary-color: #25D366;
    --secondary-dark: #1fa854;
    --accent-color: #4CAF50;
    --accent-hover: #388E3C;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f4f4f9;
    --white: #fff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET E ESTILOS GLOBAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--secondary-color);
}

a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* --- BOTÕES CTA --- */
.cta-button {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--secondary-dark));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- CABEÇALHO --- */
.header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 3px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.05);
}

.top-contact {
    font-weight: 600;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.top-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- MENU HAMBURGUÊS --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* --- NAVEGAÇÃO --- */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

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

.nav-menu ul li a.whatsapp-link {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-menu ul li a.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(37, 211, 102, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
}

.hero .cta-button {
    animation: slideUp 0.8s ease-out 0.3s both;
}

/* --- SEÇÕES --- */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    animation: fadeIn 0.8s ease-out;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- SERVIÇOS GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    animation: fadeInUp 0.6s ease-out;
}

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

.service-card .icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .icon {
    color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- POR QUE ESCOLHER A JF --- */
.why-choose-us {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.reason {
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    background-color: var(--white);
    border: 2px solid transparent;
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease-out;
    text-align: center;
}

.reason:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.reason .icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.reason:hover .icon {
    color: var(--accent-color);
    transform: scale(1.15);
}

.reason h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.reason p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

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

/* --- DEPOIMENTOS --- */
.testimonials {
    background: var(--light-bg);
}

.carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--light-bg);
}

.testimonial-carousel::-webkit-scrollbar {
    height: 6px;
}

.testimonial-carousel::-webkit-scrollbar-track {
    background: var(--light-bg);
}

.testimonial-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.testimonial-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.testimonial-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

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

.testimonial-card .stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    font-size: 0.9rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.3rem;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-button:hover {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

/* --- RODAPÉ --- */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.95);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.footer-info {
    flex: 1;
    min-width: 200px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* --- MAPA RESPONSIVO --- */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* --- ANIMAÇÕES --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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);
    }
}

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

/* --- RESPONSIVIDADE --- */

/* Tablets (768px a 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-wrapper {
        padding: 0 30px;
    }

    .carousel-button {
        padding: 10px 14px;
        font-size: 1.1rem;
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        border-top: 3px solid var(--secondary-color);
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: var(--shadow-lg);
        z-index: 998;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul li a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--light-bg);
        color: var(--primary-color);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.95rem;
        transition: var(--transition);
    }

    .nav-menu ul li a:hover {
        background: var(--light-bg);
        color: var(--secondary-color);
    }

    .nav-menu ul li a::after {
        display: none;
    }

    .nav-menu ul li a.whatsapp-link {
        background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
        color: var(--white);
        text-align: center;
        margin: 1rem;
        border-radius: 50px;
        border: none;
    }

    .nav-menu ul li a.whatsapp-link:hover {
        background: linear-gradient(135deg, var(--secondary-dark), var(--accent-hover));
    }

    .top-contact {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .logo {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        order: 3;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

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

    .why-choose-us-grid {
        grid-template-columns: 1fr;
    }

    .reason {
        padding: 1.5rem;
    }

    .carousel-wrapper {
        padding: 0 10px;
    }

    .carousel-button {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }

    .footer .container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

/* Smartphones pequenos (até 480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card .icon {
        font-size: 2.8rem;
    }

    .reason {
        padding: 1.25rem;
    }

    .reason .icon {
        font-size: 2.2rem;
    }

    .testimonial-card {
        flex: 0 0 260px;
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .top-contact {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .footer .container {
        padding: 1rem 0;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* --- UTILITÁRIOS --- */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

/* --- ACESSIBILIDADE --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --text-light: #b0b0b0;
        --light-bg: #1a1a1a;
        --white: #0d0d0d;
    }

    body {
        background-color: var(--white);
    }
}
