/* ============================================================
   HAI MATE-INFO - Design System
   Alb + verde deschis · Sora (display) + Inter (body)
   Semnătură: linia de puls (diagnostic educațional)
   ============================================================ */

:root {
  --alb: #ffffff;
  --fundal: #fafdf9;
  --verde: #2fb56b;
  --verde-hover: #249a58;
  --verde-deschis: #e3f6ea;
  --verde-pal: #f2fbf5;
  --verde-inchis: #14532d;
  --text: #1c2b22;
  --text-secundar: #52645a;
  --linie: #d9ede0;
  --galben: #fff7e0;
  --radius: 16px;
  --radius-mic: 10px;
  --umbra: 0 6px 24px rgba(20, 83, 45, 0.08);
  --umbra-mare: 0 14px 44px rgba(20, 83, 45, 0.14);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--fundal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- Tipografie ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--verde-inchis); }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 700; }
p { color: var(--text-secundar); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verde);
  background: var(--verde-deschis);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.accent { color: var(--verde); }

/* ---------- Linia de puls (semnătura site-ului) ---------- */
.puls {
  width: 160px;
  height: 30px;
  margin: 14px auto;
  display: block;
}
.puls path {
  fill: none;
  stroke: var(--verde);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.reveal.vizibil .puls path,
.hero .puls path {
  animation: puls-deseneaza 1.6s ease forwards 0.3s;
}
@keyframes puls-deseneaza { to { stroke-dashoffset: 0; } }
.puls.centrat { margin-inline: auto; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-verde {
  background: var(--verde);
  color: var(--alb);
  box-shadow: 0 8px 20px rgba(47, 181, 107, 0.35);
}
.btn-verde:hover { background: var(--verde-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(47, 181, 107, 0.45); }
.btn-contur {
  background: var(--alb);
  color: var(--verde-inchis);
  border-color: var(--verde);
}
.btn-contur:hover { background: var(--verde-deschis); transform: translateY(-2px); }
.btn-wap {
  background: #25d366;
  color: var(--alb);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-wap:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn-mare { padding: 18px 38px; font-size: 1.1rem; }

/* ---------- Meniu ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--verde-inchis);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--verde); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.activ { color: var(--verde); }
.nav-cta { padding: 10px 22px; font-size: 0.9rem; }
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--verde-inchis);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.burger.deschis span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.deschis span:nth-child(2) { opacity: 0; }
.burger.deschis span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--alb);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5%;
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--umbra);
    display: none;
  }
  .nav-links.deschis { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--verde-pal); }
  .nav-cta { margin: 14px 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, var(--verde-deschis) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, var(--verde-pal) 0%, transparent 60%),
    var(--fundal);
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 0 auto 18px; max-width: 800px; line-height: 1.14; font-size: clamp(1.7rem, 4.2vw, 2.6rem); text-wrap: balance; }
.hero .lead { margin: 0 auto 30px; max-width: 560px; }
.hero-butoane { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-nota { margin-top: 18px; font-size: 0.9rem; color: var(--text-secundar); }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--verde-deschis);
  opacity: 0.5;
  filter: blur(60px);
  animation: plutire 9s ease-in-out infinite;
}
@keyframes plutire {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 70px; }
  .hero-butoane .btn { width: 100%; justify-content: center; }
}

/* ---------- Secțiuni ---------- */
.sectiune { padding: 84px 0; }
.sectiune-verde { background: var(--verde-pal); }
.sectiune-cap { max-width: 680px; margin-bottom: 48px; }
.sectiune-cap.centrat { margin-inline: auto; text-align: center; }
.sectiune-cap h2 { margin-bottom: 14px; }

@media (max-width: 640px) { .sectiune { padding: 56px 0; } }

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

.card {
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--umbra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--umbra-mare); }
.card h3 { margin: 14px 0 10px; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--verde-deschis);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.card .btn { margin-top: 20px; }
.card ul { margin: 12px 0 0 18px; color: var(--text-secundar); }
.card ul li { margin-bottom: 6px; }

.eticheta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--verde-deschis);
  color: var(--verde-inchis);
  margin-bottom: 8px;
}

/* ---------- Testimoniale ---------- */
.testimonial { position: relative; }
.testimonial .stele { color: #f5b301; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial blockquote { font-style: italic; color: var(--text); margin-bottom: 16px; }
.testimonial .autor { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--alb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial .autor strong { display: block; color: var(--verde-inchis); font-size: 0.95rem; }
.testimonial .autor small { color: var(--text-secundar); }

/* ---------- Galerie poze ---------- */

/* ---------- Formular ---------- */
.formular-wrap {
  background: var(--alb);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--umbra-mare);
  padding: 44px;
  max-width: 720px;
  margin-inline: auto;
}
.formular-wrap h2 { text-align: center; margin-bottom: 8px; }
.formular-wrap > p { text-align: center; margin-bottom: 28px; }
.camp { margin-bottom: 18px; }
.camp label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--verde-inchis);
}
.camp input, .camp select, .camp textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-mic);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--fundal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.camp input:focus, .camp select:focus, .camp textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 4px var(--verde-deschis);
}
.camp textarea { resize: vertical; min-height: 110px; }
.camp-rand { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .camp-rand { grid-template-columns: 1fr; } .formular-wrap { padding: 28px 20px; } }
.formular-wrap .btn { width: 100%; justify-content: center; }
.formular-nota { text-align: center; font-size: 0.82rem; margin-top: 14px; }
.formular-nota a { color: var(--verde); }

