:root {
  --ink: #16243a;
  --ink-soft: #4a5872;
  --paper: #fbf8f2;
  --paper-alt: #f2ece0;
  --brand: #1f3a5f;
  --brand-2: #c2703d;
  --line: #e3dccd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 36, 58, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Placeholdere: conținut de completat. Se elimină clasa .ph când textul e final. */
.ph {
  background: #fff4c2;
  outline: 1px dashed #c99a00;
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 3px;
  color: #5a4500;
}
.section-dark .ph { background: #4d4220; color: #ffe9a0; outline-color: #c99a00; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand small { font-family: var(--sans); font-weight: 500; font-size: .8rem; color: var(--brand-2); letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand-2); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--brand); color: #fff !important; text-decoration: none;
  font-weight: 600; border: 2px solid var(--brand); cursor: pointer; font: inherit; font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #142a47; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand) !important; }
.btn-ghost:hover { background: var(--brand); color: #fff !important; }
.btn-small { padding: 7px 16px; }

/* Hero */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 110px);
  background:
    radial-gradient(circle at 85% 20%, rgba(194, 112, 61, .16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(31, 58, 95, .12), transparent 50%);
}
.hero-inner { max-width: 820px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Sections */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--brand); color: #eef2f8; }
.section-dark a { color: #fff; }
.section-dark .eyebrow { color: #f0b48a; }
.section-intro { color: var(--ink-soft); max-width: 680px; margin-bottom: 36px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts strong { display: inline-block; font-family: var(--serif); font-size: 2rem; color: var(--brand); }
.facts span:not(.ph) { display: block; color: var(--ink-soft); font-size: .92rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-flat { box-shadow: none; }
.card-icon { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-alt); margin-bottom: 14px; }
.card p { color: var(--ink-soft); margin: 0; }
.card .link { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }

.sub { margin-top: 56px; font-size: 1.5rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline > li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 0 0 26px 24px; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-2); }
.timeline time { font-weight: 600; color: var(--brand); align-self: start; }
.timeline p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact-list { margin: 28px 0; display: grid; gap: 16px; }
.contact-list div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.contact-list dt { font-weight: 600; color: #f0b48a; }
.contact-list dd { margin: 0; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.contact-form label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { width: 100%; }
.form-note { margin: 12px 0 0; font-size: .9rem; color: var(--ink-soft); min-height: 1.4em; }

/* Footer */
.site-footer { background: #11223a; color: #aab6c8; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .two-col { grid-template-columns: 1fr; }
  .timeline > li { grid-template-columns: 1fr; gap: 4px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Misiune / proiecte */
.mission { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.list { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.list li { margin-bottom: .35em; }
.timeline details { margin-top: 10px; }
.timeline summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.timeline details p, .timeline details .list { margin-top: 10px; }
