/* Solar Star USA - Component Styles */

/* Primary CTA Button Component */
.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 52px;
    padding: 0 30px;
    background: var(--primary-red);
    color: var(--white);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-primary:hover {
    background: #b01c22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 34, 42, 0.4);
}

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

/* Secondary CTA Button Component */
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 44px;
    padding: 0 24px;
    background: var(--primary-blue);
    color: var(--white);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: #1e4575;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 91, 146, 0.4);
}

/* Tertiary CTA / Link Component */
.cta-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-red);
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.cta-tertiary:hover {
    border-bottom-color: var(--primary-red);
}

.cta-tertiary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cta-tertiary:hover svg {
    transform: translateX(5px);
}

/* Service Card Component */
.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg-grey);
    border-radius: 50%;
}

.service-card-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--primary-blue);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--dark-grey);
    margin-bottom: 15px;
    font-family: var(--font-headings);
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Testimonial Card Component */
.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #FFD700;
}

.testimonial-quote {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.testimonial-author-name {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-grey);
}

.testimonial-author-location {
    font-size: 0.85rem;
    color: #888;
    margin-top: 3px;
}

/* FAQ Accordion Component */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.faq-accordion-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-headings);
    transition: all 0.3s ease;
}

.faq-accordion-question:hover {
    color: var(--primary-blue);
}

.faq-accordion-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-grey);
    flex: 1;
    padding-right: 15px;
}

.faq-accordion-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(45deg);
}

.faq-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-accordion-answer-content {
    padding-bottom: 22px;
    color: #555;
    line-height: 1.7;
}

.faq-accordion-item.active .faq-accordion-answer {
    max-height: 500px;
}

/* Partner Logo Grid Component */
.partner-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-logo-item {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px;
}

.partner-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Form Input Component */
.form-input-group {
    margin-bottom: 22px;
}

.form-input-group label {
    display: block;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.form-input-group label .required {
    color: var(--primary-red);
}

.form-input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(45, 91, 146, 0.1);
}

.form-input-field::placeholder {
    color: #aaa;
}

.form-input-field.error {
    border-color: var(--primary-red);
}

.form-input-field.error:focus {
    box-shadow: 0 0 0 3px rgba(208, 34, 42, 0.1);
}

.form-error-message {
    display: none;
    color: var(--primary-red);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-input-group.has-error .form-error-message {
    display: block;
}

textarea.form-input-field {
    min-height: 140px;
    resize: vertical;
}

/* Icon Components */
.icon-savings {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4575 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-savings svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.icon-comfort {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-comfort svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.icon-environment {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-environment svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

/* Badge Component */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary {
    background: rgba(208, 34, 42, 0.1);
    color: var(--primary-red);
}

.badge-secondary {
    background: rgba(45, 91, 146, 0.1);
    color: var(--primary-blue);
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Card Component */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

/* Divider Component */
.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto 30px;
}

.divider-left {
    margin: 0 0 30px 0;
}

/* List Check Component */
.list-check {
    list-style: none;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.list-check li svg {
    width: 22px;
    height: 22px;
    fill: #28a745;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Section Background Variants */
.bg-white {
    background: var(--white);
}

.bg-light {
    background: var(--light-bg-grey);
}

.bg-dark {
    background: var(--dark-grey);
    color: var(--white);
}

.bg-dark .section-header h2,
.bg-dark .section-header p {
    color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cta-primary {
        min-width: 180px;
        height: 48px;
        font-size: 1rem;
    }
    
    .cta-secondary {
        min-width: 140px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .partner-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-logo-item {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .cta-primary {
        width: 100%;
    }
    
    .partner-logo-grid {
        grid-template-columns: 1fr;
    }
}
