/*----------------universal----------------- */
img {
  /* Общее правило чтобы изображения не вытекали */
  width: 100%;
}

html {
  font-family: 'Roboto Condensed', Helvetica, sans-serif;
  font-size: 14px;
  height: 100%;
}

body {
  overflow-x: hidden;
  height: 100%;
  background-color: #f9fbf7;
  /* Off-white background for modern look */
  color: #333;
  /* Darker text for better readability */
  line-height: 1.6;
  /* Improved line height */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222;
  /* Sharper headings */
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section {
  margin-top: 0;
  /* Removed redundant 110px margin (handled by page-under-header main) */
  position: relative;
  z-index: 5;
}

/* Pagini simple (fără carousel) afișate sub header-ul fix + bara de telefoane */
/* Fix empty space: Reduced from 170px to match actual header height + small buffer */
.page-under-header main,
main {
  margin-top: 140px;
  flex: 1 0 auto;
}

/* Pagina de prețuri: spațiere sub header și aspect aerisit */
.prices-page {
  margin-top: 130px;
  padding: 40px 0 60px;
}

.prices-page h1 {
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
}

.prices-page .price-intro {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.prices-page .price-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.prices-page .price-card h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.prices-page .price-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

/* Carousel full-width, fără margini laterale */
.hero-section .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.language-switcher .lang-switch {
  padding: 0 3px;
}

.language-switcher .active-lang {
  font-weight: 700;
}

/* poziționează comutatorul de limbă puțin mai spre dreapta și adaugă steaguri */
.navbar-nav.navbar-right .language-switcher {
  margin-left: 40px;
  /* aproximativ 1 cm pe ecrane standard */
}

.language-switcher .lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lang-flag.lang-flag-ro {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/RO.svg");
}

.lang-flag.lang-flag-en {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/GB.svg");
}

.blue {
  color: #689f38;
}

.btn-primary {
  width: auto;
  padding: 1.2rem 3.5rem;
  /* Slightly larger padding */
  border: 0;
  margin-top: 2.8rem;
  background-color: #689f38;
  background-image: linear-gradient(135deg, #689f38 0%, #558b2f 100%);
  /* Premium gradient */
  box-shadow: 0 4px 15px rgba(104, 159, 56, 0.35);
  /* Colored shadow */
  transition: all 0.3s ease;
  border-radius: 50px;
  /* Modern Pill Shape */
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: #7fb53f;
  background-image: linear-gradient(135deg, #7fb53f 0%, #689f38 100%);
  transform: translateY(-2px);
  /* Tactile lift */
  box-shadow: 0 8px 25px rgba(104, 159, 56, 0.5);
}

.btn-info {
  background-color: #03a9f4;
  /* Keep blue for info/send */
  background-image: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  box-shadow: 0 4px 15px rgba(3, 169, 244, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 169, 244, 0.5);
}

/* --------------NAVIGATION -----------------*/
.secondNav .active_menu {
  display: none;
}

@keyframes slideInStagger {
  0% {
    opacity: 0;
    transform: rotateX(-30deg) translateY(-20px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: rotateX(0) translateY(0) scale(1);
  }
}

@keyframes pulseRed {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

.navbar .navbar-nav .active a {
  background-color: inherit;
  color: #689f38;
  display: block;
}

.secondNav .active {
  border-top: 1px solid #E5E5E5;
}

.navbar .navbar-nav .active1 a {
  background-color: inherit;
}

.navbar .firstNav a,
.navbar-right {
  font-family: 'Roboto Condensed', Helvetica, sans-serif;
  font-size: 100%;
  /* по спеке другое значение */
  font-weight: bold;
  line-height: 20px;
  text-transform: uppercase;
}

/* link special pentru Urgențe: roșu și puțin mai mare */
.nav-emergency {
  color: #e53935 !important;
  font-size: 1.1em;
  font-weight: 700;
}

.nav-emergency:hover,
.nav-emergency:focus {
  color: #c62828 !important;
  text-decoration: none;
}

.navbar .container-fluid {
  display: block;
}

.navbar .nav-center {
  display: flex;
  align-items: center;
  /* centrăm conținutul header-ului pe desktop */
  justify-content: center;
  position: relative;
  /* permite poziționarea absolută a selectorului de locație */
}

.container-fluid .navbar-brand {
  display: inline-block;
  float: none;
  width: auto;
  height: auto;
  max-height: 90px;
  /* puțin mai mare pe desktop */
  /* aliniere la stânga cu ~20px offset */
  margin: 6px 25px 6px 20px;
  /* ~40px de la marginea stângă pe desktop mare */
  padding: 0;
  height: auto;
  /* Fix aspect ratio scaling */
  object-fit: contain;
}

/* Bara orizontală de sus cu numerele de telefon (desktop) */
.top-phone-bar {
  display: none;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 4px 10px;
  /* Reduced padding */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
}

.top-phone-bar-left,
.top-phone-bar-center,
.top-phone-bar-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.top-phone-bar-left {
  justify-content: flex-start;
  gap: 8px;
}

.top-phone-bar-center {
  justify-content: center;
  gap: 15px;
  /* Reduced gap */
}

.top-phone-bar-right {
  justify-content: flex-end;
  padding-right: 40px;
  /* Reduced from 80px to move lang switcher left */
}

.top-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  /* Reduced padding */
  border-radius: 999px;
  font-size: 0.85rem;
  /* Reduced font size */
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.top-phone-link span {
  font-weight: 700;
  margin-right: 0;
  text-transform: uppercase;
  /* Uppercase URGENTE, ORTODONTIE, GENERAL */
}

.top-phone-link .fa-phone {
  margin-right: 6px;
}

/* Culori pline pentru fiecare tip de număr, cu text alb */
.top-phone-bar .header-phone-emergency {
  background: #e53935;
  box-shadow: 0 3px 8px rgba(229, 57, 53, 0.35);
}

.top-phone-bar .header-phone-ortho {
  background: #689f38;
  box-shadow: 0 3px 8px rgba(104, 159, 56, 0.35);
}

.top-phone-bar .header-phone-appointments {
  background: #0288d1;
  box-shadow: 0 3px 8px rgba(2, 136, 209, 0.35);
}

.top-phone-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.top-phone-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Location Switcher Mobile */
.location-switcher.mobile-only {
  display: block !important;
  /* Ensure visible */
}

.location-switcher.mobile-only .location-link {
  font-size: 0.75rem;
  /* Smaller font */
  font-weight: 700;
  color: #333;
  /* Darker for visibility */
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 6px;
  /* Smaller padding */
  border-radius: 4px;
}

/* Language Switcher Mobile */
.language-switcher.mobile-only {
  display: block !important;
  /* Ensure visible */
}

.language-switcher.mobile-only .lang-switch {
  font-size: 0.75rem;
  /* Smaller font */
  font-weight: 700;
  color: #333;
  text-decoration: none;
  margin-left: 5px;
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 6px;
  /* Smaller padding */
  border-radius: 4px;
}

/* Selectorul de cabinet în bara de sus */
.location-switcher-top {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  /* Reduced margin */
}

.location-switcher-top .location-link {
  color: #555;
  font-weight: 600;
  text-decoration: none;
  padding: 0 4px;
}

.location-switcher-top .location-link.active-location {
  color: #689f38;
}

/* Selectorul de limbă în bara de sus */
.language-switcher-top {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  /* Reduced margin */
}

.language-switcher-top .lang-switch {
  color: #555;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  padding: 4px 8px;
  /* Reduced padding */
  border-radius: 999px;
}

.language-switcher-top .active-lang {
  background-color: #689f38;
  color: #ffffff;
}

/* Doar pe desktop: logo-ul este lipit de partea stângă (20px), restul header-ului rămâne centrat */
@media only screen and (min-width: 768px) {

  /* rezervăm spațiu în stânga pentru logo astfel încât meniul + telefoanele să rămână centrate vizual */
  .navbar .nav-center.nav-desktop {
    padding-left: 220px;
  }

  /* meniul principal este ancorat din partea dreaptă, cu 100px spre stânga */
  .nav-desktop .firstNav {
    margin-left: auto;
    margin-right: 100px;
  }

  .header-3d .nav-desktop .navbar-brand {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}

/* selector locație (Brașov / Făgăraș) în header */
.location-switcher {
  font-family: 'Roboto Condensed', Helvetica, sans-serif;
  font-size: 0.95rem;
}

.location-switcher-desktop {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-right: 0;
}

.location-link {
  color: #555;
  text-decoration: none;
  padding: 0 4px;
  font-weight: 600;
}

.location-link:hover {
  color: #689f38;
}

.active-location {
  color: #689f38;
}

.location-separator {
  color: #999;
  padding: 0 2px;
}

.navbar .nav-center .navbar-nav {
  float: none;
  /* suprascrie float-ul Bootstrap */
}

.navbar .nav-center .navbar-nav.firstNav,
.navbar .nav-center .navbar-nav.navbar-right {
  display: flex;
  align-items: center;
}

/* blocul din dreapta (numerele de telefon) are un mic spațiu față de meniu */
.navbar .nav-center .navbar-nav.navbar-right {
  margin-left: 40px;
}

/* pe desktop, selectorul de limbă din dreapta este afișat compact lângă numerele de telefon */
@media only screen and (min-width: 768px) {
  .nav-desktop .navbar-nav.navbar-right .language-switcher-desktop-inline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 12px;
  }
}

.navbar .nav-center .navbar-nav.firstNav>li,
.navbar .nav-center .navbar-nav.navbar-right>li {
  float: none;
}

.navbar-nav.navbar-right li a {
  color: #689f38;
  font-size: 1.2em;
  font-size: 100%;
  /* по спеке другое значение */
  /*font-weight: bold;*/
  line-height: 20px;
}

/* link-urile cu numere de telefon din header, afișate una sub alta – model premium */
.navbar-nav.navbar-right .header-phone-link {
  /* Container */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  margin-left: auto;
  margin-bottom: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #ffffff 0%, #f3f8f0 50%, #e4f0dd 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(152, 214, 79, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

  /* Text */
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.2;
  color: #2c3e50;
}

.navbar-nav.navbar-right .header-phone-link .fa {
  margin-right: 6px;
  font-size: 1em;
}

.navbar-nav.navbar-right .header-phone-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  background: radial-gradient(circle at 0% 0%, #ffffff 0%, #eef7e8 60%, #d8ebcb 100%);
  text-decoration: none;
}

/* Specific Colors (Matching Mobile) */

/* Emergency: Red Pill */
.navbar-nav.navbar-right .header-phone-emergency {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #d32f2f !important;
  border: 1px solid #ef9a9a !important;
  box-shadow: 0 3px 8px rgba(229, 57, 53, 0.15) !important;
  font-weight: 700;
}

/* Ortho: Green tint */
.navbar-nav.navbar-right .header-phone-ortho {
  color: #558b2f !important;
  background: #f1f8e9;
  border: 1px solid #dcedc8 !important;
}

/* Appointments: Blue tint */
.navbar-nav.navbar-right .header-phone-appointments {
  color: #0277bd !important;
  background: #e1f5fe;
  border: 1px solid #b3e5fc !important;
}

/* Hover effects for specific types */
.navbar-nav.navbar-right .header-phone-emergency:hover {
  color: #b71c1c !important;
  box-shadow: 0 5px 12px rgba(229, 57, 53, 0.25) !important;
}

/* evidentiaza numarul de urgente in header - LEGACY OVERRIDE REMOVED/MERGED ABOVE */
/* CSS hack to prevent CLS before Slick initializes */
.carousel:not(.slick-initialized) .slick-slide:not(:first-child) {
  display: none;
}

.carousel:not(.slick-initialized) {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  /* Tries to keep them horizontal if display:none fails, but display:none is safer */
}

/* End CLS fix */

.nav-mobile {
  display: none;
}

.mobile-logo {
  display: inline-block;
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 80%;
  margin: 4px auto;
}

/* Premium Bottom Border for Header (Global) */
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  /* Adjusted to 6px as requested */
  background: linear-gradient(90deg, #9ccc65, #558b2f);
  z-index: 1050;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 767px) {

  /* Keep mobile line thinner */
  .navbar::after {
    height: 4px !important;
  }

  /* --- 1. ENABLE TOP PHONE BAR ON MOBILE --- */
  /* --- 1. TOP PHONE BAR (PHONES ONLY - LINEAR) --- */
  .top-phone-bar {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 6px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  /* Hide Cabinet/Lang from Top Bar (Moved to Header) */
  .top-phone-bar-left,
  .top-phone-bar-right {
    display: none !important;
  }

  /* Show Phones Linear */
  /* Show Phones Linear - Centered & Grouped */
  /* Show Phones Linear - Left Aligned (2px from edge) */
  .top-phone-bar-center {
    display: flex !important;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    /* Changed to center to group items together */
    gap: 8px;
    /* Increased gap between the two items */
    padding-left: 2px;
    /* Very close to left edge as requested */
    padding-right: 2px;
    /* Added small right padding for Programări */
    overflow: hidden;
  }

  /* Responsive Top Phone Link */
  .top-phone-link {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    /* Increased min to 8px as requested */
    font-size: clamp(8px, 2.6vw, 12px);
    padding: 4px 10px;
    /* Increased from 2px 0 to 4px 10px for bigger colored boxes */
    white-space: nowrap;
    letter-spacing: -0.5px;
  }

  .top-phone-link .fa-phone {
    margin-right: 3px;
    font-size: 0.9em;
    /* Scale icon with font */
  }

  /* Responsive Header Controls */
  .location-switcher-mobile a,
  .mobile-lang-switcher a {
    /* Reduced size as requested: 9px - 12px */
    font-size: clamp(9px, 3.2vw, 12px) !important;
    padding: 0 1vw !important;
  }

  .mobile-controls-row {
    display: flex;
    position: relative;
    /* Anchor for absolute children */
    height: 44px;
    /* Maintain height for checks */
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
    padding: 0;
  }

  /* FORCE Left Edge for Cabinet */
  .location-switcher-mobile {
    position: absolute !important;
    left: 2px !important;
    /* Adjusted to 2px gap as requested */
    top: 25px;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* FORCE Right Edge for Language */
  .mobile-lang-switcher {
    position: absolute !important;
    right: 5px !important;
    /* Adjusted to 5px as requested */
    left: auto !important;
    width: auto !important;
    top: 25px;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end;
    /* Hide Text (RO/EN) and Pipe Separator */
    font-size: 0 !important;
    color: transparent !important;
  }

  /* Styling for Flags Only */
  .mobile-lang-switcher a {
    font-size: 0 !important;
    /* Hide text inside links */
    padding: 0 4px !important;
    /* Reduced padding between flags */
    text-decoration: none !important;
    border: none !important;
  }

  /* Flag Visibility & Sizing */
  .mobile-lang-switcher .lang-flag {
    width: 20px !important;
    /* Fixed size for touch targets */
    height: 20px !important;
    border-radius: 50%;
    /* Circle flags */
    opacity: 0.5;
    /* Dim inactive flags */
    transition: all 0.2s ease;
    vertical-align: middle;
  }

  /* Active Flag Highlight */
  .mobile-lang-switcher a.active-lang .lang-flag {
    opacity: 1;
    /* Full visibility */
    box-shadow: 0 0 0 2px #fff, 0 0 4px rgba(0, 0, 0, 0.3);
    /* Pop effect */
    transform: scale(1.1);
  }

  /* Ensure switchers are visible and styled correctly */
  .mobile-lang-switcher,
  .location-switcher-mobile {
    display: flex !important;
    align-items: center;
    /* Removed conflicting position: static reset */
  }

  /* Reset margins */
  .location-switcher-mobile {
    margin: 0;
  }

  /* --- 3. CLEANUP & POSITIONING --- */
  /* Hide old redundant elements if they persist */
  .mobile-top-phones,
  .nav-mobile-phones {
    display: none !important;
  }

  /* --- PREMIUM MENU PILL --- */
  .nav-mobile-row {
    display: flex !important;
    justify-content: center !important;
    /* Centered Menu */
    padding-bottom: 15px;
    width: 100%;
  }

  .mobile-logo {
    width: 280px !important;
    /* Significantly increased size */
    max-width: 90% !important;
    /* Allow it to fill the screen width */
    max-height: none !important;
    /* Remove height limits */
    height: auto;
    margin: 10px auto 15px auto;
    display: block;
  }

  .nav-mobile-left {
    width: auto !important;
    /* Allow pill expansion */
    flex: 0 0 auto;
    z-index: 1050;
  }

  /* Trigger Area */
  .menu-pill-trigger {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* The Pill Container */
  .menu-pill-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    border-radius: 30px;
    /* Pill Shape */
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Soft Premium Shadow */
    transition: all 0.3s ease;
  }

  /* Active Pill Styling (Optional: Change bg when open) */
  .active_menu.active .menu-pill-content {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  /* "MENIU" Text */
  .menu-pill-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #333;
  }

  /* Animated Icon Container */
  .menu-pill-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    /* Space between bars */
    width: 20px;
    height: 14px;
    position: relative;
  }

  /* Individual Bars */
  .menu-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    /* Dark Grey Bars */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* --- ANIMATION STATES --- */
  /* Top Bar -> Rotate 45 */
  .active_menu.active .menu-bar.bar-1 {
    transform: translateY(6px) rotate(45deg);
  }

  /* Middle Bar -> Fade Out */
  .active_menu.active .menu-bar.bar-2 {
    opacity: 0;
    transform: translateX(-5px);
  }

  /* Bottom Bar -> Rotate -45 */
  .active_menu.active .menu-bar.bar-3 {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Navbar Positioning */
  .navbar-fixed-top {
    position: relative !important;
    top: 0 !important;
  }

  /* Premium Bottom Border for Header moved to global scope */

  /* ascundem complet nav-desktop și arătăm doar nav-mobile */
  .nav-desktop {
    display: none !important;
  }

  .nav-mobile {
    display: block !important;
    width: 100%;
    text-align: center;
    position: relative;
  }

  /* Lăsăm browserul să centreze logo-ul și switcherele prin text-align:center pe .nav-mobile */
  .mobile-lang-switcher,
  .location-switcher-mobile,
  .mobile-logo {
    position: relative;
    left: 0;
  }

  .location-switcher-desktop {
    display: none;
  }

  .location-switcher-mobile {
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 2px;
  }

  .secondNav {
    float: none !important;
    display: none;
    /* ... rest of mobile styles ... */
  }


  .secondNav {
    float: none !important;
    display: none;
    /* Hidden by default, toggled by JS */
    padding: 10px 0;
    margin: 0;
    width: 100%;
    text-align: left;
    /* Align left for premium feel with icons */
    background: #ffffff;
    /* Clean white background */
    position: absolute;
    /* Float over content */
    top: 100%;
    /* Below the header */
    left: 0;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Deep premium shadow */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .secondNav li a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 25px;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;

    /* 3D Animation Base State */
    opacity: 0;
    animation: slideInStagger 0.4s ease forwards;
    transform-origin: top center;
  }

  /* Stagger Delays */
  .secondNav li:nth-child(1) a {
    animation-delay: 0.1s;
  }

  .secondNav li:nth-child(2) a {
    animation-delay: 0.15s;
  }

  .secondNav li:nth-child(3) a {
    animation-delay: 0.2s;
  }

  .secondNav li:nth-child(4) a {
    animation-delay: 0.25s;
  }

  .secondNav li:nth-child(5) a {
    animation-delay: 0.3s;
  }

  .secondNav li:nth-child(6) a {
    animation-delay: 0.35s;
  }

  .secondNav li a:hover,
  .secondNav li a:active {
    background: #f9fbf7;
    /* Highlight on touch */
    color: #33691e;
    /* Darker green for hover contrast */
  }

  .secondNav li a i {
    width: 25px;
    /* Fixed width for icon alignment */
    color: #558b2f;
    /* Darker green for icon contrast */
    margin-right: 10px;
    text-align: center;
  }

  .secondNav>li {
    float: none;
    display: block;
  }

  .active_menu {
    display: inline-block;
    color: #555;
    cursor: pointer;
  }

  .secondNav .active li a {
    font-weight: lighter;
  }

  .active {
    font-size: 1.5em;
    text-align: center;
  }

  /* Navbar: Remove default spacing constraints */
  .navbar {
    min-height: 0 !important;
    margin-bottom: 0 !important;
    border: none;
  }

  /* Force body padding removal on mobile */
  body {
    padding-top: 0 !important;
  }

  /* Navbar Positioning: Relative flow on mobile to prevent overlap/gaps */
  .navbar-fixed-top {
    position: relative !important;
    top: 0 !important;
  }

  /* Force body padding removal on mobile */
  body {
    padding-top: 0 !important;
  }

  /* Ensure MAIN container doesn't add space */
  main {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* Reset Bootstrap inner spacing */
  .navbar-header,
  .navbar .container-fluid {
    margin: 0 !important;
    padding-bottom: 0 !important;
  }

  /* carusel: no negative margin needed if header is relative */
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
  }

  /* ensure it stays below header if needed, or above background */
}

.nav-mobile-row {
  display: flex;
  align-items: center;
  justify-content: center !important;
  padding: 6px 15px 0px;
  /* absolutely no bottom padding */
}

.nav-mobile-left {
  flex: 0 0 auto;
}

.nav-mobile-right {
  flex: 0 0 auto;
  text-align: right;
  /* deplasăm blocul cu telefoane aproximativ 100px spre stânga */
  padding-right: 0;
  margin-left: auto;
  margin-right: 150px;
}

.nav-mobile-phones {
  display: block;
}

.nav-mobile-phones .mobile-phone-link {
  display: block;
  padding: 1px 0;
  /* Reduced from 8px to 1px to tighten spacing */
  /* Better touch target */
  font-size: 0.9rem;
  color: #98d64f;
  line-height: 1.3;
  /* asigură alinierea textului numerelor la dreapta în interiorul blocului */
  text-align: right;
}

.nav-mobile-phones .mobile-phone-link .fa-phone {
  margin-right: 4px;
  color: inherit;
}

.nav-mobile-phones .mobile-phone-emergency {
  color: #e53935;
  font-weight: 700;
}

.mobile-logo {
  display: block;
  margin: 4px auto;
  max-height: 80px;
  width: auto;
  max-width: 80%;
}
}

/* Afișăm bara de telefon și coborâm navbarul fix pe desktop */
@media only screen and (min-width: 768px) {
  .top-phone-bar {
    display: flex;
  }

  .navbar.navbar-fixed-top {
    top: 40px;
  }
}

/* Intermediate Desktop Header Responsiveness (768px - 1550px) */
@media only screen and (min-width: 768px) and (max-width: 1550px) {

  /* Compact Logo - Increased height for better presence */
  .container-fluid .navbar-brand {
    max-height: 120px;
    /* significantly larger (was 95px) */
    margin: 8px 25px;
    /* more spacing */
  }

  /* Compact Navigation Links - Increased size */
  .navbar .firstNav a {
    font-size: 1.15rem;
    /* Larger text */
    padding: 15px 12px !important;
    /* Larger click areas */
  }

  /* Compact Phone Section */
  .navbar-nav.navbar-right .header-phone-link {
    max-width: 180px;
    padding: 3px 6px;
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .navbar-nav.navbar-right .header-phone-link .fa {
    font-size: 0.9em;
    margin-right: 4px;
  }

  /* Adjust Location Switcher */
  .location-switcher-desktop {
    font-size: 0.85rem;
  }

  /* Ensure Language Switcher is visible and compact */
  .navbar-nav.navbar-right .language-switcher {
    margin-left: 10px;
  }

  .language-switcher .lang-switch {
    font-size: 0.8rem;
    padding: 0 2px;
  }

  .language-switcher .lang-flag {
    width: 14px;
    height: 10px;
  }
}

/* Header și mai generos pe ecrane foarte mari (>= 1920px) */
@media only screen and (min-width: 1920px) {
  .navbar .container-fluid {
    padding: 50px 0 0 0;
    /* Extreme top padding to push everything down */
  }

  .container-fluid .navbar-brand {
    /* Smaller Responsive Logo: min 70px, target 4vw, max 90px */
    max-height: clamp(70px, 4vw, 90px);
    margin: 0 50px 0 20px;
    vertical-align: bottom;
    /* Anchor to the very bottom */
  }

  .navbar .firstNav a {
    font-size: 1.25rem;
  }

  .navbar-nav.navbar-right .header-phone-link {
    font-size: 1rem;
  }

  .location-switcher-desktop {
    font-size: 1.1rem;
  }

  .language-switcher .lang-switch {
    font-size: 1rem;
  }
}

/* Header mai mare pe desktop-uri late (>= 1200px) */
@media only screen and (min-width: 1200px) and (max-width: 1919px) {
  .navbar .container-fluid {
    padding: 40px 0 0 0;
    /* Heavy top padding */
  }

  .container-fluid .navbar-brand {
    /* Smaller Responsive Logo: min 60px, target 5vw, max 85px */
    max-height: clamp(60px, 5vw, 85px);
    margin: 0 25px 0 20px;
    vertical-align: bottom;
    /* Anchor to bottom */
  }

  .navbar .firstNav a {
    font-size: 1.15rem;
  }
}

.navbar-nav.navbar-right .header-phone-link {
  font-size: 0.85rem;
}

.location-switcher-desktop {
  font-size: 0.95rem;
}

.language-switcher .lang-switch {
  font-size: 0.9rem;
}

/* Extra compact for very small desktops (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {

  /* Fix for overflowing slide titles */
  .jumbotron h1 {
    font-size: 1.8rem !important;
    /* Reduced from 2.2rem */
    max-width: 95% !important;
    line-height: 1.1;
  }

  /* Fix for huge "Urgențe" title/banner */
  .emergency-section h2,
  .h2 {
    font-size: 1.5rem !important;
    margin-top: 10px;
  }

  .container-fluid .navbar-brand {
    max-height: 55px;
    /* și pe aceste ecrane păstrăm ~20px față de marginea stângă */
    margin: 6px 16px 6px 20px;
  }

  .navbar .firstNav a {
    font-size: 0.75rem;
    padding: 6px 4px !important;
  }

  .navbar-nav.navbar-right .header-phone-link {
    width: 160px;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .location-switcher-desktop {
    font-size: 0.75rem;
  }

  .language-switcher .lang-switch {
    font-size: 0.75rem;
  }
}

/* ----------------JUMBOTRON PREMIUM --------------------*/

/* Ken Burns Animation Definition */
/* Premium Drift Animation */
@keyframes premiumDrift {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.04) translate(-10px, -5px);
    /* Very subtle movement */
  }
}

.jumbotron-bike,
.jumbotron-flowers,
.jumbotron-beer,
.jumbotron-duffel {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 70vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  /* Contain the scale animation și păstrează aceeași înălțime la toate slide-urile */
}

/* Imagine sub textul "Implantologie" în carousel */
/* Imagine de fundal full-width pentru carousel */
.hero-implant-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0;
  /* Behind content but possibly above background color */
  border-radius: 0 !important;
  margin: 0 !important;
  /* Ensure it doesn't overflow if parent has border-radius */
}

/* Specific Images with Animation */
.jumbotron-bike {
  background-image: none !important;
  background: transparent;
}

.jumbotron-flowers {
  background-image: none !important;
  background: transparent;
}

.jumbotron-beer {
  background-image: none !important;
  background: transparent;
}

.jumbotron-duffel {
  background-image: none !important;
  background: transparent;
}

/* Mobile specific adjustments (< 480px) */
@media only screen and (max-width: 480px) {
  .jumbotron h1 {
    font-size: 1.1rem !important;
    /* Reduced to 1.1rem */
    max-width: 100% !important;
    padding: 0 5px;
    line-height: 1.1;
    margin-bottom: 5px;
  }

  /* Fix huge red banner on mobile */
  .emergency-section h2,
  .h2 {
    font-size: 1.2rem !important;
  }
}

/* Premium Gradient Overlay DO NOT CHANGE TO OPACITY 0.5 */
.jumbotron-bike:before,
.jumbotron-flowers:before,
.jumbotron-beer:before,
.jumbotron-duffel:before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  /* Elegant gradient */
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.jumbotron {
  position: relative;
  display: block;
  height: 70vh;
  width: 100%;
  padding: 0;
  overflow: hidden;
  /* Ensure animation doesn't spill */
}

/* Flexbox centering for Jumbotron content */
.jumbotron {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  /* Ensure it's relative for absolute children */
  position: relative;
}

.jumbotron h1 {
  /* Use Flexbox flow instead of absolute positioning for content */
  position: relative;
  /* Reset absolute positioning */
  top: auto;
  left: auto;
  transform: none;

  /* Z-index to stay above absolute image */
  z-index: 10;

  /* Premium clean title – fără bandă, doar text + accent */
  background: transparent;
  border: none;
  box-shadow: none;

  /* Typography */
  color: #ffffff;
  font-family: 'Roboto Condensed', sans-serif;
  /* Reduced from 2.8rem for better fit on tablets/small desktops */
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 0;
  border-radius: 4px;
  /* Slight glow */
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  text-align: center;
  /* CENTER ALIGNED TEXT */
  width: 100%;
  /* Take full width to allow centering */
  margin: 0 auto;
  /* Auto margin for horizontal centering */

  /* Animation */
  animation: titleSlideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  /* ALLOW WRAPPING */
  white-space: normal;
  /* Limit width to prevent overflow */
  max-width: 90%;
  line-height: 1.2;
}

/* Make images full cover */
.hero-implant-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1;
  border-radius: 0 !important;
  /* Remove border radius for full bleed */
  margin: 0 !important;
}

/* DESKTOP ONLY: ușor mai mare, dar nu imens */
@media (min-width: 992px) {
  .jumbotron h1 {
    font-size: 2.6rem !important;
    max-width: 800px;
    /* Limit width specifically on large screens */
  }
}

/* Mobile Adjustments for Premium Carousel */
@media only screen and (max-width: 767px) {
  .jumbotron h1 {
    font-size: 2rem;
    padding: 0.3rem 0;
    max-width: 90%;
    /* pe mobile, titlurile sunt perfect centrate pe ecran */
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: normal;
  }
}

/* Accent premium sub titlul din carousel */
.jumbotron h1::after {
  content: "";
  display: block;
  margin-top: 0.4rem;
  width: 60%;
  max-width: 320px;
  height: 3px;
  background: linear-gradient(90deg, #98d64f 0%, #689f38 50%, transparent 100%);
  border-radius: 999px;
}

/* Premium/* Mobile Controls Row (Language + Location) */
.mobile-controls-row {
  position: absolute;
  top: 70px;
  /* Lowered further from 55px */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  /* Added padding to prevent edge cutting */
  z-index: 1050;
  pointer-events: auto;
  /* changed from none to auto to allow clicks */
}

/* Premium Slick dots (pagination) */
.slick-dots {
  position: absolute;
  bottom: 20px;
  /* Raised slightly */
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
  /* High z-index to be visible */
}


/* Desktop: Position below the button, fully visible */
@media only screen and (min-width: 992px) {
  .slick-dots {
    bottom: 60px;
    /* Above the CTA button */
  }
}

/* Tablet: Position between content and button */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .slick-dots {
    bottom: 40px;
    /* Lower to avoid title overlap */
  }
}

/* Mobile: Position well below the title text */
@media only screen and (max-width: 767px) {
  .slick-dots {
    bottom: 35px;
    /* Lower position, clear of titles */
  }
}

.slick-dots li {
  width: 10px;
  height: 10px;
}

.slick-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  text-indent: -9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
  background: #689f38;
  box-shadow: 0 0 0 4px rgba(104, 159, 56, 0.4);
}

/* Premium Slick arrows */
.premium-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
}

.premium-arrow .fa {
  font-size: 18px;
}

.premium-arrow.slick-prev {
  left: 15px;
}

.premium-arrow.slick-next {
  right: 15px;
}

.premium-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media only screen and (max-width: 767px) {
  .premium-arrow {
    width: 32px;
    height: 32px;
  }

  .premium-arrow .fa {
    font-size: 14px;
  }
}

.relative-wrapper {
  position: relative;
  top: -16rem;
  width: 100%;
  margin-bottom: -5rem;
  text-align: center;
  z-index: 20;
  /* Ensure button is above carousel */
}

@media only screen and (max-width: 991px) {
  .relative-wrapper {
    top: -3rem;
    /* Adjusted for 280px height (approx 96px up) */
    margin-bottom: -6rem;
    z-index: 20;
  }
}

.emergency-section {
  margin-top: 0;
  padding: 40px;
  background: linear-gradient(135deg, #fff9fa 0%, #ffebee 100%);
  /* Premium gradient */
  border-left: 6px solid #e53935;
  /* Thicker border */
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.15);
  /* Stronger shadow */
  margin-bottom: 40px;
  transition: transform 0.3s ease;
}

.emergency-section:hover {
  transform: translateY(-5px);
  /* Lift on hover */
}

/* Pulse effect for specific text or icons inside if needed */
.emergency-section .fa-phone {
  color: #e53935;
  animation: pulseRed 2s infinite;
  display: inline-block;
}

.emergency-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.emergency-list li:before {
  content: "•";
  color: #e53935;
  font-weight: bold;
  position: absolute;
  left: 0;
}




@media only screen and (max-width: 991px) {

  /* Fix for zoomed images on mobile: STRICTLY enforce small height */
  .jumbotron,
  .jumbotron-bike,
  .jumbotron-flowers,
  .jumbotron-beer,
  .jumbotron-duffel {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    padding: 0 !important;
    /* Remove padding to ensure image covers 100% of the box */
  }
}

@media only screen and (max-width: 550px) {
  .jumbotron h1 {
    font-size: 2.2rem;
  }
}


/* _________MODAL WINDOW__________*/
/* TODO:  */

.modal-window .container {
  width: 500px;
}

.modal-window h1 {
  font-size: 1rem;
}

.modal-shadow {
  position: fixed;
  /*позволяет сделать темным все окно*/
  overflow: hidden;
  /*позволяет сделать темным все окно*/
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000;
  opacity: 0.5;
  display: none;
  display: none;
  z-index: 9998;
  /* Increased to be above navbar (1030) */
}

.modal-window {
  position: fixed;
  top: 50% !important;
  left: 200px !important;
  /* Start 200px from left as requested */
  transform: translateY(-50%) !important;
  /* Vertically centered only */
  margin-top: 20px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 10px;
  display: none;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@media only screen and (max-width: 767px) {
  .modal-window {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90%;
  }
}

.secondNav .active {
  display: block !important;
  border-top: none;
  /* override legacy border */
}

.close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  font: normal 14px/20px Arial, Helvetica, sans-serif;
  background: #555;
}

@media only screen and (max-width: 700px) {
  .modal-window .container {
    width: 500px;
  }
}

@media only screen and (max-width: 600px) {
  .modal-window .container {
    width: 400px;
  }
}

@media only screen and (max-width: 550px) {
  .modal-window .container {
    width: 400px;
  }
}

@media only screen and (max-width: 500px) {
  .modal-window .container {
    width: 400px;
  }
}

@media only screen and (max-width: 400px) {
  .modal-window .container {
    width: 300px;
  }
}

/* Contact form compact on small screens (< 992px) */
@media only screen and (max-width: 991px) {
  .modal-window {
    max-width: 90vw;
    padding: 18px 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .appointment-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .appointment-subtitle {
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .modal-window .form-group {
    margin-bottom: 8px;
  }

  .modal-window label {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .modal-window .form-control {
    height: 34px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .modal-window textarea.form-control {
    height: auto;
    min-height: 70px;
    font-size: 0.9rem;
  }

  .modal-window .btn-info {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.9rem;
    margin-top: 8px;
  }
}

/* Formular contact pe desktop - comportament de MODAL (Popup) */
@media only screen and (min-width: 992px) {

  /* Butonul rămâne vizibil */
  .relative-wrapper {
    display: block;
    margin-top: -80px;
    /* Pull it up into the slider area slightly */
    z-index: 20;
    position: relative;
  }

  /* Modalul rămâne ascuns (popup) și pe desktop, nu inline */
  .modal-window {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: none;
    /* Hidden by default */
    background: #ffffff !important;
    /* Force white background */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 600px;
    padding: 30px;
  }

  /* Shadow overlay enabled on desktop */
  .modal-shadow {
    display: none;
    /* Hidden by default, toggled by JS */
  }

  /* facem containerul interior să nu fie mai lat decât fereastra */
  .modal-window .container {
    width: 100% !important;
    padding: 0;
  }

  .modal-window .row {
    margin-left: 0;
    margin-right: 0;
  }

  .modal-window .col-md-12,
  .modal-window .col-sm-12,
  .modal-window .col-xs-12,
  .modal-window .col-lg-12 {
    padding-left: 0;
    padding-right: 0;
  }

  .appointment-title {
    margin-top: 0;
    margin-bottom: 30px;
    /* More space */
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    position: relative;
  }

  .appointment-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #689f38;
    margin: 10px auto 0;
    border-radius: 2px;
  }

  .appointment-subtitle {
    margin-top: 0;
    margin-bottom: 2rem;
    color: #000000;
    /* Black as requested */
    font-size: 1.1rem;
    font-weight: 500;
  }

  .prices-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
  }

  .prices-modal-content {
    background: #ffffff;
    max-width: 520px;
    width: 90%;
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .prices-modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .prices-modal-content p {
    margin-bottom: 8px;
  }

  .prices-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 20px;
  }
}

/* Laptop Responsiveness Fix (992px - 1919px) */
@media only screen and (min-width: 992px) and (max-width: 1919px) {
  .modal-window {
    max-width: 320px;
    padding: 15px 20px;
    top: 18%;
    /* Urcăm formularul puțin mai sus */
    left: 4%;
    border-radius: 12px;
  }

  .appointment-title {
    font-size: 1.2rem;
    /* Much smaller title */
    margin-bottom: 10px;
    letter-spacing: 0.5px;
  }

  .appointment-title::after {
    margin-top: 5px;
    /* Tighter underline */
  }

  .appointment-subtitle {
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  /* Extremely Compact form groups */
  .modal-window .form-group {
    margin-bottom: 5px;
    /* Minimum spacing */
  }

  .modal-window label {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  /* Compact inputs */
  .modal-window .form-control {
    height: 30px;
    /* Very thin inputs */
    padding: 4px 10px;
    font-size: 12px;
  }

  .modal-window textarea.form-control {
    height: auto;
    font-size: 12px;
  }

  .modal-window .btn-info {
    padding: 6px 15px;
    font-size: 12px;
    margin-top: 5px;
    width: 100%;
    /* Full width button looks better when compact */
  }
}

/* --------------Оказываемы услуги------------------------*/
.container .h2 {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 2rem;

  color: #98d64f;
  padding: 10px;
  border-bottom: 1px solid #555;

}

.project h3 {
  font-size: 1.3rem;
  font-weight: bold;
}

.project p {
  line-height: 1.4rem;
}

/* Modern Service Cards */
/* Services Section Header (Matches About Us) */
.services-section h2,
.services-section .h2 {
  text-align: center;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  color: #2c3e50 !important;
  margin-bottom: 50px;
  position: relative;
  text-transform: uppercase !important;
  letter-spacing: 2px;
  border-left: none !important;
  /* Reset potential defaults */
  padding-left: 0 !important;
}

.services-section h2::after,
.services-section .h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #689f38;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Modern Service Cards - Premium 3D */
.project {
  margin-bottom: 40px;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  /* padding handled by inner elements */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Deep soft shadow */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  border: none;
  overflow: hidden;
  /* Contain image zoom */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(104, 159, 56, 0.15);
  /* Green glow on lift */
}

/* Image Container */
.service-card .image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 4px solid #689f38;
  /* Accent border */
  margin: 0;
}

.anpc-section a {
  display: inline-block;
  margin: 10px 0;
  /* Add vertical spacing for touch targets */
}

.anpc-section img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.service-card:hover .image-container img {
  transform: scale(1.15);
  /* Smooth zoom */
}

/* Title */
.service-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2c3e50;
  text-align: center;
  margin: 20px 15px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Area (formerly .well) */
.service-card .well {
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 15px 25px 25px;
  flex-grow: 1;
  /* Fill height */
  margin-bottom: 0;
}

/* Sub-headings */
.service-card strong {
  display: block;
  font-size: 1rem;
  color: #689f38;
  margin-top: 15px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 5px;
}

/* Lists */
.service-card ul {
  padding-left: 0;
  list-style: none;
}

.service-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}

.service-card ul li::before {
  content: "\f00c";
  /* check icon */
  font-family: FontAwesome;
  color: #98d64f;
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 0.8rem;
}

.featured-project h2 {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 2rem;

  color: #98d64f;
  padding: 10px;
  border-bottom: 1px solid #555;
}

#about_us {
  margin-bottom: 2.5rem;
}

#contacts {
  margin-bottom: 2rem;
}

.image-container {
  height: 220px;
  /* Fixed height to align all service boxes */
  width: 100%;
  margin-top: 0;
  /* Removed top margin as card has padding */
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-project p {
  line-height: 1.4rem;
}

.featured-project .categories ul {
  padding-left: 0;
}

.featured-project .categories h3 {
  color: #98d64f;
}

.featured-project .categories ul li {
  line-height: 1.4rem;
  color: rgba(0, 0, 0, 0.7);
  list-style-type: none;
}

.featured-project h3 {
  font-size: 1.3rem;
  font-weight: bold;
}

/* --------- Emergency section (Urgențe Brașov) --------- */
/* --------- Emergency section (Urgențe Brașov) --------- */
@keyframes pulseRed {
  0% {
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.2);
  }

  50% {
    box-shadow: 0 15px 40px rgba(229, 57, 53, 0.5);
  }

  100% {
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.2);
  }
}

.emergency-section {
  background: #ffffff;
  padding: 50px 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid #ffcdd2;

  /* 3D Model Effect */
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.3s ease;
  animation: pulseRed 3s infinite;
  /* Living 3D Pulse */
}

/* Hover interaction */
.emergency-section:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.02);
  z-index: 5;
}

