/* ===============================
   RESET & GENERAL
=============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #f0e3d2;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #4a3b2a;
}

/* Linkuri generale */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Container general */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titluri generice */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #3b2a1a;
}

/* ===============================
   HEADER (VARIANTA A UNIFICATĂ)
=============================== */

#site-header,
body > header {
  /* body > header = fallback pt pagina profesorii-nostri veche */
  position: fixed;
  top: 0;
  width: 100%;
  background: #f4e4cf;
  border-bottom: 1px solid rgba(180,147,96,0.25);
  z-index: 9999;
  transition: all 0.25s ease-in-out;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.25s ease-in-out;

}

/* Pentru pagina profesorii-nostri, care are <header> fără .header-inner */
body > header:not(#site-header) {
  /* doar layout de bază, ca să nu fie total diferit */
}
body > header:not(#site-header) .logo,
body > header:not(#site-header) .logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

/* Scrol micșorat */
#site-header.scrolled .header-inner {
  padding: 22px 26px;
}

/* LOGO AREA */

.logo-area,
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img,
.logo img {
  width: 115px;
  height: auto;
  transition: width 0.25s ease-in-out;
}

#site-header.scrolled .logo-area img,
#site-header.scrolled .logo img {
  width: 70px;

}

#site-header.scrolled .logo-area img,
#site-header.scrolled .logo img {
  width: 90px;
}

.logo-text h1,
.logo-text .site-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;          /* ← CHEIA */
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #3b2a1a;
}

.logo-text p {
  margin: 0;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0.08em;
  color: #7a6450;
}

#site-header.scrolled .logo-text h1 {
  font-size: 26px;
}

/* ===============================
   MENIU DESKTOP
=============================== */

nav {
  position: relative;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-menu > li {
  position: relative;
  padding-bottom: 8px;
}

.main-menu > li > a {
  font-weight: 500;
  font-size: 18px;
  padding: 12px 8px;
  color: #4a3b2a;
  display: inline-block;
}

.main-menu > li > a:hover,
.main-menu a.active {
  color: #b49360;
}

/* SUBMENIU DESKTOP – VARIANTĂ ELEGANTĂ LENTĂ */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  background: #ffffff;
  padding: 10px 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 230px;
  z-index: 999;

  /* animație */
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* când fac hover pe itemul principal, submeniul apare elegant */
@media (min-width: 901px) {
  .main-menu > li:hover > .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.submenu li {
  padding: 0;
}

.submenu li a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: #4a3b2a;
  white-space: nowrap;
}

.submenu li a:hover {
  background: #e6d4c1;
  color: #b49360;
}

/* ===============================
   MENIU MOBIL
=============================== */

.menu-toggle,
#mobile-menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 6px;
}

/* Mobile layout */
@media (max-width: 900px) {

  .header-inner {
    padding: 12px 16px;
    justify-content: space-between;
  }

  .logo-area img,
  .logo img {
    width: 60px;
  }

  .logo-text h1 {
    font-size: 24px; /* să nu împingă butonul de meniu */
  }

  /* PANOU MENIU MOBIL */
  .main-menu {
    position: fixed;
    top: 105px;              /* puțin sub header */
    left: 12px;              /* margine stânga */
    right: 12px;             /* margine dreapta */
    background: #f4e4cf;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px 20px;
    border-radius: 12px;     /* colțuri frumoase */
    border: 1px solid rgba(180,147,96,0.2);
    display: none;
    z-index: 9998;
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu > li {
    width: 100%;
  }

  .main-menu > li > a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(180,147,96,0.15);
  }

  /* SUBMENIU PE MOBIL – vizibil și clicabil */
  .submenu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 10px;
    display: none;
    min-width: 100%;
    border-radius: 0;

    /* anulăm animația de desktop */
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-menu li.open > .submenu {
    display: block;
  }

  .submenu li a {
    padding: 6px 0 6px 14px;
    font-size: 14px;
    border: none;
  }

  /* BUTON HAMBURGER */
  .menu-toggle,
  #mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-left: 8px;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #3b2a1a;
    border-radius: 2px;
  }
}


/* ===============================
   SPAȚIU SUB HEADER FIX
=============================== */

.page-top-spacer {
  height: 60px;
}

@media (max-width: 900px) {
  .page-top-spacer {
    height: 90px;
  }
}

/* ===============================
   HERO (PAGINA DE ACASĂ)
=============================== */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-top: 77px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.55)
  );
}

