/* ==========================================================================
   DIASPORA DECOMPLEXEE - PREMIUM GLASSMORPHIC STYLESHEET
   Google Ads Whitehat Compliant (RO Locale)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-cyan: #19bacb;
  --primary-cyan-hover: #149cae;
  --primary-cyan-light: rgba(25, 186, 203, 0.12);
  --accent-gold: #d4af37;
  --accent-gold-light: rgba(212, 175, 55, 0.15);
  --bg-azure-light: #eef8fa;
  --bg-gradient-sky: linear-gradient(180deg, #f4fafc 0%, #e2f4f7 100%);
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 20px 40px rgba(25, 186, 203, 0.08);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography Helpers */
h1, h2, h3, .font-serif {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #0e7490 0%, #19bacb 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
}

/* Custom Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #19bacb 0%, #0284c7 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(25, 186, 203, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(25, 186, 203, 0.45);
  background: linear-gradient(135deg, #149cae 0%, #0369a1 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-cyan);
  border: 1.5px solid var(--primary-cyan-light);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--primary-cyan);
  color: var(--white);
  border-color: var(--primary-cyan);
  box-shadow: 0 6px 20px rgba(25, 186, 203, 0.25);
}

/* HEADER & NAVBAR */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom Vector SVG Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
  border: 1px solid rgba(25, 186, 203, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(25, 186, 203, 0.15);
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.logo-title span {
  color: var(--primary-cyan);
  font-weight: 400;
  font-style: italic;
}

.logo-subtitle {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-cyan);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--primary-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.phone-link:hover {
  color: var(--primary-cyan);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  z-index: 1100;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 70px;
  background: var(--bg-gradient-sky);
  text-align: center;
  overflow: hidden;
}

.hero-background-decor {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(25, 186, 203, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto 40px auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--primary-cyan-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-cyan);
  box-shadow: 0 4px 15px rgba(25, 186, 203, 0.1);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.18;
  word-wrap: break-word;
}

.hero-title em {
  color: var(--primary-cyan);
  font-style: italic;
  font-weight: 500;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2vw, 1.18rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 30px auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* HERO MAIN VISUAL BANNER */
.hero-visual-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 25px 60px rgba(14, 116, 144, 0.12);
}

.hero-visual-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}

/* Floating Accent Tag */
.floating-accent-tag {
  position: absolute;
  bottom: -20px;
  right: 30px;
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(25, 186, 203, 0.2);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 1.1rem;
}

.floating-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.floating-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* FEATURES GRID ("De Ce Să Ne Alegi") */
.features-section {
  padding: 90px 0;
  background: var(--white);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-description {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  border-color: var(--primary-cyan);
  box-shadow: 0 20px 40px rgba(25, 186, 203, 0.12);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(25, 186, 203, 0.2));
}

.feature-card-title {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ABOUT SECTION WITH FLOATING GLASS CARD OVER BACKGROUND */
.about-section {
  position: relative;
  padding: 110px 0;
  background-image: url('images/about_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.about-container {
  position: relative;
  z-index: 2;
}

.about-floating-card {
  max-width: 680px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.about-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-text {
  font-size: 0.98rem;
  color: #475569;
  margin-bottom: 18px;
  line-height: 1.65;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 28px 0;
}

.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.about-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-cyan-light);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* SERVICES GRID ("Serviciile Noastre Premium") */
.services-section {
  padding: 90px 0;
  background: var(--bg-azure-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(25, 186, 203, 0.15);
}

.service-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* INTERACTIVE CALCULATOR / PROGRAM SELECTOR WIDGET */
.widget-section {
  padding: 80px 0;
  background: var(--white);
}

.widget-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.widget-info h3 {
  font-size: 2.2rem;
  margin-bottom: 14px;
  color: var(--white);
}

.widget-info p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.widget-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(25, 186, 203, 0.2);
}

/* FAQ ACCORDION */
.faq-section {
  padding: 90px 0;
  background: var(--bg-gradient-sky);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  user-select: none;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-cyan-light);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-cyan);
  color: var(--white);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-body {
  padding-bottom: 20px;
}

/* FOOTER (RO COMPLIANCE & GOOGLE ADS WHITEHAT) */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 70px;
  padding-bottom: 30px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-brand .logo-title {
  color: var(--white);
}

.footer-text {
  margin-top: 14px;
  color: #64748b;
  line-height: 1.6;
}

.footer-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-legal-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anpc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
  transition: var(--transition);
}

.anpc-badge:hover {
  border-color: var(--primary-cyan);
  color: var(--white);
}

/* MODAL WINDOWS (TERMS, PRIVACY, COOKIES) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.3rem;
  color: var(--text-dark);
}

.modal-close {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* MOBILE RESPONSIVE RULES (STRICT 375px - 430px) */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .features-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .widget-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-primary {
    display: none; /* Hide header CTA button on extra small screens for clean spacing */
  }

  .phone-link span {
    display: none;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.4rem, 5.5vw, 2.4rem);
  }

  .features-grid, .services-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .about-floating-card {
    padding: 24px 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .floating-accent-tag {
    position: static;
    margin-top: 16px;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
