/* ============================================================
   Servicii Funerare Galați — Premium Design
   Casa Funerară Sfinții Constantin și Elena
   ============================================================ */

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

/* 2. CSS VARIABLES */
:root {
  --bg:         #060610;
  --bg-alt:     #0d0d1f;
  --bg-card:    #111126;
  --gold:       #c9a96e;
  --gold-light: #e8c882;
  --gold-dark:  #9a7840;
  --gold-pale:  rgba(201,169,110,0.12);
  --white:      #ffffff;
  --text:       #ede7df;
  --text-muted: #8a8490;
  --border:     rgba(201,169,110,0.18);
  --border-soft:rgba(255,255,255,0.06);
  --shadow:     0 24px 64px rgba(0,0,0,0.6);
  --shadow-sm:  0 8px 24px rgba(0,0,0,0.35);
  --radius:     10px;
  --radius-lg:  18px;
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --transition: 0.32s var(--ease);
  --header-h:   78px;
  --bar-h:      62px;       /* mobile sticky bar height */
}

/* 3. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  max-width: 100vw;
}

/* padding to avoid content under sticky elements */
body { padding-top: var(--header-h); }
@media (max-width: 768px) { body { padding-bottom: var(--bar-h); } }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.22;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* 5. UTILITIES */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 88px 0;
}
.section--alt { background: var(--bg-alt); }

.gold { color: var(--gold); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: #06060f;
}
.btn--gold:hover {
  background: var(--gold-light);
  color: #06060f;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.35);
}
.btn--outline {
  border: 2px solid var(--border);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--lg { padding: 17px 40px; font-size: 1rem; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
}
.section-desc.center { margin: 0 auto; }

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  margin: 20px 0 36px;
  border-radius: 2px;
}
.gold-line.center { margin-left: auto; margin-right: auto; }

/* 6. ANIMATIONS */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes candle-flicker {
  0%, 100% { opacity: 1; transform: scaleX(1) rotate(-1deg); }
  25% { opacity: 0.9; transform: scaleX(0.95) rotate(1deg); }
  50% { opacity: 1; transform: scaleX(1.04) rotate(-0.5deg); }
  75% { opacity: 0.95; transform: scaleX(0.97) rotate(0.8deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 7. HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6,6,16,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  animation: candle-flicker 4s ease-in-out infinite;
}
.logo-text { line-height: 1.15; }
.logo-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); background: var(--gold-pale); }
.nav-links a.active { color: var(--gold); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.87rem;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.dropdown a:hover { background: var(--gold-pale); color: var(--gold); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.header-phone::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--gold);
  opacity: 0;
  transition: var(--transition);
}
.header-phone:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--gold-light); }
.header-phone:hover::before { opacity: 1; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(6,6,16,0.99);
  backdrop-filter: blur(12px);
  z-index: 998;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-nav.open {
  opacity: 1;
  transform: none;
}
.mobile-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .sub-links { padding-left: 16px; }
.mobile-nav .sub-links a { font-size: 0.95rem; color: var(--text-muted); }
.mobile-nav .mobile-cta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mobile-nav .mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  border-bottom: none;
}
.mobile-nav .mobile-cta .call { background: var(--gold); color: #06060f; }
.mobile-nav .mobile-cta .wa { background: #25D366; color: white; }

/* 8. HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(60,30,8,0.5) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 90%, rgba(80,40,10,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(30,15,60,0.3) 0%, transparent 55%),
    linear-gradient(160deg, #06060f 0%, #0d0720 55%, #060610 100%);
  z-index: 0;
}

/* Decorative orbs */
.hero-bg::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  top: 20%; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 70%);
  bottom: 25%; right: 10%;
  border-radius: 50%;
  animation: float 12s ease-in-out infinite reverse;
}

/* grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,169,110,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 28px;
  animation: fadeIn 1s var(--ease) 0.2s both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
}
.hero-badge .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse-ring 2s ease-out infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 520px;
  animation: fadeUp 0.9s var(--ease) 0.55s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease) 0.7s both;
}

.hero-stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border-soft);
  animation: fadeUp 0.9s var(--ease) 0.85s both;
}
.stat-item { }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Right side candles decoration */
.hero-candles {
  position: absolute;
  right: 6%;
  bottom: 0;
  display: flex;
  gap: 28px;
  align-items: flex-end;
  z-index: 1;
  opacity: 0.35;
}
.candle-wrap { display: flex; flex-direction: column; align-items: center; }
.candle-flame {
  width: 14px; height: 22px;
  background: radial-gradient(ellipse at 50% 80%, #ffd700, #ff8c00, rgba(255,80,0,0));
  border-radius: 50% 50% 25% 25% / 60% 60% 40% 40%;
  margin-bottom: -2px;
  animation: candle-flicker 2.5s ease-in-out infinite;
}
.candle-flame:nth-child(1) { animation-delay: 0.3s; }
.candle-body {
  width: 18px;
  background: linear-gradient(180deg, #e8e0d0 0%, #d4ccba 100%);
  border-radius: 3px 3px 2px 2px;
  position: relative;
  overflow: hidden;
}
.candle-body::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.12);
}

/* 9. TRUST BAR */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.trust-icon {
  width: 40px; height: 40px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.trust-label { font-size: 0.95rem; font-weight: 600; }
.trust-sub { font-size: 0.78rem; color: var(--text-muted); }

/* Scrolling trust bar */
.trust-ticker {
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-ticker-inner {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}
.trust-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-ticker-item .dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.trust-ticker-item b { color: var(--text); }

/* 10. SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-pale), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(201,169,110,0.2);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,169,110,0.2);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* 11. PACKAGES / PRICING */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  align-items: start;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
}
.package-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.package-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,169,110,0.06), var(--bg-card));
}
.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #06060f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.package-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.package-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.package-price span { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); }
.package-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }

.pkg-divider { height: 1px; background: var(--border-soft); margin: 20px 0; }

.package-features { margin-bottom: 28px; }
.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
}
.package-features li:last-child { border-bottom: none; }
.package-features li svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }

.package-card .btn { width: 100%; justify-content: center; }

/* 12. ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}
.about-img-placeholder svg { color: var(--gold); margin-bottom: 16px; }

.about-badge {
  position: absolute;
  bottom: 28px;
  left: -24px;
  background: var(--gold);
  color: #06060f;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: 'Playfair Display', serif;
  box-shadow: var(--shadow-sm);
}
.about-badge-num {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge-text { font-size: 0.8rem; font-weight: 600; }

.about-text .section-tag { margin-top: 0; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
}
.value-icon {
  width: 38px; height: 38px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.value-label { font-size: 0.88rem; font-weight: 600; }
.value-sub { font-size: 0.8rem; color: var(--text-muted); }

/* 13. HOSPITALS */
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.hospital-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.hospital-card:hover { border-color: var(--border); transform: translateX(4px); }
.hospital-icon {
  width: 44px; height: 44px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.hospital-name { font-size: 0.9rem; font-weight: 600; }
.hospital-loc { font-size: 0.78rem; color: var(--text-muted); }

/* 14. ZONE */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.zone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.zone-card:hover {
  border-color: var(--border);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.zone-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  transition: var(--transition);
}
.zone-card:hover .zone-icon { background: rgba(201,169,110,0.2); border-color: var(--gold); }
.zone-name { font-size: 1rem; font-weight: 600; }
.zone-dist { font-size: 0.78rem; color: var(--text-muted); }
.zone-arrow { font-size: 0.75rem; color: var(--gold); opacity: 0; transition: var(--transition); }
.zone-card:hover .zone-arrow { opacity: 1; }

/* 15. TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.12;
  line-height: 1;
}

.stars { display: flex; gap: 4px; margin-bottom: 16px; }
.star { color: var(--gold); font-size: 0.95rem; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #06060f;
  flex-shrink: 0;
}
.author-name { font-size: 0.9rem; font-weight: 600; }
.author-info { font-size: 0.78rem; color: var(--text-muted); }

/* 16. FAQ */
.faq-list { margin-top: 52px; display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold); }
.faq-item.open .faq-q { color: var(--gold); }