.hero-content {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: min(90%, 700px);
  z-index: 1;
}

.hero-content h2 {
  font-size: 44px;
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  margin: 0 0 10px;
}

.hero-content p {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.5;
}

.btn-hero {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 34px;
  background: #b49360;
  color: white;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-hero:hover {
  background: #9e8154;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hero {
    margin-top: 0px;
  }

  .hero-content h2 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

/* ===============================
   SEȚIUNI GENERALE (INDEX ETC.)
=============================== */

.section {
  padding: 70px 0;
}

.section.light {
  background: #f4e4cf;
}

.section.soft {
  background: #e3d0bc;
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.section-title p {
  margin: 0 auto;
  max-width: 600px;
  font-size: 15px;
  color: #6b5845;
}

/* ===============================
   GRID CURSURI (INDEX)
=============================== */

.courses-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.course-card {
  background: #edd8bd;
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(180,147,96,0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.course-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.course-card p {
  margin: 0;
  font-size: 14px;
  color: #6b5845;
}

.course-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #b49360;
}

.course-card a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   PAGINA "DESPRE BUTTERFLY"
=============================== */


.section.soft p {
  font-size: 17px;
  line-height: 1.7;
}

.about-page {
  padding: 50px 0 70px;
}

.about-page h2 {
  text-align: center;
  font-size: 30px;
  margin-top: 60px;   /* <-- SPATIUL NOU */
  margin-bottom: 25px;

}

.about-page p {
  max-width: 900px;
  margin: 0 auto 18px;
  line-height: 1.7;
  font-size: 15px;
}

/* Story blocks (imagine + text) */
.story-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 26px;
  align-items: center;
  max-width: 1100px;
  margin: 40px auto;
}

.story-block img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.story-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.story-block.reverse {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
}

.story-block.reverse img {
  order: 2;
}

.story-block.reverse p {
  order: 1;
}

/* Butoanele de sub poveste */
.about-buttons {
  text-align: center;
  margin: 10px 0 40px;
}

.about-buttons .btn {
  display: inline-block;
  margin: 8px 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #b49360;
  background: transparent;
  color: #b49360;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.about-buttons .btn:hover {
  background: #b49360;
  color: #fff;
  transform: translateY(-1px);
}

.about-buttons .btn-primary {
  background: #b49360;
  color: #fff;
}

/* Responsive pentru about */
@media (max-width: 900px) {
  .story-block,
  .story-block.reverse {
    grid-template-columns: 1fr;
  }

  .story-block.reverse img,
  .story-block.reverse p {
    order: initial;
  }

  .about-page h2 {
    font-size: 26px;
  }
}

/* ===============================
   PAGINA "PROFESORII NOȘTRI"
=============================== */



.profesori-container {
  max-width: 1100px;
  margin: 20px auto 10px;  /* ↓ redus spatiul de sus și jos */
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}

.profesor-card {
  background: #edd8bd;
  border-radius: 18px;
  padding: 18px 16px 16px;
  text-align: center;
  border: 1px solid rgba(180,147,96,0.28);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.profesor-card img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 10px;
}

.profesor-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.profesor-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b5845;
}

.about-page h2 + p {
  /* textul introductiv de la profesori */
  text-align: center;
  max-width: 650px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .profesori-container {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .profesori-container {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   PAGINILE DE CURS (COURSE PAGES)
=============================== */

.course-container {
  max-width: 1100px;
  margin: 100px auto 70px;
  padding: 0 20px;
}

/* Header curs = imagine + titlu + subtitlu */
.course-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 24px;
}

.course-header img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.course-header-text h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.course-header-text .subtitle {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6b5845;
  line-height: 1.6;
}

/* Text + liste */
.course-description {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.course-container h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 20px;
}

/* Liste cu check-style */
.course-list,
.benefits-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 8px;
}

.course-list li,
.benefits-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.7;
}

.course-list li::before,
.benefits-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: #b49360;
}

/* Detalii curs */
.course-details {
  font-size: 15px;
  line-height: 1.7;
}

/* Profesor (box mic) */
.teacher-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #edd8bd;
  border: 1px solid rgba(180,147,96,0.4);
}

.teacher-box img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

/* Buton înscriere */
.btn-inscriere {
  display: inline-block;
  margin-top: 24px;
  padding: 18px 42px;
  min-width: 240px;
  border-radius: 999px;
  background: #b49360;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-inscriere:hover {
  background: #9e8154;
  transform: translateY(-1px);
}

