/* ============================================
   100+ with Robin — Shared Design System
   Used by all detail pages
   Shared components mirror index.html exactly
   so detail pages match the home page look.
============================================ */

:root {
  --deep-teal: #0B3D3F;
  --night-teal: #072A2C;
  --heritage-gold: #C9A84C;
  --heritage-gold-light: #D4B96A;
  --vitality-green: #4CAF7D;
  --soft-cream: #F5F0E8;
  --cream-translucent: rgba(245, 240, 232, 0.08);
  --gold-glow: rgba(201, 168, 76, 0.15);
  --error-red: #E57373;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'DejaVu Sans', system-ui, sans-serif;
  background: var(--night-teal);
  color: var(--soft-cream);
  overflow-x: hidden;
  line-height: 1.7;
}

/* === ANIMATED BACKGROUND === */
.bg-animation {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.bg-animation .orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.25;
  animation: float 20s ease-in-out infinite;
}
.bg-animation .orb:nth-child(1) {
  width: 600px; height: 600px; background: var(--deep-teal);
  top: -10%; left: -10%; animation-delay: 0s;
}
.bg-animation .orb:nth-child(2) {
  width: 500px; height: 500px; background: var(--heritage-gold);
  top: 50%; right: -15%; animation-delay: -7s; opacity: 0.1;
}
.bg-animation .orb:nth-child(3) {
  width: 400px; height: 400px; background: var(--vitality-green);
  bottom: -10%; left: 30%; animation-delay: -14s; opacity: 0.08;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* === LAYOUT === */
.page-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column;
}

/* === HEADER === */
header {
  padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--heritage-gold), var(--heritage-gold-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--night-teal);
  letter-spacing: -0.5px;
}
.logo-text {
  font-size: 1.25rem; font-weight: 700; color: var(--soft-cream);
  letter-spacing: -0.3px;
}
.logo-text span { color: var(--heritage-gold); }

.header-right {
  display: flex; align-items: center; gap: 1.5rem;
}
.header-tagline {
  font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--heritage-gold); opacity: 0.7; font-weight: 500;
}

/* === LANGUAGE TOGGLE === */
.lang-toggle {
  display: flex; gap: 0;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px; overflow: hidden;
}
.lang-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer;
  background: transparent; color: rgba(245, 240, 232, 0.5);
  transition: all 0.3s; letter-spacing: 0.5px;
}
.lang-btn.active {
  background: var(--gold-glow);
  color: var(--heritage-gold);
}
.lang-btn:hover:not(.active) {
  color: var(--soft-cream);
}

/* === BACK NAV === */
.back-nav {
  max-width: 1000px; width: 100%;
  margin: 0 auto; padding: 0 2rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 10px;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(245, 240, 232, 0.6); text-decoration: none;
  transition: all 0.3s;
}
.back-link:hover {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--heritage-gold);
  transform: translateX(-2px);
}
.back-arrow { transition: transform 0.3s; }
.back-link:hover .back-arrow { transform: translateX(-3px); }

/* === DETAIL HERO === */
.detail-hero {
  max-width: 900px; width: 100%;
  margin: 0 auto; padding: 2rem 2rem 3rem;
  text-align: center;
}
.detail-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  background: var(--gold-glow);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.detail-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--heritage-gold);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--heritage-gold);
  background: var(--gold-glow);
  margin-bottom: 2rem;
}
.detail-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 1.5rem;
  color: var(--soft-cream);
}
.detail-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--heritage-gold), var(--heritage-gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.detail-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(245, 240, 232, 0.7);
  max-width: 640px; margin: 0 auto;
  font-weight: 400; line-height: 1.8;
}

/* === DETAIL CONTENT LAYOUT === */
.detail-content {
  max-width: 1000px; width: 100%;
  margin: 1rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.detail-prose { min-width: 0; }
.detail-prose h2 {
  font-size: 1.6rem; font-weight: 700;
  color: var(--heritage-gold);
  margin: 3rem 0 1rem;
  letter-spacing: -0.3px;
}
.detail-prose h2:first-child { margin-top: 0; }
.detail-prose h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--soft-cream);
  margin: 2rem 0 0.75rem;
}
.detail-prose h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--heritage-gold);
  margin-bottom: 0.35rem;
}
.detail-prose p {
  font-size: 0.97rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.detail-prose strong {
  color: var(--soft-cream); font-weight: 600;
}
.detail-prose ul {
  list-style: none; padding: 0;
  margin: 1rem 0 1.5rem;
}
.detail-prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.7;
}
.detail-prose ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vitality-green);
}

