/*
 * AidTech Humanitarian Platform Branding
 * Based on Salas Inter Group humanitarian aesthetic
 *
 * Color Palette:
 * - Primary: Golden/Ochre Yellow (#ca943d, #cb933d)
 * - Accent: Golden Brown (#cd9452)
 * - Text: Extra Dark Gray (#232323)
 * - Background: White (#fff), Very Light Gray (#ededed)
 * - Links: Medium Gray (#828282)
 */

/* ===================================
   01. Google Fonts
====================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ===================================
   02. Root Variables
====================================== */
:root {
    /* Brand Colors */
    --aidtech-primary: #ca943d;
    --aidtech-primary-dark: #cb933d;
    --aidtech-secondary: #cd9452;
    --aidtech-accent: #ba8b39;

    /* Text Colors */
    --aidtech-text-primary: #232323;
    --aidtech-text-secondary: #828282;
    --aidtech-text-light: #b7b7b7;
    --aidtech-text-white: #ffffff;

    /* Background Colors */
    --aidtech-bg-primary: #ffffff;
    --aidtech-bg-light: #f1edea;
    --aidtech-bg-dark: #232323;
    --aidtech-bg-gray: #ededed;

    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* ===================================
   03. Typography
====================================== */
body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.8;
    color: var(--aidtech-text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--aidtech-text-primary);
    line-height: 1.3;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--aidtech-text-primary);
}

.alt-font {
    font-family: var(--font-headings) !important;
}

.text-big {
    font-size: 80px;
    line-height: 1.1;
    letter-spacing: -3px;
}

/* ===================================
   04. Brand Colors
====================================== */
.text-golden {
    color: var(--aidtech-primary) !important;
}

.text-golden-brown {
    color: var(--aidtech-secondary) !important;
}

.bg-golden {
    background-color: var(--aidtech-primary) !important;
}

.bg-golden-brown {
    background-color: var(--aidtech-secondary) !important;
}

.bg-penguin-white {
    background-color: var(--aidtech-bg-light) !important;
}

.bg-extra-dark-gray {
    background-color: var(--aidtech-text-primary) !important;
}

/* ===================================
   05. Buttons
====================================== */
.btn-primary {
    background-color: var(--aidtech-primary);
    border-color: var(--aidtech-primary);
    color: #fff;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--aidtech-primary-dark);
    border-color: var(--aidtech-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(202, 148, 61, 0.3);
}

.btn-outline-primary {
    border-color: var(--aidtech-primary);
    color: var(--aidtech-primary);
}

.btn-outline-primary:hover {
    background-color: var(--aidtech-primary);
    border-color: var(--aidtech-primary);
    color: #fff;
}

.btn-golden {
    background-color: var(--aidtech-primary);
    border-color: var(--aidtech-primary);
    color: #fff;
    padding: 15px 40px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

.btn-golden:hover {
    background-color: var(--aidtech-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 148, 61, 0.4);
}

/* ===================================
   06. Navbar
====================================== */
.navbar-brand {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--aidtech-text-primary) !important;
    letter-spacing: -0.5px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--aidtech-text-secondary);
    font-weight: 400;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--aidtech-primary);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--aidtech-primary);
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--aidtech-primary);
}

/* Navbar Search Form */
.navbar .form-control-sm {
    border-color: #dee2e6;
    transition: all var(--transition-speed) ease;
}

.navbar .form-control-sm:focus {
    border-color: var(--aidtech-primary);
    box-shadow: 0 0 0 0.2rem rgba(202, 148, 61, 0.25);
}

.navbar .btn-outline-primary.btn-sm {
    border-color: var(--aidtech-primary);
    color: var(--aidtech-primary);
}

.navbar .btn-outline-primary.btn-sm:hover {
    background-color: var(--aidtech-primary);
    border-color: var(--aidtech-primary);
    color: #fff;
}

/* ===================================
   07. Hero Section
====================================== */
.hero-section {
    position: relative;
    padding: 40px 0 30px;
    background: linear-gradient(135deg, rgba(202, 148, 61, 0.95) 0%, rgba(186, 139, 57, 0.95) 100%);
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/humanitarian-pattern.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-size: 2.33rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 0.83rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-tagline {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* ===================================
   08. Campaign Cards
====================================== */
.campaign-card {
    border: none;
    border-top: 4px solid var(--aidtech-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(202, 148, 61, 0.25);
    border-top-color: var(--aidtech-secondary);
}

.campaign-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.campaign-card:hover .card-img-top {
    transform: scale(1.05);
}

.campaign-card .badge {
    background-color: var(--aidtech-primary);
    font-weight: 500;
    padding: 6px 12px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.campaign-card .progress {
    height: 8px;
    background-color: rgba(202, 148, 61, 0.15);
}

.campaign-card .progress-bar {
    background-color: var(--aidtech-primary);
}

/* Card border color variations */
.campaign-card.border-food {
    border-top-color: #ca943d;
}

.campaign-card.border-hygiene {
    border-top-color: #4a7a98;
}

.campaign-card.border-shelter {
    border-top-color: #cd9452;
}

.campaign-card.border-education {
    border-top-color: #ba8b39;
}

.campaign-card.border-health {
    border-top-color: #8b7355;
}

.campaign-card.border-emergency {
    border-top-color: #d4a574;
}

/* ===================================
   09. Statistics Section
====================================== */
.stats-section {
    background-color: var(--aidtech-bg-light);
    padding: 2rem 0;
}

.stat-card {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-family: var(--font-headings);
    font-size: 2.33rem;
    font-weight: 700;
    color: var(--aidtech-primary);
    line-height: 1;
    margin-bottom: 0.33rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--aidtech-text-secondary);
    line-height: 1.5;
}

/* ===================================
   10. How It Works Section
====================================== */
.step-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aidtech-primary) 0%, var(--aidtech-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-headings);
    box-shadow: 0 4px 15px rgba(202, 148, 61, 0.3);
    transition: all var(--transition-speed) ease;
}

.step-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(202, 148, 61, 0.4);
}

/* ===================================
   11. Footer
====================================== */
footer {
    background-color: var(--aidtech-text-primary);
    color: var(--aidtech-text-light);
}

footer h5, footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--aidtech-text-light);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

footer a:hover {
    color: var(--aidtech-primary);
}

/* ===================================
   12. Section Titles
====================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--aidtech-text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--aidtech-primary) 0%, var(--aidtech-secondary) 100%);
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--aidtech-text-secondary);
    margin-bottom: 3rem;
}

/* ===================================
   13. Utility Classes
====================================== */
.text-golden-hover:hover {
    color: var(--aidtech-primary) !important;
}

.border-golden {
    border-color: var(--aidtech-primary) !important;
}

.shadow-golden {
    box-shadow: 0 10px 30px rgba(202, 148, 61, 0.2);
}

/* ===================================
   14. Responsive
====================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .text-big {
        font-size: 50px;
    }

    .stat-number {
        font-size: 1.67rem;
    }

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

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0 25px;
    }

    .hero-section h1 {
        font-size: 1.17rem;
    }

    .btn-golden {
        padding: 12px 30px;
        font-size: 13px;
    }
}

/* ===================================
   15. Animations
====================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===================================
   16. Always Responsible Badge
====================================== */
.always-responsible {
    display: inline-block;
    padding: 10px 25px;
    background-color: rgba(202, 148, 61, 0.1);
    border: 2px solid var(--aidtech-primary);
    border-radius: 30px;
    color: var(--aidtech-primary);
    font-family: var(--font-headings);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
}

.always-responsible:hover {
    background-color: var(--aidtech-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(202, 148, 61, 0.3);
}