/* Responsive cursuri */
@media (max-width: 900px) {
  .course-header {
    grid-template-columns: 1fr;
  }

  .course-header-text h1 {
    font-size: 24px;
  }
}

/* ===============================
   PAGINA CONTACT
=============================== */

.contact-page {
  padding: 60px 0 80px;
}

.contact-page h2 {
  text-align: center;
  font-size: 30px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.contact-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
  font-size: 15px;
  color: #6b5845;
}

.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 30px;
  align-items: flex-start;
}

.contact-card {
  background: #edd8bd;
  border-radius: 18px;
  padding: 26px 24px 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(180,147,96,0.3);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.contact-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.contact-item {
  margin-bottom: 10px;
}

.contact-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6450;
  margin-bottom: 3px;
}

.contact-item a {
  text-decoration: none;
  color: #4a3b2a;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-socials ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.contact-socials li {
  margin-bottom: 4px;
  font-size: 14px;
}

.contact-socials a {
  color: #b49360;
}

.contact-socials a:hover {
  text-decoration: underline;
}

/* Formular */

.contact-form .form-row {
  margin-bottom: 12px;
}

.form-row-half {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(180,147,96,0.45);
  background: #f1e1cf;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #4a3b2a;
  outline: none;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #b49360;
  box-shadow: 0 0 0 2px rgba(180,147,96,0.25);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* Responsive contact */

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding-top: 40px;
  }

  .contact-page h2 {
    margin-top: 20px;
  }
}

/* Aliniere checkbox + text GDPR */
.gdpr-row label {
  display: flex;
  align-items: center;
  gap: 20px; /* spațiu între checkbox și text */
  font-size: 13px;
  line-height: 1.4;
}

.gdpr-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}


/* ===============================
   FOOTER
=============================== */

.site-footer {
  margin-top: 50px;
  padding: 16px 20px 20px;
  background: #e1d4c5;
  text-align: center;
  font-size: 13px;
  color: #6b5845;
  border-top: 1px solid rgba(180,147,96,0.35);
}

/* ===============================
   MICI AJUSTĂRI UTILE
=============================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

strong {
  font-weight: 600;
}

/* spațiu extra pe mobil sub secțiuni */
@media (max-width: 600px) {
  .section {
    padding: 50px 0;
  }

  .course-container {
    margin-top: 30px;
  }
}

/* ==========================================
   CTA - Înscrie-te acum
========================================== */
.cta-section {
  padding: 60px 20px;
  background: #f4e4cf;
}

.cta-card {
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 30px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(180,147,96,0.18);
}

.cta-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  margin-bottom: 10px;
  color: #4a3b2a;
}

.cta-card p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #6d5a47;
}

.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #b49360;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s ease;
}

.cta-btn:hover {
  background: #9e8154;
}

/* ==========================================
   CARDURI CURSURI – STIL NOU CLICKABIL
========================================== */

#cursuri {
  scroll-margin-top: 140px;   /* dacă îl folosește browserul, cu atât mai bine */
  padding-top: 20px;          /* spațiu în interiorul secțiunii */
  margin-top: -10px;          /* tragem secțiunea în sus, ca să nu stricăm restul layout-ului */
}


.link-card {
  display: block;
  background: #fbf5ec;
  padding: 28px 28px;
  border-radius: 18px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.07);
  border: 1px solid rgba(180,147,96,0.18);
  text-decoration: none;
  color: #4a3b2a;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Titlul cursului */
.link-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: #4a3b2a;
}

/* Descriere */
.link-card p {
  font-size: 15px;
  margin-bottom: 12px;
  color: #6c5946;
}

/* Linkul „Detalii” */
.link-card .link-arrow {
  font-weight: 600;
  color: #b49360;
  font-size: 15px;
  transition: color 0.2s ease;
}

.link-card:hover .link-arrow {
  color: #8f724b;
}

/* ===================================
   MENIU MOBIL - SUBMENIURI
   =================================== */
