/* =========================================================
   Centrul Educațional Emanuela — modern redesign
   Design system + homepage styles
   ========================================================= */

:root {
  --cream:    #fbf7ef;
  --cream-2:  #f3ead6;
  --green:    #879a4c;
  --green-d:  #5d6c30;
  --green-l:  #b9c57f;
  --gold:     #e7ae4c;
  --gold-d:   #c98f2e;
  --rose:     #c25c8a;
  --rose-d:   #a8467a;
  --ink:      #372f25;
  --muted:    #6d6354;
  --line:     #e7ddca;
  --white:    #ffffff;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(60, 50, 30, .35);
  --shadow-sm: 0 8px 20px -10px rgba(60, 50, 30, .3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--rose-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0 0 .5rem; }
h3 { font-size: 1.3rem; margin: 0 0 .4rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 78px 0; }
.section--tint { background: var(--cream-2); }
.section--green { background: var(--green-d); color: #f4f1e6; }
.section--green h2 { color: #fff; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-d);
  margin: 0 0 .6rem;
}
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: .4rem 0 0; }
.section--green .section-head p { color: #d9d6c4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--rose-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.7); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green-d); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-d); color: #eef0df;
  font-size: .86rem; letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar .tb-tags { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .pill { background: var(--gold); color: #4a3a12; padding: 2px 12px; border-radius: 100px; font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .98rem; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--green-d); border-color: var(--gold); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--green-d); white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream-2); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 70px 0 80px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 0 0 1rem; }
.hero h1 .accent { color: var(--rose); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.8rem; max-width: 30em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges .b strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--green-d); }
.hero-badges .b span { font-size: .9rem; color: var(--muted); }

.hero-photos { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.hero-photos img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.hero-photos .ph-main { width: 100%; max-width: 540px; height: 440px; object-position: 55% 30%; position: relative; z-index: 1; }
.hero-blob {
  position: absolute; width: 320px; height: 320px; right: -90px; top: -90px;
  background: radial-gradient(circle at 30% 30%, var(--green-l), transparent 70%);
  opacity: .5; border-radius: 50%; z-index: 0;
}

/* ---------- Intro / quote ---------- */
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 46px; align-items: center; }
.intro-grid p { color: var(--muted); }
.quote {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5;
  color: var(--green-d); border-left: 5px solid var(--gold); padding: 6px 0 6px 24px;
}
.quote cite { display: block; font-style: normal; font-size: .92rem; color: var(--muted); margin-top: 10px; }

/* ---------- Cards (programs) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; background: var(--cream-2); }
.card .age { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--gold-d); margin-bottom: 6px; letter-spacing: .03em; }
.card p { color: var(--muted); margin: .3rem 0 0; font-size: .98rem; }

/* ---------- Pillars (image cards) ---------- */
.pillar { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; }
.pillar img { width: 100%; height: 200px; object-fit: cover; }
.pillar .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pillar .body p { color: var(--muted); font-size: .96rem; flex: 1; }
.pillar .body a { font-weight: 700; margin-top: 12px; }

/* ---------- Activities band ---------- */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.act { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 22px; }
.act .em { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.act h3 { color: #fff; font-size: 1.1rem; }
.act p { color: #d9d6c4; font-size: .9rem; margin: .3rem 0 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.07); }

/* ---------- News ---------- */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-item { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.news-item .date { flex: none; width: 58px; text-align: center; background: var(--rose); color: #fff; border-radius: 12px; padding: 8px 0; font-family: var(--serif); }
.news-item .date b { display: block; font-size: 1.4rem; line-height: 1; }
.news-item .date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.news-item h3 { font-size: 1.05rem; margin: 0; }
.news-item p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.contact-card .role { color: var(--gold-d); font-size: .85rem; font-weight: 700; }
.contact-card .lines { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.contact-card .lines a { color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; height: 100%; min-height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #2f2a20; color: #cdc6b6; font-size: .92rem; padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--serif); margin: 0 0 12px; font-size: 1.1rem; }
.site-footer a { color: #e6dfce; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #948c79; font-size: .84rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 50px 0 60px; }
  .hero-photos { justify-content: center; }
  .hero-photos .ph-main { height: 320px; max-width: 100%; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .acts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: 100%; background: var(--cream);
    padding: 14px 22px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .nav.open .nav-links a { padding: 8px 0; width: 100%; }
  .topbar .tb-tags { display: none; }
  .section { padding: 56px 0; }
  .grid-3, .grid-2, .news-list, .acts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-photos .ph-float { width: 140px; height: 110px; left: -12px; bottom: -16px; }
}

/* ============ Inner pages ============ */
.page-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 48px 0 42px; position: relative; }
.page-hero .eyebrow { margin-bottom: .4rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0; }
.page-hero p { color: var(--muted); margin: .7rem 0 0; max-width: 50em; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--green-d); }

.prose { max-width: 770px; margin: 0 auto; }
.prose.wide { max-width: 920px; }
.prose h3 { margin-top: 1.6em; color: var(--green-d); }
.prose p { margin: 0 0 1.1em; color: #4a4234; }
.prose .quote { margin: 1.5em 0; }
.prose h2 { margin: 0 0 .8em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.3em; color: #4a4234; }
.prose li { margin-bottom: .35em; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin: 0 0 56px; }
.feature:last-child { margin-bottom: 0; }
.feature.rev .ftxt { order: 2; }
.feature img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature img.tall { height: 520px; object-position: center 40%; }
.feature .ftxt p { color: var(--muted); }
.feature .ftxt h2 { font-size: 1.9rem; }

.prog { display: grid; grid-template-columns: 92px 1fr; gap: 22px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.prog .pic { font-size: 2.3rem; width: 92px; height: 92px; border-radius: 16px; background: var(--cream-2); display: grid; place-items: center; }
.prog .age { color: var(--gold-d); font-weight: 700; font-size: .84rem; letter-spacing: .03em; }
.prog h3 { margin: 2px 0 6px; }
.prog p { margin: 0; color: var(--muted); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green-l); border-color: var(--green); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
  .feature.rev .ftxt { order: 0; }
  .feature img { height: 240px; }
  .feature img.tall { height: 420px; }
  .form .row { grid-template-columns: 1fr; }
  .prog { grid-template-columns: 60px 1fr; gap: 16px; padding: 20px; }
  .prog .pic { width: 60px; height: 60px; font-size: 1.7rem; }
}

/* ============ Partner tag + weekly menu ============ */
.partner-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 1rem; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--rose-d); font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: var(--shadow-sm); }
.partner-tag:hover { border-color: var(--rose); }
.menu-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.menu-tab { font: inherit; font-weight: 600; cursor: pointer; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--green); background: transparent; color: var(--green-d); }
.menu-tab.active, .menu-tab:hover { background: var(--green); color: #fff; }
.menu-week { display: none; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.menu-week.active { display: grid; }
.menu-day { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm); }
.menu-day h3 { margin: 0 0 10px; color: var(--green-d); font-size: 1.15rem; }
.menu-day dl { margin: 0; }
.menu-day dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-d); margin-top: 12px; }
.menu-day dt:first-child { margin-top: 0; }
.menu-day dd { margin: 2px 0 0; font-size: .92rem; line-height: 1.4; color: var(--ink); }
.menu-day dd i { font-style: normal; font-size: .75rem; color: var(--rose-d); white-space: nowrap; margin-left: 2px; }
.menu-portions, .menu-credit { color: var(--muted); font-size: .9rem; text-align: center; max-width: 52em; margin: 24px auto 0; }
.menu-allergens { max-width: 52em; margin: 18px auto 0; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }
.menu-allergens summary { cursor: pointer; font-weight: 600; color: var(--green-d); }
.menu-allergens ol { margin: 12px 0 4px; padding-left: 1.6em; columns: 2; column-gap: 28px; font-size: .88rem; color: var(--muted); }
.menu-allergens li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 980px) { .menu-week { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .menu-week { grid-template-columns: 1fr; } .menu-allergens ol { columns: 1; } }
/* ============ Photo viewer (lightbox) ============ */
.lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(20, 16, 10, .97); padding: 56px 64px; }
.lb.open { display: flex; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-img { max-width: 100%; max-height: calc(100% - 34px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-img.small { width: min(480px, 100%); height: auto; }
.lb-cap { color: #eee6d4; font-size: .95rem; margin-top: 10px; text-align: center; min-height: 1.2em; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 14px; right: 14px; width: 46px; height: 46px; font-size: 2rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.3rem; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #d9d1bf; font-size: .9rem; }
@media (max-width: 720px) {
  .lb { padding: 64px 10px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
}

/* ============ Gallery albums ============ */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 10px; }
.album-card { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); text-decoration: none; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album-card:hover img { transform: scale(1.06); }
.album-card .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; background: linear-gradient(transparent, rgba(40,32,20,.8)); }
.album-card .lbl strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.album-card .lbl span { font-size: .85rem; opacity: .9; }
.album { padding-top: 46px; scroll-margin-top: 90px; }
.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.album-head h2 { margin: 0; font-size: 1.6rem; }
.album-head span { color: var(--muted); font-size: .9rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thumbs a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cream); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s; }
.thumbs a:hover img { transform: scale(1.07); }
.thumbs.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.thumbs.wide a { aspect-ratio: 940 / 788; }
@media (max-width: 560px) { .albums { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .thumbs { grid-template-columns: repeat(3, 1fr); gap: 6px; } .thumbs.wide { grid-template-columns: repeat(2, 1fr); } }
/* Facebook link in top bar */
.topbar .tb-right { display: flex; align-items: center; gap: 18px; }
.topbar .tb-fb { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-fb svg { background: #fff; color: #1877f2; border-radius: 4px; padding: 1px; width: 18px; height: 18px; }
.topbar .tb-fb:hover span { text-decoration: underline; }.site-footer .ft-fb { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .ft-fb svg { background: #1877f2; color: #fff; border-radius: 4px; padding: 2px; width: 20px; height: 20px; }.contact-card .fb-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 600; text-decoration: none; }
.contact-card .fb-link:hover { background: #0f63d1; }