@import url('variables.css');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #EF6C00;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.logo-text span {
    color: var(--primary-orange);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link.active {
    color: var(--primary-green);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.language-selector {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 4px;
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
}

.lang-btn.active {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.accessibility-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--light-text);
    cursor: pointer;
    margin-left: 10px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.auth-btn {
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.auth-btn.signin {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.auth-btn.signup {
    background-color: var(--primary-green);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-text);
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
}

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    font-size: 12px;
    padding: 8px 5px;
    border-radius: 8px;
    transition: var(--transition);
    min-width: 60px;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-green);
    background-color: var(--light-green);
}

/* Main Content Padding */
.main-content {
    padding-bottom: 80px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/heroes/hero-home.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    padding: 16px 36px;
    font-size: 18px;
}

.access-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-item i {
    font-size: 24px;
}

.access-label {
    font-weight: 600;
}

.access-value {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    color: var(--primary-green);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius);
    background-color: var(--cream);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.step-icon {
    font-size: 70px;
    margin-bottom: 15px;
}

.step-card h3 {
    margin-bottom: 15px;
    color: var(--primary-brown);
}

/* Impact Section */
.impact-section {
    background-color: var(--light-green);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.impact-card {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.impact-label {
    font-size: 1.1rem;
    color: var(--primary-brown);
    font-weight: 600;
}

.women-impact-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.women-impact-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.women-icon {
    width: 60px;
    height: 60px;
    background-color: #FFE0B2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 24px;
}

.women-impact-header h3 {
    color: var(--primary-brown);
}

.impact-details {
    background-color: #F5F5F5;
    border-radius: var(--radius);
    padding: 25px;
}

.impact-details h4 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

.impact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.impact-item i {
    color: var(--primary-orange);
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tools-title {
    margin-bottom: 30px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Market Prices */
.prices-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.prices-header {
    background-color: var(--primary-green);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.prices-table {
    padding: 0;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    background-color: #f9f9f9;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.crop-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crop-emoji {
    font-size: 24px;
}

.crop-price {
    font-weight: 600;
}

.crop-change {
    font-weight: 600;
}

.crop-change.up {
    color: #4CAF50;
}

.crop-change.down {
    color: #F44336;
}

.crop-change.neutral {
    color: #757575;
}

.prices-footer {
    padding: 15px 20px;
    text-align: center;
}

.prices-footer .btn {
    width: 100%;
}

/* Quick Tools */
.tools-cards {
    display: grid;
    gap: 20px;
}

.tool-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tool-icon {
    width: 50px;
    height: 50px;
    background-color: #E8F5E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 24px;
}

.tool-card h3 {
    color: var(--primary-brown);
}

.tool-card p {
    margin-bottom: 20px;
}

/* Access Methods */
.access-section {
    background-color: #F5F5F5;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.access-card {
    text-align: center;
    padding: 40px 30px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.access-card-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.access-card h3 {
    margin-bottom: 15px;
    color: var(--primary-brown);
}

.access-card p {
    margin-bottom: 25px;
}

.ussd-code {
    background-color: var(--light-green);
    padding: 15px;
    border-radius: var(--radius);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.whatsapp-number {
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: var(--radius);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.whatsapp-btn {
    width: 100%;
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #1da851;
}

/* Footer */
.footer {
    background-color: var(--primary-brown);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-weight: bold;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-logo-text span {
    color: var(--primary-orange);
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: white;
    font-size: 20px;
    opacity: 0.8;
    transition: var(--transition);
}

.social-link:hover {
    opacity: 1;
}

.footer h4 {
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
}