/* =====================================================
   RECONNECT AFRICA - Professional & Clean CSS
   ===================================================== */

/* Root Variables */
:root {
    --primary-color: #2c5f2d;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --border-color: #bdc3c7;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.navbar,
.nav-container,
main,
section,
.footer {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* =====================================================
   NAVIGATION BAR
   ===================================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4620 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    overflow-x: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    width: 100%;
    overflow-x: clip;
}

@media (max-width: 1024px) {
    .navbar {
        padding-left: 0;
        padding-right: 0;
    }

    .nav-container {
        width: 100vw;
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .logo-text {
        display: inline-flex !important;
        font-size: 1rem;
        gap: 0.2rem;
    }

    .logo-sub {
        display: none !important;
    }

    .logo {
        font-size: 1.1rem;
        gap: 0.35rem;
    }

    .logo i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding-left: 0;
        padding-right: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
}

.logo-text {
    display: flex;
    gap: 0.25rem;
}

.logo-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    margin-left: 0.25rem;
}

.logo-accent {
    color: var(--secondary-color);
}

.logo-sub {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        gap: 0.35rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .logo-text,
    .logo-sub {
        display: none;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 100%;
    flex-wrap: wrap;
}

.nav-menu-mobile {
    display: none;
}

/* Desktop: hide hamburger, keep horizontal links */
.mobile-menu-btn {
    display: none;
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        flex-direction: row;
    }
}

.nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #1e4620;
    padding: 1rem;
    gap: 0.75rem;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
    z-index: 1100;
    align-items: stretch;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-link {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.nav-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    white-space: normal;
}

.nav-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4620 50%, var(--accent-color) 100%);
    color: white;
    padding: 100px 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-btn {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.hero-btn:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
}

.hero-highlight {
    color: var(--secondary-color);
}

