/* --- General Styles & Variables --- */
:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #34a853; /* Green */
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #555;
    --heading-font: 'Open Sans', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --container-width: 1140px; /* Slightly wider container for side-by-side */
    --border-radius: 5px;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    margin-bottom: 0.8em;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; /* text-align: center; removed default centering */ margin-bottom: 1em; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: darken(var(--primary-color), 10%);
}

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

section {
    padding: 60px 0;
}

/* --- Header --- */
.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.header h1 a {
    color: var(--dark-color);
    font-size: 2.2rem;
    font-weight: 700;
}

.header .tagline {
    color: var(--secondary-color);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
    /* Optional Background Image: */
     background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.8)), url('../images/hero-bg-optimized.jpg') no-repeat center center/cover; 
    background-color: var(--primary-color); /* Fallback or solid color */
    color: #fff;
    padding: 60px 0; /* Adjusted padding slightly */
}

/* New Flexbox layout for Hero Content */
.hero .hero-layout-container {
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Push items apart */
    gap: 40px; /* Space between text and chart */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-content {
    flex: 1 1 55%; /* Grow, shrink, base width ~55% */
    min-width: 300px; /* Prevent getting too small */
    text-align: left; /* Align text left */
}

.hero-chart {
    flex: 0 0 40%; /* Don't grow, don't shrink, base width 40% */
    min-width: 280px; /* Prevent getting too small */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background for chart area */
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center; /* Center chart elements within its block */
}


.hero h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 0.5em;
    text-align: left; /* Override general h2 centering */
}
.hero h3 { /* Style for chart heading */
     color: #fff;
     margin-bottom: 0.6em;
     font-size: 1.6rem;
}
.hero h3 i {
    margin-right: 10px;
    color: var(--secondary-color); /* Green icon */
}

.hero .hero-subtext {
    font-size: 1.2rem;
    margin: 0 0 1.5em 0; /* Removed auto margins */
    max-width: none; /* Remove max-width constraint */
}

.hero .hero-subtext strong {
    font-weight: 700;
}

.hero .benefits {
    margin-bottom: 2em;
    display: flex;
    justify-content: flex-start; /* Align benefits left */
    flex-wrap: wrap;
    gap: 15px; /* Slightly reduced gap */
}

.hero .benefits span {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hero .benefits i {
    margin-right: 8px;
    color: #fff; /* Or var(--secondary-color) */
}

/* Chart elements within Hero */
.hero-chart p {
    margin-bottom: 0.5em;
    color: #eee; /* Lighter text for chart paragraph */
}
.hero-chart .view-count-display {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.hero-chart #view-count {
    font-size: 1.3rem; /* Make number slightly larger */
    color: #fff; /* White color for count */
}
.chart-container {
    max-width: 100%; /* Chart takes full width of its container */
    margin: 0 auto 10px auto; /* Adjusted margin */
    position: relative;
    height: 250px; /* Adjusted height slightly */
    width: 100%;
}
.hero-chart small {
    display: block;
    margin-top: 10px;
    color: #ddd; /* Lighter text for note */
    font-style: italic;
    font-size: 0.85rem;
}


.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    margin-top: 10px; /* Add some space above button */
}

.cta-button:hover {
    background-color: darken(var(--secondary-color), 10%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.cta-button i {
    margin-right: 8px;
}

/* --- REMOVED Features Section --- */
/* No styles needed for .features, .feature-grid, .feature-item */

/* --- Pageview Counter Section (Original - Now integrated into Hero) --- */
/* Remove specific section styles if any were defined */
/* .pageview-counter { ... } */

/* --- Contact Form Section --- */
.contact-form {
    background-color: #fff;
}

.contact-form h2 {
    margin-bottom: 1em;
    text-align: center; /* Keep contact heading centered */
}
.contact-form p {
    text-align: center;
    margin-bottom: 2em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#inquiry-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

#inquiry-form button[type="submit"] {
    width: 100%;
    padding: 15px;
}

.mailto-notice {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
}
.mailto-notice i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

/* --- Responsiveness --- */
@media (max-width: 992px) { /* Adjust breakpoint for stacking */
     .container {
        max-width: 960px; /* Adjust container width */
    }
     .hero .hero-layout-container {
        flex-direction: column; /* Stack items */
        align-items: center; /* Center items when stacked */
        text-align: center; /* Center text when stacked */
    }
     .hero-content {
        flex-basis: auto; /* Reset flex-basis */
        width: 100%; /* Take full width */
        text-align: center; /* Center text */
        margin-bottom: 40px; /* Add space below text block */
    }
    .hero-chart {
        flex-basis: auto; /* Reset flex-basis */
        width: 100%; /* Take full width */
        max-width: 500px; /* Optional: Limit max width of chart area */
    }
     .hero h2 {
        text-align: center; /* Center hero heading */
    }
    .hero .benefits {
        justify-content: center; /* Center benefits */
    }
}


@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .header h1 a { font-size: 1.8rem; }
    .header .tagline { font-size: 1rem; }
    .hero h2 { font-size: 2.2rem; }

    section { padding: 40px 0; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .header h1 a { font-size: 1.6rem; }
    .hero h2 { font-size: 1.8rem; }
    .hero h3 { font-size: 1.4rem; } /* Adjust chart heading size */
    h2 { font-size: 1.6rem; } /* General h2 for other sections */

    .hero .benefits {
        flex-direction: column; /* Stack benefits vertically */
        align-items: center;
        gap: 10px;
    }
    .hero .benefits span {
        width: 80%;
        text-align: center;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    #inquiry-form {
        padding: 20px;
    }
     .chart-container {
        height: 200px; /* Reduce chart height on small screens */
    }
}