/* ============================================================
   INRMFB Design System — Navy & Gold
   Institutul Național de Recuperare, Medicină Fizică și Balneoclimatologie
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:          #1A3A6B;
  --navy-dark:     #0F2547;
  --navy-light:    #E8EEF7;
  --gold:          #C9A84C;
  --gold-dark:     #A68A35;
  --gold-light:    #F5EDD4;

  --bg:            #F8FAFC;
  --surface:       #FFFFFF;
  --text:          #0F1F3D;
  --text-muted:    #64748B;
  --border:        #DDE3EE;
  --heading:       #0F1F3D;

  --shadow-sm:  0 1px 4px rgba(26,58,107,.08);
  --shadow-md:  0 4px 16px rgba(26,58,107,.13);
  --shadow-lg:  0 8px 32px rgba(26,58,107,.18);

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms; --t-base: 250ms; --t-slow: 400ms;

  --z-nav: 100; --z-sticky: 200; --z-overlay: 300; --z-modal: 400;
}

/* Dark mode — activat de JS via data-theme="dark" pe <html> */
[data-theme="dark"] {
  --bg:         #0A1628;
  --surface:    #111C30;
  --text:       #E2E8F4;
  --text-muted: #94A3B8;
  --border:     #1E3055;
  --heading:    #E2E8F4;
  --navy-light: #162344;
  --gold-light: #2A2210;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.35);
  --shadow-md:  0 4px 16px rgba(0,0,0,.45);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.55);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::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);
  font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--gold); }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #fff; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700; line-height: 1.2;
  color: var(--heading);
}
h1 { font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem,4vw,2.5rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem,3vw,1.65rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.75; }
strong { font-weight: 600; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem,4vw,2.25rem);
  color: var(--heading);
  margin-bottom: 12px;
  position: relative; padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--gold);
  border-radius: var(--r-pill);
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  margin-bottom: 40px; max-width: 640px;
}
.section-sub.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex utils */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }

/* Text utils */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-navy { color: var(--navy); }

/* Spacing utils */
.mt-sm{margin-top:8px} .mt-md{margin-top:16px} .mt-lg{margin-top:24px} .mt-xl{margin-top:48px}
.mb-sm{margin-bottom:8px} .mb-md{margin-bottom:16px} .mb-lg{margin-bottom:24px}

/* Image utils */
.img-center { margin: 0 auto; }
.img-rounded { border-radius: var(--r-md); }
.img-rounded-lg { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* Bg variants */
.bg-light { background: var(--navy-light); }
.bg-navy  { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.bg-surface { background: var(--surface); }

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 8px 0;
  position: relative; z-index: var(--z-sticky);
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--gold); }
.top-bar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.top-bar-left, .top-bar-right {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item i { color: var(--gold); font-size: 12px; }
.top-bar-link {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; white-space: nowrap;
}
.top-bar-link:hover { color: var(--gold); }
@media (max-width: 768px) { .top-bar { display: none; } }

/* ── MAIN HEADER ─────────────────────────────────────────── */
.main-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: var(--z-sticky);
  transition: box-shadow var(--t-base) var(--ease);
}
.main-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

/* Logo */
.logo-link {
  display: flex; align-items: center;
  flex-shrink: 1; flex-grow: 1;
  min-width: 0; overflow: hidden;
}
.logo-link img {
  height: 56px; width: auto;
  max-width: 100%;
  transition: transform var(--t-base) var(--ease);
}
.logo-link:hover img { transform: scale(1.02); }
[data-theme="dark"] .logo-link img { filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 480px) { .logo-link img { height: 36px; } }
@media (max-width: 768px) { .logo-link img { height: 42px; } }

/* Header actions */
.header-actions {
  display: flex; align-items: center;
  gap: 10px; flex-shrink: 0;
}