/* ---------- Prețuri / paywall ---------- */
.pret-card {
  background: var(--alb);
  border: 2px solid var(--verde);
  border-radius: var(--radius);
  padding: 44px 36px;
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--umbra-mare);
  position: relative;
}
.pret-card .badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--verde);
  color: var(--alb);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.pret {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--verde-inchis);
  line-height: 1;
  margin: 18px 0 4px;
}
.pret small { font-size: 1.1rem; font-weight: 600; color: var(--text-secundar); }
.pret-card ul {
  list-style: none;
  text-align: left;
  margin: 26px 0;
}
.pret-card ul li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--verde-pal);
  color: var(--text);
}
.pret-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--verde);
  font-weight: 800;
  font-size: 1.1rem;
}
.pret-card .btn { width: 100%; justify-content: center; }

/* ---------- Blog ---------- */
.articol-card { display: flex; flex-direction: column; }
.articol-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--verde-deschis);
  color: var(--verde-inchis);
}
.articol-card a.citeste {
  margin-top: auto;
  padding-top: 16px;
  color: var(--verde);
  font-weight: 700;
  text-decoration: none;
}
.articol-card a.citeste:hover { text-decoration: underline; }

.articol-continut { max-width: 760px; margin-inline: auto; }
.articol-continut h1 { margin-bottom: 16px; }
.articol-continut h2 { margin: 40px 0 14px; }
.articol-continut h3 { margin: 28px 0 10px; }
.articol-continut p { margin-bottom: 16px; }
.articol-continut ul, .articol-continut ol { margin: 0 0 16px 22px; color: var(--text-secundar); }
.articol-continut li { margin-bottom: 8px; }
.articol-meta { color: var(--text-secundar); font-size: 0.9rem; margin-bottom: 24px; }
.articol-cta {
  background: var(--verde-pal);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}