.hero-tagline {
    font-size: 1.2rem;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   SECTIONS
   ===================================================== */

main {
    min-height: calc(100vh - 60px);
    max-width: 100vw;
    overflow-x: hidden;
}

section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even) {
    background: var(--bg-light);
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* =====================================================
   HOME PAGE SECTIONS
   ===================================================== */

.diaspora-highlight {
    background: var(--bg-light);
}

.highlight-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.feature:hover {
    transform: translateY(-6px);
}

.category-grid {
    background: #ffffff;
}

.category-subtitle {
    text-align: center;
    color: #666;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #1e4620);
    color: white;
    padding: 1.25rem;
    font-size: 1.75rem;
}

.category-card .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-card .card-content {
    padding: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.feature-list i {
    color: #27ae60;
    margin-right: 0.5rem;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.card-btn:hover {
    background: var(--secondary-color);
}

/* Category color accents */
.tourism-card .card-header { background: linear-gradient(135deg, #16a085, #1abc9c); }
.realestate-card .card-header { background: linear-gradient(135deg, #e67e22, #d35400); }
.investment-card .card-header { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.legal-card .card-header { background: linear-gradient(135deg, #34495e, #2c3e50); }
.diaspora-card .card-header { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

/* =====================================================
   INVESTMENT CORE SECTION
   ===================================================== */

.core-investment {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.stat-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(44, 95, 45, 0.1);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.35rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
}

.trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(44, 95, 45, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

/* =====================================================
   INVESTMENT PAGE (MARKET, OPPORTUNITIES, BLOG)
   ===================================================== */

.investment-hero .hero-content {
    animation: fadeIn 0.8s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.market-data-section {
    background: #ffffff;
}

.market-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.market-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.live-badge {
    font-size: 0.75rem;
    color: #2ecc71;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.index-value .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.change.positive { color: #27ae60; font-weight: 600; }
.change.negative { color: #c0392b; font-weight: 600; }

.market-hours {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.forex-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rate {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}

.rate .label {
    display: block;
    font-size: 0.8rem;
    color: #777;
}

.rate .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.yield-list {
    display: grid;
    gap: 0.5rem;
}

.yield-item {
    display: flex;
    justify-content: space-between;
    background: var(--bg-light);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
}

.update-time {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}

.investment-opportunities {
    background: var(--bg-light);
}

.investment-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.opportunity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.opportunity-card:hover {
    transform: translateY(-6px);
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.opportunity-header.stocks { background: #1abc9c; }
.opportunity-header.bonds { background: #9b59b6; }
.opportunity-header.real_estate { background: #e67e22; }
.opportunity-header.treasury { background: #2980b9; }
.opportunity-header.reit { background: #2c3e50; }

.opp-risk {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.opportunity-body {
    padding: 1.25rem;
}

.opp-symbol {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.opp-details {
    display: grid;
    gap: 0.4rem;
    margin: 0.8rem 0 1rem;
}

.opp-details .detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.opp-details .label { color: #777; }
.opp-details .value { font-weight: 600; }
.opp-details .value.highlight { color: var(--secondary-color); }

.opp-cta {
    display: flex;
    gap: 0.75rem;
}

.btn-invest {
    flex: 1;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-watch {
    background: #ecf0f1;
    border: none;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.investment-blog {
    background: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover { transform: translateY(-6px); }

.featured-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
}

.blog-header,
.blog-footer {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.85rem;
}

.blog-body { padding: 0 1.25rem 1rem; }

.read-more {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-newsletter {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #1e4620);
    color: white;
    border-radius: 14px;
    padding: 2rem;
}

.blog-newsletter h3 { color: white; margin-bottom: 0.5rem; }
.blog-newsletter p { color: rgba(255, 255, 255, 0.9); }

/* =====================================================
   LEGAL SERVICES PREVIEW
   ===================================================== */

.legal-services-section {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 4rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(52, 73, 94, 0.1);
    color: #34495e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* =====================================================
   DIASPORA BENEFITS
   ===================================================== */

.diaspora-benefits {
    background: #ffffff;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.benefit i {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

/* =====================================================
   GALLERY PREVIEW
   ===================================================== */

.gallery-section {
    background: #ffffff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.photo-card:hover {
    transform: translateY(-6px);
}

.photo-img {
    height: 180px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.photo-content {
    padding: 1.25rem;
}

.priority-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

/* Shared CTA container */
.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* =====================================================
   CARDS & GRID
   ===================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    max-width: 100vw;
    overflow-x: hidden;
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.card-link:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-color);
}

.btn-secondary:hover {
    background: #2980b9;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #bbb;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    margin: 0;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #888;
}

.footer-legals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* =====================================================
   FORMS & INPUT
   ===================================================== */

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Base: Mobile-First (Android & iOS default) */
body {
    font-size: 16px;
    padding: 0;
}

/* Tablet & Smaller Laptops (macOS defaults) */
@media (min-width: 768px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop (Windows 1920x1080 default) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small phones (Android/iOS) */
@media (max-width: 360px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }
}

/* Standard phones (Android/iOS) */
@media (max-width: 414px) {
    .container {
        padding: 0 1rem;
    }
}

/* Large phones / small tablets */
@media (max-width: 600px) {
    .cards-container,
    .highlight-features {
        grid-template-columns: 1fr;
    }
}

/* Tablets (portrait) */
@media (max-width: 820px) {
    .nav-menu-mobile {
        top: 68px;
    }
}

/* Tablets (landscape) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .nav-container,
    section,
    .container,
    .footer-content {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 4.5rem;
    }
}

@media (min-width: 1900px) {
    .nav-container,
    section,
    .container,
    .footer-content {
        max-width: 1600px;
    }

    .hero h1 {
        font-size: 5rem;
    }
}

@media (min-width: 1680px) and (max-width: 1800px) {
    .nav-container,
    section,
    .container,
    .footer-content {
        max-width: 1500px;
    }

    body {
        font-size: 1.02rem;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-menu-desktop {
        gap: 1rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .nav-menu-desktop {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Mobile menu hard override (prevents horizontal expansion) */
@media (max-width: 1024px) {
    .nav-menu-mobile {
        display: none !important;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #1e4620;
        padding: 1rem;
        gap: 0.75rem;
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow);
        z-index: 1100;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .nav-menu-mobile.is-open {
        display: flex !important;
    }

    .nav-link,
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-menu-mobile {
        top: 64px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.98rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-menu-mobile {
        display: none !important;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #1e4620;
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow);
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        z-index: 1100;
        box-sizing: border-box;
    }

    .nav-menu-mobile.is-open {
        display: flex !important;
        background: #1e4620;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-link,
    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 50px 1.5rem;
    }

    .hero {
        padding: 70px 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .cta-buttons .btn,
    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-sub {
        display: none;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        padding: 50px 1rem;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 40px 1rem;
    }

    .footer {
        padding: 2.5rem 1rem 1rem;
    }

    /* Debug: temporarily show element edges if overflow persists */
    body.debug-overflow * {
        outline: 1px solid rgba(231, 76, 60, 0.35);
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-light { color: var(--text-light); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.shadow { box-shadow: var(--shadow); }
.rounded { border-radius: 10px; }

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-up {
    animation: slideUp 0.6s ease;
}
