/* ==========================================
   CUSTOM FONTS
   ========================================== */
@font-face {
    font-family: 'Elicyon';
    src: url('Elicyon-Regular.eot');
    src: url('Elicyon-Regular.eot?#iefix') format('embedded-opentype'),
         url('Elicyon-Regular.woff2') format('woff2'),
         url('Elicyon-Regular.woff') format('woff'),
         url('Elicyon-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   CARPENTER'S TOUCH BRAND COLOR PALETTE
   ========================================== */
:root {
    /* Primary Brand Colors */
    --primary-color: #575556; /* Sacred Stone */
    --primary-light: #c0c2a9; /* Evergreen Faith */
    --primary-dark: #575556; /* Sacred Stone (darker variant) */

    /* Secondary Brand Colors */
    --secondary-color: #7f7148; /* Sanctuary Olive */
    --secondary-light: #e8ece3; /* Serenity Leaf */
    --secondary-accent: #a8b5bd; /* Reflective Calm */

    /* Accent Colors */
    --accent-color: #cd7c45; /* Heaven's Glow */
    --accent-hover: #b86a38; /* Heaven's Glow (darker) */
    --accent-light: #e6d5c3; /* Kindred Clay */

    /* Neutral Colors */
    --text-dark: #575556; /* Sacred Stone for primary text */
    --text-light: #7f7148; /* Sanctuary Olive for secondary text */
    --white: #ffffff;
    --light-gray: #e8ece3; /* Serenity Leaf */
    --medium-gray: #c0c2a9; /* Evergreen Faith */

    /* Typography */
    --font-headline: 'Elicyon', serif; /* Will be loaded when font files are provided */
    --font-body: 'Nunito Sans', sans-serif; /* Circular Light/Book alternative */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   HEADER
   ========================================== */
#header {
    background-color: var(--white);
    background-image: url('sandstone_texture.png');
    background-size: cover;
    background-blend-mode: overlay;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.site-title-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
    transition: color 0.3s ease;
    padding: 8px 0;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-donate-btn {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 25px !important;
    border-radius: 0;
    transition: background-color 0.3s ease;
    border: 2px solid var(--accent-color);
}

.nav-donate-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image:
        linear-gradient(135deg, rgba(87, 85, 86, 0.85) 0%, rgba(87, 85, 86, 0.95) 100%),
        url('granite_texture.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" opacity="0.1"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"/></svg>');
    background-size: cover;
}

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

.hero h2 {
    font-size: 72px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: var(--font-weight-light);
}

.hero p:first-of-type {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 15px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 0;
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
    padding: var(--section-padding);
}

.alternate-bg {
    background-color: var(--light-gray);
    background-image: url('sand_texture_1.png');
    background-size: cover;
    background-blend-mode: soft-light;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.underline {
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
    position: relative;
}

.underline::before,
.underline::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 3px;
    background-color: var(--accent-color);
    top: 0;
}

.underline::before {
    left: -16px;
}

.underline::after {
    right: -16px;
}

.underline.light {
    background-color: var(--secondary-color);
}

.underline.light::before,
.underline.light::after {
    background-color: var(--secondary-color);
}

/* ==========================================
   TWO COLUMN LAYOUT
   ========================================== */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.text-column p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.image-placeholder {
    background-color: var(--medium-gray);
    border-radius: 0;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--text-light);
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid var(--text-light);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    display: block;
    border: 3px solid var(--text-light);
}

.mission-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border: 3px solid var(--text-light);
}

.mission-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border: 3px solid var(--text-light);
    background-color: #000;
}

/* ==========================================
   IMAGE CAROUSEL
   ========================================== */
.image-carousel {
    position: relative;
    width: 100%;
    display: grid;
    align-items: center;
    justify-items: center;
}

.image-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slide.active {
    opacity: 1;
    visibility: visible;
}

.image-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.image-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.image-nav-btn:hover {
    background-color: var(--medium-gray);
}

