/* ===================== */
/* ===== RESET CSS ===== */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6; /* înălțimea liniei pentru text */
  color: #222; /* culoare text principal */
  overflow-x: hidden; /* previne scroll orizontal */
}

.container {
  width: 90%; /* lățime container */
  max-width: 1200px; /* lățime maximă */
  margin: auto; /* centrare container */
}

/* ===================== */
/* ===== TOPBAR ======== */
/* ===================== */
.topbar {
  background: #0f3c5c; /* fundal albastru închis */
  color: white; /* text alb */
  padding: 8px 0; /* padding vertical */
  font-size: 14px; /* mărime text */
}

.topbar-flex {
  display: flex; /* afișare flex */
  justify-content: space-between; /* spațiere elemente */
}

/* ===================== */
/* ===== HEADER ======== */
/* ===================== */
.header {
  position: sticky; /* header fix la scroll */
  top: 0; 
  background: white;
  z-index: 1000; /* deasupra altor elemente */
  padding: 20px 0;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 70px;
  animation: heartbeat 0.8s ease-in-out infinite; /* animație puls logo */
  transform-origin: center;
  margin-left: 10px;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.15); }
  20%  { transform: scale(1.25); }
  30%  { transform: scale(1.15); }
  40%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ===================== */
/* ===== MENU ========== */
/* ===================== */
.menu {
  list-style: none; /* eliminăm bullet points */
  display: flex; 
  gap: 30px; /* spațiu între link-uri */
}

.menu a {
  text-decoration: none; /* fără underline */
  color: #0f3c5c; /* culoare link */
  font-weight: 500;
}

.menu a:hover {
  color: #c0392b; /* culoare hover */
}

