/* Basic Resets & Global Styles */
:root {
    --primary-color: #4CAF50; /* A fresh green */
    --secondary-color: #A5D6A7; /* A bright accent color */
    --text-color: #333;
    --light-text-color: #666;
    --background-light: #f8f8f8;
    --background-dark: #eee;
    --white: #fff;
    --border-color: #ddd;
    --header-height: 80px; /* Example header height */
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

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

a:hover {
    color: darken(var(--primary-color), 10%); /* This won't work directly in CSS, use a slightly darker hex */
    color: #388E3C; /* A darker green for hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Helps remove extra space below images */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add some padding on the sides for smaller screens */
}

/* --- Header & Navigation --- */
.hero {
    background: var(--primary-color); /* Soft green gradient */
    padding-bottom: 60px; /* Space below hero content */
}

.navbar {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand-logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #388E3C;
    color: var(--white); /* Keep text white on hover */
}

.menu-button {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Ensure it's above the menu when open */
}

.menu-icon {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* Menu icon animation for mobile */
.menu-icon.open {
    background-color: transparent;
}

.menu-icon.open::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-icon.open::after {
    transform: rotate(-45deg);
    top: 0;
}


/* --- Hero Content --- */
.hero-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 40px; /* Space between text and image */
    padding-top: 80px;
    text-align: center; /* Center align content on mobile */
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-heading {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.hero-paragraph {
    font-size: 1.2em;
    color: whitesmoke;
    margin-bottom: 30px;
}

.app-download-buttons {
    display: flex;
    justify-content: center; /* Center buttons on mobile */
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.app-store-badge {
    height: 50px; /* Standardize app badge size */
    width: auto;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-5px);
}

.hero-image-mockup {
    flex: 1;
    max-width: 400px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-mockup img {
    border-radius: 15px; /* Slightly rounded corners for the app image */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}

.section-heading {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--text-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 40px;
}

.step-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-image {
    width: 80px; /* Size of the step icons */
    height: 80px;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-description {
    color: var(--light-text-color);
    font-size: 1em;
}

/* --- Benefits Section (Counters) --- */
.benefits-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
    text-align: center;
}

.benefit-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-heading {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* --- Footer --- */
.footer {
    background-color: #222;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 40px;
    text-align: center;
}

.footer-column {
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-link {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.footer-link:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.social-icons img:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    grid-column: 1 / -1; /* Span across all columns */
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-policy-link {
    color: #aaa;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 5px 0;
}

.footer-policy-link:hover {
    color: var(--white);
}

.copyright {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    margin-top: 20px;
    font-size: 0.8em;
    color: #888;
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .nav-menu {
        display: flex !important; /* Always show on desktop */
    }

    .menu-button {
        display: none; /* Hide hamburger on desktop */
    }

    .hero-content {
        flex-direction: row; /* Side-by-side on larger screens */
        text-align: left;
    }

    .hero-text {
        padding-right: 40px;
        text-align: left;
    }

    .app-download-buttons {
        justify-content: flex-start; /* Align buttons to the left */
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for "How it Works" */
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for "Benefits" */
    }

    .footer-content {
        grid-template-columns: 1fr 1fr; /* Two columns for footer on tablet/desktop */
        text-align: left;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-logo {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .hero-heading {
        font-size: 4.5em; /* Larger heading on large screens */
    }
}

/* Mobile navigation overlay */
@media (max-width: 767px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: var(--header-height); /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; /* Hidden by default on mobile */
        max-height: 0; /* For smooth transition */
        overflow: hidden; /* For smooth transition */
        transition: max-height 0.3s ease-out;
    }

    .nav-menu.open {
        display: flex; /* Show when open */
        max-height: 300px; /* A value larger than the menu's actual height */
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-link {
        padding: 10px 0;
        width: 100%;
    }

    .menu-button {
        display: block; /* Show hamburger icon on mobile */
    }

    .hero-content {
        padding-top: 40px;
    }
}