/* Base Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #6366f1;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --bg-dark: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-color: #d1d5db;
    --border-radius: 6px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem - makes calculations easier */
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-tertiary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-tertiary:hover {
    background-color: var(--bg-light);
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    display: block;
}

.main-nav .nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 2rem;
    font-size: 4.2rem;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

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

/* Sections */
.section {
    padding: 8rem 0;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-image {
    text-align: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.member-icon {
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-member h3 {
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--text-light);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 1rem;
}

.slider-controls button {
    background-color: var(--bg-dark);
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail img {
    flex-shrink: 0;
}

.social-media {
    margin-top: 4rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.4rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0 2rem;
}

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

.footer-logo p {
    margin-top: 1.5rem;
    opacity: 0.8;
}

.footer-links h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 1.4rem;
}

/* Thank You Page */
.thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.thank-you-content img {
    margin: 0 auto 3rem;
}

.thank-you-content h1 {
    margin-bottom: 2rem;
}

.thank-you-content .btn {
    margin-top: 3rem;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2.4rem;
    text-align: left;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.legal-content h2::after {
    display: none;
}

.legal-content h3 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.legal-content ul li {
    margin-bottom: 1rem;
}

/* Blog Article */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 4rem;
    text-align: center;
}

.article-header h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.article-image {
    margin-bottom: 3rem;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.article-body h2 {
    font-size: 2.8rem;
    text-align: left;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.article-body h2::after {
    display: none;
}

.article-body h3 {
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-body p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    line-height: 1.7;
}

.article-body ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.article-body ul li {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-footer {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    margin-bottom: 2rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
}

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

/* Responsive Designs */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }

    .hero .container,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image,
    .about-image {
        margin-top: 2rem;
    }

    .contact-detail {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav .nav-list {
        position: fixed;
        top: 8rem;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }

    .main-nav .nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .section {
        padding: 6rem 0;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }

    .service-card,
    .team-member,
    .blog-card,
    .testimonial {
        padding: 2rem;
    }
}