/* ===================== */
/* ===== HERO ========== */
/* ===================== */
.hero {
  background: linear-gradient(rgba(10,30,50,0.75), rgba(10,30,50,0.75)),
              url("img/bannerai.png") center/cover no-repeat; /* imagine + gradient */
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-benefits {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 35px;
  font-size: 16px;
}

/* ===================== */
/* ===== BUTOANE ======= */
/* ===================== */
.btn {
  background: linear-gradient(135deg, #0f3c5c 0%, #1f6fa5 100%);
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-height: 44px;
  box-shadow: 0 10px 25px rgba(15,60,92,0.25);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(15,60,92,0.35);
  background: linear-gradient(135deg, #12486f 0%, #2684c6 100%);
}

/* ===================== */
/* ===== CTA ============ */
/* ===================== */
.cta {
  background: linear-gradient(135deg, #0f3c5c 0%, #12486f 100%);
  color: white;
  padding: 90px 20px;
  text-align: center;
}

.cta h2 {
  font-size: 34px;
  margin-bottom: 35px;
  font-weight: 600;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  margin-top: 10px;
  align-self: center;
}

/* ===================== */
/* ===== SECTIONS ====== */
/* ===================== */
.section {
  padding: 80px 0;
  text-align: center;
}

.section.light {
  background: #f5f7fa;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #0f3c5c;
}

/* ===================== */
/* ===== CARDS ========= */
/* ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 15px;
  color: #0f3c5c;
}

/* ===================== */
/* ===== FOOTER ======== */
/* ===================== */
footer {
  background: #111;
  color: #ccc;
  padding: 40px 0;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.copy {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.7;
}

/* ===================== */
/* ===== CONTACT ======= */
/* ===================== */
.contact-hero {
  padding: 80px 0;
  text-align: center;
}

.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-image-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 85px;
  overflow: hidden;
  border-radius: 20px;
}

.contact-image {
  width: 100%;
  max-width: 85%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 60px;
  box-shadow: 0 10px 20px rgba(15, 60, 150, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info p {
  margin-bottom: 15px;
}

.map {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===================== */
/* ===== ABOUT SECTION === */
/* ===================== */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  justify-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
  font-size: 32px;
  color: #0f3c5c;
  margin-bottom: 10px;
}

.about-content h3 {
  font-size: 18px;
  color: #c0392b;
  margin-bottom: 20px;
  font-weight: 500;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.doctor-photo {
  text-align: center;
  margin-bottom: 20px;
}

.doctor-photo img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
}

/* ===================== */
/* ===== TEAM SECTION === */
/* ===================== */
.team-section {
  background: #f5f7fa;
  padding: 90px 0;
  text-align: center;
}

.team-section h2 {
  font-size: 32px;
  color: #0f3c5c;
  margin-bottom: 25px;
  position: relative;
}

.team-section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #c0392b;
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}

.team-section p {
  max-width: 950px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* ===================== */
/* ===== COOKIE BANNER == */
/* ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f3c5c;
  color: #fff;
  padding: 18px 20px;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.cookie-content a {
  color: #c0392b;
  font-weight: 600;
  text-decoration: none;
}

.cookie-content a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.accept-btn {
  background: #c0392b;
  color: white;
}

.decline-btn {
  background: white;
  color: #0f3c5c;
}

/* ===================== */
/* ===== GENERAL TEXT ==== */
/* ===================== */
h1, h2, h3 {
  word-wrap: break-word;
}

p {
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================== */
/* ===== CONTACT IMAGE ==== */
/* ===================== */
.contact-form {
  height: 350px;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ===================== */
/* ===== MEDIA QUERIES === */
/* ===================== */

/* TABLET / DESKTOP REDUCE */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 20px;
  }
}

/* MOBILE / SMARTPHONE */
@media (max-width: 768px) {
  /* HERO */
  .hero {
    padding: 40px 20px;
  }
  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-benefits {
    flex-direction: row;
    gap: 10px;
  }

  /* MENU */
  .nav-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 30px;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .menu li {
    display: flex;
  }
  .menu a {
    display: block;
    padding: 8px 10px;
  }

  /* TOPBAR */
  .topbar-flex {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }
  .topbar-flex span {
    display: block;
    font-size: 14px;
    margin: 0;
  }
  .topbar-flex a,
  footer a {
    color: white !important;
    text-decoration: none !important;
  }

  /* CARDS */
  .cards {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-grid {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* CTA */
  .cta {
    padding: 60px 20px;
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-content {
    text-align: center;
  }

  /* TEAM */
  .team-section {
    padding: 60px 15px;
  }
  .team-section h2 {
    font-size: 26px;
  }
  .team-section h2::after {
    width: 40px;
  }
  .team-section p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* COOKIE */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    justify-content: center;
  }

  /* CONTACT FORM */
  .contact-form {
    height: 220px;
  }
}

/* CALL BUTTON FIX „SUNĂ ACUM” PE MOBIL */
.call-button {
  display: none !important; /* ascuns desktop */
}

@media only screen and (max-width: 768px) {
  .call-button {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #c0392b;
    color: #fff;
    padding: 15px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
}


/* CONTACT MOBILE REORDER */
@media (max-width: 768px) {

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    order: 1;
  }

  .contact-info {
    order: 3;
  }

  .contact-image-wrapper {
    order: 2;
    margin: 20px 0;
  }

  .contact-image {
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
  }

}

/* Hover efect pentru link WhatsApp */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease; /* animație smooth */
}

.whatsapp-link i {
  color: #25D366;
  font-size: 46px;
  transition: transform 0.3s ease;
}

/* Hover */
.whatsapp-link:hover {
  transform: translateY(-8px); /* ridicare ușoară */
  text-shadow: 0 3px 15px rgba(0,0,0,0.3); /* glow text */
}

.whatsapp-link:hover i {
  transform: scale(1.4); /* iconița crește puțin */
}


/* Dropdown principal */
/* container */
li.dropdown {
  position: relative;
}

/* dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0;
  list-style: none; /* ❗ scoate cercurile */
}

/* show */
li.dropdown:hover .dropdown-menu {
  display: block;
}

/* item */
.dropdown-menu li {
  text-align: center;
}

/* link */
.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  text-align: center;
  color: #0f3c5c;
  text-decoration: none;
}

/* hover */
.dropdown-menu li a:hover {
  background: #f5f7fa;
}

.dropdown-menu {
  left: 50%;
  transform: translateX(-50%);
}

/* CARD DOCTOR */
.card-doctori {
  background: white;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* hover effect */
.card-doctori:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* imagine */
.doctori img {
  width: 160px;       /* 🔥 dimensiune mai mică */
  height: 160px;
  object-fit: cover;
  border-radius: 50%; /* 🔥 rotund */
  margin: 0 auto 15px;
  border: 4px solid #f5f7fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* nume doctor */
.card-doctori p {
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}

/* link */
.card-doctori a {
  text-decoration: none;
  color: #0f3c5c;
  transition: 0.3s;
}

.card-doctori a:hover {
  color: #c0392b;
}

.cards a {
  text-decoration: none; /* scoate underline */
  color: #0f3c5c;        /* păstrează culorile */
  display: block;        /* face TOT cardul clickabil */
}


/* preturi */

.price-table {
    background: white;
    border-radius: 16px;
    
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    margin: 20px auto 0;
    max-width: 950px;
    width: 100%;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 90px 520px 140px;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    column-gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

.table-header {
    background: #0f3c5c;
    color: white;
    font-weight: 700;
    font-size: 17px;
    border-radius: 12px 12px 0 0;
}

.table-header span:nth-child(1),
.table-row span:nth-child(1) {
    text-align: center;
}

.table-header span:nth-child(2),
.table-row span:nth-child(2) {
    text-align: center;
    white-space: nowrap;
}

.table-header span:nth-child(3),
.table-row span:nth-child(3) {
    text-align: right;
}

.table-row {
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 1.5;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row span:nth-child(1) {
    font-weight: 600;
    color: #444;
}

.table-row span:nth-child(3) {
    font-weight: 700;
    color: #0f3c5c;
}

/* preturi mobil */

@media (max-width: 768px) {
    .price-table {
        max-width: 100%;
        border-radius: 12px;
        margin: 15px auto 0;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

    .table-header,
    .table-row {
        grid-template-columns: 60px 1fr 80px;
        max-width: 100%;
        padding: 10px 12px;
        column-gap: 8px;
    }

    .table-header {
        font-size: 14px;
        border-radius: 10px 10px 0 0;
    }

    .table-row {
        font-size: 13px;
        line-height: 1.4;
    }

    .table-header span:nth-child(2),
    .table-row span:nth-child(2) {
        white-space: normal;
        text-align: left;
    }

    .table-header span:nth-child(3),
    .table-row span:nth-child(3) {
        text-align: right;
    }
}