/* ============================================
   MUTAH BEALE FOUNDATION — pages.css
   Shared styles for all interior pages
   ============================================ */

/* ============================================
   PAGE HERO (interior pages)
============================================ */
.page-hero {
  background: linear-gradient(160deg, #1A1A1A 0%, #2A1005 55%, #3D1A08 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(184,114,42,0.04) 60px, rgba(184,114,42,0.04) 120px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(184,114,42,0.04) 60px, rgba(184,114,42,0.04) 120px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,114,42,0.2);
  border: 1px solid rgba(184,114,42,0.4);
  color: #D4934A;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #FDF8F0;
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero-title em { color: #D4934A; font-style: italic; }
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(250,247,242,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #D4934A;
}
.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #D4934A;
}
.page-hero-meta i {
  color: #D4934A;
  font-size: 0.82rem;
}

/* ============================================
   BREADCRUMB
============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(250,247,242,0.5);
  margin-bottom: 24px;
  justify-content: center;
}
.breadcrumb a { color: rgba(250,247,242,0.5); transition: color 0.3s; }
.breadcrumb a:hover { color: #D4934A; }
.breadcrumb i { font-size: 0.65rem; }

/* ============================================
   NAV DROPDOWNS
============================================ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown > a i {
  font-size: 0.65rem;
  transition: transform 0.25s;
}
.nav-dropdown:hover > a i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A;
  border: 1px solid rgba(184,114,42,0.3);
  border-radius: 10px;
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 7px;
  color: rgba(250,247,242,0.8) !important;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.dropdown-menu a:hover {
  background: rgba(184,114,42,0.2);
  color: #D4934A !important;
}
.dropdown-menu a i {
  width: 16px;
  color: #B8722A;
  font-size: 0.85rem;
}

/* ---- Mobile dropdown: expand inline, no floating ---- */
@media(max-width:680px){
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    background: rgba(255,255,255,0.05);
    border: none;
    border-left: 2px solid rgba(184,114,42,0.4);
    border-radius: 0;
    padding: 4px 0 4px 16px;
    min-width: unset;
    width: auto;
    box-shadow: none;
    margin-top: 4px;
    box-sizing: border-box;
    overflow: visible;
    white-space: normal;
    word-break: normal;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown.open > a i { transform: rotate(180deg); }
  .dropdown-menu a {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
    font-size: 0.9rem;
  }
  .dropdown-menu a:last-child { border-bottom: none; }
}

/* ============================================
   LANGUAGE TOGGLE
============================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 3px;
  margin-left: 8px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  background: none;
}
.lang-btn.active {
  background: #B8722A;
  color: #FDF8F0;
}

/* ============================================
   BLOG / UPDATES
============================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: #FDF8F0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.post-card:hover {
  border-color: rgba(184,114,42,0.25);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(184,114,42,0.15);
}
.post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2A1005, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-placeholder {
  color: rgba(196,118,58,0.4);
  font-size: 2.5rem;
}
.post-body { padding: 24px; }
.post-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #B8722A;
  margin-bottom: 10px;
  display: block;
}
.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.35;
  margin-bottom: 10px;
}
.post-excerpt {
  font-size: 0.875rem;
  color: #7B4A1E;
  line-height: 1.65;
  margin-bottom: 18px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #7B4A1E;
}
.post-meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================
   GIVING TIERS
============================================ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier-card {
  background: #FDF8F0;
  border: 2px solid rgba(184,114,42,0.15);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.tier-card.claimed::after {
  content: 'CLAIMED';
  position: absolute;
  top: 14px; right: -20px;
  background: #2D6A4F;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 32px;
  transform: rotate(45deg);
}
.tier-card:hover:not(.claimed) {
  border-color: #B8722A;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184,114,42,0.2);
}
.tier-icon { font-size: 2.2rem; margin-bottom: 14px; }
.tier-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 6px;
}
.tier-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #B8722A;
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 10px;
}
.tier-desc {
  font-size: 0.82rem;
  color: #7B4A1E;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ============================================
   VOLUNTEER / INVOLVEMENT CARDS
============================================ */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.involve-card {
  background: #FDF8F0;
  border-radius: 16px;
  padding: 32px;
  border: 2px solid transparent;
  transition: all 0.35s;
}
.involve-card:hover {
  border-color: rgba(184,114,42,0.25);
  transform: translateY(-3px);
}
.involve-card-icon {
  width: 56px; height: 56px;
  background: #F5EDD6;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #B8722A;
  margin-bottom: 18px;
}
.involve-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: #1A1A1A;
  margin-bottom: 10px;
}
.involve-card p { color: #7B4A1E; font-size: 0.9rem; line-height: 1.7; margin-bottom: 18px; }

/* ============================================
   CONTACT FORM
============================================ */
.contact-form {
  background: #ffffff;
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 8px 32px rgba(184,114,42,0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid #F5EDD6;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #1A1A1A;
  background: #FDF8F0;
  transition: border-color 0.25s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #B8722A; background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================
   PRESS GRID
============================================ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.press-card {
  background: #FDF8F0;
  border-radius: 14px;
  padding: 28px;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.press-card:hover {
  border-color: rgba(184,114,42,0.25);
  transform: translateY(-3px);
}
.press-outlet {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B8722A;
  margin-bottom: 10px;
}
.press-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: #1A1A1A;
  line-height: 1.4;
  margin-bottom: 10px;
}
.press-date { font-size: 0.78rem; color: #7B4A1E; }

/* ============================================
   LEGAL PAGE
============================================ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px;
}
.legal-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #1A1A1A;
  margin: 36px 0 14px;
}
.legal-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #1A1A1A;
  margin: 24px 0 10px;
}
.legal-content p { color: #7B4A1E; line-height: 1.78; margin-bottom: 14px; font-size: 0.95rem; }
.legal-content ul { margin: 0 0 14px 20px; color: #7B4A1E; font-size: 0.95rem; line-height: 1.78; }
.legal-content ul li { margin-bottom: 6px; }
.legal-updated {
  font-size: 0.82rem;
  color: #7B4A1E;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid #F5EDD6;
}

/* ============================================
   STORY / ABOUT PAGE ELEMENTS
============================================ */
.story-section {
  max-width: 780px;
  margin: 0 auto;
}
.story-lead {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: #1A1A1A;
  line-height: 1.6;
  margin-bottom: 28px;
  font-style: italic;
}
.story-body p {
  font-size: 1.05rem;
  color: #3A2010;
  line-height: 1.85;
  margin-bottom: 22px;
}
.story-pull-quote {
  border-left: 5px solid #B8722A;
  padding: 20px 28px;
  margin: 36px 0;
  background: #FDF8F0;
  border-radius: 0 12px 12px 0;
}
.story-pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: #1A1A1A;
  line-height: 1.5;
  margin: 0;
}
.story-timeline {
  position: relative;
  padding-left: 40px;
  margin: 48px 0;
}
.story-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #B8722A, #F5EDD6);
}
.story-tl-item {
  position: relative;
  margin-bottom: 32px;
}
.story-tl-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 5px;
  width: 12px; height: 12px;
  background: #B8722A;
  border-radius: 50%;
  border: 2px solid #FDF8F0;
  box-shadow: 0 0 0 3px rgba(184,114,42,0.3);
}
.story-tl-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: #B8722A;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.story-tl-item h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: #1A1A1A;
  margin-bottom: 6px;
}
.story-tl-item p {
  font-size: 0.9rem;
  color: #7B4A1E;
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   IMPACT AMOUNTS (donate page)
============================================ */
.impact-list { list-style: none; }
.impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F5EDD6;
}
.impact-list li:last-child { border-bottom: none; }
.impact-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #B8722A;
  min-width: 70px;
  flex-shrink: 0;
}
.impact-desc { font-size: 0.875rem; color: #7B4A1E; line-height: 1.6; }

/* ============================================
   DONATE PAGE HERO STRIP
============================================ */
.donate-hero-strip {
  background: linear-gradient(160deg, #1A1A1A 0%, #2A1005 55%, #3D1A08 100%);
  padding: 120px 0 40px;
  position: relative;
  overflow: hidden;
}
.donate-hero-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(184,114,42,0.04) 60px, rgba(184,114,42,0.04) 120px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(184,114,42,0.04) 60px, rgba(184,114,42,0.04) 120px);
  pointer-events: none;
}
.donate-hero-strip > div { position: relative; z-index: 1; }
.donate-hero-strip .breadcrumb { color: rgba(255,255,255,0.5); }
.donate-hero-strip .breadcrumb a { color: rgba(255,255,255,0.5); }
.donate-hero-strip .breadcrumb i { color: rgba(255,255,255,0.3); }

