/* style.css */
/* Define color variables for easier management, now aligned with the BLUE logo */
:root {
    --primary-blue: #007bff; /* A vibrant blue, similar to the logo's main color */
    --dark-blue: #0056b3;   /* A darker blue for deeper accents/hover states */
    --light-blue-tint: #e0f2ff; /* A very light blue tint for alternating sections/backgrounds */
    --white: #ffffff;
    --dark-text: #333;
    --heading-text: #2c3e50; /* A dark, almost black for strong headings */
    --accent-color: #28a745; /* A complementary green accent for secondary actions/highlights */
    --accent-hover: #218838;
}

/* Basic Reset & Typography */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-blue-tint); /* Default light blue background for all pages */
    display: flex; /* For pushing footer to bottom on policy pages */
    flex-direction: column; /* For pushing footer to bottom on policy pages */
    min-height: 100vh; /* Ensures footer sticks to bottom */
}
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading-text);
    margin-bottom: 0.5em;
}
h1 { font-size: 2.5em; text-align: center; margin-bottom: 1em; }
h2 { font-size: 2em; margin-bottom: 0.75em; }
h3 { font-size: 1.5em; margin-bottom: 0.5em; }
p { margin-bottom: 1em; }
ul { list-style: disc; padding-left: 25px; margin-bottom: 1em; } /* Standard bullets for policy */
ul li { margin-bottom: 0.5em; }

/* General Layout & Spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1; /* Allows content to push footer down on policy pages */
}

/* Section specific styling for landing page and policy pages */
section {
    background-color: var(--white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
section:nth-child(even) {
    background-color: var(--light-blue-tint); /* Light blue tint for alternating sections */
}

/* Top Header for Logo and Navigation */
.top-header {
    text-align: center;
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}
.top-header .container.header-container { /* Target the specific container for flex */
    display: flex;
    justify-content: space-between; /* Pushes logo to left, nav to right */
    align-items: center; /* Vertically aligns items */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    padding: 10px 20px; /* Adjust padding as needed */
}

.logo {
    max-width: 200px; /* Default logo size for landing page */
    height: auto;
    display: block;
    margin: 0; /* Remove auto margin for flex container */
}
/* Adjust logo size for policy pages if desired, using a specific class on the img tag */
.logo-small {
    max-width: 180px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 20px; /* Space between nav items */
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--heading-text); /* Standard text color for nav links (non-buttons) */
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-blue); /* Hover effect for nav links */
}

/* Hero Section (Landing Page Specific) */
.hero {
    background-color: var(--primary-blue); /* Primary blue from logo for hero background */
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    border-radius: 0;
    margin-bottom: 0;
}
.hero h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 0.2em;
}
.hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.5;
}
.hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Call to Action Buttons - General Styles */
.button {
    display: inline-block;
    background-color: var(--accent-color); /* Complementary green for main buttons */
    color: var(--white); /* Ensures text is white on green */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px; /* Default margin for buttons */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow for depth */
}
.button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px); /* Slight lift on hover */
}

.secondary-button {
    background-color: var(--dark-blue); /* Dark blue for secondary buttons */
    color: var(--white); /* White text on dark blue */
    margin-left: 15px; /* Default margin for secondary button */
}
.secondary-button:hover {
    background-color: var(--primary-blue); /* Primary blue for secondary button hover */
    transform: translateY(-2px);
}

/* Specific styling for buttons within the main navigation */
.main-nav .nav-btn {
    padding: 8px 15px; /* Smaller padding for nav buttons */
    font-size: 0.9em;
    margin-left: 5px; /* Small space between nav buttons */
}
/* FIX: Ensure button text color is white within main-nav due to specificity */
.main-nav .button,
.main-nav .secondary-button {
    color: var(--white); /* This specifically targets and sets white text for buttons in the nav */
}

.cta-group {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Key Features Grid (assuming this was part of your previous design) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.feature-item h3 {
    color: var(--primary-blue); /* Blue heading for feature items */
    font-size: 1.4em;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 0.95em;
    color: var(--dark-text);
    margin-bottom: 20px;
}
.button-small {
    display: inline-block;
    background-color: var(--accent-color); /* Green for these buttons */
    color: var(--white); /* White text on green */
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}
.button-small:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    background-color: var(--primary-blue); /* Primary blue for footer */
    color: var(--white); /* White text on blue footer */
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    border-radius: 0;
}
footer a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}
.social-icons a {
    font-size: 24px;
    margin: 0 10px;
    color: var(--white);
}
.social-icons img {
    vertical-align: middle;
    border-radius: 4px;
}

/* Form Styling */
form {
    background-color: var(--light-blue-tint); /* Light blue tint for form background */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--heading-text);
}
form input[type="text"],
form input[type="email"],
form input[type="password"], /* Added for login/signup forms */
form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
form button[type="submit"] {
    width: auto;
    display: inline-block;
    margin: 0;
    padding: 12px 30px;
}
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%; /* Make login form inputs full width */
}
.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}
.forgot-password a {
    color: var(--dark-blue);
    text-decoration: none;
}
.forgot-password a:hover {
    text-decoration: underline;
}

/* Policy Page Specific Styles */
.policy-page-h1 {
    color: var(--dark-blue);
}
.policy-section {
    background-color: var(--white);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.policy-section h2 {
    color: var(--primary-blue);
}
.policy-container {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    h3 { font-size: 1.3em; }
    .hero { padding: 60px 15px; }
    .hero h1 { font-size: 2.5em; }
    .hero p { font-size: 1.1em; }
    section { padding: 25px; }

    .button {
        display: block;
        margin: 15px auto;
        width: 80%;
    }
    .secondary-button {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-group .secondary-button {
        margin-left: auto;
        margin-right: auto;
    }

    .container, .policy-container {
        padding: 15px;
    }
    .policy-section { padding: 20px; }

    /* Responsive adjustments for header */
    .top-header .container.header-container {
        flex-direction: column;
        text-align: center;
    }
    .main-nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        width: 100%;
    }
    .main-nav a {
        padding: 8px 0;
    }
    .main-nav .nav-btn {
        width: 80%;
        margin-left: 0;
        margin-right: 0;
    }
    .logo {
        margin: 0 auto; /* Center logo on small screens */
    }
}