/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1180px;
    margin: 0 auto;
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - Block 1 */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 80px 0;
    min-height: 430px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section h2 {
    color: #ecf0f1;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-section p {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Reviews Section - Block 5 */
.reviews-section {
    background: #ffffff;
    padding: 80px 0;
    border-bottom: 4px solid #e74c3c;
}

.reviews-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
}

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

.review-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #e74c3c;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-header h3 {
    color: #2c3e50;
    margin-bottom: 0;
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-left: auto;
}

.review-card p {
    color: #555;
    font-style: italic;
    margin-bottom: 0;
}

/* Team Section - Block 4 */
.team-section {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    padding: 80px 0;
    color: #ffffff;
}

.team-section h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
}

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

.team-member {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

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

.team-member h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.team-member .title {
    color: #ecf0f1;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.team-member p {
    color: #bdc3c7;
    margin-bottom: 0;
}

/* Contact Form Section - Block 2 */
.contact-form-section {
    background: #34495e;
    padding: 80px 0;
    color: #ffffff;
}

.contact-form-section h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-form-section > .container > p {
    text-align: center;
    color: #bdc3c7;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: #ffffff;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group input[type="email"]:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.form-group input[type="email"]::placeholder {
    color: #999;
}

.subscription-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Services Section - Block 3 */
.services-section {
    background: #ecf0f1;
    padding: 80px 0;
    color: #2c3e50;
}

.services-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
}

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

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #95a5a6;
    text-align: center;
}

.service-card.featured {
    border-top-color: #e74c3c;
    transform: scale(1.05);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Article Section */
.article-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 3rem;
    border-left: 6px solid #e74c3c;
}

.article-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.article-section p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

/* Contact Section - Block 6 */
.contact-section {
    background: #2c3e50;
    padding: 80px 0;
    color: #ffffff;
}

.contact-section h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.address h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.address p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Footer - Block 7 */
.footer {
    background: #1a252f;
    padding: 2rem 0;
    color: #bdc3c7;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 60px 0;
        min-height: 400px;
    }

    .hero-section h2 {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .reviews-grid,
    .team-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card.featured {
        transform: none;
    }

    .service-card.featured:hover {
        transform: translateY(-5px);
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-section {
        padding: 2rem;
    }

    .article-section h3 {
        font-size: 1.5rem;
    }

    .article-section p {
        text-align: left;
    }

    section {
        padding: 60px 0 !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 40px 0;
        min-height: 350px;
    }

    .review-card,
    .team-member,
    .service-card {
        padding: 1.5rem;
    }

    .article-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .subscription-form {
        padding: 0 1rem;
    }

    section {
        padding: 40px 0 !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000000;
    }

    .btn-primary {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }

    .service-card,
    .review-card,
    .article-section {
        border: 2px solid #000000;
    }
}
