/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0D2C54;
    --secondary-color: #2A9D8F;
    --background-color: #F8F9FA;
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --border-color: #DDDDDD;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

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

.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--light-text-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.nav-branding {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    background-image: url('https://images.pexels.com/photos/4031818/pexels-photo-4031818.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 44, 84, 0.6); /* primary color with opacity */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #248a7d; /* a darker shade */
    transform: translateY(-3px);
    color: var(--light-text-color);
}


/* --- Page Specific Sections --- */
.intro-section p.subtitle, .services-section p.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.service-card {
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

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

/* How It Works Section */
.how-it-works-section {
    background-color: #fff;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 4rem 2rem;
    text-align: center;
}
.page-header h1 {
    color: var(--light-text-color);
    font-size: 2.8rem;
}
.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.about-image {
    width: 100%;
    border-radius: 8px;
}

.about-content h2, .legal-content h3, .section-title {
    text-align: left;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.about-content li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.legal-content h3 {
    margin-top: 2rem;
}

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

.contact-info h3, .contact-form h3 {
    text-align: left;
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(42, 157, 143, 0.5);
}

/* Service Page */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item h3 {
    text-align: left;
}

.faq-section {
    background-color: #fff;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    text-align: left;
    margin-bottom: 0.5rem;
}


/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 1rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.footer-section h3 {
    color: var(--light-text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-section p, .footer-section address {
    font-size: 0.9rem;
    font-style: normal;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--light-text-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media(max-width: 992px) {
    .about-content, .contact-container, .features-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media(max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on header height */
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Fade-in Animation */
.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}