/* --------------------------------------------
   Project HOPE — Pads for Dignity
   Final CSS (v1.0) - All Corrections Applied
   -------------------------------------------- */

/* --- Custom Color Palette --- */
:root {
  --color-coffee: #4B3621;  /* Deep Coffee Brown (Headings, Text, Donation BG) */
  --color-orange: #D97A32;  /* Burnt Orange (CTAs, Safety Banner, Warnings) */
  --color-taupe: #C2A68D;   /* Warm Taupe (Section Separator) */
  --color-cream: #F7F1E8;   /* Cream (Main Background) */
  --color-white: #ffffff;
}

/* --- Global Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  /* Font Correction: Poppins Applied */
  font-family: 'Poppins', sans-serif;
  color: var(--color-coffee);
  background-color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  text-align: center;
}

h2 {
  color: var(--color-coffee);
  font-size: 2.2rem;
  margin-bottom: 40px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 10px 10px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
}
.btn-primary:hover {
  background-color: #c26a2c;
  border-color: #c26a2c;
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------
   BLOCK 1: HERO SECTION (Fixed & Centered)
   ------------------------------------------ */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  text-align: center; /* Ensures text aligns correctly for the centered block */
  position: relative;
  /* FIX: Corrected image path from .jpg to .png */
  background: url('assets/hero-bg.png') center/cover no-repeat;
}
/* Overlay Color Correction (Deeper, less whitish) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* FIX 1: Opacity set to 0.80 based on user feedback (less dark) */
  background-color: rgba(45, 30, 15, 0.80); 
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  width: 100%;
}
/* Center Alignment Correction for Text Block */
.main-cta-area {
  max-width: 700px;
  margin: 0 auto; /* CRITICAL: Centers the entire text/button block */
}
.hero h1 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.3rem;
  margin-bottom: 30px;
}
.sub-cta {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 20px;
}
/* Button Centering (They were already centered due to main-cta-area centering) */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* LOGO AND TRANSLATE CSS BLOCKS REMOVED */


/* ------------------------------------------
   BLOCK 2 & 5 & 7: WARM TAUPE SECTIONS
   ------------------------------------------ */
.roadmap, .problem, .transparency {
    background-color: var(--color-taupe);
}
/* Roadmap Grid (Approved) */
.roadmap-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}
.phase-card {
    background-color: var(--color-cream);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
}
.phase-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-orange);
}

/* Statistics Grid (Approved) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.stat-card {
    background-color: var(--color-cream);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-orange);
    margin-bottom: 10px;
}

/* Transparency Embed (Block 7) */
/* Text Emphasis Correction */
.transparency .lead-text-bold {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
}
.embed-wrap {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.dune-frame {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}
.transparency-image {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
}

/* ------------------------------------------
   BLOCK 3 & 4 & 6: CREAM SECTIONS
   ------------------------------------------ */
.story, .video, .solution, .community {
    background-color: var(--color-cream);
}

/* Story Layout (Block 3) */
.story-layout {
    display: flex;
    text-align: left;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}
.story-image {
    flex: 40%;
}
.story-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.story-text {
    flex: 60%;
}
.story-quote {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-orange);
    margin-bottom: 20px;
    border-left: 4px solid var(--color-taupe);
    padding-left: 15px;
}
.alem-story-article p {
    font-size: 1rem;
    margin-bottom: 15px; /* CRITICAL: Adds spacing between new paragraphs */
}

/* Video Embed (Approved) */
.video-embed-container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}
.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Solution Gallery (Block 6) */
.solution-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.solution-gallery img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Key Metric Formatting Correction */
.solution-key-metric {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-coffee);
    margin: 30px auto 0; /* Centering and top margin */
    max-width: 700px; /* CRITICAL: Constraints width for two-line format */
    line-height: 1.5;
}

/* ------------------------------------------
   BLOCK 8: DONATION/WALLET (Fixed Grid & Warnings)
   ------------------------------------------ */
