/* ============================================
   ELITE AC EXPERTS - COMPONENTS STYLESHEET
   Reusable components: Header, Footer, Forms, Cards, WhatsApp
   ============================================ */

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-top {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: var(--fs-sm);
}

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

.header-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-contact a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

.header-contact a:hover {
    color: var(--primary-yellow);
}

.header-social {
    display: flex;
    gap: 1rem;
}

.header-social a {
    color: var(--white);
    font-size: var(--fs-lg);
    transition: transform var(--transition-fast);
}

.header-social a:hover {
    color: var(--primary-yellow);
    transform: scale(1.2);
}

.header-main {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--primary-black);
}

.logo-text .highlight {
    color: var(--primary-yellow);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--primary-black);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-base);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-yellow);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

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

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

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--primary-black);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-sm) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    color: var(--primary-yellow);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-section ul a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--space-sm);
}

.footer-contact-item i {
    color: var(--primary-yellow);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.7)),
        url('../images/hero/ac-repair.png') center/cover no-repeat;
    color: var(--white);
    padding: var(--space-3xl) 0;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-title {
    font-size: var(--fs-6xl);
    color: var(--white);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--primary-yellow);
}

.hero-subtitle {
    font-size: var(--fs-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.hero-stat {
    text-align: center;
    padding: var(--space-md);
    background: rgba(253, 183, 20, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.hero-stat-number {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--primary-yellow);
    font-family: var(--font-heading);
}

.hero-stat-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== SERVICE CARDS ==================== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-orange));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content {
    padding: var(--space-lg);
}

.service-card-title {
    font-size: var(--fs-2xl);
    color: var(--primary-black);
    margin-bottom: var(--space-sm);
}

.service-card-text {
    color: var(--dark-gray);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.service-card-link {
    color: var(--primary-yellow);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-fast);
}

.service-card-link:hover {
    gap: 0.75rem;
}

/* ==================== TESTIMONIAL CARDS ==================== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-base);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: var(--primary-yellow);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-md);
}

.testimonial-rating i {
    color: var(--primary-yellow);
    font-size: var(--fs-lg);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-author-info h4 {
    font-size: var(--fs-lg);
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.testimonial-author-info p {
    font-size: var(--fs-sm);
    color: var(--dark-gray);
    margin: 0;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--primary-black);
    background-color: var(--white);
    border: 2px solid #E5E5E5;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(253, 183, 20, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--error-red);
    font-size: var(--fs-sm);
    margin-top: var(--space-xs);
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--error-red);
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: none;
}

.form-success.show {
    display: block;
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 998;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background-color: var(--light-gray);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list a {
    color: var(--dark-gray);
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--primary-yellow);
}

.breadcrumb-list .active {
    color: var(--primary-yellow);
    font-weight: 600;
}

/* ==================== RESPONSIVE COMPONENTS ==================== */
@media (max-width: 768px) {

    /* Header */
    /* Header */
    .header-top {
        display: none;
    }

    .header-top .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all var(--transition-base);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        max-height: 500px;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: var(--fs-4xl);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 80px;
        right: 20px;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}