/* ==========================================================================
   Fonturi auto-găzduite (fără cereri către servere terțe — cerință GDPR)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Academia de Muzică Emanuel Mirea
   Paletă: alb / cerneală / bordo (discurile de catifea) / sand (panouri)
   Tipografie: Fraunces (display) + Manrope (text)
   ========================================================================== */

:root {
  --alb: #ffffff;
  --hartie: #faf8f5;
  --ink: #1a1418;
  --ink-soft: #574f55;
  --bordo: #6e1423;
  --bordo-deep: #4c0d18;
  --bordo-tint: #f6ecee;
  --sand: #c9bea6;
  --hairline: #ece7e0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --shadow-soft: 0 18px 50px -22px rgba(26, 20, 24, 0.22);
  --transition: 0.35s cubic-bezier(0.25, 0.6, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--alb);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Utilitare tipografice ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bordo);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.section-title em {
  font-style: italic;
  color: var(--bordo);
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
}

section {
  padding: clamp(72px, 9vw, 120px) 0;
}

/* ---------- Portativ (semnătura vizuală) ---------- */

.staff {
  --staff-color: var(--hairline);
  position: relative;
  height: 34px;
  margin: 34px 0 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--staff-color) 0,
    var(--staff-color) 1px,
    transparent 1px,
    transparent 8px
  );
  background-size: 100% 33px;
  background-repeat: no-repeat;
  max-width: 340px;
}

.staff .note {
  position: absolute;
  width: 11px;
  height: 9px;
  border-radius: 50% / 46%;
  background: var(--bordo);
  transform: rotate(-16deg);
  opacity: 0;
  animation: note-in 0.5s ease forwards;
}

.staff .note:nth-child(1) { left: 6%;  top: 20px; animation-delay: 0.15s; }
.staff .note:nth-child(2) { left: 26%; top: 12px; animation-delay: 0.3s; }
.staff .note:nth-child(3) { left: 46%; top: 16px; animation-delay: 0.45s; }
.staff .note:nth-child(4) { left: 66%; top: 4px;  animation-delay: 0.6s; }
.staff .note:nth-child(5) { left: 86%; top: 12px; animation-delay: 0.75s; }

@keyframes note-in {
  from { opacity: 0; transform: translateY(8px) rotate(-16deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-16deg); }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 10px 30px -24px rgba(26, 20, 24, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-text .brand-sub {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bordo);
}

.brand-logo {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--bordo);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus-visible {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--bordo);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(110, 20, 35, 0.55);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--bordo-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.nav .btn {
  padding: 11px 22px;
  font-size: 14px;
}

.nav-links .btn {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: 172px 0 clamp(72px, 9vw, 110px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--bordo);
}

.hero .lead {
  margin: 0 0 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 30px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  margin-right: 9px;
  vertical-align: 2px;
}

.hero-figure {
  position: relative;
  justify-self: end;
  width: min(440px, 100%);
}

.hero-figure::before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bordo);
  top: -7%;
  right: -9%;
  z-index: 0;
}

.hero-figure::after {
  content: "";
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bordo-tint);
  bottom: 6%;
  left: -10%;
  z-index: 0;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.hero-figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Despre ---------- */

.despre {
  background: var(--hartie);
}

.despre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.despre-figure {
  position: relative;
}

.despre-figure img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.despre-figure .disc {
  position: absolute;
  border-radius: 50%;
  background: var(--bordo);
}

.despre-figure .disc:nth-of-type(1) { width: 84px; height: 84px; top: -28px; right: -22px; }
.despre-figure .disc:nth-of-type(2) { width: 44px; height: 44px; top: 74px; right: -44px; opacity: 0.35; }

.despre p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}

.despre-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.despre-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.despre-points .dot {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bordo-tint);
  color: var(--bordo);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
}

.despre-points strong {
  display: block;
  font-size: 16px;
}

.despre-points span:not(.dot) {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Cursuri ---------- */

.cursuri-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.curs-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--alb);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color 0.3s ease;
}

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

.curs-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.curs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.curs-card:hover .curs-media img {
  transform: scale(1.045);
}

.curs-tempo {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--bordo);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  padding: 6px 16px;
  border-radius: 999px;
}

