:root {
    --green: #008751;
    --gold: #F2C94C;
    --navy: #0A3D62;
    --terra: #C24E2A;
    --light-bg: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: var(--navy);
    transition: var(--transition);
}

a:hover {
    color: var(--green);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
}

.logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    background: var(--green);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-btn:hover {
    background: #006b40;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,135,81,0.3);
    color: white !important;
}

.cta-btn-gold {
    background: var(--gold);
    color: var(--navy) !important;
}

.cta-btn-gold:hover {
    background: #e0b82a;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: #006b40;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--navy);
    color: white;
}

.btn-secondary:hover {
    background: #082d4a;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: white;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: #e0b82a;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ============================================
   Grid
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-dark {
    background: var(--navy);
    color: white;
}

.section-dark h2 {
    color: white;
}

.section-light {
    background: var(--light-bg);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(rgba(10,61,98,0.85), rgba(10,61,98,0.85)), 
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 220px 20px 160px;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero .cta-btn {
    font-size: 1.3rem;
    padding: 18px 45px;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,135,81,0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ============================================
   Tables
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 14px 16px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background: var(--navy);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: var(--light-bg);
}

tr:hover {
    background: #e8f5e9;
}

/* ============================================
   Accordion
   ============================================ */
.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 18px 20px;
    background: var(--light-bg);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-content {
    padding: 20px 25px;
    display: none;
    background: white;
}

.accordion-content.active {
    display: block;
}

/* ============================================
   Testimonials Carousel
   ============================================ */
.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-card {
    min-width: 100%;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.carousel-controls {
    text-align: center;
    margin-top: 20px;
}

.carousel-controls button {
    background: none;
    border: none;
    font-size: 2rem;
    margin: 0 15px;
    color: var(--green);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-controls button:hover {
    transform: scale(1.2);
}

/* ============================================
   Alerts & Messages
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
}

.stat-card .stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #111;
    color: #aaa;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-grid ul li {
    margin: 0.5rem 0;
}

.footer-grid ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-grid ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: #aaa;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .cta-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 150px 20px 100px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}