/* Culori de bază */
:root {
  --color-text: #1f2933;
  --color-turq: #11c3d0;
  --color-turq-dark: #0078a0;
  --color-bg-soft: #f5fcfd;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  background: #ffffff;
  color: var(--color-text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  position: relative;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-turq-dark);
}

/* ===================================== */
/* ==== HAMBURGER compatibil iPhone ==== */
/* ===================================== */

.menu-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 3000;
  -webkit-transform: translateZ(0);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  min-height: 4px;
  background-color: #0078a0;
  border-radius: 6px;
  transition: 0.25s ease-out;
  -webkit-transform: translateZ(0);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Meniu floating */
.floating-menu {
  position: absolute;
  top: 65px;
  right: 16px;
  display: none;
  flex-direction: column;
  min-width: 190px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  z-index: 2000;
}

.floating-menu.open {
  display: flex;
}

.floating-menu a {
  text-decoration: none;
  color: var(--color-turq-dark);
  padding: 10px 20px;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  font-weight: 600;
  text-transform: uppercase;
}

.floating-menu a:hover {
  background: #e6f7fb;
  color: var(--color-turq);
}

/* HERO – home */
.hero {
  padding: 40px 0;
  background: linear-gradient(
    90deg,
    #90ee90 0%,
    #ffffff 50%,
    var(--color-turq) 100%
  );
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--color-turq-dark);
}

.hero-text p {
  max-width: 540px;
  color: var(--color-turq-dark);
  margin: 8px auto 16px;
}

/* Buton general */
.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--color-turq);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 120, 160, 0.3);
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-turq-dark);
}

.afla-btn {
  margin-top: 16px;
}

/* Foto HERO */
.hero-photo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-photo {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #90ee90;
  box-shadow: 0 20px 50px rgba(0, 120, 160, 0.25);
  background: #ffffff;
  margin: 0 auto;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Secțiuni generale */
.section {
  padding: 40px 0;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--color-turq-dark);
}

.section p {
  color: #4b5563;
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-turq-dark);
}

/* Contact box */
.contact-box {
  margin-top: 16px;
  padding: 20px;
  background: #e6f7fb;
  border-radius: 16px;
}

.phone-number a {
  color: var(--color-turq-dark);
  font-weight: 600;
  text-decoration: none;
}

.phone-number a:hover {
  text-decoration: underline;
}

.whatsapp-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
}

/* Layout profil & contact */
.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.profile-text h2 {
  color: var(--color-turq-dark);
  margin-bottom: 16px;
}

/* FOOTER cu tap & hover */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 14px 0 18px;
  background: #ffffff;
  font-size: 0.85rem;
  color: #6b7280;
  position: relative;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

/* Textul explicativ */
.footer-disclaimer {
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.45;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border: 1px solid #e5e7eb;
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Hover pe desktop */
.site-footer:hover .footer-disclaimer {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* TAP behaviour for mobile – controlat din JS prin .touch-active */
.site-footer.touch-active .footer-disclaimer {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* ========================= */
/* RESPONSIVE GENERAL LAYOUT */
/* ========================= */

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }

  .hero-text {
    flex: 1;
    padding-right: 24px;
  }

  .hero-photo {
    width: 420px;
    height: 420px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .profile-img {
    flex: 1;
  }

  .profile-text {
    flex: 2;
    padding-left: 30px;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================= */
/*   DOAR MOBILE (index): poză deasupra textului */
/* ============================================= */

@media (max-width: 767px) {
  body.home-one-screen .hero-inner {
    flex-direction: column;
  }

  body.home-one-screen .hero-photo-wrapper {
    order: 0;
  }

  body.home-one-screen .hero-text {
    order: 1;
  }
}

/* ============================================= */
/*        PAGINA RECOMANDĂRI – layout & modale   */
/* ============================================= */

.recom-intro {
  max-width: 800px;
  margin: 0 auto 24px;
}

.recom-intro p + p {
  margin-top: 12px;
}

.recom-cards {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.recom-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

/* Modale */

.recom-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.recom-modal.open {
  display: flex;
  opacity: 1;
}

.recom-modal-dialog {
  background: #ffffff;
  border-radius: 18px;
  max-width: 640px;
  width: calc(100% - 40px);
  padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  transform: translateY(10px);
  transition: transform 0.2s ease-out;
}

.recom-modal.open .recom-modal-dialog {
  transform: translateY(0);
}

.recom-modal-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-turq-dark);
}

.recom-modal-body p + p {
  margin-top: 8px;
  color: #4b5563;
}

.recom-modal-close {
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 16px;
  color: #6b7280;
}

.recom-modal-close:hover {
  color: var(--color-turq-dark);
}

.recom-modal-dialog-wrapper {
  position: relative;
}

.recom-modal.open .recom-modal-dialog {
  max-height: 90vh;
}

.recom-modal-body {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 10px;
  padding-bottom: 16px;
}

.recom-modal-body p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.recom-modal-body ul {
  padding-left: 20px;
  margin-bottom: 1rem;
}

.recom-modal-body li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .recom-modal-dialog {
    padding: 20px;
    width: 95%;
    border-radius: 12px;
  }

  .recom-modal-body {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .recom-modal-title {
    font-size: 1.1rem;
  }
}


/* ========================================================= */
/* === LINK PENTRU „Dr. Crina Miu” — ACEEAȘI CULOARE CA TITLURILE === */
/* ========================================================= */

.contact-link {
  color: var(--color-turq-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}
