/* Elegant Driveway Page Styles */

/* Enhanced Hero Section */
.hero-elegant {
    position: relative;
    overflow: hidden;
}

.hero-elegant .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 120, 227, 0.75) 0%, rgba(0, 91, 181, 0.75) 100%);
}

.hero-elegant .hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-elegant .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(254, 210, 92, 0.15);
    animation: float 20s ease-in-out infinite;
}

.hero-elegant .shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-elegant .shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.hero-elegant .shape-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(254, 210, 92, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(254, 210, 92, 0.3);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-badge i {
    color: #fed25c;
    font-size: 1.2rem;
}

.hero-badge span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fed25c;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Driveway Materials Showcase */
.materials-showcase {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.materials-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 120, 227, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(254, 210, 92, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.material-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 120, 227, 0.3);
}

.material-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.material-card:hover .material-image img {
    transform: scale(1.1);
}

.material-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.material-card:hover .material-overlay {
    opacity: 0.9;
    background: linear-gradient(to top, rgba(0, 91, 181, 0.7) 0%, transparent 100%);
}

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

.material-content h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.material-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    flex: 1;
}

.material-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.material-feature {
    background: rgba(0, 120, 227, 0.1);
    color: #0078e3;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Driveway Gallery */
.driveway-gallery {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Design Patterns Section */
.design-patterns {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pattern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
}

.pattern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 120, 227, 0.3);
}

.pattern-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.pattern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.pattern-card:hover .pattern-image img {
    transform: scale(1.1);
}

.pattern-content {
    padding: 1.5rem;
}

.pattern-content h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pattern-content h3 i {
    color: #0078e3;
    font-size: 1.2rem;
}

.pattern-content p {
    color: #64748b;
    margin-bottom: 0;
}

/* Before/After Section */
.before-after-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.before-after-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.comparison-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.comparison-before, .comparison-after {
    position: relative;
    height: 300px;
}

.comparison-before img, .comparison-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.comparison-after .comparison-label {
    background: rgba(0, 120, 227, 0.9);
}

.comparison-text {
    padding: 1.5rem;
    background: white;
}

.comparison-text h4 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.3rem;
}

.comparison-text p {
    color: #64748b;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0078e3 0%, #005bb5 100%);
    position: relative;
    color: white;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/paver-driveway.jpeg') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.testimonials-container {
    position: relative;
    z-index: 2;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: rgba(254, 210, 92, 0.5);
    font-family: Georgia, serif;
    line-height: 1;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fed25c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Enhanced CTA Section */
.cta-elegant {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 30px;
    padding: 4rem 3rem;
    margin: 5rem auto;
    max-width: 1100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.cta-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 120, 227, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(254, 210, 92, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.cta-badge-elegant {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(254, 210, 92, 0.25) 0%, rgba(254, 210, 92, 0.15) 100%);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(254, 210, 92, 0.5);
    margin-bottom: 2rem;
    color: #fbbf24;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(254, 210, 92, 0.2);
}

.cta-badge-elegant i {
    font-size: 1.1rem;
}

.cta-content-elegant h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-content-elegant p {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-feature-elegant {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-feature-elegant:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-feature-elegant i {
    color: #fed25c;
    font-size: 1.2rem;
}

.cta-buttons-elegant {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Construction Elements */
.construction-elements-elegant {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

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

.element-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.element-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 120, 227, 0.3);
}

.element-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 120, 227, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1rem;
}

.element-icon i {
    font-size: 2rem;
    color: #0078e3;
}

.element-content {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
}

.element-content h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.element-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.element-content ul {
    text-align: left;
    color: #64748b;
    padding-left: 1.5rem;
}

.element-content ul li {
    margin-bottom: 0.5rem;
}

/* Enhanced FAQ Section */
.faq-section-elegant {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Original FAQ Grid Layout */
.faq-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item-elegant {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.faq-item-elegant:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 120, 227, 0.3);
}

.faq-item-elegant h3 {
    background: linear-gradient(135deg, #0078e3 0%, #005bb5 100%);
    color: white;
    margin: 0;
    padding: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.faq-content-elegant {
    padding: 1.5rem;
}

.faq-content-elegant p {
    margin: 0.5rem 0;
    color: #64748b;
}

.faq-content-elegant p strong {
    color: #1e293b;
    font-weight: 600;
}

/* New Accordion FAQ Layout */
.faq-accordion {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-accordion-item {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 120, 227, 0.2);
}

.faq-accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: all 0.3s ease;
}

.faq-accordion-header:hover {
    background: rgba(0, 120, 227, 0.03);
}

.faq-accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 600;
    padding-right: 2rem;
}

.faq-accordion-header .icon {
    color: #0078e3;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.faq-accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 0px solid rgba(226, 232, 240, 0.8);
}

.faq-accordion-item.active .faq-accordion-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

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

.faq-accordion-content p {
    margin: 1rem 0;
    color: #64748b;
    line-height: 1.6;
}

.faq-accordion-content p strong {
    color: #1e293b;
    font-weight: 600;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .before-after-container {
        grid-template-columns: 1fr;
    }
    
    .cta-elegant {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    
    .cta-content-elegant h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        padding: 0.5rem 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        width: 80%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .patterns-grid {
        grid-template-columns: 1fr;
    }
}