.faq-chevron {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--gold);
}
.faq-item.open .faq-chevron { background: var(--gold); color: #06060f; transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.3s var(--ease);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 17. CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 52px;
}
.contact-info { }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}
.contact-item:last-child { border-bottom: none; margin-bottom: 0; }
.contact-item-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-item-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.contact-item-value { font-size: 1.05rem; font-weight: 600; }
.contact-item-value a { color: var(--text); }
.contact-item-value a:hover { color: var(--gold); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 320px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  filter: grayscale(60%) invert(90%) hue-rotate(180deg) brightness(0.65) contrast(1.1);
}

/* 18. FOOTER */
.site-footer {
  background: #03030b;
  border-top: 1px solid var(--border-soft);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-social:hover { background: var(--gold-pale); border-color: var(--border); color: var(--gold); }

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--text); }

.footer-anpc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.footer-anpc a {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-anpc a:hover { opacity: 1; transform: translateY(-2px); }
.footer-anpc img { display: block; height: 44px; width: auto; }

.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text); }

/* 19. STICKY MOBILE BAR */
.sticky-bar-mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 997;
  background: rgba(6,6,16,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  height: var(--bar-h);
  padding: 0 6px;
}
.sticky-bar-mobile-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  gap: 5px;
}
.bar-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  padding: 6px 4px;
  overflow: hidden;
  white-space: nowrap;
}
.bar-btn svg { font-size: 1.1rem; }
.bar-btn--call { background: var(--gold); color: #06060f; }
.bar-btn--call:hover { background: var(--gold-light); color: #06060f; }
.bar-btn--wa { background: rgba(37,211,102,0.15); border: 1px solid rgba(37,211,102,0.25); color: #25D366; }
.bar-btn--wa:hover { background: rgba(37,211,102,0.25); color: #25D366; }
.bar-btn--map { background: rgba(66,133,244,0.1); border: 1px solid rgba(66,133,244,0.2); color: #6ea8ff; }
.bar-btn--map:hover { background: rgba(66,133,244,0.2); color: #6ea8ff; }

/* 20. FLOATING DESKTOP CTA */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 50%;
  transform: translateY(50%);
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transform: translateY(50%) translateX(20px);
}
.float-cta.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(50%) translateX(0);
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 100px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  max-width: 48px;
}
.float-btn:hover { max-width: 200px; border-radius: 100px; }
.float-btn-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.float-btn-text {
  font-size: 0.82rem;
  font-weight: 600;
  padding-right: 18px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.float-btn:hover .float-btn-text { opacity: 1; }
.float-btn--call { background: var(--gold); color: #06060f; }
.float-btn--wa { background: #25D366; color: white; }
.float-btn--map { background: #4285f4; color: white; }

/* 21. ARTICLE PAGES */
.page-hero {
  padding: 60px 0 52px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); }

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.article-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
}
.article-read-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding: 60px 0 80px;
  align-items: start;
}
.article-body h2 {
  font-size: 1.5rem;
  margin-top: 42px;
  margin-bottom: 16px;
  color: var(--text);
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--gold);
}
.article-body p { font-size: 1rem; line-height: 1.78; color: #ccc4bc; margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 1.2rem;
}
.article-body li { font-size: 0.97rem; line-height: 1.7; color: #ccc4bc; margin-bottom: 8px; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.55rem;
  margin-right: 10px;
  vertical-align: middle;
}
.article-body strong { color: var(--text); font-weight: 600; }

.article-callout {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-callout p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Article Sidebar */
.article-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.sidebar-cta { background: linear-gradient(135deg, rgba(201,169,110,0.12), var(--bg-card)); border-color: var(--border); }
.sidebar-cta p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 0.9rem; padding: 12px 20px; }
.sidebar-phone { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }

.related-list li { margin-bottom: 0; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}
.related-list a:hover { color: var(--gold); }
.related-list a:last-child { border-bottom: none; }
.related-arrow { color: var(--gold); flex-shrink: 0; }

/* 22. INDEX PAGES (Utile / Zone) */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.index-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.index-card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.index-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-alt), #1a1030);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.index-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(6,6,16,0.8) 100%);
}
.index-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.index-card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.index-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; transition: color var(--transition); }
.index-card:hover .index-card-title { color: var(--gold); }
.index-card-desc { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.index-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.index-card-read { color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* 23. CTA BANNER */
.cta-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1030 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.08), transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 14px; }
.cta-section p { color: var(--text-muted); max-width: 540px; margin: 0 auto 32px; }
.cta-section .btn-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 16px;
}