/* Header with 3D Ribbon look */
.emergency-section .h2 {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  display: inline-block;
  margin-top: -20px;
  /* Pull up */
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(198, 40, 40, 0.4);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  /* Centering trick for block inside block */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.emergency-section .h2::after {
  content: none;
  /* remove old line */
}

/* 3D Watermark Icon */
.emergency-section::after {
  content: "\f0f9";
  /* Ambulance icon */
  font-family: FontAwesome;
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 18rem;
  background: -webkit-linear-gradient(#ffebee, #ffcdd2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
  z-index: 0;
  transform: rotate(-20deg) translateZ(-50px);
  /* Push back in 3D */
  pointer-events: none;
}

.emergency-section .container {
  position: relative;
  z-index: 2;
}

.emergency-section .emergency-list {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #ffebee;
  margin-bottom: 25px;
}

.emergency-section .emergency-list li {
  font-size: 1.2rem;
  font-weight: 600;
  color: #d32f2f;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.emergency-section .emergency-list li::before {
  content: "\f058";
  /* Solid Check Circle */
  font-family: FontAwesome;
  color: #e53935;
  font-size: 1.4rem;
  margin-right: 15px;
  position: static;
  /* Reset absolute */
}

/* MAMMOTH 3D BUTTON */
.emergency-section a[href^="tel:"] {
  display: table;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
  padding: 15px 40px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emergency-section a[href^="tel:"]:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.emergency-section a[href^="tel:"] .fa {
  margin-right: 15px;
}

/* Mobile Adjustments */
@media only screen and (max-width: 767px) {
  .emergency-section {
    padding: 30px 20px;
    transform: none !important;
    /* Disable 3D tilt on mobile for space */
  }

  .emergency-section .h2 {
    font-size: 1.5rem;
    width: 100%;
    padding: 12px;
  }

  .emergency-section a[href^="tel:"] {
    font-size: 1.4rem;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }
}

/* carduri pentru doctori în secțiunea „Despre noi” */
/* carduri pentru doctori în secțiunea „Despre noi” */
.doctor-card {
  background-color: #ffffff;
  /* White bg for premium feel */
  border-radius: 12px;
  /* More rounded */
  padding: 30px;
  /* More breathing room */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Soft deep shadow */
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-left: 5px solid #689f38;
  /* Brand accent */

  /* 3D Interaction Properties */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: perspective(1000px) rotateX(0deg) translateZ(0);
}

.doctor-card:hover {
  transform: perspective(1000px) rotateX(2deg) translateY(-10px);
  /* 3D Lift effect */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  /* Deeper shadow on hover */
}

.doctor-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #2c3e50;
  /* Darker heading */
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  text-align: center;
}

/* Icon decoration for doctor title */
.doctor-card h3:before {
  content: "\f0f0";
  /* FontAwesome 'user-md' icon */
  font-family: FontAwesome;
  margin-right: 10px;
  color: #689f38;
}

.doctor-card p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  /* Improved readability */
  color: #555;
}

/* Placeholder for Doctor Photo */
.doctor-photo-placeholder {
  width: 100px;
  height: 100px;
  background-color: #f0f0f0;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.doctor-photo-placeholder:after {
  content: "\f007";
  /* FontAwesome user */
  font-family: FontAwesome;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: #ccc;
}


/* About Us Section Header */
#about_us h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 50px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#about_us h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #689f38;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Premium Doctor Cards */
.doctor-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  /* Allow photo to pop out */
  border: 1px solid rgba(255, 255, 255, 0.8);

  /* 3D Properties */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.doctor-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(104, 159, 56, 0.2);
  /* Green glow */
}

/* CSS for Full Carousel Images */
.jumbotron.slick-slide {
  position: relative;
  overflow: hidden;
  /* Ensure image doesn't spill */
}

.jumbotron.slick-slide .hero-implant-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  /* Remove 600px limit */
  filter: brightness(0.6);
  /* Darken for text readability */
  min-width: 100% !important;
  min-height: 100% !important;
  display: block !important;
}

/* Ensure text is above image */
.jumbotron.slick-slide .container-fluid {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Photo Placeholder - Pop Out Effect */
.doctor-photo-placeholder {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 50%;
  margin: -60px auto 25px auto;
  /* Pull up to break top edge */
  border: 4px solid #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-card:hover .doctor-photo-placeholder {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: #f1f8e9;
}

.doctor-photo-placeholder:after {
  content: "\f0f0";
  /* Doctor Icon */
  font-family: FontAwesome;
  font-size: 45px;
  color: #9e9e9e;
  position: static;
  transform: none;
}

/* Typography */
.doctor-card h3 {
  margin-top: 10px;
  margin-bottom: 20px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #333;
  text-align: center;
  line-height: 1.4;
  border: none;
  padding: 0;
}

/* Remove old icon before h3 */
.doctor-card h3:before {
  content: none;
}

.doctor-bio {
  text-align: center;
}

.doctor-card p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #666;
}

/* Logic for text truncation */
.doctor-bio {
  overflow: hidden;
  transition: max-height 0.4s ease;
  max-height: 1000px;
  position: relative;
}

.doctor-bio.collapsed {
  max-height: 110px;
}

/* Fade effect for collapsed text */
.doctor-bio.collapsed:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

.doctor-card .see-more-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #689f38;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
  padding: 5px 10px;
  z-index: 2;
}

@media only screen and (max-width: 767px) {
  .doctor-card {
    margin-top: 50px;
    /* More space for popping photo */
  }
}


/* ----------------Contact 3D Section---------------- */
.contact-card-3d-wrapper {
  perspective: 1000px;
  width: 100%;
  display: block;
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  /* Glassmorphism base */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 30px 40px;
  width: 100%;
  height: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  /* Space from map */

  /* 3D Transform Properties */
  transform-style: preserve-3d;
  transform: rotateX(5deg);
  /* Inclinatie pe lat (Landscape tilt) */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-card:hover {
  transform: rotateX(0deg) scale(1.01);
  /* Flatten and zoom on hover */
  box-shadow: 0 25px 50px rgba(104, 159, 56, 0.2);
  /* Green glow */
}

/* Floating animation - Adjusted for horizontal card */
@keyframes floatCard {

  0%,
  100% {
    transform: rotateX(5deg) translateY(0);
  }

  50% {
    transform: rotateX(5deg) translateY(-5px);
  }
}

.contact-card {
  animation: floatCard 6s ease-in-out infinite;
}

.contact-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 30px;
  color: #689f38;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  display: block;
  width: 100%;
}

.contact-card h3:after {
  content: none;
}

/* Grid Layout for Contact Items */
.contact-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  /* Handled by gap */
  flex: 1 1 250px;
  /* Responsive grid width */
  min-width: 250px;

  /* Stagger animation setup */
  opacity: 0;
  transform: translateY(20px);
  /* Coming from bottom for wide card */
  animation: slideInUp 0.5s forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-item:nth-child(2) {
  animation-delay: 0.15s;
}

.contact-item:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-item:nth-child(4) {
  animation-delay: 0.45s;
}

.contact-item:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, #689f38 0%, #98d64f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-right: 15px;
  box-shadow: 0 4px 10px rgba(104, 159, 56, 0.3);
  transition: transform 0.3s ease;
}

/* Red Icon for Emergency */
.contact-icon.icon-red {
  background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-text {
  flex: 1;
}

.contact-text p,
.contact-text a {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2px;
  line-height: 1.4;
  font-weight: 500;
}

.contact-text a {
  color: #2c3e50;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  margin-top: 2px;
  transition: color 0.3s;
}

.contact-text a.email-link {
  color: #689f38;
  /* User requested green email link */
  font-size: 1.1rem;
}

.contact-text a.phone-emergency {
  color: #e53935;
  /* Red for emergency phone */
}

.contact-text a:hover {
  text-decoration: underline;
}

.contact-text h4 {
  font-size: 1.05rem;
  color: #888;
  text-transform: uppercase;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.contact-label {
  font-size: 0.85rem !important;
  color: #888 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0 !important;
}


/* Mobile Styles */
@media only screen and (max-width: 991px) {
  .contact-card-3d-wrapper {
    perspective: none;
    display: block;
    margin-top: 20px;
  }

  .contact-card {
    transform: none !important;
    animation: none !important;
    min-height: auto;
    padding: 25px 20px;
    margin-bottom: 30px;
    /* Ensure space at bottom */
  }

  .contact-card:hover {
    transform: translateY(-5px) !important;
  }

  .contact-item {
    margin-bottom: 15px;
  }

  .contact-card h3 {
    margin-bottom: 20px;
  }
}

/* Map iframe responsiveness */
.map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(2deg);
  transition: transform 0.5s ease;
  height: 100%;
}

.map:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.map iframe {
  width: 100%;
  max-width: 100%;
  display: block;
  /* Removes bottom space */
  height: 100%;
  min-height: 400px;
  /* Match card height */
}

@media only screen and (min-width: 768px) {

  #about_us .col-sm-6,
  #about_us .col-md-4 {
    margin-bottom: 1.5rem;
  }

  #contacts .categories {
    display: flex;
    align-items: center;
  }

  #contacts .contact-card {
    width: 100%;
  }
}

@media only screen and (min-width: 400px) and (max-width: 600px) {
  .map iframe {
    width: 100%;
    height: 300px;
  }
}

@media only screen and (max-width: 991px) {
  .map {
    transform: none !important;
    margin-bottom: 20px;
    height: 300px;
  }
}

/* Footer Modernization */
.panel-footer {
  background-color: #2c3e50;
  /* Dark premium footer */
  color: #ecf0f1;
  border-top: none;
  padding: 40px 20px;
  text-align: center;
  font-size: 1rem;
}

.panel-footer a {
  color: #98d64f;
  /* Brand green links */
  margin: 0 10px;
  transition: opacity 0.3s ease;
}

.panel-footer a:hover {
  opacity: 0.8;
  text-decoration: none;
}


/* ---------- floating phone (mobile & desktop) ---------- */
.floating-phone,
.floating-phone-fagaras {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 50px !important;
  /* Move up to make room for Back-to-Top */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #98d64f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.floating-phone:hover,
.floating-phone-fagaras:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.floating-phone .fa {
  font-size: 24px;
}

/* ---------- services equal height + see more ---------- */
.services-section .project .well {
  position: relative;
}

.services-section .service-content {
  transition: max-height 0.3s ease;
}

.services-section .service-content.collapsed {
  max-height: 180px;
  /* mai puțin text vizibil, butonul apare mai sus */
  overflow: hidden;
}

.services-section .see-more-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 4px;
  border: none;
  background-color: #98d64f;
  color: #fff;
  cursor: pointer;
}

.services-section .see-more-btn:hover {
  background-color: #7fb53f;
}

/* ---------- form status message ---------- */
.form-status {
  margin-top: 10px;
  font-size: 0.9rem;
}

.form-status.success {
  color: #3c763d;
}

.form-status.error {
  color: #a94442;
}

/* ---------- phone input with prefix ---------- */
.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-input-group .phone-flag {
  display: inline-block;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-indent: -9999px;
  /* ascunde textul, păstrat doar ca fallback pentru accesibilitate */
}

.phone-input-group .phone-prefix {
  max-width: 120px;
  flex: 0 0 120px;
}

.phone-input-group .phone-local {
  flex: 1 1 auto;
}

@media only screen and (max-width: 480px) {
  .phone-input-group {
    flex-wrap: wrap;
  }

  .phone-input-group .phone-prefix,
  .phone-input-group .phone-custom-prefix,
  .phone-input-group .phone-local {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .phone-input-group .phone-flag {
    margin-bottom: 4px;
  }
}

/* steaguri țări (SVG-uri externe) */
.phone-flag[data-country="RO"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/RO.svg");
}

.phone-flag[data-country="DE"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/DE.svg");
}

.phone-flag[data-country="AT"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/AT.svg");
}

.phone-flag[data-country="GB"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/GB.svg");
}

.phone-flag[data-country="IT"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/IT.svg");
}

.phone-flag[data-country="FR"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/FR.svg");
}

.phone-flag[data-country="ES"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/ES.svg");
}

.phone-flag[data-country="US"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/US.svg");
}

.phone-flag[data-country="UN"] {
  background-image: url("https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/UN.svg");
}

/* =========================================
   HEADER STYLES VARIATIONS
   ========================================= */

/* --- 1. PREMIUM 3D STYLE (Default/Requested) --- */
.header-3d .navbar-default {
  background: rgba(255, 255, 255, 0.70);
  /* High transparency (70%) */
  backdrop-filter: blur(8px);
  /* Blur effect */
  -webkit-backdrop-filter: blur(8px);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 0px rgba(0, 0, 0, 0.02);
  /* Soft deep shadow + crisp line */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Premium Desktop Logo Styling */
.header-3d .navbar-brand {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  /* Soft shadow for depth */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 2px;
  /* Fine-tune alignment */
}

.header-3d .navbar-brand:hover {
  /* Fără mișcare verticală la hover/click – doar accent de umbră */
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}


.header-3d .navbar-nav>li>a {
  position: relative;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

/* 3D Hover Effect for Desktop Links */
.header-3d .nav-desktop .navbar-nav>li>a:not(.nav-emergency) {
  /* Subtle rounded background on hover */
  border-radius: 8px;
  margin: 0 5px;
}

.header-3d .nav-desktop .navbar-nav>li>a:not(.nav-emergency):hover {
  background-color: #f4f8f0;
  transform: translateY(-2px);
  color: #558b2f;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-3d .nav-desktop .navbar-nav>li>a:not(.nav-emergency):active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset;
}

/* Special 3D Button for Emergency Link */
.header-3d .nav-emergency {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f0 100%);
  border: 1px solid #ffcdd2;
  border-radius: 50px;
  padding: 8px 18px !important;
  /* Override bootstrap padding slightly for button look */
  margin-top: 10px;
  /* Adjust alignment since we added padding */
  box-shadow: 0 2px 5px rgba(229, 57, 53, 0.15);
  transition: all 0.3s ease;
}

/* Re-align margins for the button shape */
.header-3d .nav-desktop .navbar-nav>li.brasov-only {
  margin-top: -10px;
  /* Compensate for button padding margin */
}

.header-3d .nav-emergency:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
  color: #d32f2f !important;
}

.header-3d .nav-emergency:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(229, 57, 53, 0.15) inset;
}

/* Mobile Menu 3D */
/* Mobile Menu 3D Premium */
/* Mobile Menu 3D Premium */
.header-3d .nav-mobile .secondNav {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  border-radius: 0 0 25px 25px !important;
  overflow: hidden;
  padding: 20px !important;
  text-align: center !important;
  /* display: block !important; REMOVED to allow JS toggle */
}

.header-3d .nav-mobile .secondNav li {
  margin-bottom: 8px;
  float: none !important;
  /* Override bootstrap float */
  display: block !important;
  opacity: 0;
  animation: slideDownFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Stagger animation */
.header-3d .nav-mobile .secondNav li:nth-child(1) {
  animation-delay: 0.05s;
}

.header-3d .nav-mobile .secondNav li:nth-child(2) {
  animation-delay: 0.1s;
}

.header-3d .nav-mobile .secondNav li:nth-child(3) {
  animation-delay: 0.15s;
}

.header-3d .nav-mobile .secondNav li:nth-child(4) {
  animation-delay: 0.2s;
}

.header-3d .nav-mobile .secondNav li:nth-child(5) {
  animation-delay: 0.25s;
}

.header-3d .nav-mobile .secondNav li a {
  border-bottom: none !important;
  position: relative;
  display: flex !important;
  /* Force flex for centering */
  align-items: center;
  justify-content: center;
  padding: 15px 20px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  border-radius: 15px !important;
  background: transparent !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
}

.header-3d .nav-mobile .secondNav li a:active,
.header-3d .nav-mobile .secondNav li a:hover {
  background: #f1f8e9 !important;
  color: #689f38 !important;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(104, 159, 56, 0.15);
  padding-left: 20px !important;
  /* Reset any shift */
}

.header-3d .nav-mobile .secondNav li a i {
  margin-right: 12px;
  color: #689f38 !important;
  font-size: 1.2rem;
  float: none !important;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Location Switcher 3D Pill */
.header-3d .location-switcher-desktop {
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  top: 10px;
  /* Adjust slightly */
}

.header-3d .active-location {
  background: white;
  border-radius: 12px;
  padding: 2px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #689f38 !important;
}


/* --- 2. GLASSMORPHISM STYLE (Alternative) --- */
.header-glass .navbar-default {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-glass .navbar-nav>li>a {
  color: #333;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.header-glass .secondNav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- 3. MODERN CLEAN STYLE (Alternative) --- */
.header-clean .navbar-default {
  background: white;
  border-bottom: 1px solid #eee;
  box-shadow: none;
}

.header-clean .active a {
  position: relative;
}

.header-clean .active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #689f38;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.header-clean .active a:hover::after,
.header-clean .active-link::after {
  width: 100%;
}

/* Adjust Desktop Menu Position (Lower) */
@media (min-width: 768px) {
  .nav-desktop .firstNav {
    margin-top: 45px;
  }
}

/* =========================================
   MOBILE PREMIUM 3D STYLES
   ========================================= */

@media only screen and (max-width: 767px) {

  /* --- 1. PREMIUM HAMBURGER BUTTON --- */
  .nav-mobile-left {
    padding-left: 5px;
  }

  /* LEGACY STYLES DISABLED FOR NEW MENU PILL
  .active_menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #689f38 !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(104, 159, 56, 0.1);
  }

  .active_menu i {
    font-size: 24px;
    transition: transform 0.3s ease;
  }

  .active_menu:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) inset;
  }

  .active_menu.open {
    background: #689f38;
    color: #ffffff !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  */

  /* --- 2. PREMIUM MOBILE PHONES --- */
  .nav-mobile-phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Space between phone items */
    align-items: flex-end;
    /* Aliniem butoanele la dreapta */
  }

  .nav-mobile-phones .mobile-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    /* Exact match to desktop */
    border-radius: 999px;
    font-size: 0.9rem;
    /* Exact match to desktop */
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: auto;
    /* Allow content to dictate width like desktop */
    max-width: none;
    min-width: 0;
  }

  .nav-mobile-phones .mobile-phone-link .fa-phone {
    margin-right: 6px;
    font-size: 1.1em;
  }

  /* Specific styles for each phone type - Matching Desktop Top Bar */

  /* Emergency: Red Pill */
  .nav-mobile-phones .mobile-phone-emergency {
    background: #e53935;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.35);
  }

  /* Ortho: Green tint */
  .nav-mobile-phones .mobile-phone-ortho {
    background: #689f38;
    box-shadow: 0 3px 8px rgba(104, 159, 56, 0.35);
  }

  /* Appointments: Blue tint */
  .nav-mobile-phones .mobile-phone-appointments {
    background: #0288d1;
    box-shadow: 0 3px 8px rgba(2, 136, 209, 0.35);
  }

  /* Pressed effects */
  .nav-mobile-phones .mobile-phone-link:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  }

  /* --- 3. PREMIUM MOBILE LOGO --- */
  .mobile-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Maintain existing alignment fix (8px) but reset scale */
    transform: translateX(8px) scale(1);
    /* Ensure it doesn't overflow or break */
    display: inline-block;
    margin-top: 25px;
    /* Move logo down as requested */
  }

  .mobile-logo:active {
    /* Subtle click/press effect */
    transform: translateX(8px) scale(0.95);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  }
}

/* Mobile Menu Icon Only Adjustment */
@media (max-width: 767px) {
  .menu-pill-content.icon-only {
    padding: 10px;
    /* Square/Circular aspect */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Circle shape */
  }

  /* Center the bars */
  .menu-pill-icon {
    margin-left: 0 !important;
    /* Remove previous margin for text */
  }
}

/* Logo și mai mic pe ecrane foarte înguste (ex. 390x824) */
@media only screen and (max-width: 400px) {
  .mobile-logo {
    max-height: 60px;
    max-width: 65%;
    /* micșorăm ușor și scala pentru un aspect mai aerisit */
    transform: translateX(8px) scale(0.9);
  }

  /* pe ecrane foarte înguste micșorăm puțin și butoanele de telefon */
  .nav-mobile-phones .mobile-phone-link {
    font-size: 0.65rem;
    width: 65vw;
    max-width: 200px;
  }
}

/* (mutat mai jos un bloc dedicat 300px–760px pentru a avea prioritate) */

/* Pressed effects */
.nav-mobile-phones .mobile-phone-link:active {
  transform: scale(0.97);
}


/* --- PREMIUM FORM STYLING --- */
.modal-window .form-control {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #f9f9f9;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.modal-window .form-control:focus {
  background: #ffffff;
  border-color: #689f38;
  box-shadow: 0 4px 12px rgba(104, 159, 56, 0.15);
}

.modal-window label {
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.modal-window .sign-in-button,
.modal-window .btn-primary {
  background: linear-gradient(135deg, #689f38 0%, #98d64f 100%);
  border: none;
  border-radius: 50px;
  height: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(104, 159, 56, 0.3);
  width: 100%;
  margin-top: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-window .sign-in-button:hover,
.modal-window .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(104, 159, 56, 0.4);
}

/* ---------------- PREMIUM FOOTER ---------------- */
.footer-premium {
  background-color: #1a252f;
  /* Deep dark blue-grey */
  color: #bdc3c7;
  /* Light grey text */
  padding: 40px 0 20px;
  /* Reduced padding */
  border-top: 5px solid #689f38;
  /* Brand accent top border */
  font-size: 0.95rem;
  margin-top: 0;
}

.footer-col {
  margin-bottom: 25px;
}

/* Mobile Alignment: Center Text */
@media (max-width: 767px) {

  .footer-col,
  .footer-title,
  .footer-text {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
    /* Center the underline */
  }
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: #689f38;
  /* Accent underline */
}

.footer-text {
  line-height: 1.6;
  opacity: 0.9;
}

.footer-text a {
  color: #bdc3c7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-text a:hover {
  color: #98d64f;
}

.footer-text i.fa {
  color: #689f38;
  margin-right: 6px;
  width: 15px;
  text-align: center;
}

/* Footer Bottom Section (Social + Copyright) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 10px;
  padding-top: 20px;
}

/* Social Icons */
.footer-social {
  margin-bottom: 15px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: #689f38;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(104, 159, 56, 0.3);
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 10px;
  line-height: 1.6;
}

/* Desktop Text Alignment */
@media (min-width: 768px) {
  .desktop-text-right {
    text-align: right;
  }

  .footer-block-inline {
    display: inline-block;
    text-align: left;
    /* Keep internal text aligned left */
  }
}

/* ANPC Section Styles */
.anpc-section img {
  max-height: 50px;
  width: auto;
  display: block;
  /* Default Desktop: Stacked */
  margin-bottom: 10px;
}

@media (max-width: 991px) {
  .anpc-section {
    text-align: center;
    margin-top: 20px;
  }

  .anpc-section a {
    display: inline-block;
  }

  .anpc-section img {
    display: inline-block;
    /* Mobile: Side by side */
    max-height: 35px;
    /* Smaller size for mobile */
    margin: 0 10px 10px;
    /* Spacing around */
  }
}

/* Global CTA Button Styling - Smaller Size */
.key-btn {
  background: linear-gradient(135deg, #689f38 0%, #98d64f 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 25px !important;
  /* Standardized reduced size */
  font-size: 1rem !important;
  /* Smaller text */
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(104, 159, 56, 0.3) !important;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none !important;
}

.key-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(104, 159, 56, 0.5) !important;
  filter: brightness(1.05);
  color: #fff !important;
}

/* Mobile Premium CTA Button */
@media (max-width: 767px) {
  .key-btn {
    /* reuse global styles but ensure full width logic if needed, 
       though user asked for 'global smaller'. 
       We'll keep the custom mobile positioning but reduce size overrides */
    width: fit-content;
    /* Fit to text size instead of 90% */
    /* Keep width logic */
    margin: 20px auto 0;
    display: block;
    position: relative;
    overflow: hidden;
    animation: premiumPulse 2s infinite;
    padding: 12px 25px !important;
    /* Enforce smaller padding on mobile too */
    font-size: 1rem !important;
    /* Enforce smaller font */
  }



  .key-btn:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(104, 159, 56, 0.3) !important;
  }

  /* Shine effect */
  .key-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnShine 3s infinite;
  }
}