.donate {
  background-color: var(--color-coffee);
  color: var(--color-white);
  padding: 80px 0;
}
.donate h2 {
    color: var(--color-white);
}
.donate p {
    color: var(--color-white);
    opacity: 0.9;
}
/* New Global Safety Alert */
.crypto-safety-alert {
    background-color: var(--color-orange);
    color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.crypto-safety-alert p {
    color: var(--color-white);
    margin: 0;
    line-height: 1.4;
    opacity: 1;
}
/* Wallet Grid Correction (4 Columns) */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* CRITICAL: Sets to 4 columns */
  gap: 20px;
  margin-top: 40px;
}
.wallet-card {
  background-color: var(--color-cream);
  color: var(--color-coffee);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding-bottom: 5px;
}
.wallet-card img {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    display: block;
}
.wallet-label {
    font-weight: bold;
    margin-bottom: 5px;
}
/* FIX 3: Warning Text Visibility Correction - FORCES dark color on the warning text */
.wallet-warning {
    font-size: 0.75rem;
    color: var(--color-coffee) !important; 
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}
.wallet-warning strong {
    font-weight: 900;
}
.copy-btn {
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: background-color 0.2s;
    margin-top: 5px;
}
.copy-btn:hover {
    background-color: #c26a2c;
}
.donate .note {
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.7;
}
/* Binance Proof Image Styling */
.binance-proof-container {
    text-align: center;
    margin-top: 20px;
}
.binance-proof-img {
    /* FIX: Increased max-width to 600px for larger display */
    max-width: 600px; 
    /* FIX: Added width: 100% to ensure it shrinks on mobile and prevents horizontal scroll */
    width: 100%; 
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/* ------------------------------------------
   BLOCK 9: IMPACT NARRATIVE (Layout Fixed)
   ------------------------------------------ */
.impact {
  background-color: var(--color-cream);
  padding: 80px 0;
}
.impact-layout {
  display: flex;
  text-align: left;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}
.impact-image {
  flex: 40%;
}
.impact-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.impact-text {
  flex: 60%;
}
.burnt-orange-quote {
    font-size: 1.5rem;
    color: var(--color-orange);
    margin: 20px 0;
    font-style: italic;
    line-height: 1.4;
    border-left: 4px solid var(--color-taupe);
    padding-left: 20px;
}
.impact-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}


/* ------------------------------------------
   BLOCK 10: PARTNERS (Logo size increased)
   ------------------------------------------ */
.partners {
    background-image: url('assets/community.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
}
.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 54, 33, 0.7);
    z-index: 1;
}
.partners h2, .partners p { 
    color: var(--color-white); 
    position: relative;
    z-index: 2;
}
.partner-logos {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
  position: relative; 
  z-index: 2;
}
.partner-logo-link {
    display: block;
    width: 150px; /* Increased size */
    height: 150px; /* Increased size */
    background-color: var(--color-white); 
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-logo-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.partner-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.partner-logo-link:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ------------------------------------------
   BLOCK 11: COMMUNITY (Background Fixed)
   ------------------------------------------ */
.community {
    /* CRITICAL: Background image correction applied here */
    background: url('assets/community.png') center/cover no-repeat;
    position: relative;
    color: var(--color-white);
}
.community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 54, 33, 0.8); /* Darker overlay for text legibility */
    z-index: 1;
}
.community h2, .community p, .social-row {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}
.social-row {
    margin-top: 30px;
}
.social-row a {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 10px 18px;
  margin: 5px;
  display: inline-block;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.social-row a:hover {
  background-color: #c26a2c;
}

/* ------------------------------------------
   BLOCK 12: FOOTER (Approved)
   ------------------------------------------ */
footer {
    background-color: var(--color-orange);
    padding: 30px 0;
    text-align: center;
}
footer p {
    color: var(--color-white);
    margin: 0;
    font-size: 0.9rem;
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    /* Donate Grid Adjusts for Tablet/Small Desktop */
    .wallet-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .story-layout, .impact-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .story-image, .impact-image {
        order: 1;
        margin-bottom: 20px;
    }
    .story-text, .impact-text {
        order: 2;
    }
    .story-quote, .burnt-orange-quote {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--color-taupe);
        padding-top: 15px;
        text-align: center;
    }
    .solution-gallery {
        flex-direction: column;
        align-items: center;
    }
    .solution-gallery img {
        max-width: 90%;
    }
}
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p.lead {
        font-size: 1.1rem;
    }
    .roadmap-grid {
        flex-direction: column;
    }
    /* Donate Grid Adjusts for Mobile */
    .wallet-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .social-row a {
        display: block;
        margin: 10px auto;
    }
}
