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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Clear floats */
}

/* Header & Navigation */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

header nav .logo-link {
    text-decoration: none;
    color: #fff; /* Ensure it stays white like the original logo text */
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header ul {
    list-style: none;
    display: flex;
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: url('hero_background.png') no-repeat center center/cover;
    color: #fff;
    height: 80vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Account for fixed header */
    position: relative;
}

.hero::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative; /* To be above the overlay */
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Sections General Styling */
section {
    padding: 80px 0; /* Adjust padding for header */
}
section:first-of-type { /* For the home section if it's not a full hero */
    padding-top: 100px; /* Ensure content below fixed header */
}


.services-section, .about-section, .contact-section {
    background-color: #fff;
    margin-bottom: 20px; /* Spacing between sections */
}
.about-section {
    background-color: #eef2f5;
}


h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
    min-height: 2.4em; /* Ensure consistent height for card titles, adjust as needed */
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

/* About Us Section */
.about-section p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

/* Contact Section */
.contact-section p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

#contact-form button[type="submit"] {
    width: 100%;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 20px; /* Ensure space above footer */
}

footer p {
    margin-bottom: 0.5rem; /* Add some space between paragraphs in footer */
}

footer p:last-child {
    margin-bottom: 0;
}

footer .footer-link {
    color: #00aaff; /* A lighter blue for visibility on dark background */
    text-decoration: none;
}
footer .footer-link:hover {
    text-decoration: underline;
}

/* Legal Page Specific Styles */
.legal-page-container { /* This will be the <main> element */
    padding-top: 120px; 
    padding-bottom: 60px;
    background-color: #fff;
    color: #333; /* Default text color for the page */
}

.legal-page-container .container { /* This is the inner container for centering content */
    max-width: 800px; /* For better readability of text */
    margin: 0 auto;
}

.legal-page-container h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #333;
}

.legal-page-container h2 {
    font-size: 2rem;
    color: #007bff; 
    margin-top: 50px; 
    margin-bottom: 20px;
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px;
}

.legal-page-container section:first-of-type h2 { /* The first H2 (e.g. Terms) */
    margin-top: 0; 
}

.legal-page-container h3 {
    font-size: 1.5rem;
    color: #444; /* Slightly lighter than main headings */
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-page-container p,
.legal-page-container ul {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.legal-page-container ul {
    list-style: disc;
    padding-left: 25px; /* Indent list items */
}
.legal-page-container ul ul { /* Nested lists */
    list-style: circle;
    margin-top: 5px;
}

.legal-page-container li {
    margin-bottom: 8px;
}

.legal-page-container a {
    color: #007bff;
}
.legal-page-container a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }

    header .logo {
        margin-bottom: 10px;
    }
    
    header ul {
        flex-direction: column;
        text-align: center;
    }

    header ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }
    section:first-of-type {
        padding-top: 150px; /* Adjust for taller mobile header */
    }

    .legal-page-container {
        padding-top: 180px; /* Increased padding for taller mobile header */
    }

    .legal-page-container h1 {
        font-size: 2.2rem;
    }
    .legal-page-container h2 {
        font-size: 1.8rem;
    }
    .legal-page-container h3 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}