/* ==========================================================================
   SmartLab INFOEL — stylesheet
   Culori și fonturi preluate exact de pe smart.infoel.ro
   ========================================================================== */

:root {
  --navy: #020381;
  --blue: #2874FC;
  --cyan: #00C7E2;
  --gradient: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  --text: #4B4B4B;
  --heading: #101132;
  --bg-alt: #F4F6FC;
  --white: #FFFFFF;
  --border: #E3E7F4;
  --radius: 18px;
  --shadow-sm: 0 4px 16px rgba(2, 3, 129, 0.08);
  --shadow-md: 0 12px 32px rgba(2, 3, 129, 0.14);
  --shadow-lg: 0 24px 60px rgba(2, 3, 129, 0.22);
  --font-heading: "Plus Jakarta Sans", "Lato", sans-serif;
  --font-body: "Lato", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
}

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px; }

.section-head p { font-size: 1.05rem; color: var(--text); }

.section-alt { background: var(--bg-alt); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient);
  box-shadow: 0 2px 20px rgba(2, 3, 129, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(0, 199, 226, 0.35) 0%, rgba(0, 199, 226, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 199, 226, 0.25);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero h1 span { color: var(--cyan); }

.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
}

.hero-stats .stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

/* Hero image showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(0, 199, 226, 0.35));
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-frame img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  color: var(--navy);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
}

.hero-badge .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.hero-badge strong { display: block; font-size: 1.05rem; }
.hero-badge span { font-size: 0.78rem; color: var(--text); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Cifre cheie ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.stat-card .stat-num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card .stat-label { margin-top: 8px; font-size: 0.92rem; color: var(--text); font-weight: 600; }

/* ---------- Despre proiect ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-copy p { margin-bottom: 18px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
}

.info-panel {
  background: var(--gradient);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.info-panel h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 22px; }

.info-panel dl { display: grid; gap: 18px; }

.info-panel dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.info-panel dd { font-weight: 700; font-size: 1.02rem; }

.info-panel .divider { height: 1px; background: rgba(255, 255, 255, 0.18); }

/* ---------- Obiective ---------- */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.objective-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.objective-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.objective-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.objective-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.objective-card p { font-size: 0.96rem; }

/* ---------- Dotări (categorii) ---------- */
.equip-tabs {
  display: grid;
  gap: 28px;
}

.equip-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.equip-category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.equip-category-head .letter {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.equip-category-head h3 { font-size: 1.2rem; }
.equip-category-head span { font-size: 0.88rem; color: var(--blue); font-weight: 700; }

.equip-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.equip-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.equip-item:last-child,
.equip-list > .equip-item:nth-last-child(2) { border-bottom: none; }

.equip-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 8px;
  flex-shrink: 0;
}

.equip-item strong { display: block; color: var(--heading); font-size: 0.98rem; }
.equip-item small { color: var(--text); font-size: 0.86rem; }

/* ---------- Galerie foto ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) saturate(1.1);
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 3, 129, 0) 40%, rgba(2, 3, 129, 0.82) 100%);
  opacity: 0.75;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item .gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  transform: translateY(6px);
  transition: transform 0.4s ease;
}

.gallery-item .gallery-caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
}

.gallery-item .gallery-caption span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.gallery-item:hover img { transform: scale(1.12); filter: grayscale(0%) saturate(1.15); }
.gallery-item:hover::before { opacity: 0.55; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ---------- Plan de implementare (timeline) ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  z-index: 0;
}

.timeline-step { position: relative; z-index: 1; }

.timeline-step .step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.timeline-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.timeline-step p { font-size: 0.9rem; }

/* ---------- Instruire ---------- */
.training-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.training-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.training-gallery img {
  border-radius: 14px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.training-gallery img:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-md); }

.training-copy .mini-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.training-copy .mini-stat strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--navy); }
.training-copy .mini-stat span { font-size: 0.84rem; }

/* ---------- Sustenabilitate ---------- */
.sustain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.check-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.check-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 199, 226, 0.15);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ---------- Finanțare ---------- */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.budget-table th, .budget-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 0.95rem;
}

.budget-table thead th {
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}

.budget-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.budget-table td:not(:first-child), .budget-table th:not(:first-child) { text-align: right; font-weight: 700; white-space: nowrap; }

.budget-table tfoot td {
  font-family: var(--font-heading);
  font-weight: 800;
  border-top: 2px solid var(--border);
  color: var(--navy);
}

/* ---------- Contact / CTA ---------- */
.cta-panel {
  background: var(--gradient);
  border-radius: 28px;
  padding: 64px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 199, 226, 0.25);
}

.cta-panel h2 { color: var(--white); margin-bottom: 14px; }
.cta-panel p { color: rgba(255, 255, 255, 0.82); margin-bottom: 0; }

.contact-list { display: grid; gap: 16px; position: relative; z-index: 1; }

.contact-list .row { display: flex; gap: 14px; align-items: flex-start; }

.contact-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list strong { display: block; font-size: 0.98rem; }
.contact-list span, .contact-list a { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }
.contact-list a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gradient);
  color: rgba(255, 255, 255, 0.88);
  padding: 56px 0 28px;
}

.footer-logos {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 24px;
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 36px;
}

.footer-logos img {
  height: 44px;
  width: auto;
  max-width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 48px;
  margin-bottom: 36px;
}

.footer-notice {
  grid-column: 1 / -1;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 780px;
  margin-bottom: 8px;
}

.footer-links { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.footer-links a { color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover { color: var(--cyan); }
.footer-links .label { color: rgba(255, 255, 255, 0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-frame { max-width: 340px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .objectives-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .timeline::before { display: none; }
  .training-wrap { grid-template-columns: 1fr; }
  .sustain-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px 32px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .footer-logos { padding: 14px 18px; }
  .footer-logos img { height: 30px; }
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--gradient);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    padding: 24px;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 18px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .budget-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .objectives-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-panel { padding: 32px 22px; }
}
