/* AKILIMO privacy policy and terms: one stylesheet for both pages (published next to them by .github/workflows/publish-policies.yml). */
:root {
    /* AKILIMO brand palette: keep in step with resources/scss/_brand.scss */
    --primary-color: #006f45;
    --primary-light: #00915a;
    --primary-dark: #00573a;
    --secondary-color: #0e7490;
    --accent-color: #9aca3c;
    --success-color: #15803d;
    --warning-color: #b45309;
    --danger-color: #c62828;
    --gray-50: #f4f7f5;
    --gray-100: #e9eeeb;
    --gray-200: #e5ebe7;
    --gray-300: #d2dbd5;
    --gray-400: #aebbb3;
    --gray-500: #83938a;
    --gray-600: #5d6d64;
    --gray-700: #415048;
    --gray-800: #29352f;
    --gray-900: #16201b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    font-size: 16px;
}

.navbar {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--gray-900) !important;
    font-size: 1.25rem;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.mobile-menu-btn {
    background: none;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--gray-600);
    font-size: 18px;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.nav-link {
    color: var(--gray-600);
    padding: 14px 16px;
    border-radius: 8px;
    margin: 4px 0;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    min-height: 48px;
    touch-action: manipulation;
}

.nav-link:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.content-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
}

.highlight-box {
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-left: 4px solid;
}

.highlight-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: var(--success-color);
    color: #065f46;
}

.highlight-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: var(--secondary-color);
    color: #1e40af;
}

.highlight-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: var(--warning-color);
    color: #92400e;
}

.highlight-danger {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-color: var(--danger-color);
    color: #991b1b;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    border: 1px solid var(--gray-200);
    min-height: 48px;
    touch-action: manipulation;
}

.service-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 1rem;
}

.quick-contact {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.quick-contact h6 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.quick-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 14px;
    min-height: 44px;
    touch-action: manipulation;
}

.quick-contact a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.quick-contact i {
    margin-right: 8px;
}

.footer {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

.info-card {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
}

.info-card h6 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.info-card p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin: 0.75rem 0;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    touch-action: manipulation;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        border-radius: 0;
        overflow-y: auto;
        max-height: 100vh;
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .content-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .navbar-brand {
        font-size: 1.125rem;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .content-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .section-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .highlight-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .footer {
        padding: 1.25rem;
    }

    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
        font-size: 18px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .sidebar {
        width: 280px;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .feature-list li {
        padding: 0.875rem;
        margin: 0.5rem 0;
    }

    .service-link {
        padding: 0.875rem;
    }

    .info-card {
        padding: 0.875rem;
    }

    .quick-contact {
        padding: 0.875rem;
    }
}

/* Tablet optimizations */
@media (min-width: 576px) and (max-width: 991.98px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop optimizations */
@media (min-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-right: 16px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        transform: none;
    }

    .service-link:hover {
        transform: none;
    }

    .content-section:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-icon, .section-icon, .contact-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-to-top {
        transition: opacity 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.service-link:focus,
.mobile-menu-btn:focus,
.scroll-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .sidebar,
    .scroll-to-top,
    .mobile-menu-btn {
        display: none !important;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    body {
        background: white;
    }
}
