/* ═══════════════════════════════════════════════════
   DR. TATU — Visual Enhancement Layer
   "Warm Sanctuary" aesthetic — premium, warm, alive
   Loaded AFTER style.css to enhance, not replace
   ═══════════════════════════════════════════════════ */

/* ── Enhanced Variables ──────────────────────────── */
:root {
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-lifted: 0 20px 60px rgba(0, 0, 0, 0.12);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── Global Enhancements ─────────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay on warm backgrounds */
.hero-wrap::before,
.page-hero::before,
.emotional-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
.hero-wrap,
.page-hero,
.emotional-hero { position: relative; }
.hero-wrap > *,
.page-hero > *,
.emotional-hero > * { position: relative; z-index: 2; }

/* ── Hero Enhancements ───────────────────────────── */
.page-hero,
.emotional-hero {
  background: var(--warm-bg-alt);
  overflow: clip;
}

/* Hero eyebrow pill style */
.page-hero .eyebrow,
.emotional-hero .eyebrow {
  display: inline-flex;
  padding: 8px 20px;
  background: rgba(0, 103, 213, 0.08);
  border-radius: 100px;
  margin-bottom: 24px;
}

/* Hero title entrance animation */
.page-hero h1,
.emotional-hero h1 {
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-hero .subtitle,
.emotional-hero .subtitle {
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.page-hero .btn-group,
.emotional-hero .btn-group {
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Button Enhancements ─────────────────────────── */
.btn-primary {
  background: var(--blue);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
}

/* Subtle pulse on primary CTA in hero */
.page-hero .btn-primary,
.emotional-hero .btn-primary {
  animation: subtlePulse 3s ease-in-out infinite 1.5s;
}
@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ── Card Enhancements ───────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}
.pricing-card.featured {
  background: var(--white);
  border-color: var(--blue);
}

/* Price number enhancement */
.pricing-card .price,
.option-card .option-price {
  color: var(--blue);
}

/* Service cards hover with accent line */
.service-card {
  position: relative;
  overflow: clip;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* Option cards */
.option-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.option-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

/* ── Testimonial Enhancements ────────────────────── */
.testimonial-inline {
  position: relative;
  border-left: 4px solid var(--blue);
  background: var(--white);
}
.testimonial-inline::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: var(--blue);
  opacity: 0.06;
  pointer-events: none;
}

.diaspora-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.diaspora-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--border);
}

/* Stars gold color */
.stars {
  color: #e8a838;
  letter-spacing: 2px;
}

/* ── Guarantee Items Enhancement ─────────────────── */
.guarantee-item {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.guarantee-item:hover {
  background: var(--white);
  border-color: var(--border);
  transform: translateX(4px);
}

/* ── Process Steps Enhancement ───────────────────── */
.step {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.step:hover {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-color: var(--border);
  transform: translateY(-6px);
}

/* Timeline enhanced connectors */
.diaspora-timeline .timeline-step {
  position: relative;
  transition: all 0.3s ease;
}
.diaspora-timeline .timeline-step:hover {
  background: rgba(0, 0, 0, 0.02);
}
.timeline-number {
  transition: all 0.3s ease;
}
.timeline-step:hover .timeline-number {
  transform: scale(1.1);
}

/* ── FAQ Enhancement ─────────────────────────────── */
.faq-item {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.faq-item:hover {
  border-color: var(--border);
}
.faq-item.open {
  background: var(--white);
  border-color: var(--border);
}

/* ── Price Compare Enhancement ───────────────────── */
.compare-card.highlight {
  position: relative;
}
.compare-card.highlight .service-price {
  font-weight: 900;
}
.pricing-badge {
  background: var(--navy);
}

/* ── Inline CTA Enhancement ──────────────────────── */
.inline-cta {
  background: var(--navy);
  position: relative;
  overflow: clip;
}

/* ── Diaspora CTA Enhancement ────────────────────── */
.diaspora-cta {
  background: var(--navy);
  position: relative;
  overflow: clip;
}

/* ── Final CTA Enhancement ───────────────────────── */
.final-cta {
  background: var(--blue);
  position: relative;
  overflow: clip;
}

/* Form card */
.form-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 32px;
}

/* ── Check List Enhancement ──────────────────────── */
.check-item {
  transition: all 0.2s ease;
  padding: 8px 0;
}
.check-item:hover {
  transform: translateX(4px);
}

/* ── Related Links Enhancement ───────────────────── */
.related-link {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}
.related-link:hover {
  box-shadow: var(--shadow-soft);
}

/* ── Price Table Enhancement ─────────────────────── */
.price-table {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: clip;
}
.price-table tbody tr {
  transition: background 0.2s ease;
}
.price-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}
.price-table .price-cell {
  color: var(--blue);
}

/* ── Enhanced Scroll Animations ──────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Section Header Enhancement ──────────────────── */
.section-header .eyebrow {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(0, 103, 213, 0.08);
  border-radius: 100px;
}

/* ── Empathy List Enhancement ────────────────────── */
.empathy-list li {
  transition: all 0.2s ease;
  padding: 12px 12px 12px 32px;
  border-radius: var(--radius);
}
.empathy-list li:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: translateX(4px);
}

/* ── Content Block Enhancement ───────────────────── */
.content-block .single-line {
  position: relative;
  padding-left: 24px;
}
.content-block .single-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--blue);
  border-radius: 2px;
}

/* ── VS Grid Enhancement ─────────────────────────── */
.vs-card {
  transition: all 0.3s ease;
}
.vs-card.positive:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}
.vs-card.negative {
  position: relative;
}
.vs-card.negative::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.01) 10px,
    rgba(0, 0, 0, 0.01) 20px
  );
  pointer-events: none;
  border-radius: inherit;
}

/* ── Result Cards Enhancement ────────────────────── */
.result-card {
  border: 1px solid var(--border);
}
.result-card .result-images {
  position: relative;
}
.result-card .result-images::after {
  content: 'ÎNAINTE → DUPĂ';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Logo Enhancement ────────────────────────────── */
.logo-icon {
  background: var(--blue);
}

/* ── Header Scrolled Enhancement ─────────────────── */
.header.scrolled .header-inner {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  background: var(--white);
}

/* ── Trust Bar Enhancement ───────────────────────── */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Floating CTA Enhancement ────────────────────── */
.floating-cta {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.floating-cta-wa {
  animation: subtleWaPulse 4s ease-in-out infinite 2s;
}
@keyframes subtleWaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ── Diaspora Testimonials Section ───────────────── */
.diaspora-testimonials {
  position: relative;
  overflow: clip;
}
.diaspora-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Number/Stat Counters ────────────────────────── */
.stat-value,
.number-highlight .big {
  color: var(--blue);
}

/* ── Responsive Enhancements ─────────────────────── */
@media (max-width: 768px) {
  .inline-cta { padding: 40px 24px; }

  .form-card { padding: 32px 20px; }

  .option-cards { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .related-links { grid-template-columns: 1fr; }

  .results-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Selection Color ─────────────────────────────── */
::selection {
  background: rgba(0, 103, 213, 0.15);
  color: inherit;
}

/* ── Focus Visible Enhancement ───────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
