/*
Theme Name: TBI Electric
Theme URI: http://tbielectric.com/
Author: Your Name
Author URI: http://yourwebsite.com/
Description: A custom theme for TBI Electric
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tbi-electric
*/

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: rgba(0, 0, 0, 0.65);
    background-blend-mode: overlay;
    background-size: cover;
    color: white;
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 250px;
    overflow: hidden;
    justify-content: center;
}

.hero-content {
    text-align: center;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero-section h1,
.hero-section h4 {
    text-align: center;
    width: 100%;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: #4169E1;
    border: 2px solid #4169E1;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: #3050C5;
    border-color: #3050C5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background-color: #4169E1;
    border-color: #4169E1;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3050C5;
    border-color: #3050C5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.service-card {
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-image {
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Service Grid */
.service-grid-item {
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-grid-item:hover {
    transform: translateY(-5px);
}

/* Offer Cards */
.offer-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    transition: all 0.3s ease;
}

.offer-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.offer-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.offer-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-content h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.offer-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0;
}

/* Placeholders */
.placeholder-img {
    background-color: #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Benefits Section */
.benefits-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

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

.benefit-icon {
    font-size: 2.5rem;
    color: #4169E1;
    margin-bottom: 1.5rem;
    background-color: rgba(65, 105, 225, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.faq-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    background-color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    color: #4169E1;
    background-color: rgba(65, 105, 225, 0.05);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

/* Service Section */
.service-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.service-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.service-row {
    margin-bottom: 3rem;
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background-color: white;
}

.service-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-img {
    width: 100%;
    height: 731px;
    background-size: cover;
    background-position: center;
}

/* Gallery Section */
.gallery-section {
    position: relative;
    margin-bottom: 3rem;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gallery-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.gallery-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 1.3rem;
}

.gallery-img {
    width: 100%;
    height: auto;
    max-height: 1200px;
    object-fit: cover;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.gallery-dot.active {
    background-color: #4169E1;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0;
        min-height: 0;
        background-attachment: scroll;
        aspect-ratio: 16/9;
        width: 100%;
        background-size: 100% 100%;
        overflow: hidden;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
        width: 100%;
        padding: 2rem 1rem;
    }
    
    .hero-section h1,
    .hero-section h4 {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    .about-section {
        padding: 3rem 1rem !important;
    }
    .about-section .w-75 {
        width: 100% !important;
    }
    .about-section .about-image {
        width: 100% !important;
        height: 300px !important;
        margin-top: 1.5rem;
    }
    .about-section .col-lg-6 {
        display: flex;
        justify-content: center;
    }
    /* Mobile styles for What We Offer Section */
    .what-we-offer-section {
        padding: 3rem 1rem !important;
    }
    .what-we-offer-section .container {
        padding: 0 !important;
    }
    .what-we-offer-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        justify-content: center !important;
    }
    .what-we-offer-section .bg-white {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto 1.5rem !important;
    }
    .what-we-offer-section .bg-white img {
        width: 100% !important;
        height: auto !important;
    }
    /* Mobile styles for Testimonials Section */
    .testimonials-carousel-container {
        padding: 0 ;
    }
    .testimonials-carousel-overflow {
        padding: 0 ;
    }
    .testimonials-carousel-track {
        display: flex ;
        justify-content: flex-start ;
    }
    .testimonial-card {
        flex: 0 0 100%;
        width: 100% ;
        max-width: 100% ;
        margin-bottom: 1.5rem ;
    }
    .carousel-control-prev {
        left: 5px ;
    }
    .carousel-control-next {
        right: 5px ;
    }
    /* Mobile: remove inline offset on Why Partner cards */
    section[style*="background: #fff;"] .row.justify-content-center.g-4 > .col-md-4 > .bg-light {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 0;
        padding: 0;
        background-position: center center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Services Section Styles */
.services-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(65, 105, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: #4169E1;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-card {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* CONTACT PAGE LAYOUT FIX */
.contact-form-section .container > .row.mb-4 {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.contact-form-section .contact-form-container {
  flex: 1 1 350px;
  min-width: 320px;
  margin-right: 32px;
}

.contact-form-section .map-container {
  flex: 1 1 350px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
}

/* Agrupa mapa y data en columna derecha */
.contact-form-section .map-container .florida-map {
  flex: 1 1 auto;
}

/* Contact info y service areas debajo del mapa, alineado a la derecha */
.contact-form-section .contact-info-compact,
.contact-form-section .service-areas-compact {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .contact-form-section .container > .row.mb-4 {
    flex-direction: column;
  }
  .contact-form-section .contact-form-container,
  .contact-form-section .map-container {
    margin-right: 0;
    min-width: 0;
    width: 100%;
  }
  .contact-form-section .contact-info-compact,
  .contact-form-section .service-areas-compact {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

/* Contact Modal Styles */
#contactModal .modal-content {
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

#contactModal .btn-close {
  z-index: 1050;
  background-color: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#contactModal .btn-close:hover {
  background-color: #f8f9fa;
}

#contactModal .modal-body {
  padding: 0;
}

#contactModal h2 {
  font-size: 28px;
  color: #333;
}

#contactModal .form-control {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#contactModal .form-control:focus {
  border-color: #4169E1;
  box-shadow: 0 0 0 0.25rem rgba(65, 105, 225, 0.25);
}

#contactModal .btn-primary {
  background-color: #4169E1;
  border-color: #4169E1;
  padding: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#contactModal .btn-primary:hover {
  background-color: #3050C5;
  border-color: #3050C5;
}

/* Mejoras para el modal de contacto */
#contactModal .modal-dialog {
  max-width: 800px;
}

#contactModal .row {
  min-height: 550px;
}

#contactModal textarea {
  resize: none;
}

@media (max-width: 767px) {
  #contactModal .modal-dialog {
    margin: 10px;
  }
  
  #contactModal .d-flex.justify-content-between {
    flex-direction: column;
    gap: 15px;
  }
  
  #contactModal .row {
    min-height: auto;
  }
  
  #contactModal img {
    height: 200px !important;
  }
}

.service-card-bottom {
  height: 220px;
  display: flex;
  flex-direction: column;
}

.service-card-content {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 1rem;
}

