/* Stilul ssmg.ro (tema Blocksy + Elementor): paleta și fonturile sunt preluate din CSS-ul site-ului.
   Mobile-first: stilurile de bază sunt pentru telefon, media query-urile adaugă pentru ecrane mari.
   Reguli de design: vezi CLAUDE.md. */
:root {
  --red: #ad0000;
  --red-dark: #870000;
  --red-deep: #740000;
  --pink: #eddede;
  --pink-light: #faf4f4;
  --text: #361717;
  --text-soft: #532d2d;
  --text-muted: #6b4747;
  --white: #ffffff;
  /* culori de stare (doar pentru mesaje de succes/validare) */
  --success: #2e7d32;
  --success-bg: #edf7ee;

  --font-body: "Open Sans", sans-serif;
  --font-heading: "Nunito", sans-serif;

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius: 17px;
  --header-height: 64px;
  --shadow-soft: 0 10px 30px rgba(54, 23, 23, .10);
  --shadow-lift: 0 18px 40px rgba(135, 0, 0, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1025px) {
  :root { --header-height: 84px; }
}

/* ---------- Bază ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--red-dark); line-height: 1.25; }
h2 { font-size: clamp(22px, 1.6vw + 14px, 30px); }
h3 { font-size: clamp(18px, .6vw + 14px, 20px); }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--red-dark); color: var(--white); text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Animații la scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Butoane și linkuri ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--pink);
  color: var(--red-dark);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 7px 2px var(--red-deep);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .2s var(--ease), box-shadow .3s;
}
.button:hover,
.button:focus-visible { background: var(--red-dark); color: var(--pink); }
.button:active { transform: scale(.97); }

.button--ghost { background: rgba(255, 255, 255, .75); backdrop-filter: blur(4px); }
.button--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: none;
}
.button--ghost-light:hover,
.button--ghost-light:focus-visible { background: var(--white); color: var(--red-dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red-dark);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after,
.card--link:hover .link-arrow::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 4px solid var(--red-dark);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(54, 23, 23, .12); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  transition: min-height .3s var(--ease);
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: 112px; transition: width .3s var(--ease); }

/* Hamburger -> X */
.nav-toggle {
  position: relative;
  z-index: 70;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle__bar { top: 50%; margin-top: -1.5px; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { transform: translateY(-8px); }
.nav-toggle__bar::after { transform: translateY(8px); }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: rotate(45deg); background: var(--red-dark); }
.nav-open .nav-toggle__bar::after { transform: rotate(-45deg); background: var(--red-dark); }

/* Meniu mobil: panou din dreapta */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(360px, 88vw);
  padding: calc(var(--header-height) + 12px) 0 max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--white);
  box-shadow: -10px 0 40px rgba(54, 23, 23, .2);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
}
.nav-open .main-nav { transform: none; visibility: visible; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(54, 23, 23, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.main-nav > ul { margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--pink);
}
.main-nav > ul > li > a {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: background-color .2s, color .2s;
}
.main-nav > ul > li.is-active > a { color: var(--red-dark); box-shadow: inset 4px 0 0 var(--red-dark); }

.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.submenu-toggle svg { width: 12px; height: 8px; transition: transform .3s var(--ease); }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.submenu {
  display: none;
  flex-basis: 100%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--pink-light);
}
.is-open > .submenu { display: block; animation: drop-in .25s var(--ease); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
.submenu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px 0 40px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.submenu .is-active a { color: var(--red); font-weight: 600; }

.main-nav__cta { margin: 0 24px; }
.main-nav .socials { padding: 0 24px; }

.socials { display: flex; align-items: center; gap: 14px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  transition: color .2s, transform .2s var(--ease);
}
.socials a:hover { color: var(--red); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

/* Meniu desktop */
@media (min-width: 1025px) {
  .site-header__inner { justify-content: center; gap: clamp(20px, 3vw, 48px); align-items: stretch; }
  .site-header__logo img { width: 150px; }
  .site-header.is-scrolled .site-header__inner { min-height: 64px; }
  .site-header.is-scrolled .site-header__logo img { width: 116px; }

  .nav-toggle,
  .nav-backdrop,
  .main-nav__cta { display: none; }

  .main-nav {
    position: static;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(12px, 2vw, 28px);
    width: auto;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .main-nav > ul { display: flex; align-items: stretch; }
  .main-nav > ul > li {
    position: relative;
    flex-wrap: nowrap;
    border: 0;
    transition: background-color .25s;
  }
  .main-nav > ul > li > a {
    min-height: 0;
    padding: 0 clamp(8px, 1vw, 16px);
    font-size: clamp(13px, .4vw + 8px, 15px);
    font-weight: 500;
  }
  .main-nav > ul > li.has-children > a { padding-right: 4px; }
  .main-nav > ul > li:hover,
  .main-nav > ul > li:focus-within,
  .main-nav > ul > li.is-active { background: var(--red-dark); }
  .main-nav > ul > li:hover > a,
  .main-nav > ul > li:focus-within > a,
  .main-nav > ul > li.is-active > a,
  .main-nav > ul > li:hover > .submenu-toggle,
  .main-nav > ul > li:focus-within > .submenu-toggle,
  .main-nav > ul > li.is-active > .submenu-toggle { color: var(--white); box-shadow: none; }
  .submenu-toggle { width: auto; padding: 0 clamp(8px, 1vw, 16px) 0 4px; }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    min-width: 230px;
    padding: 8px 0;
    background: var(--white);
    border-top: 5px solid var(--red-dark);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .has-children:hover > .submenu,
  .has-children.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
  .submenu a { padding: 0 22px; transition: background-color .2s, color .2s, padding-left .2s var(--ease); }
  .submenu a:hover { background: var(--pink-light); color: var(--red); padding-left: 28px; }

  .main-nav .socials { padding: 0; }
}

/* ---------- Waves (shape divider Elementor) ---------- */
.waves {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(36px, 5vw, 65px);
  fill: var(--pink);
  transform: scaleY(-1);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(70svh, 480px);
  padding: 48px 0 90px;
  overflow: hidden;
  background: url("../img/hero-1024.731356e8bd5e.jpg") 72% center / cover no-repeat;
}
.hero::before {
  /* voal alb pe telefon, ca textul să fie lizibil peste poză */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45));
}
.hero__content {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero h1 {
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: clamp(28px, 2.4vw + 14px, 42px);
  font-weight: 600;
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  --delay: 2;
}
.hero__actions .button { width: min(100%, 320px); }
.hero h1[data-reveal] { --delay: 1; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 1;
  display: flex;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red-dark);
  animation: nudge 2.2s var(--ease) infinite;
}
.hero__scroll svg { width: 28px; height: 28px; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (min-width: 768px) {
  .hero { background-image: url("../img/hero.bc2300314003.jpg"); background-position: center; }
  .hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 60%); }
  .hero__content { width: 60%; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
  .hero__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 28px; }
  .hero__actions .button { width: auto; }
}
@media (min-width: 1025px) {
  .hero { min-height: 560px; }
}

