/* ===========================================================
   Cheițele Cunoașterii — stylesheet
   =========================================================== */

:root{
  --cream: #fff5ed;
  --cream-soft: #fffaf5;
  --navy: #213472;
  --navy-deep: #182559;
  --navy-soft: #4a5a94;
  --orange: #c34b13;
  --orange-soft: #e2864f;
  --orange-tint: #fdece1;
  --maroon: #8b0000;
  --white: #ffffff;
  --border: #213472;
  --border-soft: rgba(33,52,114,.14);

  --font-serif: 'Fraunces', Georgia, 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;

  --max-width: 1200px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(24,37,89,.06), 0 1px 2px rgba(24,37,89,.08);
  --shadow-md: 0 8px 24px rgba(24,37,89,.10), 0 2px 8px rgba(24,37,89,.06);
  --shadow-lg: 0 24px 60px rgba(24,37,89,.16), 0 8px 20px rgba(24,37,89,.08);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --z-header: 100;
  --z-drawer: 200;
}

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

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--orange-tint); color: var(--orange); }

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

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

h1, h2, h3{
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}

h2{
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  text-align: center;
  position: relative;
  padding-bottom: 18px;
}

h2::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  opacity: .7;
}

p{ margin: 0 0 1em; }

.eyebrow{
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--orange);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ---------- Buttons / links ---------- */
.btn-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-family: var(--font-serif);
  font-style: italic;
  border-bottom: 1px solid rgba(195,75,19,.4);
  padding-bottom: 2px;
  transition: opacity 180ms var(--ease-out), border-color 180ms var(--ease-out), gap 180ms var(--ease-out);
  cursor: pointer;
}
.btn-link svg{ width: 15px; height: 15px; transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine){
  .btn-link:hover{ border-color: var(--orange); }
  .btn-link:hover svg{ transform: translateX(3px); }
}
.btn-link:active{ opacity: .7; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 15px 34px;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background 200ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
  cursor: pointer;
  border: none;
}
@media (hover: hover) and (pointer: fine){
  .btn:hover{ background: var(--orange); box-shadow: var(--shadow-md); }
}
.btn:active{ transform: scale(.97); }

/* ---------- Header ---------- */
.site-header{
  background: rgba(255,245,237,.82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 220ms var(--ease-out);
}
.site-header.is-scrolled{ box-shadow: var(--shadow-sm); }

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 84px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.brand img{ height: 52px; width: auto; }
.brand span{
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.15;
  white-space: nowrap;
}

.main-nav{ flex-shrink: 0; }
.main-nav ul{
  list-style: none;
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
}
.main-nav a{
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .98rem;
  color: var(--navy-soft);
  padding: 10px 2px;
  display: inline-block;
  transition: color 180ms var(--ease-out);
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: right 220ms var(--ease-out);
}
.main-nav a:hover,
.main-nav a[aria-current="page"]{ color: var(--navy); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after{ right: 0; }

.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 180ms var(--ease-out);
}
.nav-toggle:active{ transform: scale(.94); }
.nav-toggle svg{ width: 24px; height: 24px; }
.nav-toggle .icon-close{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display: block; }

.nav-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24,37,89,.35);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}
.nav-backdrop.open{ display: block; opacity: 1; }

@media (max-width: 860px){
  .site-header .container{ min-height: 72px; }
  .brand img{ height: 42px; }
  .brand span{ font-size: 1rem; }
  .nav-toggle{ display: inline-flex; margin-left: auto; }

  .main-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    background: var(--cream-soft);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-drawer);
    transform: translateX(100%);
    transition: transform 280ms var(--ease-in-out);
    padding: 96px 8px 24px;
    overflow-y: auto;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; width: 100%; gap: 2px; }
  .main-nav a{ display: block; padding: 14px 24px; font-size: 1.05rem; }
  .main-nav a::after{ display: none; }
  .main-nav a:hover,
  .main-nav a[aria-current="page"]{
    background: var(--orange-tint);
    color: var(--orange);
    border-radius: var(--radius-sm);
  }
}

/* ---------- Hero (home) ---------- */
.hero{
  position: relative;
  max-width: var(--max-width);
  margin: clamp(16px, 3vw, 32px) auto 80px;
  padding: 0 24px;
}
.hero-media{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-media img{ width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.hero-card{
  background: var(--white);
  padding: 40px clamp(24px, 5vw, 56px);
  text-align: center;
  max-width: 480px;
  margin: -48px auto 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}
@media (min-width: 700px){
  .hero-card{
    position: absolute;
    right: 40px;
    bottom: -48px;
    margin: 0;
  }
}
.hero-card h1{
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: .3em;
}
.hero-card .subtitle{
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy-soft);
  margin-bottom: .8em;
}
.hero-card .est{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
}
.hero-card .est::before,
.hero-card .est::after{
  content: "";
  height: 1px;
  width: 40px;
  background: var(--orange);
  opacity: .5;
}

/* ---------- Generic page hero (inner pages) ---------- */
.page-hero{
  text-align: center;
  padding: 72px 24px 36px;
}
.page-hero h1{ font-size: clamp(2.2rem, 4vw, 3rem); }
.page-hero .subtitle{
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--orange);
  font-size: 1.2rem;
}

