/* ==========================================
   Desert Free Dare - Website Styles
   ========================================== */

/* ==========================================
   Reset and Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --gray-light: #f9fafb;
    --gray-medium: #e5e7eb;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* ==========================================
   Header and Navigation
   ========================================== */
header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-links a.donate-link {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
}

.nav-links a.donate-link:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ==========================================
   Hero Sections
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.donate-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

/* ==========================================
   Buttons
   ========================================== */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ==========================================
   Sections
   ========================================== */
.section {
    padding: 5rem 2rem;
}

.section.gray {
    background: var(--gray-light);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ==========================================
   Carousel Styles
   ========================================== */
.carousel-container {
    position: relative;
    margin: 3rem 0 1rem 0;
}

.carousel-wrapper {
    overflow: hidden;
    padding: 0 55px;
    margin: 0 -5px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.carousel-nav:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-medium);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--primary-light);
}

/* Card Images */
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* Challenge Cards (Stats Section) */
.challenge-card {
    min-width: calc(33.333% - 13.33px);
    max-width: calc(33.333% - 13.33px);
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.challenge-card h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.challenge-card h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.challenge-card p {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

.stat-description {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Solution Cards (Solutions Section) */
.solution-card {
    min-width: calc(33.333% - 13.33px);
    max-width: calc(33.333% - 13.33px);
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    flex-shrink: 0;
}

/* Solution icons removed - using images instead */

.solution-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.solution-card p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================
   About Page - Values & Board
   ========================================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Board of Directors */
.board-section {
    background: var(--white);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.board-member {
    text-align: center;
}

.board-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-photo.placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    font-weight: 700;
}

.board-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.board-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.board-bio {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.board-note {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.board-note p {
    margin: 0;
    color: var(--text-medium);
}

/* Focus Areas */
.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.focus-area {
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
}

.focus-area h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==========================================
   Contact Page
   ========================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: left;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-medium);
    margin: 0;
}

.ways-to-help {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.ways-to-help h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.ways-to-help ul {
    list-style: none;
    padding: 0;
}

.ways-to-help li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-medium);
    color: var(--text-medium);
}

.ways-to-help li:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-intro {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.form-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Communities Section */
.community-area {
    max-width: 900px;
    margin: 0 auto;
}

.communities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.community h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.community ul {
    list-style: none;
    padding: 0;
}

.community li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.community li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.community-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ==========================================
   Donate Page
   ========================================== */
.donate-status {
    max-width: 800px;
    margin: 0 auto;
}

.status-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-card h2 {
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-info,
.interim-support {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
}

.status-info h3,
.interim-support h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.status-info ul,
.interim-support ul {
    list-style: none;
    padding: 0;
}

.status-info li,
.interim-support li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-medium);
}

.status-info li:before,
.interim-support li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.interim-support {
    text-align: center;
}

.interim-support .cta-button {
    margin-top: 1.5rem;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.impact-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.impact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.impact-item p {
    color: var(--text-medium);
    margin: 0;
}

/* Transparency Section */
.transparency-section {
    max-width: 900px;
    margin: 0 auto;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.commitment {
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
}

.commitment h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.commitment p {
    color: var(--text-medium);
    margin: 0;
}

/* Why Donate */
.why-donate {
    text-align: center;
}

.why-text {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section a {
    color: var(--white);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background: #1f2937;
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section small {
    color: #9ca3af;
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .stat h3 {
        font-size: 2.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .challenge-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .solution-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .challenge-card h3 {
        font-size: 2.5rem;
    }

    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1.5rem;
    }

    .page-hero {
        padding: 3rem 1.5rem;
    }

    .challenge-card h3 {
        font-size: 2rem;
    }

    .challenge-card {
        min-width: 100%;
    }

    .solution-card {
        min-width: 100%;
    }

    .carousel-wrapper {
        padding: 0 35px;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .status-card {
        padding: 2rem 1.5rem;
    }
}