.curs-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.curs-body h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 25px;
  margin: 0;
}

.curs-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.curs-body .curs-desc {
  flex: 1;
}

.curs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 700;
}

.curs-foot .pret {
  color: var(--ink);
}

.curs-foot a {
  color: var(--bordo);
  text-decoration: none;
}

.curs-foot a:hover {
  text-decoration: underline;
}

/* ---------- Tarife ---------- */

.tarife {
  background: var(--hartie);
}

.tarife-head {
  max-width: 640px;
}

.tarife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

.tarif-card {
  background: var(--alb);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.tarif-card.recomandat {
  background: var(--bordo);
  color: #fff;
  border-color: var(--bordo);
  box-shadow: 0 26px 60px -24px rgba(110, 20, 35, 0.55);
}

.tarif-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.tarif-nume {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordo);
}

.tarif-card.recomandat .tarif-nume {
  color: rgba(255, 255, 255, 0.85);
}

.tarif-pret {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 520;
  line-height: 1;
  margin: 8px 0 2px;
}

.tarif-pret small {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.tarif-card.recomandat .tarif-pret small {
  color: rgba(255, 255, 255, 0.75);
}

.tarif-detaliu {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.tarif-card.recomandat .tarif-detaliu {
  color: rgba(255, 255, 255, 0.85);
}

.tarif-economie {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bordo);
}

.tarif-card.recomandat .tarif-economie {
  color: #f3d9a4;
}

.tarife-nota {
  margin-top: 30px;
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.tarife-nota span::before {
  content: "♪";
  color: var(--bordo);
  margin-right: 8px;
}

/* ---------- Studio (galerie) ---------- */

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 48px;
}

.galerie-grid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.galerie-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.galerie-grid a:hover img {
  transform: scale(1.05);
}

.galerie-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.galerie-grid a:nth-child(2) { grid-row: span 2; }
.galerie-grid a:nth-child(4) { grid-row: span 1; }

/* ---------- Emanuel ---------- */

.emanuel-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
}

.emanuel p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 62ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin: 34px 0 0;
}

.stat .stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 520;
  line-height: 1;
  color: var(--bordo);
}

.stat .stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 6px;
}

.emanuel-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.emanuel-aside img {
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.emanuel-aside .foto-wide {
  aspect-ratio: 16 / 10;
}

.emanuel-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.emanuel-duo img {
  aspect-ratio: 3 / 4;
}

.palmares {
  margin-top: 44px;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.palmares h4 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 19px;
  margin: 0 0 12px;
}

.palmares ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.palmares li::before {
  content: "—";
  color: var(--bordo);
  margin-right: 10px;
}

/* ---------- Contact ---------- */

.contact-panel {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 70px);
  position: relative;
  overflow: hidden;
}

.contact-panel::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--bordo);
  right: -120px;
  bottom: -160px;
  opacity: 0.85;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel .eyebrow {
  color: #e9b9c1;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 0 0 16px;
}

.contact-panel h2 em {
  font-style: italic;
  color: #e9b9c1;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 30px;
  max-width: 52ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-panel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.contact-panel .btn-ghost:hover,
.contact-panel .btn-ghost:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.contact-info {
  display: grid;
  gap: 22px;
  align-content: center;
}

.contact-info .info-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.contact-info a {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  text-decoration: none;
  color: #fff;
}

.contact-info a:hover {
  color: #e9b9c1;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--hairline);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-row .brand-text .brand-top {
  font-size: 15px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 14, 17, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Reveal on scroll ---------- */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--bordo);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid,
  .despre-grid,
  .emanuel-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-figure {
    justify-self: start;
  }

  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .galerie-grid a:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--alb);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 22px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions > .btn {
    display: none;
  }

  .brand-text .brand-sub {
    font-size: 8.5px;
  }

  .brand-logo {
    height: 22px;
  }

  .nav-links .btn {
    display: inline-flex;
    margin-top: 12px;
  }

  .cursuri-grid,
  .tarife-grid,
  .palmares {
    grid-template-columns: 1fr;
  }

  .tarif-card.recomandat {
    order: -1;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .emanuel-duo {
    grid-template-columns: 1fr;
  }

  .emanuel-duo img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .galerie-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .galerie-grid a:nth-child(1),
  .galerie-grid a:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-figure::before {
    right: -4%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .staff .note {
    opacity: 1;
  }
}

/* ==========================================================================
   Adăugiri v2: skip-link, acordeoane, FAQ, footer, accesibilitate, pagini legale
   ========================================================================== */

/* ---------- Skip link & utilitare ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Acordeon cursuri ---------- */

.curs-extins {
  border-top: 1px solid var(--hairline);
  padding-top: 4px;
}

.curs-extins summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--bordo);
  display: flex;
  align-items: center;
  gap: 8px;
}