@media (max-width: 900px) {

  /* Meniul principal pe coloană */
  nav ul.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* ascuns implicit, se deschide cu .open */
    flex-direction: column;
  }

  nav ul.main-menu.open {
    display: flex;
  }

  /* Ascundem submeniurile implicit */
  nav ul.main-menu .submenu {
    display: none;
    flex-direction: column;
    padding-left: 1.5rem;
    margin: 0;
    border: none;
    background: transparent;
  }

  /* Când <li> are .open (pusă din JS), afișăm submeniul */
  nav ul.main-menu .has-submenu.open > .submenu {
    display: flex;
  }

  /* Link-urile din submenu pe mobil */
  nav ul.main-menu .submenu li a {
    padding: 0.4rem 1.5rem 0.4rem 0;
    font-size: 0.95rem;
  }
}

/* ===================================
   OVERRIDE PALETĂ DE CULORI SOFT
   (pus la final, ca să bată peste restul)
=================================== */

:root {
  --bg-page:        #f7f1e6;  /* aproape alb, dar cald */
  --bg-header:      #f5ecdf;  /* bej foarte discret */
  --bg-section-1:   #fdf7ee;  /* secțiuni deschise */
  --bg-section-2:   #f5ecdf;  /* alternanță ușor mai caldă */
  --bg-card:        #fffaf3;  /* carduri */
  --accent:         #b18754;  /* accent auriu discret */
  --accent-dark:    #7c5a38;
  --text-main:      #3f3022;
}

/* fundal general */
body {
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* header mai discret */
#site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid rgba(177, 135, 87, 0.24);
}

/* secțiuni alternante */
.section.light {
  background-color: var(--bg-section-1);
}

.section.soft {
  background-color: var(--bg-section-2);
}

/* carduri cursuri + profesori */
.course-card,
.link-card,
.profesor-card,
.cta-card {
  background-color: var(--bg-card);
}

/* butoane */
.btn-hero,
.cta-btn {
  background-color: var(--accent);
  color: #fff;
}

.btn-hero:hover,
.cta-btn:hover {
  background-color: var(--accent-dark);
}

/* linkuri meniu */
.main-menu > li > a {
  color: var(--text-main);
}

.main-menu > li > a:hover,
.main-menu a.active {
  color: var(--accent);
}

/* linkuri submeniu */
.submenu li a:hover {
  background: #f3ebe1;
  color: var(--accent);
}

/* ===================================
   OVERRIDE ALINIERE LOGO + TITLU HEADER
=================================== */

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-area img {
  flex-shrink: 0;
}

/* titlul să nu „rupă” linia */
.logo-text h1,
.logo-text p {
  display: block;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  /* pe mobil permitem să fie mai „flexibil” */
  .logo-text h1,
  .logo-text p {
    white-space: normal;
  }
  
  .logo-text h1 {
    font-size: 12px !important;   /* ↓ micșorare clară */
    line-height: 1.15;
    letter-spacing: 0.02em;
  }
}

}

/* ===================================
   OVERRIDE CULORI MENIU MOBIL
=================================== */
@media (max-width: 900px) {
  .main-menu {
    background-color: var(--bg-header);      /* mai deschis, nu bejul închis */
    border-color: rgba(177, 135, 87, 0.18);
  }

  .main-menu .submenu {
    background-color: var(--bg-header);
  }
}

:root {
  --butterfly-bg: #f7f2ea; /* culoarea headerului */
}

/* FOOTER = la fel ca headerul */
.site-footer,
footer.site-footer {
  background-color: var(--butterfly-bg) !important;
  border-top: 1px solid rgba(0,0,0,0.08);
}


/* ===================================
   MENIU MOBIL - OVERRIDE FINAL
   =================================== */
@media (max-width: 900px) {

    .main-menu {
    position: fixed;
    top: 105px;

    /* lățime controlată */
    right: 12px;                 /* margine față de dreapta */
    left: auto;                  /* nu mai forțăm marginea stângă */
    width: auto;
    max-width: 340px;            /* aici reglezi cât de lat e panoul */
    min-width: 260px;            /* să nu fie prea îngust */

    background: #f7f2ea;   /* aceeași culoare ca headerul, mai soft */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px 20px;
    border-radius: 12px;
    border: 1px solid rgba(180,147,96,0.2);
    display: none;
    z-index: 9998;
  }

  nav ul.main-menu.open {
    display: flex;
  }

  nav ul.main-menu > li {
    width: 100%;
  }

  nav ul.main-menu > li > a {
    display: block;
    width: 100%;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(180,147,96,0.15);
    text-align: left;
  }

  /* Submeniuri pe mobil */
  nav ul.main-menu .submenu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 8px 20px;
    margin: 0;
    min-width: 100%;
    border-radius: 0;
    display: none;
  }

  nav ul.main-menu .has-submenu.open > .submenu {
    display: block;
  }

  nav ul.main-menu .submenu li a {
    padding: 4px 0;
    border-bottom: none;
    font-size: 14px;
  }
}