.image-nav-btn.active {
    background-color: var(--text-light);
}

/* ==========================================
   SERVICE LIST
   ========================================== */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
    font-size: 20px;
}

.service-list strong {
    color: var(--primary-color);
}

/* ==========================================
   THREE COLUMN ICON GRID (HOME PAGE)
   ========================================== */
.three-column-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.icon-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border: 3px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.icon-placeholder {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.icon-placeholder i {
    display: block;
}

.icon-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-family: var(--font-headline);
}

.icon-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================================
   TESTIMONY SECTION (HOME PAGE)
   ========================================== */
.testimony-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testimony-content {
    position: relative;
    padding: 40px;
}

.quote-mark {
    font-size: 120px;
    color: var(--accent-color);
    line-height: 0.5;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimony-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin: 30px 0 20px;
}

.testimony-author {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    font-size: 16px;
}

/* Testimony Carousel */
.testimony-carousel {
    position: relative;
    min-height: 280px;
}

.testimony-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimony-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimony-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.testimony-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimony-nav-btn:hover {
    transform: scale(1.2);
}

.testimony-nav-btn.active {
    background-color: var(--accent-color);
}

/* ==========================================
   CTA BAR (HOME PAGE)
   ========================================== */
.cta-bar {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 60px 0;
}

.cta-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-bar-text h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 10px;
}

.cta-bar-text p {
    color: var(--white);
    font-size: 18px;
    margin: 0;
}

.cta-bar-buttons {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

/* ==========================================
   INVOLVEMENT OPTIONS
   ========================================== */
.involvement-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.option-card {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 0;
    border-left: 6px solid var(--accent-color);
    border-top: 1px solid var(--medium-gray);
    border-right: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
    transform: translateX(3px);
    box-shadow: 3px 3px 0 rgba(87, 85, 86, 0.2);
    border-left-width: 8px;
}

.option-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 22px;
}

.option-card p {
    color: var(--text-light);
    margin: 0;
}

/* ==========================================
   PAGE HERO (INTERIOR PAGES)
   ========================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image:
        linear-gradient(135deg, rgba(87, 85, 86, 0.85) 0%, rgba(87, 85, 86, 0.95) 100%),
        url('granite_texture.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-hero p {
    font-size: 20px;
    margin: 0;
    opacity: 0.9;
}

/* ==========================================
   TIMELINE (WHO WE ARE PAGE)
   ========================================== */
.timeline {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    padding-left: 0;
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-year {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: var(--font-headline);
}

.timeline-item h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   MISSION & VISION GRID (WHO WE ARE PAGE)
   ========================================== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.mv-card {
    padding: 40px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    text-align: center;
}

.mv-card h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 17px;
    margin-top: 20px;
}

/* ==========================================
   VALUES GRID (WHO WE ARE PAGE)
   ========================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    padding: 30px 25px;
    background-color: var(--light-gray);
    border-left: 6px solid var(--accent-color);
    border-top: 1px solid var(--medium-gray);
    border-right: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-width: 8px;
}

.value-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
    font-family: var(--font-headline);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   TEAM GRID (WHO WE ARE PAGE)
   ========================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-role {
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
    font-size: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

.team-member p:not(.team-role) {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

.team-member .bio-btn {
    margin-top: auto;
    padding: 10px 25px;
    font-size: 14px;
    align-self: center;
}

/* Bio Modal */
.bio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.bio-modal.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.bio-modal-content {
    background-color: var(--white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    text-align: center;
    margin: auto;
}

.bio-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
    line-height: 1;
}

.bio-modal-close:hover {
    color: var(--accent-color);
}

.bio-modal-image {
    max-width: 250px;
    margin: 0 auto 20px;
}

.modal-team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    display: block;
    border: 3px solid var(--text-light);
}

.bio-modal-content h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 5px;
}

.bio-modal-content .team-role {
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.bio-modal-content #modal-bio {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    text-align: left;
}