/* === INFO CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.info-card {
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: var(--cream-translucent);
  border: 1px solid rgba(245, 240, 232, 0.06);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.info-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.05);
  transform: translateY(-4px);
}
.info-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gold-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.info-card h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--heritage-gold);
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}
.info-card .card-sub {
  font-size: 0.68rem; font-weight: 600;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.info-card p {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.65;
  margin: 0;
}

/* === KEY STAT STRIP === */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.stat { text-align: center; }
.stat-value {
  font-size: 1.85rem; font-weight: 800;
  background: linear-gradient(135deg, var(--heritage-gold), var(--heritage-gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600;
}

/* === CTA SIDEBAR === */
.detail-cta {
  position: sticky; top: 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.cta-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--heritage-gold);
  margin-bottom: 0.5rem;
}
.cta-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--soft-cream);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.cta-desc {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.cta-form {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-form:focus-within {
  border-color: var(--heritage-gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}
.cta-form input[type="email"] {
  padding: 0.9rem 1.25rem;
  border: none; background: transparent;
  color: var(--soft-cream); font-size: 0.95rem;
  font-family: inherit; outline: none;
}
.cta-form input[type="email"]::placeholder {
  color: rgba(245, 240, 232, 0.35);
}
.cta-form button {
  padding: 0.9rem 1.25rem; border: none;
  background: linear-gradient(135deg, var(--heritage-gold), var(--heritage-gold-light));
  color: var(--night-teal);
  font-size: 0.85rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  letter-spacing: 0.5px; white-space: nowrap;
  transition: opacity 0.3s, transform 0.15s;
}
.cta-form button:hover { opacity: 0.9; transform: scale(1.01); }
.cta-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.cta-gdpr {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-top: 0.75rem; text-align: left;
}
.cta-gdpr input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--heritage-gold);
  cursor: pointer; flex-shrink: 0;
}
.cta-gdpr label {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.4);
  line-height: 1.55; cursor: pointer;
}
.cta-gdpr label a {
  color: var(--heritage-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.3);
}
.cta-gdpr label a:hover { text-decoration-color: var(--heritage-gold); }

.cta-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error-red);
  margin-top: 0.5rem;
  text-align: left;
}
.cta-success {
  display: none;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(76, 175, 125, 0.12);
  border: 1px solid rgba(76, 175, 125, 0.3);
  color: var(--vitality-green);
  font-size: 0.85rem; font-weight: 500;
  text-align: center;
  margin-top: 0.75rem;
}

/* === FOOTER === */
footer {
  text-align: center; padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.05);
  margin-top: 4rem;
}
.footer-brand {
  font-size: 0.85rem; font-weight: 600;
  color: var(--heritage-gold); margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.78rem; color: rgba(245, 240, 232, 0.3);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-location {
  font-size: 0.8rem; color: rgba(245, 240, 232, 0.4);
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.75rem; color: rgba(245, 240, 232, 0.35);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--heritage-gold); }
.footer-copy {
  margin-top: 1.5rem; font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.2);
}

/* === PRIVACY MODAL === */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(7, 42, 44, 0.9); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.visible { display: flex; }
.modal-box {
  max-width: 600px; width: 100%; max-height: 80vh;
  overflow-y: auto; padding: 2.5rem;
  border-radius: 20px; background: var(--deep-teal);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--soft-cream);
}
.modal-box h2 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--heritage-gold); margin-bottom: 1.5rem;
}
.modal-box h3 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--soft-cream); margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.modal-box p {
  font-size: 0.85rem; color: rgba(245, 240, 232, 0.6);
  line-height: 1.7; margin-bottom: 0.75rem;
}
.modal-close {
  display: inline-block; margin-top: 1.5rem;
  padding: 0.6rem 1.5rem; border: none;
  background: var(--heritage-gold); color: var(--night-teal);
  font-weight: 700; font-family: inherit;
  font-size: 0.85rem; border-radius: 10px;
  cursor: pointer; transition: opacity 0.3s;
}
.modal-close:hover { opacity: 0.85; }

/* === i18n helper === */
[data-lang="ro"] { display: none !important; }
html[lang="ro"] [data-lang="en"] { display: none !important; }
html[lang="ro"] [data-lang="ro"] { display: revert !important; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .detail-cta {
    position: static;
  }
}
@media (max-width: 700px) {
  header { flex-direction: column; gap: 0.75rem; text-align: center; }
  .header-tagline { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 1.25rem; }
  .detail-hero { padding: 1.5rem 1.5rem 2rem; }
  .detail-content { padding: 0 1.5rem; }
}
