/* ================= GLISA — Patinoare la cheie ================= */
:root {
  --accent: oklch(0.72 0.13 230);
  --accent-strong: oklch(0.55 0.13 240);
  --accent-soft: oklch(0.95 0.025 230);
  --ink: #10222f;
  --ink-soft: #44586a;
  --paper: #f5f8fa;
  --paper-2: #eaf0f4;
  --night: #0a1722;
  --night-2: #0f2233;
  --line: #d7e0e7;
  --radius: 14px;
  --font-head: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.kicker {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.section-head p { color: var(--ink-soft); font-size: 18px; }
.section-head.no-gap { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(10, 23, 34, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}
.site-header .wrap { display: flex; align-items: center; gap: 36px; width: 100%; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.brand-mark span { color: var(--accent); }
.brand-tag { font-size: 12px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.06em; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.site-nav a:hover { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.btn-accent { background: var(--accent); color: var(--night); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 24px oklch(0.72 0.13 230 / 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Hero ---------- */
.hero {
  padding: 0;
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 23, 34, 0.55) 0%, rgba(10, 23, 34, 0.25) 40%, rgba(10, 23, 34, 0.88) 100%);
}
.hero .wrap { padding-top: 160px; padding-bottom: 72px; display: grid; gap: 28px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: rgba(255, 255, 255, 0.85); max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 18px;
}
.hero-stat { background: rgba(10, 23, 34, 0.6); backdrop-filter: blur(8px); padding: 20px 24px; display: grid; gap: 2px; }
.hero-stat strong { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--accent); }
.hero-stat span { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }

/* Servicii */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 34, 47, 0.1); }
.card-num {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { font-size: 15.5px; color: var(--ink-soft); }

/* Proces */
.process { background: var(--night); color: #fff; }
.process .kicker { color: var(--accent); }
.process .section-head p { color: rgba(255, 255, 255, 0.7); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; position: relative; padding-top: 22px; }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.step:last-child::before { right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.step-num { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.step h3 { font-size: 19px; }
.step p { font-size: 15px; color: rgba(255, 255, 255, 0.7); }

/* Tehnologie split */
.tech .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.tech-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(16, 34, 47, 0.18); }
.tech-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.tech-copy { display: grid; gap: 18px; }
.tech-copy h2 { font-size: clamp(28px, 3.5vw, 38px); }
.tech-lead { color: var(--ink-soft); }
.tech-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.tech-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); }
.tech-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
}
.tech-list li strong { color: var(--ink); }

/* Proiecte / galerie */
.projects { background: var(--paper-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--night-2);
}
.shot.wide { grid-column: span 2; aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 18px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 23, 34, 0.85));
}

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 26px;
}
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-strong);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; color: var(--ink-soft); max-width: 64ch; }

/* CTA band */
.cta-band { background: var(--night); color: #fff; }
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin-top: 10px; max-width: 48ch; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info { display: grid; gap: 26px; }
.contact-rows { display: grid; gap: 18px; }
.contact-row { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-row span { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-row a, .contact-row p { font-family: var(--font-head); font-size: 20px; font-weight: 600; text-decoration: none; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: oklch(0.55 0.13 160); }
.form-status.err { color: oklch(0.55 0.18 25); }

/* Footer */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.6); padding: 28px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .brand-mark { font-size: 17px; color: #fff; }
.site-footer .accent-dot { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .brand-tag { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { right: 0; }
  .tech .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot.wide { grid-column: span 2; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .cards, .steps, .gallery, .form-row { grid-template-columns: 1fr; }
  .shot.wide { grid-column: span 1; }
  section { padding: 64px 0; }

  /* Header compact */
  .site-header { padding: 12px 0; }
  .site-header .wrap { gap: 12px; }
  .brand { margin-right: auto; }
  .brand-mark { font-size: 19px; }
  .site-header .btn { padding: 10px 18px; font-size: 14px; }

  /* Hero */
  .hero .wrap { padding-top: 110px; padding-bottom: 48px; gap: 20px; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 6px; }
  .hero-stat { padding: 14px 16px; }
  .hero-stat strong { font-size: 21px; white-space: nowrap; }
  .hero-stat span { font-size: 12.5px; }

  .contact-form { padding: 24px 20px; }
  .faq-item { padding: 0 18px; }
}