/* ===================================
   ESTETICĂ SUBMENIU - FONT CA MENIUL PRINCIPAL
=================================== */

/* Desktop: font identic ca main menu, dar fără bold */
.submenu li a {
  font-family: inherit;
  font-size: 18px;     /* la fel ca .main-menu > li > a */
  font-weight: 400;    /* nu bold */
}

/* Pe mobil le facem puțin mai mici, dar tot egale între ele */
@media (max-width: 900px) {
  .main-menu > li > a,
  .submenu li a {
    font-size: 16px;
  }
}

@media (max-width: 640px) {

  .profesor-card{
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
    text-align:left;
    padding: 16px;
  }

  .profesor-card img{
    max-width: 112px;   /* ↑ mai mare */
    width: 112px;
    height: 112px;
    margin: 0;
    flex: 0 0 112px;
  }

  .profesor-card h3{
    flex: 1 1 calc(100% - 128px);  /* ia coloana din dreapta */
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
  }

  .profesor-card p{
    flex: 1 1 calc(100% - 128px);  /* sub nume, în dreapta */
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
  }
}

.profesor-card {
  align-items: flex-start;
}

.profesor-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.profesor-link:focus-visible{
  outline: 2px solid rgba(180,147,96,0.6);
  outline-offset: 6px;
  border-radius: 18px;
}

@media (hover:hover){
  .profesor-link:hover .profesor-card{
    transform: translateY(-2px);
  }
}

/* ===============================
   FIX: header shrink REAL (nu crește la scroll)
   (lipit la final)
=============================== */

/* normal */
#site-header .header-inner{
  padding: 18px 24px !important;
  transition: padding .25s ease;
}

/* la scroll: micșorăm “cutia” */
#site-header.scrolled .header-inner{
  padding: 6px 20px !important;   /* <- AICI e cheia */
}

/* logo: normal vs scrolled (anulează dublurile 70/90) */
#site-header .logo-area img,
#site-header .logo img{
  width: 110px !important;
  height: auto !important;
  transition: width .25s ease;
}

#site-header.scrolled .logo-area img,
#site-header.scrolled .logo img{
  width: 48px !important;         /* shrink vizibil */
}

/* ascundem subtitlul la scroll */
#site-header.scrolled .logo-text p{
  display: none !important;
}

/* titlul se micșorează vizibil */
#site-header.scrolled .logo-text h1{
  font-size: 24px !important;
  line-height: 1.05 !important;
}

/* mobil: și mai compact */
@media (max-width: 900px){
  #site-header .header-inner{
    padding: 12px 16px !important;
  }
  #site-header.scrolled .header-inner{
    padding: 4px 12px !important;
  }

  #site-header.scrolled .logo-area img,
  #site-header.scrolled .logo img{
    width: 40px !important;
  }

  #site-header.scrolled .logo-text h1{
    font-size: 18px !important;
  }
}

/* ===============================
   CURSURI – desktop: imagine mai mică, layout mai echilibrat
=============================== */
@media (min-width: 901px){
  /* încearcă să prindă containerul din top-ul cursului */
  .course-hero, .course-intro, .course-top, .course-header, .course-layout{
    align-items: center;
  }

  /* dacă este GRID */
  .course-hero, .course-intro, .course-top, .course-header, .course-layout{
    grid-template-columns: 420px 1fr;
    gap: 42px;
  }

  /* imaginea (cardul/cover-ul) */
  .course-hero img, .course-intro img, .course-top img, .course-header img, .course-layout img{
    width: 100%;
    max-width: 280px;     /* <- cheie: nu mai e uriașă */
    height: auto;
    margin: 0 auto;       /* centrează în coloana ei */
    display: block;
  }

  /* textul din dreapta */
  .course-hero h1, .course-intro h1, .course-top h1, .course-header h1, .course-layout h1{
    margin-top: 0;
  }
  .course-hero p, .course-intro p, .course-top p, .course-header p, .course-layout p{
    font-size: 18px;
    line-height: 1.7;
    max-width: 620px;     /* text mai “așezat” */
  }
}

#inscrieri { scroll-margin-top: 210px; }


.hero .btn-hero,
.hero-content .btn-hero {
  display: none !important;
}

