/**
 * Sorodiesel - Components CSS (Público)
 * Hero, produtos, serviços, depoimentos, contato
 */

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    background: rgba(196, 30, 58, 0.2);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--text-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--accent);
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 25px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: var(--font-size-lg);
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stat {
    text-align: center;
}

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

.hero-stat-label {
    font-size: var(--font-size-base);
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.3s backwards;
}

.hero-visual {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-visual i {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.hero-card {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-card-1 {
    bottom: 30px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-card-1 .icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
}

.hero-card-1 .text h4 {
    font-size: var(--font-size-base);
    color: var(--text-dark);
}

.hero-card-1 .text p {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin: 0;
}

.hero-card-2 {
    top: 50px;
    right: -20px;
    text-align: center;
    animation-delay: 1s;
}

.hero-card-2 .bosch-badge {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--font-size-base);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    z-index: 2;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111827;
}

.product-content p {
    font-size: var(--font-size-base);
    color: #374151;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.product-price {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.product-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    gap: 10px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--text-white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: var(--gradient-secondary);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #111827;
}

.service-card p {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
}

/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    padding: var(--spacing-4xl) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.why-us .section-title h2 {
    color: #ffffff;
}

.why-us .section-title p {
    color: rgba(255, 255, 255, 0.92);
}

.why-us .section-title span {
    color: var(--accent);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.why-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
    color: var(--text-white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-dark);
}

.why-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 15px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-light);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 50px;
    color: var(--secondary);
    opacity: 0.2;
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: var(--font-size-md);
    color: #1f2937;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 22px;
    font-weight: 700;
}

.testimonial-info h4 {
    font-size: var(--font-size-md);
    color: #111827;
}

.testimonial-info p {
    font-size: var(--font-size-sm);
    color: #4b5563;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 45px;
    color: var(--text-white);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info > p {
    opacity: 0.95;
    margin-bottom: 35px;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: var(--font-size-md);
    margin-bottom: 5px;
}

.contact-item-text p {
    font-size: var(--font-size-base);
    opacity: 0.95;
}

.contact-item-text a {
    color: var(--text-white);
}

.contact-item-text a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 45px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: var(--font-size-md);
    font-family: var(--font-secondary);
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}

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

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

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: var(--font-size-md);
}

/* ========================================
   RESPONSIVE - COMPONENTS
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 60px 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .products,
    .services,
    .why-us,
    .testimonials,
    .contact {
        padding: 70px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-badge {
        font-size: var(--font-size-xs);
        padding: 8px 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: var(--font-size-base);
    }

    .products-grid,
    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
}
