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

/* CSS Variables for easier theme management */
:root {
    --primary-color: #2c3e50; /* A more neutral, dark blue */
    --secondary-color: #e74c3c; /* A vibrant, modern red-orange */
    --background-color: #f9f9f9;
    --surface-color: #ffffff;
    --text-color: #34495e;
    --light-gray-color: #ecf0f1;
    --border-color: #e0e0e0;
    --font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* General Body Styles */
body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    background-color: var(--surface-color);
    padding: 15px 50px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.7em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-color: var(--surface-color);
    text-align: center;
    padding: 120px 20px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25em;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

.cta-button {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
}

/* Main Content Styles */
.main-content {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
}

/* Card Styles */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: auto;
}

.card {
    background-color: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.card-content {
    padding: 35px;
}

.card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-icon {
    margin-right: 12px;
    font-size: 1.1em;
    color: var(--secondary-color);
}

.card.clickable {
    cursor: pointer;
}

.contact-info {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 20px;
}

/* Sub-card Styles */
.sub-card-container {
    display: none;
    padding: 0 35px 35px;
    background-color: var(--light-gray-color);
}

.sub-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.sub-card {
    background-color: var(--surface-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.sub-card:hover {
    background-color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.sub-card-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.sub-card-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #27ae60;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(44, 62, 80, 0.85);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: zoom-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    font-weight: 300;
    color: #bdc3c7;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--text-color);
}

#modal-title {
    color: var(--primary-color);
    font-size: 1.9em;
    margin-top: 0;
    font-weight: 700;
}

#modal-body h3 {
    font-size: 1.3em;
    color: var(--secondary-color);
}

@keyframes zoom-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}

.footer p {
    margin: 0;
    font-weight: 500;
}

.footer p:last-child {
    margin-top: 10px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .hero-title {
        font-size: 2.8em;
    }
    .section-title {
        font-size: 2.4em;
    }
    .nav-links {
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2em;
    }
    .section-title {
        font-size: 2em;
    }
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
}