/* 
    Blelec Charging Station - Component Styles
    Buttons, Cards, Sections, Hero, Forms, Timeline
*/

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.w-full { width: 100%; }

/* Main Sections */
.section {
    padding: 3.5rem 0;
}

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

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Page Hero (Shared) */
.page-hero {
    padding: 7rem 0 4rem;
    text-align: center;
    background: var(--bg-light);
    border-bottom: 1px solid #efefef;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-btns {
    gap: 1rem;
}

/* Hero Slider Interactive */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background: var(--primary);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.8s ease-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    z-index: 1;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    color: var(--white);
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Thumbnails (Border Images) */
.slider-thumbnails {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.thumb {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid rgba(255,255,255,0.2);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8) brightness(0.6);
    transition: all 0.4s ease;
}

.thumb .thumb-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.thumb:hover {
    transform: translateX(-10px) scale(1.05);
    border-color: rgba(255,255,255,0.6);
}

.thumb:hover img, .thumb.active img {
    filter: grayscale(0) brightness(1);
}

.thumb.active {
    border-color: var(--accent);
    transform: translateX(-20px) scale(1.1);
    box-shadow: 0 0 30px var(--accent-glow);
}

.thumb.active .thumb-label {
    opacity: 1;
    color: var(--accent);
}

/* Responsive Slider */
@media (max-width: 968px) {
    .slider-thumbnails {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 2rem;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 1rem;
    }
    .thumb {
        width: 80px;
        height: 60px;
    }
    .thumb.active {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #efefef;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Service Details Page */
.service-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.grid-reverse { 
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 968px) {
    .grid-reverse { 
        grid-template-columns: 1fr 1fr;
        direction: rtl; 
    }
    .grid-reverse > * { 
        direction: ltr; 
    }
}

.service-img-container {
    background: var(--bg-light);
    height: 400px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-img-container:hover .service-image-full {
    transform: scale(1.05);
}

.service-features {
    list-style: none;
    margin: 2rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Timeline */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
    border-left: 2px dashed rgba(0, 51, 102, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -4.5rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #efefef;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Contact Page Additional */
.contact-grid-page {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-item-page {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item-page i {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Map Container */
.map-container {
    margin-top: 3rem;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #efefef;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #efefef;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover { transform: translateY(-5px); }

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-light);
}

.author-info h4 { margin: 0; color: var(--primary); }
.author-info p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

/* Partners Slider */
.partners-section {
    padding: 3rem 0;
    border-top: 1px solid #efefef;
    background: var(--white);
}

.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(1);
    transition: opacity 0.3s ease;
}

.partners-slider:hover { opacity: 1; filter: grayscale(0); }

.partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 4rem auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #efefef;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { border-bottom: 1px solid #efefef; }
