/* ════════════════════════════════════════
   Parsi Calendar · Site Styles v2
   Mobile-first, dark gold luxury theme
   ════════════════════════════════════════ */

:root {
  --gold-1: #F0D080;
  --gold-2: #C9A84C;
  --gold-3: #A07830;
  --gold-glow: rgba(201,168,76,0.20);
  --bg-0: #07040F;
  --bg-1: #0F0A1A;
  --bg-2: #1A1228;
  --bg-3: #231833;
  --border: rgba(201,168,76,0.14);
  --border-hover: rgba(201,168,76,0.32);
  --text-1: #F4EDE0;
  --text-2: #C0AD94;
  --text-3: #8A7A64;
  --red: #EF4444;
  --red-glow: rgba(239,68,68,0.12);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --max: 740px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-1); }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(120,60,180,0.05) 0%, transparent 50%),
    var(--bg-0);
  pointer-events: none;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
  height: 56px;
  background: rgba(7,4,15,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 65%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
  display: flex; align-items: center; gap: 0.45rem;
}
.nav-logo {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  color: var(--text-2); font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 0.6rem; border-radius: 8px;
  transition: color .15s, background .15s;
  text-decoration: none !important;
}
.nav-links a:hover { color: var(--text-1); background: rgba(255,255,255,0.06); }
.nav-links .nav-btn {
  padding: 0.38rem 0.9rem;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #07040F !important; font-weight: 700 !important;
  border-radius: 8px;
}
.nav-links .nav-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-1) !important; }

/* Hide most nav links on very small screens */
@media (max-width: 500px) {
  .nav-links a.hide-xs { display: none; }
}

/* ── Hero ── */
.hero {
  padding: 4.5rem 1.25rem 3rem;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 1.25rem;
}
.hero-badge-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
.hero-title {
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.12;
  margin-bottom: 1rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--text-2); font-size: clamp(0.88rem, 2.5vw, 1rem);
  max-width: 460px; margin: 0 auto 2rem; line-height: 1.65;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  align-items: center; justify-content: center;
  margin-bottom: 2.5rem;
}
.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.28rem 0.75rem;
  font-size: 0.73rem; color: var(--text-3);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--r-md); font-size: 0.875rem; font-weight: 700;
  cursor: pointer; border: none; white-space: nowrap;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  text-decoration: none !important;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: none; opacity: 1; }
.btn-gold {
  background: linear-gradient(135deg, #D4A830 0%, #9A7228 100%);
  color: #07040F;
  box-shadow: 0 2px 12px rgba(201,168,76,0.28);
}
.btn-gold:hover { box-shadow: 0 4px 22px rgba(201,168,76,0.42); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: var(--border-hover); }
.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(239,68,68,0.25);
}
.btn-danger:hover { box-shadow: 0 4px 20px rgba(239,68,68,0.38); }

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}
.page-header {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}
.page-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-1) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}
.page-sub { color: var(--text-3); font-size: 0.83rem; }
.section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
  margin: 2rem 0 0.75rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  margin-bottom: 0.85rem;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border-hover); }
.card-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 0.75rem;
}
.card p, .card li { color: var(--text-2); font-size: 0.875rem; line-height: 1.65; margin-bottom: 0.45rem; }
.card ul, .card ol { padding-left: 1.1rem; }
.card li { margin-bottom: 0.3rem; }

/* ── Feature grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 480px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.9rem 0.85rem;
}
.feature-emoji { font-size: 1.25rem; line-height: 1; margin-bottom: 0.4rem; }
.feature-name { font-size: 0.78rem; font-weight: 600; color: var(--text-1); }
.feature-desc { font-size: 0.7rem; color: var(--text-3); margin-top: 0.2rem; line-height: 1.4; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0.85rem; }
.step { display: flex; gap: 0.85rem; align-items: flex-start; }
.step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #07040F;
  margin-top: 2px;
}
.step-title { font-size: 0.875rem; font-weight: 600; color: var(--text-1); line-height: 1.3; }
.step-desc { font-size: 0.78rem; color: var(--text-3); margin-top: 0.15rem; }

/* ── Info strip ── */
.info-strip {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem; margin: 1rem 0;
}
.info-row {
  display: flex; align-items: center; justify-content: space-between;
}
.info-label { font-size: 0.78rem; color: var(--text-3); }
.info-value { font-size: 0.78rem; font-weight: 600; color: var(--gold-2); }

/* ── Warning ── */
.warning {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--red-glow);
  border: 1px solid rgba(239,68,68,0.20);
  border-radius: var(--r-md); padding: 1rem 1.1rem; margin: 1rem 0;
}
.warning-icon { font-size: 1rem; flex-shrink: 0; padding-top: 1px; }
.warning p { color: #FCA5A5 !important; font-size: 0.83rem !important; margin: 0 !important; line-height: 1.5 !important; }

/* ── Quick links ── */
.quick-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.quick-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.42rem 0.85rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.77rem; color: var(--text-2);
  transition: border-color .15s, color .15s;
  text-decoration: none !important;
}
.quick-link:hover { border-color: var(--border-hover); color: var(--gold-2); }

/* ── Link row ── */
.link-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none !important; color: var(--text-2) !important;
  transition: color .15s;
}
.link-row:last-child { border-bottom: none; }
.link-row:hover { color: var(--text-1) !important; }
.link-row-label { font-size: 0.875rem; }

/* ── Policy ── */
.policy-body { max-width: var(--max); }
.section-head {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-2);
  margin: 2rem 0 0.6rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.section-head:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.policy-body p { color: var(--text-2); font-size: 0.875rem; margin-bottom: 0.65rem; line-height: 1.7; }
.policy-body ul, .policy-body ol { padding-left: 1.2rem; margin-bottom: 0.75rem; }
.policy-body li { color: var(--text-2); font-size: 0.875rem; margin-bottom: 0.3rem; line-height: 1.6; }
.policy-body strong { color: var(--text-1); font-weight: 600; }
.policy-body a { color: var(--gold-2); }

/* ── Form ── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 0.77rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 0.38rem; letter-spacing: 0.01em;
}
.form-label .opt { color: var(--text-3); font-weight: 400; }
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.16);
  border-radius: var(--r-sm);
  padding: 0.68rem 0.9rem;
  color: var(--text-1); font-size: 0.875rem; font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
}
textarea.form-control { resize: vertical; min-height: 105px; line-height: 1.55; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23C9A84C' d='M6 7L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
  padding-right: 2.2rem; cursor: pointer;
}
select.form-control option { background: var(--bg-2); color: var(--text-1); }
.form-check {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.9rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer;
}
.form-check input[type=checkbox] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--gold-2); cursor: pointer;
}
.form-check-label { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }
.form-check-label strong { color: var(--text-1); }
.form-disclaimer {
  font-size: 0.73rem; color: var(--text-3); line-height: 1.55; margin-top: 0.85rem;
}
.form-disclaimer a { color: var(--text-3); text-decoration: underline; }
.form-success {
  display: none;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: var(--r-md); padding: 1.75rem 1.5rem; text-align: center;
  color: #86EFAC;
}
.form-success strong { display: block; font-size: 1.05rem; margin-bottom: 0.4rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (min-width: 560px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand {
  font-size: 0.85rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.2rem;
}
.footer-copy { font-size: 0.73rem; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.1rem; }
.footer-links a {
  font-size: 0.77rem; color: var(--text-3);
  padding: 0.28rem 0.55rem; border-radius: 6px;
  transition: color .15s; text-decoration: none !important;
}
.footer-links a:hover { color: var(--gold-2); }
