/* ================= TOKENS ================= */
:root {
  --purple-900: #3b0764;
  --purple-800: #4c1d95;
  --purple-700: #5b21b6;
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-100: #ede9fe;
  --purple-050: #f5f3ff;

  --green-500: #4ade80;
  --green-400: #86efac;
  --green-300: #bbf7d0;
  --green-100: #dcfce7;

  --wa: #25d366;
  --wa-dark: #128c4b;
  --brand: #6d28d9;

  --ink: #1f1533;
  --muted: #6b6380;
  --line: #ece8f5;
  --white: #ffffff;
  --bg-soft: #faf8ff;

  /* Semantic surface/text tokens (schimba in dark mode) */
  --surface: #ffffff;
  --text-soft: #45405a;
  --header-bg: rgba(255, 255, 255, .88);
  --section-alt-bg: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .6);
  --page-bg:
    radial-gradient(1100px 620px at 108% -6%, rgba(74, 222, 128, .34), transparent 60%),
    radial-gradient(1000px 640px at -10% 8%, rgba(124, 58, 237, .32), transparent 58%),
    radial-gradient(900px 700px at 90% 60%, rgba(74, 222, 128, .18), transparent 60%),
    radial-gradient(1000px 800px at 20% 116%, rgba(124, 58, 237, .22), transparent 60%),
    linear-gradient(180deg, #f4effe 0%, #ecf9f1 100%);
  --hero-bg:
    radial-gradient(55% 62% at 8% 4%, rgba(124, 58, 237, .40) 0%, transparent 60%),
    radial-gradient(52% 60% at 96% 14%, rgba(74, 222, 128, .46) 0%, transparent 58%),
    radial-gradient(60% 80% at 62% 116%, rgba(124, 58, 237, .24) 0%, transparent 60%),
    linear-gradient(180deg, #f1ebfe 0%, #e8f8ee 100%);

  --grad: linear-gradient(120deg, var(--purple-600), var(--green-500));
  --shadow-sm: 0 2px 10px rgba(76, 29, 149, 0.08);
  --shadow-md: 0 12px 30px rgba(76, 29, 149, 0.12);
  --shadow-lg: 0 24px 60px rgba(76, 29, 149, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

/* ================= DARK MODE ================= */
html[data-theme="dark"] {
  --purple-050: #241b3d;
  --purple-100: #2e2350;
  --green-100: #16351f;

  --ink: #ece9f7;
  --muted: #a79fc4;
  --line: #302846;
  --white: #201a33;
  --bg-soft: #1a1530;

  --surface: #211b36;
  --text-soft: #cfc9e0;
  --header-bg: rgba(20, 15, 33, .82);
  --section-alt-bg: rgba(255, 255, 255, .04);
  --glass-border: rgba(255, 255, 255, .07);
  --page-bg:
    radial-gradient(1100px 620px at 108% -6%, rgba(74, 222, 128, .18), transparent 60%),
    radial-gradient(1000px 640px at -10% 8%, rgba(124, 58, 237, .28), transparent 58%),
    radial-gradient(900px 700px at 90% 60%, rgba(74, 222, 128, .10), transparent 60%),
    radial-gradient(1000px 800px at 20% 116%, rgba(124, 58, 237, .22), transparent 60%),
    linear-gradient(180deg, #100b20 0%, #0d0a1a 100%);
  --hero-bg:
    radial-gradient(55% 62% at 8% 4%, rgba(124, 58, 237, .38) 0%, transparent 60%),
    radial-gradient(52% 60% at 96% 14%, rgba(74, 222, 128, .26) 0%, transparent 58%),
    radial-gradient(60% 80% at 62% 116%, rgba(124, 58, 237, .30) 0%, transparent 60%),
    linear-gradient(180deg, #17102b 0%, #0f0b1e 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ================= RESET ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, .logo-text { font-family: "Poppins", sans-serif; line-height: 1.15; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-outline { background: transparent; border-color: var(--purple-600); color: var(--purple-700); }
.btn-outline:hover { background: var(--purple-050); }
.btn-phone { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); padding: 11px 18px; }
.btn-phone:hover { background: var(--purple-700); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-sm);
}
.logo-text { font-size: 20px; font-weight: 600; letter-spacing: .2px; }
.logo-text strong { color: var(--purple-600); }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  font-weight: 500; color: var(--ink); padding: 9px 14px; border-radius: 10px;
  font-size: 15px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--purple-050); color: var(--purple-700); }
.btn-phone { margin-left: 4px; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.theme-toggle:hover { transform: translateY(-2px); color: var(--purple-600); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Contrast fixes for dark mode (purple text on dark backgrounds) */
html[data-theme="dark"] .grad-text { background-image: linear-gradient(120deg, #c4b0fb, #6ee7a8); }
html[data-theme="dark"] .logo-text strong { color: #c4b0fb; }
html[data-theme="dark"] .service-tag { color: #d3c2fb; background: rgba(124, 58, 237, .20); }
html[data-theme="dark"] .price-value { color: #d3c2fb; }
html[data-theme="dark"] .price-value span { color: var(--muted); }
html[data-theme="dark"] .btn-outline { color: #d3c2fb; border-color: #7c3aed; }
html[data-theme="dark"] .btn-outline:hover { background: rgba(124, 58, 237, .16); }
html[data-theme="dark"] .main-nav a:hover { color: #d3c2fb; }
html[data-theme="dark"] .eyebrow { color: #86efac; }
html[data-theme="dark"] .hero-stats strong { color: #c4b0fb; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(124, 58, 237, .14) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--hero-bg);
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); color: var(--purple-700);
  font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 800; letter-spacing: -1px; }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin: 20px 0 30px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Poppins"; font-size: 1.7rem; color: var(--purple-700); }
.hero-stats span { color: var(--muted); font-size: .92rem; }

/* ================= SECTIONS ================= */
.section { padding: 84px 0; position: relative; }
.section-alt {
  background: var(--section-alt-bg);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: "Poppins"; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-500);
  background: var(--green-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ================= FEATURES ================= */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--purple-100); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--purple-050); margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .98rem; }

/* ================= SERVICES ================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-tag {
  display: inline-block; font-family: "Poppins"; font-weight: 600; font-size: 12px;
  color: var(--purple-700); background: var(--purple-050);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ================= PRICING ================= */
.pricing-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: stretch; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; flex: 1 1 320px; max-width: 380px;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.popular {
  border: 2px solid var(--purple-500);
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-family: "Poppins"; font-weight: 600;
  font-size: 12px; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-family: "Poppins"; font-size: 1.35rem; font-weight: 700; }
.price-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price-value { font-family: "Poppins"; font-size: 2.4rem; font-weight: 800; color: var(--purple-700); }
.price-value span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-features { margin: 22px 0 26px; display: grid; gap: 12px; }
.price-features li { display: flex; gap: 10px; font-size: .96rem; color: var(--text-soft); }
.price-features li::before { content: "✓"; color: var(--green-500); font-weight: 800; }
.price-card .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 28px; }

/* ================= MEDIU DE INVATARE ================= */
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.learn-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.learn-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--purple-100); }
.learn-ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 28px; background: var(--purple-050);
}
.learn-card h3 { font-size: 1.25rem; }
.learn-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.learn-link { font-family: "Poppins"; font-weight: 600; color: var(--purple-600); font-size: .95rem; }
html[data-theme="dark"] .learn-link { color: #d3c2fb; }

/* ================= REVIEWS ================= */
.reviews-summary {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  background: var(--surface); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); font-weight: 600; font-size: .95rem;
}
.reviews-summary .stars { color: #fbbf24; letter-spacing: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.review-stars { color: #fbbf24; letter-spacing: 1px; font-size: .95rem; }
.review-text { color: var(--text-soft); font-size: .96rem; flex: 1; }
.review-author { display: flex; align-items: center; gap: 11px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--grad);
  color: #fff; display: grid; place-items: center; font-family: "Poppins"; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-meta strong { font-size: .95rem; }
.review-meta span { display: block; color: var(--muted); font-size: .8rem; }
.reviews-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.reviews-cta { text-align: center; margin-top: 36px; }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-row {
  display: flex; align-items: center; gap: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px;
  box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s;
}
.contact-row:hover { transform: translateX(4px); border-color: var(--purple-100); }
.contact-row-phones a { color: var(--purple-600); font-weight: 600; }
.contact-row-phones a:hover { text-decoration: underline; }
.contact-row-phones [data-phone2-sep] { color: var(--muted); }
html[data-theme="dark"] .contact-row-phones a { color: #d3c2fb; }
.contact-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; font-size: 22px;
  display: grid; place-items: center; background: var(--purple-050);
}
.contact-row strong { font-family: "Poppins"; font-size: .98rem; }
.schedule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm); }
.schedule-title { font-family: "Poppins"; display: block; margin-bottom: 10px; }
.schedule ul { display: grid; gap: 8px; }
.schedule li { display: flex; justify-content: space-between; font-size: .95rem; color: var(--text-soft); }
.schedule li span:last-child { color: var(--muted); }

.contact-map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.map-embed { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-open-btn {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

/* ================= FOOTER ================= */
.site-footer { background: var(--purple-900); color: #d9cff0; margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding: 54px 22px; }
.footer-brand { max-width: 380px; }
.footer-brand .logo-text { color: #fff; font-size: 22px; }
.footer-brand .logo-text strong { color: var(--green-400); }
.footer-brand p { margin-top: 12px; color: #b9abda; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-nav a { color: #d9cff0; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .88rem; color: #a394c9; }

/* ================= FLOATING WHATSAPP ================= */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .5);
  transition: transform .2s;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.site-header, .feature-card, .service-card, .price-card, .review-card,
.contact-row, .schedule, .reviews-summary, .theme-toggle, .badge {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .2s ease, box-shadow .2s ease;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.popular { transform: none; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .28s ease;
    margin-left: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 8px; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .btn-phone { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .hero-stats { gap: 22px; }
  .learn-grid { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 520px) {
  .features-grid, .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 68px; }
  .section { padding: 60px 0; }
  .hero-actions .btn { flex: 1; }
}