/* active page state in nav */
.nav-cta.active-page {
  background: var(--gold-dark) !important;
}

/* ============================================
   RESPONSIVE OVERRIDES
============================================ */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  /* involve-grid handled by JS carousel on mobile */
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}
@media (max-width: 680px) {
  .post-grid { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 60px; }
  /* Hide desktop involvement grid and show mobile slider */
  #involve-desktop { display: none !important; }
  #involve-mobile  { display: block !important; }
}

/* Community video section — mobile stack */
@media (max-width: 860px) {
  .community-video-wrap {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .community-video-wrap > div:last-child {
    text-align: center;
  }
  .community-video-wrap > div:last-child a {
    display: inline-block;
  }
}

/* ============================================
   MOBILE OVERRIDES — ALL PAGES (max-width: 680px)
============================================ */
@media (max-width: 680px) {

  /* --- about-mutah.html: pull quote font size --- */
  .story-pull-quote p {
    font-size: 0.95rem;
  }

  /* --- about-mutah.html: story grid --- */
  #story-main-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #story-sticky-sidebar {
    position: static !important;
    top: auto !important;
  }

  /* --- about-foundation.html: legal/transparency two-col --- */
  #legal-transparency-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* --- updates.html: featured post grid --- */
  #featured-post-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* --- press.html: bio grid (3-col), facts grid (2-col), coverage grid (3-col) --- */
  #press-bio-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #press-facts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  #press-coverage-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* --- about-foundation.html: mission grid --- */
  #mission-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* --- pages.css breakpoint alignment --- */
  .post-grid { grid-template-columns: 1fr !important; }
  .tiers-grid { grid-template-columns: 1fr !important; }
  .press-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }

  /* --- General spacing tightening on mobile --- */
  .section { padding: 56px 0; }
  .page-hero { padding: 120px 0 56px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .trust-card { padding: 20px 16px; }
  .contact-form { padding: 24px 18px; }

  /* --- Tighten up page-hero text --- */
  .page-hero-inner { padding-top: 0; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}
