/*
Theme Name: Electric
Theme URI: https://srelectricfl.com
Description: Simply theme to S&R Electric Inc website with Bootstrap 5
Author: Matheus Chiarelli
Version: 1.0
*/

/* ===================================
   ESTILOS PERSONALIZADOS S&R ELECTRIC
   =================================== */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Barra de contato no topo */
.top-bar {
    background: linear-gradient(to bottom, #006bb3 0%, #005a99 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Header/Navbar */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0066cc !important;
}

/* Menu mobile - fecha automaticamente após clicar */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* HERO/BANNER SECTION */
.hero-section {
    position: relative;
    min-height: 550px;
    background-image: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-box {
    position: relative;
    z-index: 2;
    background: #0066cc;
    padding: 50px 40px;
    color: white;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-box .btn {
    background: white;
    color: #0066cc;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid white;
}

.hero-box .btn:hover {
    background: transparent;
    color: white;
}

/* SEÇÕES */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #0066cc;
    border: 0;
    margin: 0 auto 40px;
}

/* ABOUT SECTION */
.about-section {
    background-color: white;
    padding: 60px 0;
}

.about-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f0f0f0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-circle:hover {
    transform: scale(1.05);
}

.about-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0;
}

.about-item-content {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-item-content p {
    margin-bottom: 15px;
}

.services-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.services-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.services-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
    font-size: 1.2rem;
}

/* SUBSCRIBE SECTION - FAIXA AZUL */
.subscribe-section {
    background: linear-gradient(to bottom, #006bb3 0%, #005a99 100%);
    color: white;
    padding: 40px 0;
}

.subscribe-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.subscribe-form input {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    padding: 14px 20px;
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.subscribe-form input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    outline: none;
    box-shadow: none;
}

.subscribe-form .btn {
    padding: 14px 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* NEWSLETTER PLUGIN STYLES */
.subscribe-section .tnp-subscription {
    margin: 0 !important;
    width: 100% !important;
}

.subscribe-section .tnp-subscription form {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin: 0 !important;
}

.subscribe-section .tnp-field {
    margin: 0 !important;
    flex: 1 !important;
    display: flex !important;
}

.subscribe-section .tnp-field label {
    font-size: 20px;
    padding: 13px 19px 0;
}

.subscribe-section .tnp-email {
    width: 100% !important;
    min-width: 400px;
    padding: 14px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    background: transparent !important;
    color: white !important;
    height: auto !important;
    margin: 0 !important;
}

.subscribe-section .tnp-email::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.subscribe-section .tnp-email:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    box-shadow: none !important;
}

.subscribe-section .tnp-field-button {
    margin: 0 !important;
    display: flex !important;
}

.subscribe-section .tnp-submit {
    background: white !important;
    color: #0066cc !important;
    border: none !important;
    padding: 14px 40px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.subscribe-section .tnp-submit:hover {
    background: #f0f0f0 !important;
}

.subscribe-section .tnp-privacy-field,
.subscribe-section .tnp-lists-field,
.subscribe-section .tnp-field.tnp-field-privacy,
.subscribe-section .tnp-field.tnp-field-list {
    display: none !important;
}

/* Newsletter responsivo */
@media (max-width: 768px) {
    .subscribe-section .tnp-subscription form {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .subscribe-section .tnp-submit {
        width: 100% !important;
    }
    
    .subscribe-title {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    .subscribe-section .tnp-email {
        min-width: 200px;
    }
}

/* GALLERY SECTION */
.gallery-section {
    background-color: white;
    padding: 60px 0;
}

.gallery-content {
    margin: 0 auto;
}

/* FooGallery Styles */
.gallery-content .foogallery {
    margin: 0;
}

.gallery-content .foogallery-container {
    max-width: 100%;
}

.gallery-content .foogallery img {
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 500px !important;
    width: auto !important;
    object-fit: contain !important;
}

.gallery-content .foogallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FooGallery Carousel - Limitar altura */
.gallery-content .foogallery.fg-carousel .fg-item,
.gallery-content .foogallery.fg-carousel .fg-item-inner,
.gallery-content .foogallery.fg-carousel .fg-thumb {
    max-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gallery-content .foogallery.fg-carousel {
    max-height: 550px !important;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .gallery-content .foogallery img {
        max-height: 350px !important;
    }
    
    .gallery-content .foogallery.fg-carousel .fg-item,
    .gallery-content .foogallery.fg-carousel .fg-item-inner,
    .gallery-content .foogallery.fg-carousel .fg-thumb {
        max-height: 350px !important;
    }
    
    .gallery-content .foogallery.fg-carousel {
        max-height: 400px !important;
    }
}

.gallery-placeholder {
    background: #e0e0e0;
    padding: 100px 20px;
    text-align: center;
    color: #666;
    border: 2px dashed #ccc;
}

/* CONTACT SECTION */
.contact-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.contact-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper .form-control {
    border: 1px solid #ddd;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.contact-form-wrapper .form-control:focus {
    border-color: #0066cc;
    box-shadow: none;
}

.contact-form-wrapper .btn {
    background: #0066cc;
    border: none;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
}

.contact-form-wrapper .btn:hover {
    background: #0055aa;
}

/* ESTILOS PARA CONTACT FORM 7 */
.contact-form-wrapper .wpcf7 {
    margin: 0;
}

.contact-form-wrapper .wpcf7 .row {
    margin-bottom: 15px;
}

.contact-form-wrapper .wpcf7 input[type="text"],
.contact-form-wrapper .wpcf7 input[type="email"],
.contact-form-wrapper .wpcf7 input[type="tel"],
.contact-form-wrapper .wpcf7 textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form-wrapper .wpcf7 input:focus,
.contact-form-wrapper .wpcf7 textarea:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: none;
}

.contact-form-wrapper .wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-wrapper .wpcf7 input[type="submit"] {
    background: #0066cc !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: background 0.3s ease !important;
}

.contact-form-wrapper .wpcf7 input[type="submit"]:hover {
    background: #0055aa !important;
}

.contact-form-wrapper .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 4px !important;
}

.contact-form-wrapper .wpcf7-validation-errors {
    border: 2px solid #dc3545 !important;
    color: #dc3545 !important;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    border: 2px solid #198754 !important;
    color: #198754 !important;
}

.contact-form-wrapper .wpcf7-spinner {
    margin-left: 10px;
}

.contact-info-item {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-info-item a {
    color: #0066cc;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* FOOTER */
.site-footer {
    background: linear-gradient(to bottom, #006bb3 0%, #005a99 100%);
    color: white;
    padding: 25px 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-box {
        padding: 40px 30px;
    }
    
    .hero-box h1 {
        font-size: 2rem;
    }
    
    .about-circle {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .subscribe-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-box h1 {
        font-size: 1.75rem;
    }
    
    .about-circle {
        width: 180px;
        height: 180px;
    }
}

