:root {
    --brand-green: #17743b;
    --brand-blue: #1259a8;
    --navy-dark: #0A192F;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-offwhite: #F8FAFC;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-offwhite);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy-dark); font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; font-weight: 600; font-size: 0.95rem;
    border-radius: 4px; transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--brand-green); color: white; border-color: var(--brand-green); }
.btn-primary:hover { background: #125c2e; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(23, 116, 59, 0.2); }
.btn-outline-white { background: transparent; color: white; border-color: white; }
.btn-outline-white:hover { background: white; color: var(--navy-dark); }

/* --- Header & Navigation --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Glassmorphism */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.site-header.scrolled { padding: 5px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo & Name Grouped */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 45px; height: 45px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1rem; color: var(--navy-dark); letter-spacing: 0.5px; }
.brand-tagline { font-size: 0.65rem; font-weight: 600; color: var(--brand-green); text-transform: uppercase; letter-spacing: 1px; }

/* Desktop Nav */
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { font-weight: 500; font-size: 0.95rem; color: var(--navy-dark); transition: var(--transition); }
.desktop-nav a:hover { color: var(--brand-green); }
.nav-btn { padding: 10px 24px; font-size: 0.9rem; }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.mobile-toggle span { width: 28px; height: 2px; background: var(--navy-dark); transition: var(--transition); }

.mobile-menu {
    position: fixed; inset: 0; background: var(--white); z-index: 2000;
    display: flex; flex-direction: column; padding: 24px;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.close-menu { background: none; border: none; font-size: 2.5rem; color: var(--navy-dark); cursor: pointer; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-links a { font-size: 1.2rem; font-weight: 600; color: var(--navy-dark); border-bottom: 1px solid #eee; padding-bottom: 10px; }

/* --- Hero Section --- */
.hero {
    position: relative; height: 70vh; min-height: 500px; margin-top: 80px; /* Offset for header */
    background: url('/img/kigali-hero.jpg') center/cover no-repeat;
    display: flex; align-items: center;
}
.hero-gradient {
    position: absolute; inset: 0;
    /* Crystal clear on the right, dark on the left for text */
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.4) 50%, rgba(10, 25, 47, 0) 100%);
}
.hero-container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 600px; color: white; }
.hero-badge {
    display: inline-block; padding: 6px 12px; background: rgba(23, 116, 59, 0.3);
    border: 1px solid var(--brand-green); border-radius: 4px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.hero h1 { color: white; font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 15px; }
.hero p { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 15px; }

/* --- Sections --- */
.section { padding: 100px 0; }
.bg-light { background: var(--white); } /* White sections break up the off-white background */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }

/* Split Layout (About) */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.split-text p { font-size: 1.05rem; margin-bottom: 15px; }
.split-cards { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: var(--bg-offwhite); padding: 30px; border-radius: 8px; border-left: 4px solid var(--brand-green); }
.info-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: white; padding: 40px 30px; border-radius: 8px;
    border: 1px solid #e2e8f0; transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--brand-green); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 15px; }

/* --- Footer --- */
.site-footer { background: var(--navy-dark); color: #94a3b8; padding: 60px 0 20px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.brand-logo-footer { width: 50px; height: 50px; }
.footer-brand h4 { color: white; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 5px; }
.footer-brand p { font-size: 0.85rem; color: var(--brand-green); }
.footer-contact p { margin-bottom: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.85rem; }

/* --- Responsive Design (Mobile First focused) --- */
@media (max-width: 992px) {
    .split-layout, .services-grid { grid-template-columns: 1fr; }
    .hero { height: 60vh; }
    .hero-gradient { background: linear-gradient(180deg, rgba(10, 25, 47, 0.8) 0%, rgba(10, 25, 47, 0.5) 100%); } /* Mobile gradient */
}

@media (max-width: 768px) {
    .desktop-nav { display: none; } /* Hide desktop nav */
    .mobile-toggle { display: flex; } /* Show hamburger */
    
    .header-container { height: 70px; }
    .brand-name { font-size: 0.85rem; }
    
    .hero { height: 55vh; margin-top: 70px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    
    .section { padding: 60px 0; }
    .section-header h2, .split-text h2 { font-size: 2rem; }
    
    .footer-container { flex-direction: column; gap: 20px; }
}

/* --- Rolling Belt (Marquee) --- */
.marquee-container {
    background: var(--brand-green);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}
.marquee-content {
    display: inline-block;
    animation: scrollText 25s linear infinite;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.marquee-content span {
    margin: 0 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.marquee-content span::before {
    content: "•";
    color: rgba(255,255,255,0.5);
}
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1) translateY(-5px);
}
.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* --- Page Headers (For About/Services) --- */
.page-header {
    background: var(--navy-dark);
    padding: 160px 0 80px;
    text-align: center;
    color: white;
}
.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}
.page-header p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Enhanced Footer --- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: #94a3b8;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--brand-green);
    padding-left: 5px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-bottom a {
    color: #94a3b8;
    margin-left: 20px;
    transition: var(--transition);
}
.footer-bottom a:hover {
    color: white;
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom a { margin: 0 10px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
}

/* --- Logo Image Styling --- */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-img {
    height: 55px; /* Adjust height as needed to fit the header */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Make logo slightly smaller on mobile so it doesn't break the header */
@media (max-width: 768px) {
    .brand-img {
        height: 40px;
    }
}


/* --- Legal Pages (Privacy & Terms) --- */
.legal-page {
    padding: 160px 0 80px; /* Offset for fixed header */
    background: var(--bg-offwhite);
    min-height: 100vh;
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}
.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--navy-dark);
}
.legal-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    color: var(--navy-dark);
}
.legal-content h3 {
    font-size: 1.1rem;
    margin: 25px 0 10px;
    color: var(--navy-dark);
}
.legal-content p {
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.8;
}
.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.legal-content li {
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.7;
}
.legal-content strong {
    color: var(--navy-dark);
}

@media (max-width: 768px) {
    .legal-content { padding: 30px 20px; }
    .legal-content h1 { font-size: 2rem; }
}