/* Finably Rebuild - styles.css */

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0056b3; /* Finably Blue (adjust if needed) */
    --secondary-color: #007bff; /* Lighter Blue */
    --accent-color: #17a2b8; /* Teal/Cyan (adjust if needed) */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --section-padding: 4rem 5%;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.6;
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

main {
    width: 100%;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.content-section {
    padding: var(--section-padding);
}

.content-section:nth-child(even) {
    background-color: var(--light-color);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo img {
    height: 45px; /* Adjust as needed */
    /* TEMP Placeholder style */
    /* background-color: #eee; */
    /* padding: 5px; */
    /* border-radius: 3px; */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

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

nav .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--light-color); /* Or use a background image */
    text-align: center;
    padding: 6rem 5%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 700px;
}

/* --- Features Section --- */
.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    background-color: var(--white-color);
    padding: 2rem;
    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 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-item h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

/* --- Content Sections (Problem, Why, About) --- */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.content-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* --- Contact Section --- */
.contact-section form {
    max-width: 650px;
    margin: 2rem auto 0 auto;
    display: grid;
    gap: 1.2rem;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.contact-section textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-section button[type="submit"] {
    justify-self: center;
    width: auto;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 5%;
    margin-top: 3rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .hero-section {
        padding: 4rem 5%;
        min-height: auto;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 3rem 5%;
    }

    .features-section .features-grid {
        grid-template-columns: 1fr; /* Stack features */
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 0.5rem 1rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

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

