/* Rozgaar — shared stylesheet */
:root {
  --green: #1FA34A;
  --green-dark: #0E7A38;
  --green-deep: #0A5A2A;
  --yellow: #F4B31F;
  --amber: #E88A1A;
  --cream: #FBF7EE;
  --cream-2: #F5EFDF;
  --ink: #14221A;
  --ink-soft: #2A3A30;
  --slate: #5A6B60;
  --line: #E6DFCE;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,34,26,.06), 0 2px 8px rgba(20,34,26,.04);
  --shadow: 0 2px 6px rgba(20,34,26,.06), 0 12px 32px -12px rgba(20,34,26,.14);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
p  { text-wrap: pretty; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ——— Navigation ——— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex; gap: 6px; margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background .2s ease;
}
.nav-links a:hover { background: rgba(31,163,74,.08); color: var(--green-dark); }
.nav-links a.active { background: var(--ink); color: var(--cream); }
.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark) !important; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter); gap: 2px;
    align-items: stretch;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer;
  font-family: var(--font-body);
  transition: transform .12s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--amber); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.arrow { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ——— Section scaffolds ——— */
section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: var(--green);
}
.eyebrow.yellow { color: var(--amber); }
.eyebrow.yellow::before { background: var(--yellow); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { font-size: 18px; color: var(--slate); max-width: 60ch; }

/* ——— Uplift swoosh (logo motif) ——— */
.swoosh {
  position: absolute;
  pointer-events: none;
  opacity: .9;
}

/* ——— Cards ——— */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(31,163,74,.35); }

/* ——— Placeholder image ——— */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(31,163,74,.10) 0 12px, rgba(31,163,74,.04) 12px 24px),
    var(--cream-2);
  border: 1px dashed rgba(31,163,74,.35);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  aspect-ratio: 4/3;
}
.ph.tall { aspect-ratio: 3/4; }
.ph.square { aspect-ratio: 1/1; }
.ph.wide { aspect-ratio: 16/9; }
.ph.yellow {
  background:
    repeating-linear-gradient(135deg, rgba(244,179,31,.18) 0 12px, rgba(244,179,31,.06) 12px 24px),
    #FFF6DF;
  border-color: rgba(232,138,26,.4);
  color: var(--amber);
}

/* ——— Footer ——— */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  color: var(--cream);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 16px;
  opacity: .6;
}
.footer a { color: var(--cream); opacity: .85; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { opacity: 1; color: var(--yellow); text-decoration: none; }
.footer-brand img { height: 44px; background: white; padding: 8px 12px; border-radius: 10px; width: fit-content; margin-bottom: 16px; }
.footer-brand p { color: rgba(251,247,238,.7); font-size: 14px; max-width: 30ch; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(251,247,238,.1);
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(251,247,238,.5);
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ——— Utility ——— */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(31,163,74,.1);
  color: var(--green-dark);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.tag.yellow { background: rgba(244,179,31,.18); color: var(--amber); }
.tag.slate { background: rgba(90,107,96,.12); color: var(--slate); }

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--green-dark);
  letter-spacing: -0.03em;
}
.stat-num.yellow { color: var(--amber); }

/* ——— Forms ——— */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31,163,74,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.radio-pill input { display: none; }
.radio-pill:has(input:checked) {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.radio-pill:hover { border-color: var(--green); }

/* ——— Tweaks panel ——— */
#tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  width: 280px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  z-index: 100;
  display: none;
  font-size: 13px;
}
#tweaks-panel.open { display: block; }
#tweaks-panel h5 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
#tweaks-panel .tweak-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
#tweaks-panel .tweak-row:first-of-type { border-top: 0; }
#tweaks-panel select, #tweaks-panel input[type="color"] {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 12px;
}
