/* ==========================================================================
   CardioMed - Smartphone Optimized Stylesheet (Dr. Sabău Mădălina)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette - Light Mode */
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-surface: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.95);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;

  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-green-light: #ecfdf5;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #0b0f17;
  --bg-card: #131b2e;
  --bg-surface: #1e293b;
  --bg-nav: rgba(11, 15, 23, 0.95);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-light: rgba(56, 189, 248, 0.14);

  --accent-red: #f87171;
  --accent-green: #34d399;
  --accent-green-light: rgba(52, 211, 153, 0.14);

  --border-color: #1e293b;
  --border-hover: #334155;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  padding-bottom: 90px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  outline: none;
}

.container {
  width: 92%;
  max-width: 540px;
  margin: 0 auto;
}

/* --- Typography --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text-main);
}

/* --- Header Prominent --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 74px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  max-width: 540px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Larger & Bolder Logo Container */
.logo-icon-img {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(2, 132, 199, 0.15));
}

.logo-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
}

/* --- Hero & Card Containers --- */
.hero-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: var(--accent-green-light);
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-main);
}

/* Entire title in solid black/main text color */
.hero-title span {
  color: var(--text-main);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.hero-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Schedule Banner */
.schedule-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.schedule-item i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 1rem;
}

/* --- Formare Highlights --- */
.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.highlight-item i {
  color: var(--primary);
  margin-top: 2px;
}

/* --- Lista Serviciilor Pe Verticală (Fără Butoane) --- */
.vertical-service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-vertical-item {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-vertical-item:last-child {
  border-bottom: none;
}

.service-item-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.service-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.service-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.service-item-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

.service-item-price span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 24px 0 16px 0;
  margin-top: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Sticky Bottom Call Bar --- */
.emergency-float {
  position: fixed;
  bottom: 16px;
  left: 4%;
  right: 4%;
  width: 92%;
  max-width: 500px;
  margin: 0 auto;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.emergency-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