.curs-extins summary::-webkit-details-marker {
  display: none;
}

.curs-extins summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.curs-extins[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.curs-extins[open] summary {
  color: var(--ink);
}

.curs-extins-text p {
  margin: 0 0 12px;
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 44px;
  max-width: 780px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 560;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  color: var(--bordo);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.faq-item a {
  color: var(--bordo);
}

/* ---------- Footer legal ---------- */

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.footer-legal a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--bordo);
  text-decoration: underline;
}

.footer-copy {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Buton + panou accesibilitate ---------- */

.a11y-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  background: var(--alb);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.a11y-toggle:hover,
.a11y-toggle[aria-expanded="true"] {
  border-color: var(--bordo);
  color: var(--bordo);
}

.a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: max(24px, calc((100% - var(--container)) / 2));
  width: 300px;
  background: var(--alb);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: grid;
  gap: 10px;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 560;
  margin: 0 0 6px;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.a11y-fs {
  display: flex;
  gap: 6px;
}

.a11y-fs button {
  min-width: 40px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--hairline);
  background: var(--alb);
  font-family: var(--font-body);
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
}

.a11y-fs button[aria-pressed="true"],
.a11y-opt[aria-pressed="true"] {
  background: var(--bordo);
  border-color: var(--bordo);
  color: #fff;
}

.a11y-opt,
.a11y-reset {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--hairline);
  background: var(--alb);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.a11y-opt:hover,
.a11y-reset:hover {
  border-color: var(--bordo);
}

.a11y-reset {
  color: var(--ink-soft);
}

.a11y-link {
  font-size: 13.5px;
  color: var(--bordo);
  text-align: center;
}

/* ---------- Moduri de accesibilitate ---------- */

html[data-fs="2"] {
  zoom: 1.12;
}

html[data-fs="3"] {
  zoom: 1.25;
}

html.a11y-spacing body {
  letter-spacing: 0.06em;
  word-spacing: 0.14em;
  line-height: 1.9;
}

html.a11y-links a {
  text-decoration: underline !important;
}

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

html.a11y-motion .reveal {
  opacity: 1;
  transform: none;
}

html.a11y-motion .staff .note {
  opacity: 1;
}

html.a11y-contrast {
  --ink: #000000;
  --ink-soft: #1f1f1f;
  --bordo: #58101c;
  --bordo-deep: #3d0a13;
  --hairline: #757575;
  --hartie: #ffffff;
  --sand: #6e6a5e;
}

html.a11y-contrast .curs-card,
html.a11y-contrast .tarif-card,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .a11y-opt,
html.a11y-contrast .a11y-fs button,
html.a11y-contrast .a11y-reset {
  border-color: #000;
}

html.a11y-contrast .contact-panel {
  background: #000;
}

html.a11y-contrast .contact-panel p,
html.a11y-contrast .contact-info .info-label,
html.a11y-contrast .tarif-card.recomandat .tarif-detaliu,
html.a11y-contrast .tarif-card.recomandat .tarif-pret small {
  color: #ffffff;
}

/* ---------- Pagini legale ---------- */

.pagina-legala {
  padding: 140px 0 90px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.1;
  margin: 0 0 8px;
}

.legal-actualizare {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 23px;
  margin: 40px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 16px;
}

.legal-content ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-content a {
  color: var(--bordo);
}

.legal-nota {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--hartie);
  border-left: 3px solid var(--bordo);
  border-radius: 0 12px 12px 0;
  font-size: 14.5px;
}

@media (max-width: 860px) {
  .a11y-panel {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
