@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fraunces:opsz,ital,wght@9..144,1,300;9..144,1,400;9..144,1,500&display=swap');

:root {
  --brand-primary: #E63946;
  --brand-secondary: #0A0A0C;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0A0A0C;
  color: #F7F5F1;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.display-heading {
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.display-heading-lg {
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.display-heading-md {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}

.keyword-italic {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #E63946;
}

.cream { color: #F7F5F1; }
.cream-muted { color: rgba(247, 245, 241, 0.6); }

/* Navbar — folosim nav.navbar (specificitate mai mare)
   ca să batem Tailwind .relative care suprascria position. */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid rgba(247, 245, 241, 0.06);
  transition: background 0.3s ease;
}

nav.navbar.scrolled {
  background: rgba(10, 10, 12, 0.95);
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 241, 0.7);
  transition: color 0.2s;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E63946;
  transition: width 0.2s;
}

.nav-link:hover { color: #F7F5F1; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #E63946; }
.nav-link.active::after { width: 100%; }

/* Hero Slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}

.gallery-col-8 { grid-column: span 8; }
.gallery-col-4 { grid-column: span 4; }
.gallery-col-12 { grid-column: span 12; }
.gallery-col-6 { grid-column: span 6; }

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay { background: rgba(230, 57, 70, 0.15); }

/* Aspect ratios */
.aspect-cinema { aspect-ratio: 21 / 9; }
.aspect-wide { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-tall { aspect-ratio: 2 / 3; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; display: block; }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #F7F5F1;
  cursor: pointer;
  background: rgba(230, 57, 70, 0.2);
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: #E63946; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #F7F5F1;
  cursor: pointer;
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(247, 245, 241, 0.1);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: #E63946; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Partners Carousel */
.partners-track {
  display: flex;
  gap: 4rem;
  animation: scroll-left 20s linear infinite;
  width: max-content;
}

.partners-track:hover { animation-play-state: paused; }

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-item {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(247, 245, 241, 0.35);
  white-space: nowrap;
  transition: color 0.3s;
  border: 1px solid rgba(247, 245, 241, 0.08);
  padding: 0.75rem 1.5rem;
}

.partner-item:hover { color: rgba(247, 245, 241, 0.9); border-color: rgba(230, 57, 70, 0.4); }

/* Stats Counter */
.stat-number {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: #E63946;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Testimonials */
.testimonial-card {
  background: linear-gradient(180deg, #1a1f2b 0%, #0c0e13 100%);
  border: 1px solid rgba(247, 245, 241, 0.06);
  border-radius: 2px;
  transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover { border-color: rgba(230, 57, 70, 0.3); transform: translateY(-4px); }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid rgba(247, 245, 241, 0.08); }

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #F7F5F1;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-question:hover { color: #E63946; }
.faq-icon { flex-shrink: 0; transition: transform 0.3s ease; color: #E63946; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer-inner { padding-bottom: 1.5rem; color: rgba(247, 245, 241, 0.65); font-size: 0.9375rem; line-height: 1.7; }

/* Cards */
.feature-card {
  background: linear-gradient(180deg, #1a1f2b 0%, #0c0e13 100%);
  border: 1px solid rgba(247, 245, 241, 0.06);
  padding: 2rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  background: linear-gradient(180deg, #2a3040 0%, #1a1f2b 100%);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(230, 57, 70, 0.2);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #E63946;
  color: #F7F5F1;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 2rem;
  border: 2px solid #E63946;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-primary:hover { background: #c62d39; border-color: #c62d39; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #F7F5F1;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 2rem;
  border: 2px solid rgba(247, 245, 241, 0.35);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-ghost:hover { border-color: #F7F5F1; color: #F7F5F1; transform: translateY(-1px); }

/* Section divider */
.section-rule { width: 3rem; height: 2px; background: #E63946; margin-bottom: 1.5rem; }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Timeline */
.timeline-item { position: relative; padding-left: 2.5rem; padding-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: rgba(230, 57, 70, 0.3);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  background: #E63946;
  border-radius: 50%;
  border: 2px solid #0A0A0C;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

/* Back to Top — ridicat să nu se suprapună peste chatbot-ul SiteForge (jos-dreapta) */
#back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 900;
  width: 3rem;
  height: 3rem;
  background: #E63946;
  color: #F7F5F1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-to-top:hover { background: #c62d39; }

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  left: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.fab-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.fab-btn:hover { transform: scale(1.1); }
.fab-phone { background: #E63946; }
.fab-whatsapp { background: #25D366; }
.fab-tooltip {
  position: absolute;
  left: 3.5rem;
  background: rgba(10, 10, 12, 0.9);
  color: #F7F5F1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.fab-btn:hover .fab-tooltip { opacity: 1; transform: translateX(0); }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 12, 0.98);
  border-top: 1px solid rgba(247, 245, 241, 0.06);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 241, 0.75);
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(247, 245, 241, 0.06);
  transition: color 0.2s;
  text-decoration: none;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { color: #E63946; }

/* Contact form */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 241, 0.6);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: rgba(247, 245, 241, 0.05);
  border: 1px solid rgba(247, 245, 241, 0.12);
  color: #F7F5F1;
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus { border-color: #E63946; background: rgba(230, 57, 70, 0.05); }
.form-input::placeholder { color: rgba(247, 245, 241, 0.25); }
textarea.form-input { resize: vertical; min-height: 8rem; }

.form-success {
  display: none;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.4);
  padding: 1.5rem;
  text-align: center;
  color: #F7F5F1;
}
.form-success.show { display: block; }

/* Footer */
.footer-texture.texture-slot { position: relative; }

/* Page Header */
.page-header {
  padding: 7rem 0 4rem;
  background: linear-gradient(180deg, #0c0e13 0%, #0A0A0C 100%);
  border-bottom: 1px solid rgba(247, 245, 241, 0.06);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(at top left, rgba(230, 57, 70, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #E63946 0%, #020307 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(at center right, rgba(230, 57, 70, 0.3) 0%, transparent 70%);
}

/* Section labels */
.section-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #E63946;
  margin-bottom: 1rem;
}

/* Preview cards on homepage */
.preview-card { position: relative; overflow: hidden; display: block; text-decoration: none; }
.preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.preview-card:hover img { transform: scale(1.06); }
.preview-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background 0.3s;
}
.preview-card:hover .preview-card-overlay {
  background: linear-gradient(to top, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.3) 60%);
}

/* Stars */
.stars { display: flex; gap: 2px; color: #E63946; }

/* Burger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F7F5F1;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive gallery */
@media (max-width: 768px) {
  .gallery-col-8,
  .gallery-col-4 { grid-column: span 12; }
  .gallery-col-6 { grid-column: span 12; }
  .aspect-cinema { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .display-heading { font-size: clamp(2.5rem, 12vw, 5rem); }
  .floating-actions { bottom: 1.5rem; left: 1rem; }
}

/* Texture slot */
.texture-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7f5f1' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.texture-slot > * { position: relative; z-index: 1; }

.contact-info-card {
  background: linear-gradient(180deg, #1a1f2b 0%, #0c0e13 100%);
  border: 1px solid rgba(247, 245, 241, 0.06);
  padding: 1.75rem;
  border-radius: 2px;
  transition: border-color 0.3s;
}
.contact-info-card:hover { border-color: rgba(230, 57, 70, 0.3); }

.social-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(247, 245, 241, 0.04);
  border: 1px solid rgba(247, 245, 241, 0.08);
  border-radius: 2px;
  text-decoration: none;
  color: #F7F5F1;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}
.social-link-card:hover { background: rgba(247, 245, 241, 0.08); border-color: rgba(247, 245, 241, 0.2); }

/* Legal pages */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F7F5F1;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-content p { color: rgba(247, 245, 241, 0.65); line-height: 1.75; margin-bottom: 1rem; }
.legal-content ul { color: rgba(247, 245, 241, 0.65); line-height: 1.75; margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.legal-content a { color: #E63946; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* Team card */
.team-card {
  background: linear-gradient(180deg, #1a1f2b 0%, #0c0e13 100%);
  border: 1px solid rgba(247, 245, 241, 0.06);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.team-card:hover { border-color: rgba(230, 57, 70, 0.3); transform: translateY(-4px); }
.team-card-body { padding: 1.5rem; }

.category-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #E63946;
  border: 1px solid rgba(230, 57, 70, 0.4);
  padding: 0.25rem 0.75rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A0A0C; }
::-webkit-scrollbar-thumb { background: #E63946; border-radius: 3px; }

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(180deg, #1a1f2b 0%, #0c0e13 100%);
  border: 1px solid rgba(247, 245, 241, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: rgba(247, 245, 241, 0.4);
}

/* --- SiteForge texture overlay (auto-injected) --- */
.texture-slot {
  position: relative;
  isolation: isolate;
}
.texture-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://akiojiswhqnjiuwdciof.supabase.co/storage/v1/object/public/site-images/textures/brushed-alum.png");
  background-repeat: repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