#cursuri {
  scroll-margin-top: 65px;
}

/* ===============================
   CONTACT – COLOANA DREAPTA + CTA (fără formular)
   (lipit la final)
=============================== */

.contact-side{
  background: var(--bg-card);
  border: 1px solid rgba(180,147,96,0.18);
  border-radius: 18px;
  padding: 26px 24px 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.contact-side h3{
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.contact-side p{
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #6b5845;
}

.contact-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.btn-whatsapp{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-whatsapp:hover{
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(180,147,96,0.55);
  color: #7a5b33;
  font-weight: 600;
  background: transparent;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover{
  background: rgba(180,147,96,0.10);
  transform: translateY(-1px);
}

.contact-note{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(180,147,96,0.08);
  color: #6b5845;
  font-size: 14px;
  line-height: 1.6;
}

/* Ascundem stilurile vechi de formular (ca să nu te încurce pe viitor) */
.contact-form,
.gdpr-row{
  display: none !important;
}

/* ===============================
   PROFESORI – mobil: toți la fel (poză stânga + text dreapta)
=============================== */
@media (max-width: 640px) {

  .profesor-link,
  .profesor-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px 16px !important;
    text-align: left !important;
    padding: 16px !important;
  }

  .profesor-link img,
  .profesor-card img {
    width: 112px !important;
    height: 112px !important;
    max-width: 112px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    margin: 0 !important;
    flex: 0 0 112px !important;
  }

  /* zona text din dreapta */
  .profesor-link h3,
  .profesor-card h3,
  .profesor-link p,
  .profesor-card p {
    margin: 0 !important;
  }

  .profesor-link h3,
  .profesor-card h3 {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .profesor-link p,
  .profesor-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6b5845 !important;
  }
}

/* ===============================
   PROFESORI – mobil: poză stânga, text dreapta (uniform)
   (lipit la final)
=============================== */
@media (max-width: 900px) {

  /* cardul */
  .profesor-card{
    display: grid !important;
    grid-template-columns: 112px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 16px !important;
    row-gap: 6px !important;
    align-items: center !important;

    text-align: left !important;
    padding: 16px !important;
  }

  /* poza ocupă 2 rânduri */
  .profesor-card img{
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 112px !important;
    height: 112px !important;
    max-width: 112px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    object-fit: cover !important;
  }

  /* nume + descriere în coloana 2 */
  .profesor-card h3{
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .profesor-card p{
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6b5845 !important;
  }

  /* dacă ai wrapper link */
  .profesor-link{
    display: block;
  }
}

/* ===================================
   COOKIE BANNER
=================================== */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 980px;
  width: calc(100% - 32px);
  background: #fffaf3;
  border: 1px solid rgba(180,147,96,0.25);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 10000;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: #4a3b2a;
}

.cookie-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  margin-bottom: 4px;
}

.cookie-text a {
  color: #b49360;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #b49360;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cookie-btn:hover {
  background: #9e8154;
  transform: translateY(-1px);
}

.cookie-btn-outline {
  background: transparent;
  color: #b49360;
  border: 1px solid #b49360;
}

.cookie-btn-outline:hover {
  background: rgba(180,147,96,0.08);
}

/* Responsive */
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
/* FIX: spațiu între Cursuri și Profesori */
#cursuri.section{
  padding-bottom: 30px;
}

#profesori.section{
  padding-top: 30px;
}

/* Mobil: și mai compact */
@media (max-width: 900px){
  #cursuri.section{ padding-bottom: 15px; }
  #profesori.section{ padding-top: 15px; }
} 

.hero-content h1 {
  font-family: 'Playfair Display', serif; /* sau fontul tău principal */
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  color: #f5efe6; /* alb-cald, nu bej */
  margin-bottom: 14px;
  line-height: 1.2;
}

/* ===============================
   HERO – DIMENSIUNI FINALE
=============================== */

section.hero .hero-content h1{
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 44px); /* mai aerisit, nu dominant */
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
  margin: 0 0 12px 0;
  line-height: 1.15;
}

section.hero .hero-content p{
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
}

/* mobil */
@media (max-width: 768px){
  section.hero .hero-content h1{
    font-size: 28px;
  }

  section.hero .hero-content p{
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  #site-header .logo-text .site-title {
    font-size: 22px !important;   /* începe cu 26 */
    font-weight: 600 !important;  /* “bold” elegant */
    line-height: 1.12;
    letter-spacing: 0.02em;
  }
}
