/* ===================================
   CARE FOUNDATION - Main Stylesheet
   Minimal, Clean, Responsive Design
   =================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Green Palette */
    --primary: #22863a;
    --primary-dark: #176f2c;
    --primary-light: #34a853;
    --accent: #22863a;
    --accent-light: #85e89d;
    --text-dark: #24292e;
    --text-muted: #586069;
    --text-light: #ffffff;
    --bg-light: #fafbfc;
    --bg-white: #ffffff;
    --bg-dark: #1b1f23;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Border Radius - Minimal */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.5rem;
    --radius-full: 9999px;

    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-normal);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn-accent {
    background: var(--primary);
    color: var(--text-light);
}

.btn-accent:hover {
    background: var(--primary-dark);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    padding-top: 70px;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.hero .btn-accent {
    background: white;
    color: var(--primary);
}

.hero .btn-accent:hover {
    background: rgba(255, 255, 255, 0.9);
}

.hero .btn-secondary {
    border-color: white;
    color: white;
}

.hero .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
}

.section-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(34, 134, 58, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid #e1e4e8;
    transition: border-color var(--transition-normal);
}

.card:hover {
    border-color: var(--primary);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 134, 58, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.card h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

/* ===================================
   IMPACT STATS
   =================================== */
.stats {
    background: var(--bg-white);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
    background: var(--bg-light);
    padding: var(--space-2xl) 0;
    text-align: center;
    border-top: 1px solid #e1e4e8;
}

.cta h2 {
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content p {
    margin-bottom: var(--space-md);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.vision-mission {
    background: var(--bg-white);
}

.vm-card {
    text-align: center;
    padding: var(--space-xl);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-md);
}

/* ===================================
   PROGRAMS PAGE
   =================================== */
.program-card {
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.program-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(13, 115, 119, 0.1);
    position: absolute;
    top: var(--space-sm);
    right: var(--space-md);
}

/* ===================================
   GALLERY PAGE
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: var(--text-light);
    font-weight: 500;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-details p {
    margin: 0;
}

.contact-details a {
    color: var(--primary);
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-xl);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ===================================
   LEGAL PAGE
   =================================== */
.legal-content {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.legal-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h3 {
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.legal-section p {
    margin-bottom: var(--space-sm);
}

.legal-section ul {
    list-style: disc;
    margin-left: var(--space-lg);
}

.legal-section li {
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    background: var(--primary);
    padding: calc(70px + var(--space-xl)) 0 var(--space-xl);
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    color: var(--text-light);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--text-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #24292e;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-about .logo {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--accent-light);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Small devices (480px and up) */
@media (min-width: 480px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-intro {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktops (1024px and up) */
@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Large screens (1280px and up) */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* Mobile navigation */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: var(--space-sm);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}