/* style.css */
/* Main stylesheet for the SEO-ready front-end website. */

:root {
    --primary-color: #e67e22; /* A nice, strong orange */
    --secondary-color: #d35400; /* Darker orange for hover/accents */
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white-color: #ffffff;
    --gray-color: #bdc3c7;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --font-family: 'Inter', sans-serif;
}

/* --- General & Reset --- */
body {
    font-family: var(--font-family);
    margin: 0;
    background-color: #f9f9f9;
    color: var(--dark-color);
    line-height: 1.7;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* --- Header --- */
.site-header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    margin-right: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--dark-color);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Homepage --- */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    margin: 2rem 0;
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-grid-card {
    background: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.tool-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.tool-grid-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.tool-grid-card p {
    flex-grow: 1;
    color: #555;
}
.tool-grid-card span {
    font-weight: 600;
    color: var(--secondary-color);
    align-self: flex-start;
}

/* --- Single Tool Page --- */
.tool-page-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.single-tool-card {
    background: var(--white-color);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.tool-header h1 {
    margin-bottom: 0.5rem;
}
.tool-header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0;
}

.calculator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-field input, .form-field select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

.calc-button {
    grid-column: 1 / -1; /* Span full width */
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.calc-button:hover {
    background-color: var(--secondary-color);
}

.result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
    display: none; /* Hidden by default */
}

.result-area h3 {
    margin-top: 0;
}

.result-area p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
.result-area span {
    font-weight: 700;
    color: var(--dark-color);
}

.additional-content {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
}

/* --- Ad Slots --- */
.ad-slot {
    margin: 2rem auto;
    text-align: center;
    min-height: 50px; /* So the slot is visible even if the ad doesn't load */
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #f0f0f0;  Optional: for visualizing empty slots */
}

/* --- Static Content Page --- */
.content-page {
    background: var(--white-color);
    padding: 2rem 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 900px;
}

.content-page h1, .content-page h2 {
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    .main-nav li a {
        display: block;
        padding: 1rem;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .calculator-body {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}
