/* ===========================================================
   Asociația Proiecte cu Impact — cald, uman, foto-centric
   =========================================================== */

:root {
  --bg: #FBF9F4;
  --sand: #EFE8DA;
  --ink: #251F19;
  --ink-2: #6B6157;
  --line: #E5DDCC;
  --brand: #37614A;
  --brand-700: #2B4E3A;
  --brand-900: #213D2E;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --container: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --shadow: 0 26px 50px -28px rgba(33, 30, 22, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -.015em; font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-700); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 244, .88); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); }
.brand-mark { width: 20px; height: 20px; border-radius: 6px; background: var(--brand); flex: none; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink); transition: color .18s; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(520px, 84vh, 760px); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,16,9,.86) 0%, rgba(22,16,9,.5) 36%, rgba(22,16,9,.12) 66%, rgba(22,16,9,.05) 100%); }
.hero-overlay { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: clamp(40px, 6vw, 76px); }
.hero-content { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.06; }
.hero-sub { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin: 20px 0 30px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Eyebrows / kickers ---------- */
.eyebrow, .kicker { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.eyebrow-light { color: rgba(255,255,255,.92); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.band { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-lead { color: var(--ink-2); font-size: 1.12rem; margin: 16px 0 0; }

/* ---------- Text block (heading | body) ---------- */
.textblock { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.tb-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.tb-body p { color: var(--ink-2); font-size: 1.12rem; margin: 0 0 1.1em; }
.tb-body p:last-child { margin-bottom: 0; }

.contact-wrap { max-width: 640px; margin-inline: auto; }

/* ---------- Domains ---------- */
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.4vw, 46px); }
.domain { border-top: 2px solid rgba(55, 97, 74, .28); padding-top: 20px; }
.domain-no { display: block; font-weight: 800; font-size: .92rem; color: var(--brand); margin-bottom: 12px; letter-spacing: .02em; }
.domain h3 { font-size: 1.24rem; font-weight: 700; margin-bottom: 8px; }
.domain p { color: var(--ink-2); font-size: 1rem; margin: 0; }

/* ---------- Steps (3 across) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.4vw, 48px); }
.step-no { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.05rem; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 1.02rem; margin: 0; }

/* ---------- Facts ---------- */
.facts { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 38px); }
.fact { border-top: 2px solid rgba(55, 97, 74, .28); padding-top: 18px; }
.fact dt { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 7px; }
.fact dd { margin: 0; font-size: 1.1rem; font-weight: 500; }

/* ---------- Form ---------- */
.contact-intro { color: var(--ink-2); font-size: 1.08rem; margin: 0 0 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(55,97,74,.16); }
.hp-field { position: absolute; left: -9999px; }
.form-note { color: var(--ink-2); font-size: .86rem; margin: 14px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.8); padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 44px; }
.brand-light { color: #fff; }
.brand-light .brand-mark { background: #fff; }
.footer-brand p { margin: 16px 0 0; font-size: .98rem; max-width: 32ch; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav h4, .footer-meta h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; font-weight: 700; }
.footer-nav a { text-decoration: none; color: rgba(255,255,255,.8); font-size: .98rem; }
.footer-nav a:hover { color: #fff; }
.footer-meta { display: grid; gap: 8px; align-content: start; }
.footer-meta p { margin: 0; font-size: .98rem; line-height: 1.5; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.16); padding-block: 22px; }
.footer-legal p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .textblock { grid-template-columns: 1fr; gap: 20px; }
  .steps-row { grid-template-columns: 1fr; gap: 26px; }
  .domains { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 22px; gap: 2px;
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a:not(.btn) { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .domains { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }
