/* Custom styles for Cabinet ORL Dr. Codreanu */

:root {
  /* Primary Blue family */
  --primary-color: #3d58a1; /* Main brand blue */
  --primary-dark: #2e3f75; /* Deep blue for contrast */
  --primary-light: #5a74c1; /* Soft blue for highlights */
  --primary-bg: #eff2fc; /* Whisper-light blue background */

  /* Teal Accent */
  --accent-color: #64b0ab; /* Your signature teal */
  --accent-light: #95d6d2; /* Airy teal for subtle pops */

  /* Text colors */
  --text-dark: #2f3a44; /* Strong, legible text */
  --text-light: #f3f4f6; /* Light text on dark blocks */

  /* Page backgrounds */
  --bg-light: #f8fafc; /* Clean, almost-white */
  --bg-dark: #2f3a44; /* Moodier sections */

  /* Utility */
  --white: #ffffff; /* Use for anything that needs max contrast */
  --white-rgb: 255, 255, 255; /* RGB for white, useful for rgba */
}

html {
  scroll-behavior: smooth;
}
#map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* General styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
}

/* Subtle fog effect overlay at the top */
#despre.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

#despre.hero-section {
  height: 100vh; /* *  Înălțime completă a ecranului */
  background: url("/images/hero-bg-web-1600.jpg") no-repeat center center/cover;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 40;
  scroll-margin-top: 80px; /* Adjust for fixed navbar */
}

.hero-content {
  max-width: 600px;
  margin: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInHero 1s ease-out 0.2s forwards;
}

@keyframes fadeInHero {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-logo {
  max-height: 160px;
  margin-bottom: 1.5rem;
  filter: brightness(1.15);
}

.hero-partner {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--accent-light, #ffd700);
}
.ugal-logo {
  max-height: 50px;
  margin-top: 0.5rem;
  filter: brightness(1.2);
}

/* Navbar customization */
.navbar {
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 3px solid var(--primary-color);
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--primary-dark) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px !important;
  border-radius: 20px;
  margin: 0 4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: var(--primary-light);
}

/* Section styling */
section:not(.hero-section) {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
}

.bg-theme-light {
  background-color: var(--primary-bg) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

section:not(.hero-section) h2 {
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
}

section:not(.hero-section) h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.unstyled-link {
  color: inherit;
  text-decoration: none;
}

/* Card enhancements */
.card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 385px;
  object-fit: cover;
  border-bottom: 3px solid var(--accent-color);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Team section specific styles */
#echipa .card {
  border-top: 4px solid var(--primary-color);
}

#echipa .card-body {
  background: linear-gradient(to bottom right, white, var(--primary-bg));
}

#echipa .card-title {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Services section */
#servicii .card {
  border-top: 4px solid var(--primary-light);
  background: linear-gradient(to bottom right, white, var(--primary-bg));
}

#servicii .card-title {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 10px;
}

/* List styling */
.list-unstyled li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.dotari-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Contact section */
#contact .card {
  border-top: 4px solid var(--primary-light);
}

#map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Program section */
#program .alert-info {
  background-color: var(--primary-color);
  border-color: var(--primary-dark);
  color: var(--text-light);
  border-radius: 12px;
}

#program .card {
  border-top: 4px solid var(--accent-color);
  background: linear-gradient(to bottom right, white, var(--primary-bg));
}

/* Footer styling */
footer {
  background-color: var(--bg-dark) !important;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
  color: var(--text-light) !important;
}

footer a:hover {
  color: var(--accent-light) !important;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 40px;
  }

  section:not(.hero-section) {
    padding: 60px 0;
  }

  #despre.hero-section {
    padding-top: 100px; /* Adjust for navbar on mobile */
    padding-bottom: 30px;
    min-height: auto; /* Allow content to define height on mobile */
  }

  #despre .hero-content {
    padding: 25px;
  }

  #despre .hero-content h1 {
    font-size: 2.5rem;
  }

  #despre .hero-content .lead {
    font-size: 1.1rem;
  }

  .nav-link {
    margin: 4px 0;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print styles */
@media print {
  .navbar {
    position: static;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .card {
    break-inside: avoid;
  }
}