/* ---------- Intro („Cine suntem noi?") + statistici ---------- */
.intro { background: var(--pink); padding: 16px 0 clamp(56px, 7vw, 90px); }
.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.intro h2 { margin: 0 0 10px; font-family: var(--font-body); font-size: clamp(24px, 1.6vw + 14px, 32px); font-weight: 600; }
.intro p { margin: 0 0 14px; font-size: clamp(16px, .3vw + 14px, 17px); }
.intro__logo { width: clamp(150px, 16vw, 210px); }

@media (min-width: 768px) {
  .intro__inner { flex-direction: row; text-align: left; gap: 60px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.stat {
  padding: clamp(18px, 2.5vw, 28px) 12px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2vw + 14px, 36px);
  line-height: 1.1;
  color: var(--red-dark);
  font-variant-numeric: tabular-nums;
}
.stat > span { color: var(--text-muted); font-size: 14px; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ---------- Secțiuni ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tinted { background: var(--pink-light); }
.section__header { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section__header h2 { margin: 0 0 8px; }
.section__header p { margin: 0; color: var(--text-muted); }
.section__more { margin: 32px 0 0; text-align: center; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 2px solid var(--pink);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red-dark);
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-3px); }

/* ---------- CTA ---------- */
.cta-band {
  padding: clamp(48px, 7vw, 80px) 0;
  background: linear-gradient(135deg, var(--red-dark), var(--red) 60%, var(--red-deep));
  color: var(--pink);
}
.cta-band__inner { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.cta-band h2 { margin: 0 0 8px; color: var(--white); }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band .button { width: min(100%, 300px); box-shadow: none; }
.cta-band .button:not(.button--ghost-light):hover { background: var(--white); color: var(--red-dark); }
@media (min-width: 900px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .cta-band__actions { flex-direction: row; }
  .cta-band .button { width: auto; }
}

/* ---------- Pagini interioare ---------- */
.page-header {
  position: relative;
  padding: clamp(32px, 4vw, 52px) 0 clamp(60px, 7vw, 90px);
  background: linear-gradient(rgba(250, 244, 244, .85), rgba(250, 244, 244, .85)), url("../img/hero-1024.731356e8bd5e.jpg") center 30% / cover;
}
.page-header h1 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(26px, 2vw + 14px, 38px);
  font-weight: 600;
  text-wrap: balance;
}
.page-body { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(56px, 8vw, 90px); }
.page-body > h2 { margin-top: clamp(36px, 5vw, 56px); }

.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: 12px; }