/* ---------- Sections ---------- */
section{ padding: clamp(48px, 7vw, 88px) 0; }
section.alt{ background: var(--cream-soft); }

/* ---------- Grupe cards ---------- */
.section-head{ text-align: center; margin-bottom: 44px; }
.section-head .link-row{ margin-top: 12px; }

.cards-3{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.card{
  background: var(--white);
  border: 1px solid var(--border-soft);
  padding: 34px 28px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine){
  .card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.card h3{ font-size: 1.35rem; margin-bottom: .5em; color: var(--orange); }

.card-photo{
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine){
  .card-photo:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .card-photo:hover img{ transform: scale(1.04); }
}
.card-photo .media{ overflow: hidden; }
.card-photo img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 400ms var(--ease-out); }
.card-photo .card-body{ padding: 26px; text-align: center; }
.card-photo h3{ font-size: 1.35rem; margin-bottom: .5em; color: var(--orange); }

/* ---------- Despre Noi split ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px){
  .split{ grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse .split-media{ order: 2; }
}
.split-media img{
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
}
.split-text ul{ padding-left: 1.2em; margin: 0; }
.split-text li{ margin-bottom: .7em; }

/* ---------- Testimonial ---------- */
.testimonial{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 60px;
}
.testimonial .quote-icon{
  width: 32px; height: 32px;
  color: var(--orange-soft);
  margin: 0 auto 12px;
}
.testimonial blockquote{
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 1.2em;
  font-style: italic;
  line-height: 1.7;
}
.testimonial cite{
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  color: var(--navy);
}
.testimonial .arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.testimonial .arrow svg{ width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine){
  .testimonial .arrow:hover{ background: var(--navy); color: var(--white); }
}
.testimonial .arrow:active{ transform: translateY(-50%) scale(.92); }
.testimonial .arrow.prev{ left: 0; }
.testimonial .arrow.next{ right: 0; }

/* ---------- Gallery ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms var(--ease-out);
}
.gallery img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine){
  .gallery-item:hover{ box-shadow: var(--shadow-md); }
  .gallery-item:hover img{ transform: scale(1.06); }
}

/* ---------- Activities ---------- */
.activities-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.activity{
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine){
  .activity:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.activity .icon{
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange);
  margin-bottom: 18px;
}
.activity .icon svg{ width: 26px; height: 26px; }
.activity h3{ font-size: 1.15rem; color: var(--navy); margin-bottom: .4em; }
.activity p{ font-size: .96rem; margin: 0; color: var(--navy-soft); }

/* ---------- Admitere ---------- */
.admitere-wrap{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px){
  .admitere-wrap{ grid-template-columns: 1fr 1fr; gap: 56px; }
}
.admitere-poster img{ border-radius: var(--radius); box-shadow: var(--shadow-md); }
.admitere-box{
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.admitere-box h3{ color: var(--orange); margin-bottom: .3em; }
.admitere-box .phone{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  transition: color 180ms var(--ease-out);
}
.admitere-box .phone svg{ width: 20px; height: 20px; color: var(--orange); }
.admitere-box .phone:hover{ color: var(--orange); }

/* ---------- Contact ---------- */
.contact-wrap{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 860px){
  .contact-wrap{ grid-template-columns: 1fr 1fr; gap: 56px; }
}
.contact-card{
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3{ color: var(--orange); font-size: 1.2rem; margin-bottom: .2em; }
.contact-card .field{
  margin-bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-card .field:last-child{ margin-bottom: 0; }
.contact-card .field svg{ width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-card .field a{ transition: color 180ms var(--ease-out); }
.contact-card .field a:hover{ color: var(--orange); }
.social-row{ display: flex; gap: 14px; margin-top: 8px; }
.social-row a{
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine){
  .social-row a:hover{ background: var(--orange); }
}
.social-row a:active{ transform: scale(.92); }
.social-row svg{ width: 18px; height: 18px; fill: currentColor; }

.map-frame{
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-sm);
}
.map-frame iframe{ width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer{
  padding: 36px 0;
  text-align: center;
  font-size: .85rem;
  color: var(--navy-soft);
  border-top: 1px solid var(--border-soft);
}

/* ---------- Decorative dots (subtle, css-only) ---------- */
.deco-dot{
  position: absolute;
  border-radius: 50%;
  opacity: .5;
}

/* ---------- Utility ---------- */
.text-center{ text-align: center; }
.mt-lg{ margin-top: 48px; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
