/* =====================================================
   DESIGN REFRESH
   Loaded after style.css and overrides it. Remove the <link> to
   refresh.css in index.html to return to the previous design.
===================================================== */

:root {
  --bg: #f6f4ee;
  --bg-alt: #efece3;
  --surface: #ffffff;
  --ink: #1f261b;
  --text: #454a40;
  --muted: #6b7064;
  --line: rgba(74, 93, 58, 0.14);
  --line-strong: rgba(74, 93, 58, 0.24);
  --brand: #4a5d3a;
  --brand-2: #6b8456;
  --brand-ink: #2f3a28;

  --shadow-card: 0 1px 2px rgba(31, 38, 27, 0.04), 0 8px 24px rgba(31, 38, 27, 0.06);
  --shadow-lift: 0 2px 4px rgba(31, 38, 27, 0.05), 0 18px 40px rgba(31, 38, 27, 0.10);
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}

/* Justified Persian text leaves uneven gaps between words */
p, li,
.section-sub, .hero-note p, .media-card__desc, .about-intro-box p,
.about-necessity-text p, .dual-card p, .vision-box p, .mission-box p,
.mission-end, .qr-note, .footer-brand p, .campaign-box p {
  text-align: start;
  line-height: 2;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.5; }

.section { padding: 96px 0; }

.tag,
.about-kicker {
  background: rgba(107, 132, 86, 0.12);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
  padding: 13px 30px;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #d9b640, var(--gold));
  color: var(--brand-ink);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.30);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, 0.38); }
.btn-sage {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(74, 93, 58, 0.25);
}
.btn-sage:hover { box-shadow: 0 10px 26px rgba(74, 93, 58, 0.32); }

:where(a, button, input):focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.6);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(246, 244, 238, 0.85);
  border-bottom-color: var(--line);
}
.nav-links a { color: var(--text); font-weight: 600; }
.nav-links a:hover { color: var(--brand); background: rgba(107, 132, 86, 0.10); }

/* ---------- Hero note ---------- */
.hero-note {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 36px;
}
.hero-note h3 { font-size: 1.45rem; font-weight: 800; }
.hero-note p { color: var(--text); }
.hero-lead {
  color: var(--ink);
  font-size: 1.05rem;
  border-right: 4px solid var(--gold);
  padding-right: 14px;
}
.hero-info {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px;
}
.hero-info h4 { color: var(--brand); font-weight: 800; }
.hero-info ul { list-style: none; padding: 0; color: var(--text); }
.hero-info li { position: relative; padding-right: 30px; }
.hero-info li::before,
.about-check-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.45em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(107, 132, 86, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5d3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.btn-more {
  border-radius: 12px;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--brand);
  font-weight: 700;
}
.btn-more:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* ---------- Campaign: the main call to action ---------- */
#campaign .campaign-box {
  max-width: none;
  padding: 64px 48px;
  border: none;
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(212, 175, 55, 0.22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(184, 201, 168, 0.18), transparent 70%),
    linear-gradient(135deg, var(--brand), var(--brand-ink));
  box-shadow: 0 24px 60px rgba(47, 58, 40, 0.28);
}
#campaign .campaign-box:hover { transform: none; box-shadow: 0 24px 60px rgba(47, 58, 40, 0.28); }
#campaign .campaign-box h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 900;
  max-width: 880px;
  margin: 0 auto 18px;
}
#campaign .campaign-box p {
  color: rgba(255, 255, 255, 0.86);
  opacity: 1;
  text-align: center;
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 30px;
}
#campaign .btn { padding: 15px 40px; font-size: 1.08rem; }

/* ---------- Section heads (media, about, install) ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); text-align: center; }

.section-title { color: var(--ink); font-weight: 900; }
.section-title::after { background: var(--gold); width: 48px; }

/* ---------- Media ---------- */
.media-section { background: var(--bg-alt); padding: 96px 0; }
.media-wrap { max-width: 980px; margin: 0 auto; }
.panel-head { justify-content: center; text-align: center; }
.panel-head h3 { font-size: 1.15rem; font-weight: 800; }
.panel-head p { color: var(--muted); }
.media-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 460px)); justify-content: center; }