/* Dark mode toggle */
.dark-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 1.1rem;
  transition: all var(--t-base) var(--ease);
  flex-shrink: 0;
}
.dark-toggle:hover { background: var(--gold); color: #fff; transform: rotate(20deg); }
[data-theme="dark"] .dark-toggle { background: var(--gold); color: #fff; }
[data-theme="dark"] .dark-toggle:hover { background: var(--gold-dark); }

/* CTA button în header */
.header-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 500;
  white-space: nowrap;
  transition: all var(--t-base) var(--ease);
  flex-shrink: 0;
}
.header-cta i { color: var(--gold); }
.header-cta:hover { background: var(--navy-dark); color: #fff; box-shadow: var(--shadow-md); }
@media (max-width: 1100px) { .header-cta { display: none; } }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 42px; height: 42px;
  background: var(--navy-light);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.hamburger-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: var(--r-pill);
  transition: all var(--t-base) var(--ease);
  pointer-events: none;
}
.hamburger-bar + .hamburger-bar { margin-top: 5px; }
.hamburger:hover { background: var(--gold-light); }
[data-theme="dark"] .hamburger { background: var(--gold); }
[data-theme="dark"] .hamburger-bar { background: #fff; }
[data-theme="dark"] .hamburger:hover { background: var(--gold-dark); }

/* Hamburger animat când e deschis */
.hamburger.is-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) { .hamburger { display: flex; } }

/* ── DESKTOP NAVIGATION ──────────────────────────────────── */
.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: center;
}
.nav-list {
  display: flex; align-items: center;
}
.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 11px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .03em;
  color: var(--text);
  border-bottom: 3px solid transparent;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--gold); }
.nav-link .chevron {
  font-size: 9px; margin-top: 1px;
  transition: transform var(--t-fast) var(--ease);
}
.nav-item:hover .chevron,
.nav-item.is-open .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: var(--z-nav);
  /* hidden state */
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-base) var(--ease),
              visibility var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
  pointer-events: none;
}
.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-link {
  display: flex; align-items: center;
  padding: 9px 20px;
  font-size: .85rem; color: var(--text);
  transition: all var(--t-fast) var(--ease);
}
.dropdown-link:hover {
  background: var(--navy-light);
  color: var(--navy);
  padding-left: 26px;
}
[data-theme="dark"] .dropdown-link:hover { color: var(--gold); }

/* Item fără link (Spitalizare de Zi) */
.dropdown-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 20px;
  font-size: .85rem; color: var(--text-muted);
  cursor: default;
  font-weight: 600; letter-spacing: .02em;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0;
}

/* Nav ascunsă pe mobile */
@media (max-width: 1100px) { .main-nav { display: none; } }

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: var(--z-overlay);
  opacity: 0; visibility: hidden;
  transition: all var(--t-base) var(--ease);
}
.mobile-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 300px; max-width: 88vw; height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-modal);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 20px 40px;
  transition: right .35s var(--ease);
}
.mobile-menu.is-open { right: 0; }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-light); color: var(--navy);
  font-size: 1rem;
  transition: all var(--t-fast) var(--ease);
}
.mobile-close:hover { background: var(--gold); color: #fff; }

.mobile-nav-item { border-bottom: 1px solid var(--border); }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 4px;
  font-weight: 600; font-size: .9rem;
  color: var(--text);
  width: 100%;
  background: none; border: none; text-align: left;
  cursor: pointer;
}
.mobile-nav-link:hover { color: var(--gold); }
.mobile-nav-link i { font-size: 11px; color: var(--text-muted); transition: transform var(--t-fast) var(--ease); }
.mobile-nav-link.is-open i { transform: rotate(180deg); }
.mobile-nav-plain {
  display: block; padding: 13px 4px;
  font-weight: 600; font-size: .9rem; color: var(--text);
}
.mobile-nav-plain:hover { color: var(--gold); }

.mobile-dropdown {
  display: none; padding: 4px 0 12px 16px;
}
.mobile-dropdown.is-open { display: block; }
.mobile-dropdown a {
  display: block; padding: 7px 0;
  font-size: .875rem; color: var(--text-muted);
}
.mobile-dropdown a:hover { color: var(--gold); }

