/*
Theme Name: NEDA Foundation (Elementor)
Theme URI: https://limegreen-frog-862133.hostingersite.com
Author: NEDA Foundation
Description: Elementor-ready bilingual theme for NEDA Foundation Australia. Install Elementor free plugin to edit all content visually.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: neda-foundation
Tags: bilingual, farsi, rtl, nonprofit, elementor
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&family=Playfair+Display:wght@400;600&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --teal:       #2A9D8F;
  --teal-dark:  #1B6B60;
  --teal-light: #E1F5F3;
  --teal-mid:   #4DB6A9;
  --gray-dark:  #2C3E50;
  --gray-mid:   #546E7A;
  --gray-light: #F4F7F8;
  --white:      #ffffff;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
}
body.lang-fa {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
}

/* ── ELEMENTOR resets ── */
.elementor-section .elementor-container { max-width: 1100px; }
.elementor-widget-text-editor p { margin-bottom: 1em; }

/* ── NAVBAR ── */
#neda-nav {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
#neda-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img,
.nav-logo .custom-logo,
.nav-logo .custom-logo-link img,
.nav-logo figure img,
.nav-logo a img,
#neda-nav img {
  height: 64px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}
.nav-logo .custom-logo-link,
.nav-logo figure { margin: 0 !important; padding: 0 !important; line-height: 0 !important; }

.nav-menu { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-menu a { font-size: 13px; font-weight: 700; color: var(--gray-mid); text-decoration: none; transition: color var(--transition); position: relative; padding-bottom: 2px; }
.nav-menu a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width var(--transition); }
.nav-menu a:hover { color: var(--teal); }
.nav-menu a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-switch:hover { background: var(--teal-light); }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-dark); margin: 5px 0; border-radius: 2px; transition: all var(--transition); }

/* ── ELEMENTOR SECTION COLOUR HELPERS ── */
/* Apply these as CSS classes inside Elementor section settings */
.neda-section-teal        { background: var(--teal) !important; }
.neda-section-dark        { background: var(--gray-dark) !important; }
.neda-section-light       { background: var(--gray-light) !important; }
.neda-section-teal-light  { background: var(--teal-light) !important; border-top: 3px solid var(--teal); }
.neda-text-white          { color: #ffffff !important; }
.neda-text-white p,
.neda-text-white li,
.neda-text-white h1,
.neda-text-white h2,
.neda-text-white h3       { color: rgba(255,255,255,.9) !important; }

/* ── BUTTONS (Elementor button widget) ── */
.elementor-button.neda-btn-primary,
.neda-btn-primary {
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: 28px !important;
  border: 2px solid var(--teal) !important;
  font-weight: 700 !important;
  font-family: 'Nunito', sans-serif !important;
  padding: 10px 26px !important;
  transition: all var(--transition) !important;
}
.elementor-button.neda-btn-primary:hover,
.neda-btn-primary:hover { background: var(--teal-dark) !important; border-color: var(--teal-dark) !important; }

.elementor-button.neda-btn-outline,
.neda-btn-outline {
  background: transparent !important;
  color: var(--teal) !important;
  border-radius: 28px !important;
  border: 2px solid var(--teal) !important;
  font-weight: 700 !important;
  font-family: 'Nunito', sans-serif !important;
  padding: 10px 26px !important;
  transition: all var(--transition) !important;
}
.elementor-button.neda-btn-outline:hover,
.neda-btn-outline:hover { background: var(--teal-light) !important; }

/* ── FEATURE CARDS (use Elementor Icon Box widget) ── */
.neda-feature-card {
  background: rgba(255,255,255,.15) !important;
  border-radius: 14px !important;
  padding: 28px 20px !important;
  text-align: center !important;
  transition: background var(--transition), transform var(--transition) !important;
  backdrop-filter: blur(4px) !important;
}
.neda-feature-card:hover { background: rgba(255,255,255,.25) !important; transform: translateY(-4px) !important; }
.neda-feature-card .elementor-icon-box-title,
.neda-feature-card h3 { color: #fff !important; font-size: 14px !important; font-weight: 700 !important; }
.neda-feature-card .elementor-icon-box-description,
.neda-feature-card p { color: rgba(255,255,255,.85) !important; font-size: 12.5px !important; }

/* ── EVENT / POST CARDS ── */
.neda-event-card {
  background: var(--white);
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.neda-event-card:hover { transform: translateY(-6px) !important; box-shadow: 0 12px 32px rgba(42,157,143,.18) !important; }

/* ── GOALS LIST ── */
.neda-goals-list { list-style: none; padding: 0; }
.neda-goals-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  line-height: 1.75;
}
.neda-goals-list li:last-child { border-bottom: none; }
.neda-goals-list strong { color: #fff; }

/* ── FOOTER ── */
#neda-footer {
  background: var(--gray-dark);
  color: var(--white);
  padding: 48px 0 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--teal-mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col p,
.footer-col a { font-size: 13px; color: rgba(255,255,255,.7); line-height: 2; text-decoration: none; display: block; }
.footer-col a:hover { color: var(--teal-mid); }
.footer-bottom {
  background: var(--teal-dark);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 11.5px; color: rgba(255,255,255,.65); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none; font-size: 14px;
  transition: background var(--transition);
}
.social-links a:hover { background: var(--teal); }

/* ── RTL ── */
body.lang-fa .nav-menu    { flex-direction: row-reverse; }
body.lang-fa .nav-inner   { flex-direction: row-reverse; }
body.lang-fa .footer-inner { direction: rtl; }
body.lang-fa .footer-bottom { flex-direction: row-reverse; }
body.lang-fa .elementor-column { direction: rtl; }
body.lang-fa .elementor-text-editor { direction: rtl; text-align: right; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--white); padding: 16px 24px;
    border-bottom: 2px solid var(--teal); gap: 12px; z-index: 9998;
  }
  .nav-hamburger { display: block; }
  .footer-inner  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