.media-card,
.audio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: 22px;
  padding: 22px;
}
.media-card::before { display: none; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.audio-icon,
.audio-play { background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.audio-meta h4 { font-weight: 800; }
.audio-meta p { color: var(--muted); }
.btn-soft {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: none;
}
.btn-soft:hover { background: var(--brand-ink); border-color: var(--brand-ink); box-shadow: none; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--brand);
}
.btn-ghost:hover { background: rgba(107, 132, 86, 0.08); color: var(--brand-ink); }

/* ---------- About / manifesto ---------- */
.about-intro { margin-bottom: 64px; }
.about-main-title { color: var(--ink); font-weight: 900; }
.about-subtitle { color: var(--brand-2); font-weight: 700; }
.about-divider { background: var(--gold); height: 3px; width: 48px; border-radius: 99px; }
.about-intro-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-right: 4px solid var(--gold);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
}
.about-intro-box p { font-size: 1.1rem; color: var(--ink); font-weight: 500; }

/* Blocks are open sections separated by a rule, not boxes inside boxes */
.about-block {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 56px 0 0;
  margin: 0 0 56px;
  border-top: 1px solid var(--line);
}
.about-block-head h3 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 900; }
.about-teaser { color: #a8871f; font-weight: 700; }

.about-necessity-text p { color: var(--text); }
.about-mini-quote {
  background: rgba(212, 175, 55, 0.14);
  color: var(--brand-ink);
  border-radius: 12px;
}
.money-flow-card { border-radius: 22px; box-shadow: var(--shadow-lift); background: var(--surface); }
.money-flow-card img { object-fit: contain; }

.layers-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layer-card {
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.layer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.layer-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  background: rgba(212, 175, 55, 0.16);
  color: #8a6d12;
}
.layer-body h4 { font-size: 1.05rem; font-weight: 800; }
.layer-body p { color: var(--muted); }

.dual-card,
.mission-box {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.dual-card { border-top: 4px solid var(--brand-2); }
.dual-card + .dual-card { border-top-color: var(--gold); }
.dual-card h4 { color: var(--ink); font-size: 1.08rem; font-weight: 800; }
.dual-card p, .mission-box p { color: var(--text); }

.vision-box {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 32px;
  gap: 48px;
}
.vision-content > p { font-weight: 700; color: var(--ink); }
.vision-image img { box-shadow: var(--shadow-lift); }

.about-check-list li { padding-right: 32px; color: var(--text); }

.mission-box {
  background: linear-gradient(135deg, rgba(107, 132, 86, 0.08), rgba(212, 175, 55, 0.08)), var(--surface);
}
.mission-box .about-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 24px;
}
.mission-box .about-check-list li { margin: 8px 0; }
.mission-end {
  margin-top: 24px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--brand-ink) !important;
}

/* ---------- Install app ---------- */
#install-app { background: var(--bg-alt); }
.install-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.install-title { font-size: 1.35rem; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.install-desc { color: var(--muted); text-align: center; margin-bottom: 24px; }
.install-actions { display: flex; justify-content: center; }

/* ---------- Modal ---------- */
.modal-overlay { background: rgba(31, 38, 27, 0.55); backdrop-filter: blur(4px); }
.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px 24px;
  box-shadow: 0 30px 80px rgba(31, 38, 27, 0.30);
}
.modal-content h3 { font-weight: 900; }
.modal-content > p { color: var(--muted); }
#campaignForm input { border-color: var(--line-strong); background: var(--bg); }
#campaignForm input:focus { outline: none; border-color: var(--brand-2); background: var(--surface); }
#campaignForm button { background: linear-gradient(135deg, #d9b640, var(--gold)); color: var(--brand-ink); }
#campaignForm button:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--brand-ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-align: start;
}
.view-count { color: var(--footer-bottom); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section, .media-section { padding: 64px 0; }
  .hero-note { padding: 24px 20px; }
  #campaign .campaign-box { padding: 44px 22px; border-radius: 24px; }
  .about-block { padding-top: 40px; margin-bottom: 40px; }
  .vision-box { padding: 22px; gap: 24px; }
  .install-card { padding: 28px 20px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .layers-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}
