@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --orange:   #FF6B35;
  --teal:     #4ECDC4;
  --yellow:   #FFE66D;
  --purple:   #A78BFA;
  --pink:     #FF8FAB;
  --green:    #6BCB77;
  --bg:       #FFF9F0;
  --bg2:      #FFF3E0;
  --text:     #2D3748;
  --muted:    #718096;
  --white:    #ffffff;
  --radius:   16px;
  --shadow:   0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:0 8px 40px rgba(0,0,0,.14);
  --font-h:   'Nunito', system-ui, sans-serif;
  --font-b:   'Open Sans', system-ui, sans-serif;
  --max:      1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg2); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-h); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title span { color: var(--orange); }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: .75rem 2rem;
  border-radius: 50px; font-family: var(--font-h); font-weight: 700;
  font-size: 1rem; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-primary   { background: var(--orange); color: var(--white); }
.btn-secondary { background: var(--teal);   color: var(--white); }
.btn-outline   { background: transparent; border: 2px solid var(--orange); color: var(--orange); }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-brand img { height: 52px; width: 52px; object-fit: contain; }
.nav-brand-text { font-family: var(--font-h); font-weight: 900; font-size: 1.1rem; line-height: 1.2; }
.nav-brand-text span { color: var(--orange); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-h); font-weight: 700; font-size: .95rem;
  padding: .35rem 0; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--orange) 0%, #FF9A5C 40%, var(--teal) 100%);
  color: var(--white); padding: 6rem 1.5rem 8rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hero-badge {
  display: inline-block; background: var(--yellow); color: var(--text);
  font-family: var(--font-h); font-weight: 800; font-size: .9rem;
  padding: .4rem 1.2rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero p { font-size: 1.2rem; opacity: .93; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-primary   { background: var(--white); color: var(--orange); }
.hero-btns .btn-secondary { background: rgba(255,255,255,.2); border: 2px solid var(--white); color: var(--white); }
.hero-btns .btn-secondary:hover { background: rgba(255,255,255,.35); }

/* ── CARDS ── */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge {
  position: absolute; bottom: .75rem; left: .75rem;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  color: var(--white); font-family: var(--font-h); font-size: .8rem;
  font-weight: 700; padding: .3rem .8rem; border-radius: 50px;
}
.card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p  { color: var(--muted); font-size: .92rem; flex: 1; }
.card-body .btn { margin-top: 1.25rem; align-self: flex-start; }

/* card accent bar top */
.card:nth-child(4n+1) .card-img::after { content:''; position:absolute; top:0; left:0; right:0; height:5px; background:var(--orange); }
.card:nth-child(4n+2) .card-img::after { content:''; position:absolute; top:0; left:0; right:0; height:5px; background:var(--teal); }
.card:nth-child(4n+3) .card-img::after { content:''; position:absolute; top:0; left:0; right:0; height:5px; background:var(--purple); }
.card:nth-child(4n+0) .card-img::after { content:''; position:absolute; top:0; left:0; right:0; height:5px; background:var(--pink); }

/* ── WHY US PILLARS ── */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.pillar {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.pillar:hover { transform: translateY(-4px); }
.pillar-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.pillar h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.pillar p  { color: var(--muted); font-size: .88rem; }
.pillar:nth-child(1) { border-top: 4px solid var(--orange); }
.pillar:nth-child(2) { border-top: 4px solid var(--teal); }
.pillar:nth-child(3) { border-top: 4px solid var(--purple); }
.pillar:nth-child(4) { border-top: 4px solid var(--green); }
.pillar:nth-child(5) { border-top: 4px solid var(--yellow); border-color: #d4af00; }
.pillar:nth-child(6) { border-top: 4px solid var(--pink); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white); text-align: center; padding: 4rem 1.5rem; border-radius: 24px;
  margin: 0 1.5rem;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { font-size: 1.1rem; opacity: .9; margin-bottom: 1.5rem; }
.cta-banner .btn { background: var(--white); color: var(--purple); font-size: 1.1rem; }

/* ── ATELIER PAGE ── */
.atelier-hero { position: relative; height: 420px; overflow: hidden; }
.atelier-hero img { width: 100%; height: 100%; object-fit: cover; }
.atelier-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 2.5rem;
}
.atelier-hero-overlay h1 { color: var(--white); font-size: clamp(1.5rem,4vw,2.6rem); }
.atelier-hero-overlay .badge-date {
  display: inline-block; background: var(--orange); color: var(--white);
  font-family: var(--font-h); font-weight: 700; font-size: .9rem;
  padding: .35rem 1rem; border-radius: 50px; margin-right: .75rem;
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.photo-grid a { border-radius: 12px; overflow: hidden; display: block; }
.photo-grid img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }

.videos-section h2 { margin-bottom: 1.5rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.video-wrap { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-wrap video { width: 100%; display: block; }

.atelier-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 0; border-top: 1px solid #eee;
}
.atelier-nav a {
  font-family: var(--font-h); font-weight: 700; color: var(--orange);
  display: flex; align-items: center; gap: .5rem;
}

/* ── ABOUT / DESPRE ── */
.prose { max-width: 800px; margin: 0 auto; }
.prose p, .prose li { margin-bottom: .9rem; font-size: 1rem; }
.prose ul { padding-left: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose td, .prose th { padding: .65rem 1rem; border: 1px solid #e2e8f0; }
.prose th { background: #FFF3E0; font-weight: 700; }
.prose strong { color: var(--text); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow);
}
.team-avatar {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 900; font-size: 1.8rem; color: var(--white);
}
.team-card:nth-child(1) .team-avatar { background: var(--orange); }
.team-card:nth-child(2) .team-avatar { background: var(--teal); }
.team-card:nth-child(3) .team-avatar { background: var(--purple); }
.team-card:nth-child(4) .team-avatar { background: var(--pink); }
.team-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.team-card .role { color: var(--orange); font-weight: 600; font-size: .88rem; margin-bottom: .75rem; }
.team-card p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* ── ANUNTURI ── */
.anunturi-list { display: flex; flex-direction: column; gap: 2rem; }
.anunt {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border-left: 6px solid var(--orange);
  position: relative;
}
.anunt:nth-child(2) { border-left-color: var(--teal); }
.anunt:nth-child(3) { border-left-color: var(--purple); }
.anunt:nth-child(4) { border-left-color: var(--pink); }
.anunt-date {
  font-family: var(--font-h); font-size: .82rem; font-weight: 700;
  color: var(--muted); margin-bottom: .5rem;
}
.anunt h2 { font-size: 1.3rem; margin-bottom: .75rem; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; }
.contact-item p { margin: 0; }
.contact-item a { color: var(--orange); font-weight: 600; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 2px solid #E2E8F0;
  border-radius: 10px; font-family: var(--font-b); font-size: 1rem;
  transition: border-color .2s; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.honeypot { display: none !important; }
.form-msg { padding: 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
.form-msg.success { background: #C6F6D5; color: #276749; }
.form-msg.error   { background: #FED7D7; color: #9B2C2C; }

/* ── FOOTER ── */
.site-footer {
  background: #2D3748; color: #CBD5E0; padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand h3 { color: var(--white); font-family: var(--font-h); font-size: 1.3rem; margin-bottom: .5rem; }
.footer-brand h3 span { color: var(--orange); }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-family: var(--font-h); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .9rem; color: #A0AEC0; transition: color .2s; }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  max-width: var(--max); margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid #4A5568;
  text-align: center; font-size: .85rem; color: #718096;
}

/* ── viitorultau.ro promo card ───────────────────────────── */
.vit-footer-card {
  display: block; margin-top: 2.25rem; padding: .875rem 1rem;
  background: rgba(0,0,0,.15); border-radius: 8px;
  border: 1px solid rgba(255,107,53,.25);
  text-decoration: none;
  animation: vit-border-pulse 4s ease-in-out infinite;
  transition: background .25s;
}
.vit-footer-card:hover { background: rgba(0,0,0,.25); }
.vit-footer-logo { height: 18px; display: inline-block; vertical-align: middle; opacity: .8; }
.vit-footer-text { font-size: .775rem; color: #A0AEC0; line-height: 1.55; margin-bottom: .55rem; }
.vit-footer-link { font-size: .775rem; font-weight: 600; color: #FF6B35; opacity: .8; display: inline-flex; align-items: center; gap: .5rem; }
.vit-footer-card:hover .vit-footer-link { opacity: 1; }
@keyframes vit-border-pulse {
  0%, 100% { border-color: rgba(255,107,53,.25); }
  50%       { border-color: rgba(255,107,53,.55); }
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 0 60px rgba(0,0,0,.5); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.15); border: none; color: var(--white);
  font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 1.5rem; right: 1.5rem; font-size: 1.4rem; }
.lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .9rem; }

/* ── ADMIN ── */
.admin-wrap { max-width: 900px; margin: 3rem auto; padding: 0 1.5rem; }
.admin-wrap h1 { margin-bottom: 2rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--orange); color: var(--white); padding: .85rem 1rem; text-align: left; font-family: var(--font-h); }
.admin-table td { padding: .85rem 1rem; border-bottom: 1px solid #EDF2F7; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.badge-pub   { background: #C6F6D5; color: #276749; padding: .25rem .75rem; border-radius: 50px; font-size: .8rem; font-weight: 700; }
.badge-draft { background: #FED7D7; color: #9B2C2C; padding: .25rem .75rem; border-radius: 50px; font-size: .8rem; font-weight: 700; }

/* ── NO-COVER SVG placeholder ── */
.no-cover-bg { background: linear-gradient(135deg, var(--orange) 0%, var(--teal) 100%); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem; gap: 0; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #EDF2F7; }
  .nav-links a    { display: block; padding: .85rem 0; }
  .nav-toggle     { display: block; }
  .section        { padding: 3rem 0; }
  .footer-inner   { grid-template-columns: 1fr; gap: 2rem; }
  .atelier-hero   { height: 280px; }
  .cta-banner     { margin: 0; border-radius: 0; }
}
@media (max-width: 480px) {
  .hero { padding: 4rem 1rem 6rem; }
  .grid-auto { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid img { height: 150px; }
}
