/**
 * Home Clone Styles
 *
 * Styles for the homepage clone template
 * Matches the design of online.deviflow.com
 *
 * @package DeviFlow
 */

/* CSS Variables */
:root {
    --df-primary: #7d5782;
    --df-primary-dark: #6a4a6e;
    --df-primary-light: #9a7a9f;
    --df-secondary: #8224e3;
    --df-accent: #3e64de;
    --df-text: #212327;
    --df-text-light: #6a6f73;
    --df-border: #cdcfd5;
    --df-white: #ffffff;
    --df-bg-light: #f7f7f7;
    --df-font-heading: 'Comfortaa', cursive;
    --df-font-body: 'PT Sans', sans-serif;
    --df-shadow: 6px 6px 9px rgba(0,0,0,0.2);
    --df-shadow-hover: 8px 8px 12px rgba(0,0,0,0.25);
    --df-transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f5f9 0%, #f0e8f2 100%);
    padding: 56px 0; /* Reduced by 30% from 80px */
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--df-font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--df-primary);
    margin-bottom: 30px;
    line-height: 1.3;
}

.hero-intro {
    font-size: 20px;
    color: var(--df-text);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 18px;
    color: var(--df-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--df-font-heading);
    font-size: 16px;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--df-transition);
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
}

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

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

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

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

/* CTA Cards Section */
.cta-section {
    padding: 60px 0;
    background: var(--df-white);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cta-card {
    background: var(--df-white);
    border: 1px solid var(--df-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--df-shadow);
    transition: var(--df-transition);
}

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

.cta-card-icon {
    font-size: 48px;
    color: var(--df-primary);
    margin-bottom: 20px;
}

.cta-card-title {
    font-family: var(--df-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--df-text);
    margin-bottom: 15px;
}

.cta-card-text {
    font-size: 16px;
    color: var(--df-text-light);
    margin-bottom: 25px;
}

/* Practices Section */
.practices-section {
    padding: 80px 0;
    background: var(--df-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--df-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--df-text);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--df-text-light);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.practice-card {
    background: var(--df-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--df-shadow);
    transition: var(--df-transition);
    position: relative;
    text-decoration: none;
    display: block;
}

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

.practice-image {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
}

.practice-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.practice-card:hover .practice-image img {
    transform: scale(1.05);
}

.practice-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 30px 15px 20px;
}

.practice-title {
    font-family: var(--df-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--df-white);
    text-align: center;
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--df-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--df-white);
    border: 1px solid var(--df-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--df-shadow);
    position: relative;
}

.testimonial-quote {
    font-size: 60px;
    color: var(--df-primary);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--df-text);
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-family: var(--df-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--df-primary);
    text-align: right;
    margin: 0;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--df-primary) 0%, var(--df-primary-dark) 100%);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--df-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--df-white);
    margin-bottom: 15px;
}

.newsletter-text {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    padding: 15px 25px;
    font-size: 16px;
    border: none;
    border-radius: 9999px;
    min-width: 300px;
    font-family: var(--df-font-body);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 15px 35px;
    font-family: var(--df-font-heading);
    font-size: 16px;
    font-weight: 600;
    background: var(--df-white);
    color: var(--df-primary);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--df-transition);
}

.newsletter-form button:hover {
    background: var(--df-text);
    color: var(--df-white);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .practices-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 35px 0; /* Reduced by 30% from 50px */
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-intro {
        font-size: 18px;
    }

    .hero-text {
        font-size: 16px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-title {
        font-size: 28px;
    }

    .newsletter-form input[type="email"] {
        min-width: 100%;
    }
}

@media (max-width: 479px) {
    .practices-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 24px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}