.articol-cta h3 { margin-bottom: 10px; }
.articol-cta .btn { margin-top: 16px; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--verde-inchis), #1a6b3c);
  border-radius: var(--radius);
  padding: 64px 40px;
  text-align: center;
  color: var(--alb);
}
.cta-final h2 { color: var(--alb); margin-bottom: 12px; }
.cta-final p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 28px; }
.cta-final .btn-verde { background: var(--alb); color: var(--verde-inchis); box-shadow: none; }
.cta-final .btn-verde:hover { background: var(--verde-deschis); }
@media (max-width: 640px) { .cta-final { padding: 44px 22px; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--verde-inchis);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px;
  margin-top: 84px;
}
.footer h4 { color: var(--alb); font-size: 1rem; margin-bottom: 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer a:hover { color: var(--alb); text-decoration: underline; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer .logo { color: var(--alb); margin-bottom: 14px; }
.footer .logo span { color: #6ee7a0; }
.footer-desc { font-size: 0.9rem; margin-bottom: 20px; }
.footer-jos {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-jos a { margin-left: 16px; }

/* ---------- Animații la scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.vizibil { opacity: 1; transform: translateY(0); }
.reveal-intarziere-1 { transition-delay: 0.12s; }
.reveal-intarziere-2 { transition-delay: 0.24s; }
.reveal-intarziere-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blob { animation: none; }
  .puls path { animation: none !important; stroke-dashoffset: 0; }
  .btn, .card { transition: none; }
}

/* ---------- Utilitare ---------- */
.centru { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.wap-plutitor {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s;
}
.wap-plutitor:hover { transform: scale(1.1); }
.wap-plutitor svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- LOGO IMAGINE ---------- */
.logo img { height: 30px; width: auto; display: block; }
.logo-chip { background: #fff; padding: 9px 14px; border-radius: 12px; display: inline-block; margin-bottom: 6px; }
.logo-chip img { height: 24px; }
@media (max-width: 480px) { .logo img { height: 26px; } }

/* ---------- CALIBRARE iPHONE (390-430px) ---------- */
@media (max-width: 440px) {
  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: 1.34rem; line-height: 1.28; letter-spacing: -0.005em; }
  .hero .lead { font-size: 1.02rem; line-height: 1.6; }
  .hero .eyebrow { font-size: 0.72rem; padding: 5px 12px; }
  .hero-nota { font-size: 0.82rem; }
  .puls { width: 140px; height: 26px; }
  .hero-butoane { gap: 12px; }
  .hero-butoane .btn { width: 100%; justify-content: center; }
}

/* fișa de lucru din pagina CES: document, nu foto - nu se decupează */


/* ---------- GALERIE: chenare pătrate 1:1, poza întreagă ---------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 840px;          /* chenare mai mici, galerie centrată */
  margin: 0 auto;
}
.poza {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(43, 170, 88, 0.22);
  box-shadow: 0 6px 20px rgba(13, 61, 36, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.poza:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13, 61, 36, 0.14); }
.poza img {
  width: 100%;
  height: auto;              /* obligatoriu, altfel atributul height din HTML strică proporția */
  aspect-ratio: 1 / 1;       /* chenar pătrat */
  object-fit: contain;       /* poza se vede întreagă, nu se taie */
  background: #f7fbf8;
  display: block;
  padding: 8px;
}
.poza figcaption {
  padding: 10px 13px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--verde-inchis);
  background: #fff;
  font-weight: 600;
  border-top: 1px solid rgba(43, 170, 88, 0.14);
}
/* fișa de lucru (document lat) - păstrează proporția reală, se citește */
.poza.document img { aspect-ratio: auto; height: auto; padding: 12px; }

@media (max-width: 860px) { .galerie { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 560px) {
  .galerie { grid-template-columns: 1fr; gap: 16px; max-width: 320px; }
  .poza figcaption { font-size: 0.85rem; padding: 11px 14px; }
}

/* mărire poză la click */
.poza img { cursor: zoom-in; }
.lupa {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13, 61, 36, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
}
.lupa.deschis { display: flex; }
.lupa img { max-width: 96vw; max-height: 92vh; border-radius: 12px; background: #fff; }

/* ---------- CORECȚII MOBIL (butoane, eyebrow, WhatsApp) ---------- */
.btn > span { display: inline; }

@media (max-width: 560px) {
  /* butoanele: text pe rânduri normale, nu bucăți rupte */
  .btn {
    font-size: 0.95rem;
    padding: 15px 20px;
    line-height: 1.35;
    text-align: center;
    display: block;
  }
  .btn-mare { font-size: 1rem; padding: 16px 20px; }
  .nav-cta { display: inline-block; font-size: 0.9rem; padding: 11px 18px; }

  /* eticheta de sus: încape pe un rând */
  .hero .eyebrow { font-size: 0.62rem; letter-spacing: 0.06em; padding: 6px 12px; }

  /* iconița WhatsApp: mai mică, să nu acopere butonul principal */
  .wap-plutitor { width: 46px; height: 46px; bottom: 14px; right: 14px; }
  .wap-plutitor svg { width: 24px; height: 24px; }

  /* aer sub ultima secțiune, ca WhatsApp să nu stea peste conținut */
  footer { padding-bottom: 70px; }
}