/* ---------- Grid-uri și carduri ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }

.card {
  height: 100%;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--pink-light);
  border-radius: var(--radius);
  border-top: 4px solid var(--red-dark);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.card h2, .card h3 { margin-top: 0; margin-bottom: 8px; }
.card p { margin: 4px 0; }
.card time { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 15px; }
.card__subtitle { color: var(--text-muted); }
.card__meta { margin-top: 12px !important; font-size: 15px; color: var(--text-soft); font-weight: 600; }
.card--center { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 140px; }
.card--link { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.card--link .link-arrow { margin-top: auto; padding-top: 12px; }
article.card { height: auto; }
article.card + article.card { margin-top: 20px; }

@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); background: var(--white); }
}

.member-list { margin: 0; padding: 0; list-style: none; }
.member-list li { padding: 8px 0; border-bottom: 1px solid var(--pink); }
.member-list li:last-child { border-bottom: 0; }
.member-list .is-coordinator { font-weight: 600; }
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--red-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: 2px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(18px, 3vw, 28px) 12px clamp(16px, 3vw, 24px);
  border-radius: var(--radius);
  background: var(--pink-light);
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.person__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--white), 0 0 0 7px var(--pink);
  transition: transform .4s var(--ease);
}
.person strong { font-size: 16px; }
.person > span:last-child { color: var(--text-muted); font-size: 14px; }
@media (hover: hover) {
  .person:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); background: var(--white); }
  .person:hover .person__avatar { transform: scale(1.06) rotate(-3deg); }
}

.pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--red-dark); color: var(--pink); }
.site-footer a,
.site-footer .socials a { color: var(--pink); }
.site-footer .socials a:hover { color: var(--white); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 32px;
  text-align: center;
}
.site-footer__inner p { margin: 2px 0; }
.site-footer__copy {
  margin: 0;
  padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  background: var(--red-deep);
}
@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-dark);
  color: var(--white);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); color: var(--white); }
.back-to-top svg { width: 24px; height: 24px; }

/* ---------- Mișcare redusă ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Pagini „Despre noi": text + carusel ---------- */
.about { display: grid; gap: clamp(28px, 4vw, 48px); }
.about + h2 { margin-top: clamp(40px, 6vw, 64px); }
.about__text { max-width: 760px; }
@media (max-width: 899px) {
  .about__media { order: -1; } /* pe telefon, caruselul vine înaintea textului */
}
@media (min-width: 900px) {
  .about--with-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .about--with-media .about__media { position: sticky; top: calc(var(--header-height) + 24px); }
}