.mobile-sub-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; width: 100%;
  background: none; border: none; text-align: left;
  font-size: .875rem; color: var(--text-muted);
  cursor: pointer;
}
.mobile-sub-trigger:hover { color: var(--gold); }
.mobile-sub-trigger i { font-size: 10px; transition: transform var(--t-fast) var(--ease); }
.mobile-sub-trigger.is-open i { transform: rotate(180deg); }
.mobile-subdropdown { display: none; padding-left: 14px; }
.mobile-subdropdown.is-open { display: block; }
.mobile-subdropdown a { display: block; padding: 5px 0; font-size: .82rem; color: var(--text-muted); }
.mobile-subdropdown a:hover { color: var(--gold); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border-radius: var(--r-pill); border: 2px solid transparent;
  transition: all var(--t-base) var(--ease);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  line-height: 1;
}
.btn i { font-size: .9em; }
.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-light); color: var(--navy); }
[data-theme="dark"] .btn-outline { color: var(--gold); border-color: var(--gold); }
[data-theme="dark"] .btn-outline:hover { background: rgba(201,168,76,.1); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-body { padding: 24px; }
.card-body-xl { padding: 36px; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon i { font-size: 1.4rem; color: var(--navy); }
[data-theme="dark"] .card-icon i { color: var(--gold); }
.card-icon.gold { background: var(--gold-light); }
.card-icon.gold i { color: var(--gold-dark); }
.card-icon-center { margin-left: auto; margin-right: auto; }
.card-title { font-size: 1.2rem; margin-bottom: 8px; color: var(--heading); }
.card-title a { color: var(--heading); }
.card-title a:hover { color: var(--gold); }
.card-text { color: var(--text-muted); font-size: .95rem; }
.card-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.card-navy .card-title,
.card-navy h2, .card-navy h3 { color: #fff; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(201,168,76,.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(201,168,76,.1) 0%, transparent 40%);
}
.hero-slider-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-slider-img.active { opacity: .15; }
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 0; max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 16px; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem,6vw,3.8rem);
  color: #fff; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title span { color: var(--gold); }
.hero-desc {
  font-size: 1.15rem; color: rgba(255,255,255,.82);
  line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero mini — pagini interioare */
.hero-mini {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 48px 0; min-height: 180px;
  display: flex; align-items: center;
}
.hero-mini h1 { color: #fff; margin-bottom: 12px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: rgba(255,255,255,.65); flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ── STAT SECTION ────────────────────────────────────────── */
.stat-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 72px 0;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 36px 24px; text-align: center;
  transition: all var(--t-base) var(--ease);
}
.stat-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.stat-icon i { font-size: 1.4rem; color: var(--gold); }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem,5vw,3.2rem);
  font-weight: 700; color: #fff; line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: .9rem; color: rgba(255,255,255,.72); font-weight: 500; }

/* ── BADGES & TAGS ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge-navy { background: var(--navy-light); color: var(--navy); }
.badge-gold { background: var(--gold-light); color: var(--gold-dark); }
[data-theme="dark"] .badge-navy { background: var(--navy-light); color: var(--gold); }

.tag {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: var(--r-sm);
  font-size: .85rem; background: var(--navy-light); color: var(--navy);
  transition: all var(--t-fast) var(--ease);
}
.tag:hover { background: var(--navy); color: #fff; }
[data-theme="dark"] .tag { color: var(--text); }
[data-theme="dark"] .tag:hover { background: var(--gold); color: #fff; }

/* ── TABLE SCHEDULE ──────────────────────────────────────── */
.table-schedule { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-schedule th {
  background: var(--navy); color: #fff;
  padding: 12px 16px; text-align: left; font-weight: 600;
}
.table-schedule td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.table-schedule tr:nth-child(even) td { background: var(--navy-light); }
.table-schedule tr:hover td { background: var(--gold-light); }
@media (max-width: 640px) {
  .table-schedule thead { display: none; }
  .table-schedule tr { display: block; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
  .table-schedule td { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .table-schedule td::before { content: attr(data-label); font-weight: 600; color: var(--navy); }
}

/* ── ACCORDION ───────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 8px;
  overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; width: 100%;
  background: var(--surface); color: var(--heading);
  font-weight: 600; font-size: 1rem; text-align: left;
  transition: background var(--t-fast) var(--ease);
}
.accordion-header:hover { background: var(--navy-light); }
.accordion-header i { font-size: 12px; color: var(--text-muted); transition: transform var(--t-base) var(--ease); }
.accordion-item.is-open .accordion-header { background: var(--navy-light); }
.accordion-item.is-open .accordion-header i { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.accordion-body-inner { padding: 16px 20px 20px; color: var(--text-muted); font-size: .95rem; }

/* ── LINK LIST ───────────────────────────────────────────── */
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-list a {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: .95rem;
  transition: all var(--t-fast) var(--ease);
}
.link-list a i { color: var(--gold); font-size: .8rem; transition: transform var(--t-fast) var(--ease); flex-shrink: 0; }
.link-list a:hover { color: var(--navy); padding-left: 4px; }
.link-list a:hover i { transform: translateX(3px); }
[data-theme="dark"] .link-list a:hover { color: var(--gold); }

/* ── GDPR LIST ───────────────────────────────────────────── */
.gdpr-list { display: flex; flex-direction: column; gap: 0; }
.gdpr-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.gdpr-list li:last-child { border-bottom: none; }
.gdpr-list i { color: var(--gold); flex-shrink: 0; }
.gdpr-list a { color: var(--text); }
.gdpr-list a:hover { color: var(--gold); }
.gdpr-list span { color: var(--text-muted); }

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4/3; position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* ── FOOTER ──────────────────────────────────────────────── */
.main-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  padding: 72px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2,1fr); gap: 32px; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-logo {
  height: 44px; width: auto; margin-bottom: 16px;
  filter: brightness(0) invert(1); opacity: .9;
}
.footer-desc { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.65; }

.footer-heading {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: rgba(255,255,255,.65);
  transition: all var(--t-fast) var(--ease);
}
.footer-links a i { font-size: .75rem; color: var(--gold); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-row {
  display: flex; gap: 12px;
  font-size: .9rem; color: rgba(255,255,255,.7);
  align-items: flex-start;
}
.footer-contact-row i { color: var(--gold); margin-top: 2px; flex-shrink: 0; width: 16px; }
.footer-contact-row a { color: rgba(255,255,255,.7); }
.footer-contact-row a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  transition: all var(--t-fast) var(--ease);
}
.footer-social a:hover { background: var(--gold); transform: translateY(-2px); }

/* ── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--t-base) var(--ease);
  z-index: var(--z-nav);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gold); transform: translateY(-3px); }
[data-theme="dark"] .scroll-top { background: var(--gold); }
[data-theme="dark"] .scroll-top:hover { background: var(--gold-dark); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeInUp .6s var(--ease) .1s both; }
.anim-2 { animation: fadeInUp .6s var(--ease) .2s both; }
.anim-3 { animation: fadeInUp .6s var(--ease) .3s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── HR ──────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .top-bar, .main-header, .main-nav, .main-footer,
  .mobile-menu, .mobile-overlay, .scroll-top { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ── FEEDBACK SECTION ────────────────────────────────────── */
.feedback-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feedback-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.feedback-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.feedback-img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  margin: 0 auto;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.feedback-img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(26,58,107,.22);
}

.feedback-scan-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px;
  font-size: .875rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.feedback-scan-hint i { color: var(--gold); font-size: 1rem; }

.feedback-content .section-title { margin-bottom: 20px; }

.feedback-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
}

/* Decorativ — linie aurie verticală între imagine și text */
.feedback-inner::before {
  display: none;
}

@media (max-width: 900px) {
  .feedback-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .feedback-image-wrap { order: -1; }
  .feedback-img { max-width: 240px; }
  .section-title::after { left: 50%; transform: translateX(-50%); }
  .feedback-actions { justify-content: center; }
}
