/* Wells of Hope Foundation - Base Stylesheet */

/* Base Styles & Variables */
:root {
    --primary: #043529;
    --primary-dark: #023611;
    --secondary: #f9a826;
    --secondary-dark: #e8971a;
    --light: #f8f9fa;
    --dark: #333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Page Header Styles (used across multiple pages) */
.page-header {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 120px 0 60px;
    margin-top: 80px;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Call to Action (used across multiple pages) */
.cta {
    padding: 80px 0;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta .btn-primary:hover {
    background-color: var(--light-gray);
}

.cta .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cta .btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

/* Responsive Page Header */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
}

/* Body padding to account for fixed header */
body {
    padding-top: 112px; /* Height of header-top (42px) + navbar (70px) */
}

/* Adjust for mobile */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Only navbar height on mobile */
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 138px; /* Top bar (38px) + Main nav (100px approx) */
}

@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Main nav only on mobile */
    }
}