/* ---------- Carusel ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pink);
  box-shadow: var(--shadow-soft);
}
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; }
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 38px;
  background: linear-gradient(transparent, rgba(54, 23, 23, .75));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--red-dark);
  box-shadow: 0 4px 14px rgba(54, 23, 23, .2);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease), opacity .2s;
}
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }
.carousel__nav:hover { background: var(--red-dark); color: var(--white); }
.carousel__nav:active { transform: scale(.92); }
.no-js .carousel__nav { display: none; }
@media (hover: hover) {
  .carousel__nav { opacity: 0; }
  .carousel:hover .carousel__nav,
  .carousel:focus-within .carousel__nav { opacity: 1; }
}
.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.carousel__dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel__dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 3px rgba(0, 0, 0, .3);
  transition: width .3s var(--ease), margin .3s var(--ease), background-color .3s;
}
.carousel__dots button[aria-current="true"]::before { width: 20px; margin-left: -10px; background: var(--white); }

/* ---------- Departamente ---------- */
.section-intro { margin-bottom: clamp(28px, 4vw, 44px); }
.departments { display: grid; gap: clamp(20px, 3vw, 32px); }
.department {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--pink-light);
  border-left: 5px solid var(--red-dark);
  transition: box-shadow .3s var(--ease), background-color .3s;
}
@media (hover: hover) {
  .department:hover { background: var(--white); box-shadow: var(--shadow-lift); }
}
.department__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px var(--pink);
}
.department__logo img { max-height: 100%; object-fit: contain; }
.department__logo span { font-family: var(--font-heading); font-weight: 700; font-size: 32px; color: var(--red-dark); }
.department h2 { margin: 0; }
.department__subtitle { margin: 2px 0 12px; color: var(--text-muted); font-weight: 600; }
.department .prose p { margin: 0 0 10px; }
.department__team {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.department__team li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--pink);
  font-size: 14px;
}
.department__team .is-coordinator { border-color: var(--red-dark); font-weight: 600; }
.department__team .badge { margin-left: 4px; }
@media (min-width: 700px) {
  .department { grid-template-columns: 140px 1fr; align-items: start; }
  .department__logo { width: 140px; }
}
@media (max-width: 699px) {
  .department { justify-items: center; text-align: center; border-left: 0; border-top: 5px solid var(--red-dark); }
  .department__team { justify-content: center; }
}
.member-list__empty { color: var(--text-muted); font-style: italic; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
}
.contact__list { display: grid; gap: 18px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--pink);
  fill: var(--red-dark);
}
.contact__list strong { display: block; font-family: var(--font-heading); color: var(--red-dark); }
.contact__list a { color: var(--text); text-decoration: none; }
.contact__list a:hover { color: var(--red); text-decoration: underline; }
.contact__form h2 { margin-top: 0; }
.contact__form.card:hover { transform: none; }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field label span[aria-hidden] { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--pink);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 16px; /* 16px: iOS nu mai face zoom la focus */
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--red-dark); box-shadow: 0 0 0 4px rgba(135, 0, 0, .12); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); }
.field__error { margin: 0; color: var(--red); font-size: 14px; font-weight: 600; animation: drop-in .2s var(--ease); }
.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea { border-color: var(--success); }
.field.is-valid label::after { content: " ✓"; color: var(--success); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-hint { margin: 0; font-size: 14px; color: var(--text-muted); }
.form-hint span { color: var(--red); }
.form-hint.is-ready { color: var(--success); font-weight: 600; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button--solid:disabled:hover { background: var(--red-dark); }
.field--check { margin: 20px 0; }
.field--check label { flex-direction: row; display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--red-dark); }

.button--solid { background: var(--red-dark); color: var(--white); box-shadow: none; }
@media (max-width: 599px) {
  .contact__form .button { width: 100%; }
}
.button.is-loading { opacity: .75; cursor: progress; }
.button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.button--solid:hover,
.button--solid:focus-visible { background: var(--red); color: var(--white); }

.alert {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  animation: drop-in .3s var(--ease);
}
.alert--success { display: flex; gap: 12px; align-items: flex-start; background: var(--success-bg); color: #1b4d1e; border-left: 5px solid var(--success); }
.alert__icon { flex: 0 0 24px; width: 24px; height: 24px; fill: var(--success); }
.alert:focus { outline: none; }
.alert--error { background: var(--pink); color: var(--red-dark); border-left: 5px solid var(--red); }
.alert ul { margin: 0; padding-left: 1.2em; }
