/* Core Styling for Finowave Website */

:root {
    --primary-green:#006241; /* Finowave Green */
    --darker-green: #454B1B; /* For accents, hovers */
    --text-dark: #666363;
    --text-light: #FFFFFF;
    --background-light: #F8F8F8;
    --background-white: #FFFFFF;
    --border-color: #E0E0E0;
    --box-shadow-light: rgba(0,0,0,0.08);
    --box-shadow-dark: rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern, clean font */
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Header & Navigation */
header {
    background-color: var(--background-white);
    padding: 15px 0; /* Slightly reduced padding */
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.container .header-container {
    padding: 0 20px; /* Ensure padding inside the container */
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space out logo and nav */
    align-items: center;
}

.logo {
    /* Removed text logo styles from here */
    display: flex; /* Helps align img */
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust as needed for your logo's size */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    margin-left: 25px; /* Spacing between nav items */
}

nav ul li:last-child {
    margin-right: 0; /* No right margin for the last item */
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 8px 0; /* Vertical padding, horizontal handled by margin-left */
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap; /* Prevent nav items from breaking lines */
    position: relative; /* For underline effect */
}

nav ul li a:hover {
    color: var(--primary-green);
}

/* Optional: Underline effect on hover for nav links */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}


/* Buttons */
.button {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: var(--darker-green);
}

/* Footer Styling */
footer {
    background: #3a3939;
    color: #241e1e;
    padding: 50px 0; /* More vertical padding */
    margin-top: 50px; /* Space above footer */
    font-size: 0.95em;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    justify-content: space-between; /* Distribute columns */
    align-items: flex-start; /* Align columns to the top */
    text-align: left; /* Default text alignment within columns */
}

.footer-col {
    flex: 1; /* Allow columns to grow */
    min-width: 250px; /* Minimum width before wrapping */
    padding: 0 15px; /* Internal padding for columns */
    margin-bottom: 30px; /* Space between columns on wrap */
}

.footer-col.about-col {
    flex: 2; /* Make the about column a bit wider */
    max-width: 400px;
}

.footer-logo img {
    height: 40px; /* Adjust size for footer logo */
    width: auto;
    margin-bottom: 15px;
}

.footer-col p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8); /* Slightly lighter text */
}


.footer-col .copyright {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

.footer-col h3 {
    color: #aaaeb1; /* Green headings in footer */
    font-size: 1.2em;
    margin-bottom: 20px;
    white-space: nowrap; /* Prevent heading from breaking */
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px; /* Space between icons */
    margin-top: 15px;
}

.social-icons a {
    color: var(--text-light); /* White icons */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-green); /* Green on hover */
    transform: translateY(-3px); /* Subtle lift effect */
}


/* Responsive Adjustments for Header & Footer */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        margin: 0 0 10px 0; /* Stack vertically with spacing */
        width: 100%;
    }
    nav ul li a {
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator for stacked links */
    }
    nav ul li:last-child a {
        border-bottom: none;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        min-width: unset; /* Remove min-width for stacking */
        width: 100%; /* Take full width */
        padding: 0 20px;
        margin-bottom: 40px;
    }
    .footer-col.about-col {
        text-align: center;
    }
    .social-icons {
        justify-content: center; /* Center icons in mobile view */
    }
    .footer-col h3, .footer-col p {
        text-align: center;
    }
    .footer-col ul {
        text-align: center;
    }
}

/* General Section Styling */
.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center; /* Central alignment for main content */
}

.content-section h1, .content-section h2 {
    color: var(--darker-green);
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
    text-align: left;
}

.content-section ul li {
    background-color: var(--background-white);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid var(--primary-green);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Hero section specific styling */
.hero {
    background-color: var(--primary-green); /* Fallback or if no image */
    color: var(--text-light);
    padding: 100px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    position: relative; /* Needed for overlay */
}

.hero::before { /* Semi-transparent overlay for readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Darkens the image */
    z-index: 1;
}

.hero h1, .hero p, .hero .button {
    position: relative; /* Bring text/button above overlay */
    z-index: 2;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero .button {
    background: rgba(255,255,255,0.2); /* Semi-transparent button on hero */
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.hero .button:hover {
    background-color: var(--text-light); /* White background on hover */
    color: var(--primary-green); /* Green text on hover */
}

/* Product Grid (Homepage & Products Page) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--box-shadow-dark);
}

.product-item h3 {
    color: var(--darker-green);
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
}

.product-item p {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take up space and push link down */
}

.product-item .learn-more-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: auto; /* Pushes link to bottom of card */
}

.product-item .learn-more-link:hover {
    text-decoration: underline;
}

.product-item .product-icon {
    font-size: 3.5em;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

/* Benefits Grid (for individual product pages) */
/* --- Benefits Grid (new style) --- */
.benefits-grid {
    display: grid;
    /* This line is key for desktop behavior: */
    /* It creates columns that are at least 280px wide, and as many as can fit */
    /* on one row. The '1fr' ensures they expand to fill available space evenly. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background-color: var(--background-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 8px var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-item .benefit-icon {
    font-size: 3em;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.benefit-item h3 {
    color: var(--darker-green);
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--darker-green);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-dark);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

/* Honeypot field (hidden from users) */
.honeypot-field {
    opacity: 0;
    position: absolute;
    left: -9999px; /* Move off-screen */
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}
.other-products-grid {
    display: flex; /* Use flexbox for horizontal alignment */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items in the grid */
    gap: 20px; /* Space between items */
    margin-top: 40px;
}

.other-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px; /* Ensure a minimum width */
    max-width: 180px; /* Limit max width */
    text-decoration: none; /* Remove underline from link */
    color: #333333; /* Default text color */
}

.other-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.other-product-item .other-product-icon {
    font-size: 38px;
    color: #008080; /* Primary Teal */
    margin-bottom: 10px;
}

.other-product-item span {
    font-size: 0.95em;
    font-weight: bold;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .other-products-grid {
        gap: 15px;
    }
    .other-product-item {
        min-width: 120px;
        max-width: 150px;
        padding: 12px 8px;
    }
    .other-product-item .other-product-icon {
        font-size: 32px;
    }
    .other-product-item span {
        font-size: 0.85em;
    }
}
@media (max-width: 480px) {
    .other-product-item {
        min-width: 100px;
        max-width: 120px;
        padding: 10px 5px;
    }
    .other-product-item .other-product-icon {
        font-size: 28px;
    }
    .other-product-item span {
        font-size: 0.8em;
    }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-grid, .benefits-grid {
        /* This line is key for mobile behavior: */
        /* It forces items to stack into a single column when screen width <= 768px */
        grid-template-columns: 1fr;
    }
    .container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

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

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

    .product-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 40px 15px;
    }

    .contact-form {
        margin: 20px auto;
        padding: 20px;
    }
}