@keyframes premiumPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(104, 159, 56, 0.4);
  }

  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(104, 159, 56, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(104, 159, 56, 0);
  }
}

@keyframes btnShine {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Mobile Navigation Row - Logic Container */
.nav-mobile-row {
  position: relative;
  /* Container reference */
  width: 100%;
}

/* 
 * LAYOUT CASE: All Mobile Screens (< 767px) 
 * Center everything in one row: Location - Menu - Language 
 */
@media (max-width: 767px) {
  .nav-mobile-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Space between elements */
    margin-top: 10px;
  }

  /* Reset positioning for flex flow */
  .mobile-lang-switcher,
  .location-switcher-mobile {
    position: static;
    margin: 0;
    transform: none;
    width: auto;
  }

  /* Compact Phone Numbers for Mobile */
  .top-phone-link {
    font-size: 0.75rem !important;
    padding: 3px 8px !important;
    height: 32px;
  }

  .top-phone-link span {
    font-size: 0.75rem !important;
  }

  .top-phone-bar {
    padding: 2px 5px !important;
  }
}

/* ... existing code ... */

/* Mobile Language Switcher (Desktop Style Match) - Compact */
@media (max-width: 767px) {
  .mobile-lang-switcher {
    text-align: center;
    margin: 6px auto 2px;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1002;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #555;
    line-height: 1;
  }

  .mobile-lang-switcher a {
    color: #555;
    text-decoration: none;
    margin: 0 2px;
    /* Reduced from 4px to tighten spacing */
    padding: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
  }

  /* ... */

  /* Flags styles - Smaller */
  .mobile-lang-switcher .lang-flag {
    display: inline-block;
    width: 14px;
    /* Smaller flag (was 16) */
    height: 10px;
    /* Smaller flag (was 11) */
    margin-right: 4px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .mobile-lang-switcher .lang-flag-ro {
    background-image: url('https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/RO.svg');
  }

  .mobile-lang-switcher .lang-flag-en {
    background-image: url('https://cdn.jsdelivr.net/npm/country-flag-icons/3x2/GB.svg');
  }
}

@media (min-width: 768px) {
  .mobile-lang-switcher {
    display: none;
  }
}

/* Mobile Location Switcher 3D Pill - Compact */
@media (max-width: 767px) {
  .location-switcher-mobile {
    text-align: center;
    margin: 4px auto 8px;
    /* Tighter margins */
    width: fit-content;
    background: #f5f5f5;
    padding: 3px 6px;
    /* Reduced padding */
    border-radius: 16px;
    /* Slightly tighter radius */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1002;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .location-switcher-mobile a {
    color: #888;
    text-decoration: none;
    margin: 0 2px;
    padding: 2px 10px;
    /* Reduced padding */
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.8rem;
    /* Smaller font (was 0.9) */
    font-weight: 600;
  }

  .location-switcher-mobile a.active-location {
    background: white;
    color: #689f38 !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .location-switcher-mobile .location-separator {
    display: none;
  }
}

/* Între 300px și 760px păstrăm centrate logo-ul și switcherele,
   dar ne asigurăm că blocul de telefoane rămâne aliniat la dreapta
   cu un mic offset față de margine. */
@media only screen and (min-width: 300px) and (max-width: 760px) {
  .nav-mobile {
    text-align: center;
  }

  .mobile-lang-switcher,
  .location-switcher-mobile,
  .mobile-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .nav-mobile-row {
    justify-content: space-between;
  }

  .nav-mobile-right {
    margin-left: auto;
    margin-right: 20px;
    text-align: right;
  }

  .nav-mobile-phones {
    align-items: flex-end;
  }
}

/* Floating Button Logic */
body[data-location='fagaras'] .floating-phone-fagaras {
  display: flex !important;
  animation: floatPulse 2s infinite;
}

body[data-location='brasov'] .floating-phone {
  animation: floatPulseRed 2s infinite;
}

/* Pulse Animations */
@keyframes floatPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(104, 159, 56, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(104, 159, 56, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(104, 159, 56, 0);
  }
}

@keyframes floatPulseRed {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #689f38 0%, #98d64f 100%);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(104, 159, 56, 0.4);
  z-index: 9998;
  /* Below phone (9999) but above content */
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: block;
  /* Managed by JS/Opacity */
  text-decoration: none;
}

#back-to-top:hover {
  background: linear-gradient(135deg, #558b2f 0%, #7cb342 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(104, 159, 56, 0.6);
  color: #fff;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  #back-to-top {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 18px;
  }

  /* Phone positioning is now handled globally */
}

/* Fix pentru imaginile din cardurile de servicii care apar deformate */
.service-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* Fix pentru logo deformat */
.navbar-brand {
  height: auto !important;
  object-fit: contain;
}

/* Accessibility Contrast Fixes */
.location-link.active-location {
  color: #4a7c20 !important;
}

a[href^='mailto'] {
  color: #4a7c20 !important;
}

/* Accessibility: Darker Blue for Contrast ratio > 4.5:1 */
.blue {
  color: #0277bd !important;
  /* Darker than #0288d1 */
}

a.blue:hover {
  color: #01579b !important;
}

h3.blue {
  color: #0277bd !important;
}

/* Accessibility: Footer Text Contrast */
.footer-text {
  line-height: 1.6;
  opacity: 1;
  /* Removed opacity 0.9 for better contrast */
  color: #cfd8dc;
  /* Lighter grey for better contrast on dark bg */
}

.footer-text a {
  color: #eceff1;
  /* Almost white for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

/* Accessibility: Touch Targets */
.slick-dots li {
  margin: 0 5px;
  width: 24px;
  /* Increased from default */
  height: 24px;
}

.slick-dots li button {
  width: 24px;
  height: 24px;
  padding: 0;
}

.slick-dots li button:before {
  font-size: 12px;
  /* Larger dots */
  line-height: 24px;
  width: 24px;
  height: 24px;
  color: #455a64;
  opacity: 0.7;
}

.slick-dots li.slick-active button:before {
  color: #689f38;
  opacity: 1;
}

/* Mobile Top Bar Touch Targets */
@media (max-width: 767px) {

  /* Removed min-height 44px to fix "swollen" look requested by user */
  .top-phone-link {
    min-height: 0 !important;
    height: auto !important;
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    /* Avoid flex stretching height */
    border-radius: 12px;
    /* Tighter radius */
  }
}

.see-more-btn {
  color: #1b5e20;
  /* Darker green for contrast */
  font-weight: 700;
}

/* Ascunde butonul plutitor de urgenta pe desktop */
@media only screen and (min-width: 768px) {

  .floating-phone,
  .floating-phone-fagaras {
    display: none !important;
  }
}


/* Raise Back-to-Top on mobile */
@media only screen and (max-width: 767px) {
  #back-to-top {
    bottom: 40px !important;
  }
}

body {
  overflow-x: hidden;
  /* Prevent horizontal scroll caused by hero elements */
  width: 100%;
}

/* Fix Hero Overflow specifically */
.hero-section {
  overflow: hidden;
  max-width: 100vw;
}

/* Ensure Top Bar stays within viewport */
.top-phone-bar {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  /* Ensure padding is inside width */
  padding: 4px 15px;
  /* Add safe padding */
}

.top-phone-bar-right {
  justify-content: flex-end;
  padding-right: 20px;
  /* Safe distance from edge */
}

/* TABLET SPECIFIC FIXES (768px - 1199px) */
@media only screen and (min-width: 768px) and (max-width: 1199px) {

  /* 1. Logo Scaling - Centered and Larger */
  .header-3d .nav-desktop .navbar-brand {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: block;
    /* Block for centering */
    margin: 25px auto 10px auto !important;
    /* Lowered (25px top) */
    height: 70px !important;
    /* Nice big logo for center layout */
    width: auto !important;
    max-width: 100%;
    float: none;
    /* Remove float */
  }

  /* 2. Top Phone Bar - Scalability */
  .top-phone-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 15px;
    /* Ensure padding helps containment */
  }

  /* Scalable Center Section */
  .top-phone-bar-center {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    width: auto;
  }

  /* Reduce massive buttons */
  .top-phone-link {
    font-size: 0.8rem !important;
    padding: 4px 6px !important;
    white-space: nowrap;
    margin: 2px !important;
  }

  /* Reduce icons inside buttons */
  .top-phone-link span {
    font-size: 0.8rem !important;
  }

  /* Hide separator on tablet if needed or adjust spacing */
  .location-switcher-top {
    margin-right: 5px;
  }

  .top-phone-bar-right {
    padding-right: 0 !important;
    justify-content: center;
    /* Center lang switcher on tablet too if wrapping */
    width: auto !important;
    margin-left: 5px;
  }

  /* 3. Navigation Menu - Centered Below Logo */
  .navbar .nav-center.nav-desktop {
    padding-left: 0 !important;
    text-align: center;
    /* Center align */
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    justify-content: flex-start;
    height: auto;
    /* Auto height to fit content */
    padding-bottom: 10px;
  }

  .nav-desktop .firstNav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 15px !important;
    /* Increased gap below logo (was 5px) */
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-desktop .firstNav>li>a {
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
  }
}