:root {
    --primary-color: #006400;
    /* Dark Green */
    --accent-color: #4CAF50;
    /* Light Green */
    --bg-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
    --gray-light: #e0e0e0;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button & Inputs Global */
button,
input,
select {
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #004d00;
}

input,
select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Header */
.site-header {
    background: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: #555;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #006400 0%, #004d00 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.quick-convert-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-input {
    width: 150px;
}

/* Converter Section */
.converter-section {
    margin-bottom: 60px;
}

.converter-card {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.converter-header {
    background: var(--accent-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.converter-body {
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #444;
}

.swap-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding-top: 25px;
    /* Align with inputs */
    cursor: pointer;
}

.result-display {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 30px;
    border: 1px solid #c8e6c9;
}

.unit-text {
    font-size: 1rem;
    color: #555;
    font-weight: normal;
}

/* State Guide Section */
.state-guide-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.state-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.2s ease;
}

.state-card:hover {
    transform: translateY(-5px);
}

.state-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* FAQ Section */
.faq-section {
    padding: 40px 0 80px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

summary {
    font-weight: 600;
    color: var(--primary-color);
    outline: none;
}

details[open] summary {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Footer */
footer#contact {
    background: #2a2a2a;
    color: #ccc;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-placeholder span {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    line-height: 35px;
    font-size: 12px;
    cursor: not-allowed;
}

.bottom-bar {
    background: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsiveness */
/* Mobile Menu Logic Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        /* Ensure it's visible on mobile */
        z-index: 1001;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: center;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
    }

    .lang-switcher {
        display: none;
        /* Hide on mobile for now or move inside nav */
    }

    .quick-convert-form {
        flex-direction: column;
        width: 100%;
    }

    .hero-input,
    .hero-select,
    .btn-primary {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .swap-icon {
        padding: 10px 0;
        transform: rotate(90deg);
    }
}