/* 24. PROCESS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(33.33% - 24px);
  right: calc(33.33% - 24px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px; height: 72px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  transition: var(--transition);
}
.step:hover .step-num { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 0 20px rgba(201,169,110,0.2); }
.step h4 { margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* 25. RESPONSIVE */
@media (max-width: 1024px) {
  .packages-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 440px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-cta { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 60px 0; }
  .nav-links, .header-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .sticky-bar-mobile { display: flex; }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-candles { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hospitals-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .trust-bar-inner { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .packages-grid { max-width: 100%; }
  .about-badge { left: 12px; }
  .index-grid { grid-template-columns: 1fr; }
  /* About values - 1 coloana */
  .about-values { grid-template-columns: 1fr; }
  /* Butoane nu ies din pagina */
  .btn { max-width: 100%; }
  .btn--lg { padding: 14px 24px; font-size: 0.95rem; }
  /* Hero badge centrat */
  .hero-badge { align-self: center; }
  /* gold-line centrat automat deja */
}

@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
  }
  .trust-bar-inner { flex-direction: column; }
  /* Pachete - padding redus */
  .package-card { padding: 28px 18px; }
  /* Testimoniale */
  .testimonials-grid { max-width: 100%; }
  /* Hospitals */
  .hospital-card { padding: 14px; }
  /* Contact */
  .contact-item { gap: 12px; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Prevent any horizontal overflow */
  .section-title { word-break: break-word; }
  .btn { white-space: normal; text-align: center; }
  /* CTA section */
  .cta-section { padding: 48px 0; }
  .cta-section .btn-group { flex-direction: column; align-items: stretch; padding: 0 16px; gap: 10px; }
  .cta-section .btn-group .btn { width: 100%; justify-content: center; }
  /* Article layout pe mobil */
  .article-layout { padding: 32px 0 48px; gap: 32px; }
  /* Sidebar widget */
  .sidebar-widget { padding: 18px; }
}

/* Extra: index-card image emoji sa fie vizibil */
.index-card-img { isolation: isolate; }
.index-card-img img { z-index: 0; }
.index-card-img span, .index-card-img > *:not(img) { position: relative; z-index: 1; }

/* Fix trust ticker overflow pe orice ecran */
.trust-ticker-inner { display: inline-flex; flex-shrink: 0; }

/* Sticky bar: garanteaza ca butoanele ocupa tot spatiul */
@media (max-width: 768px) {
  .sticky-bar-mobile { display: flex; align-items: stretch; }
  .sticky-bar-mobile-inner { width: 100%; flex: 1; }
  .bar-btn { flex: 1 1 0; min-width: 0; }
}

/* About grid pe tablet - 1 col */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { max-width: 100%; }
}

/* ── HOMEPAGE GALLERY GRID ─────────────────────────────── */
.hp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 10px;
}

/* Item tall (prima coloana, 2 randuri) */
.hp-gal-item--tall {
  grid-row: span 2;
}
/* Item wide (ultima pozitie, 2 coloane) */
.hp-gal-item--wide {
  grid-column: span 2;
}

.hp-gal-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  display: block;
  text-decoration: none;
}
.hp-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.hp-gal-item:hover img { transform: scale(1.07); }

.hp-gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,16,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}
.hp-gal-item:hover .hp-gal-overlay { opacity: 1; }
.hp-gal-overlay span { display: none; }

/* Tablet: 3 coloane, fara span */
@media (max-width: 900px) {
  .hp-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  .hp-gal-item--tall { grid-row: span 1; }
  .hp-gal-item--wide { grid-column: span 1; }
  /* Ultimul item ascuns pe 9 pozitii, aratam 8 */
}

/* Mobil: 2 coloane, toate egale */
@media (max-width: 600px) {
  .hp-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: 7px;
  }
  .hp-gal-item { aspect-ratio: 1 / 1; }
  .hp-gal-item--tall { grid-row: span 1; }
  .hp-gal-item--wide { grid-column: span 1; }
}