/* ==========================================
   STORY GRID (STORIES PAGE)
   ========================================== */
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.story-card {
    padding: 30px;
    background-color: var(--white);
    border: 3px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.story-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.story-meta {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-card p:not(.story-meta) {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.story-link {
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.story-link:hover {
    color: var(--accent-hover);
}

/* Story Modal */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.story-modal.active {
    display: flex;
}

.story-modal-content {
    background-color: var(--white);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    margin: auto;
}

.story-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
    line-height: 1;
}

.story-modal-close:hover {
    color: var(--accent-color);
}

.story-modal-content h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
    padding-right: 30px;
}

.story-modal-content .story-meta {
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    margin-bottom: 25px;
}

#story-modal-body {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

#story-modal-body p {
    margin-bottom: 15px;
}

.mission-recap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.mission-card {
    background-color: var(--white);
}

.mission-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 20px 0 10px;
}

.mission-card p:not(.story-meta) {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   DONATION BREAKDOWN (DONATE PAGE)
   ========================================== */
.donation-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.breakdown-item {
    text-align: center;
    padding: 30px 20px;
}

.breakdown-icon {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.breakdown-icon i {
    display: block;
}

.breakdown-item h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.breakdown-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================================
   DONATE SECTION
   ========================================== */
.donate-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    background-image:
        linear-gradient(135deg, rgba(127, 113, 72, 0.75) 0%, rgba(87, 85, 86, 0.85) 100%),
        url('sand_texture_2.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: var(--section-padding);
}

.donate-section .section-header h2 {
    color: var(--white);
}

.donate-content > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
}

.donate-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--primary-color);
}

.donate-form {
    color: var(--text-dark);
}

.donation-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.amount-btn {
    flex: 1;
    min-width: 80px;
    padding: 15px 20px;
    border: 2px solid var(--medium-gray);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.amount-btn.selected {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.custom-amount-wrapper {
    margin-bottom: 20px;
}

.custom-amount-wrapper input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 0;
    font-size: 16px;
    font-family: var(--font-body);
}

.custom-amount-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group {
    margin: 25px 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-light);
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.donate-btn {
    width: 100%;
    margin-top: 10px;
}

.secure-note {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================
   CONTACT FORM (CONNECT PAGE)
   ========================================== */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.contact-info-card {
    text-align: center;
    padding: 30px 20px;
}

.contact-icon {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-icon i {
    display: block;
}

.contact-info-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-info-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.contact-info-card a:hover {
    color: var(--accent-hover);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.social-icon i {
    display: block;
}

.social-link span:last-child {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(to bottom, rgba(87, 85, 86, 0.9), rgba(87, 85, 86, 0.95)),
        url('iron_ferrite_texture.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--secondary-light);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section a {
    color: var(--secondary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--white);
    border-radius: 0;
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 0;
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets and below */
@media (max-width: 968px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .two-column.reverse {
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-title-image {
        height: 40px;
    }

    .hero h2 {
        font-size: 48px;
        letter-spacing: 1px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .three-column-icons {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-bar-text h2 {
        font-size: 30px;
    }

    .mission-vision-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .page-hero p {
        font-size: 18px;
    }

    .story-grid,
    .mission-recap-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .donation-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }

    .main-nav a {
        display: block;
        padding: 15px 20px !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero p:first-of-type {
        font-size: 20px;
    }

    .donation-amounts {
        flex-direction: column;
    }

    .amount-btn {
        min-width: 100%;
    }

    .donate-form-container {
        padding: 25px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .cta-bar-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-bar-buttons .cta-button {
        width: 100%;
    }

    .testimony-text {
        font-size: 18px;
    }

    .quote-mark {
        font-size: 80px;
    }

    .donation-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-title {
        gap: 10px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .site-title-image {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 26px;
    }

    .site-title-image {
        height: 30px;
    }

    .hero h2 {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .hero p:first-of-type {
        font-size: 18px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}
