:root {
    --primary-font: 'Poppins', sans-serif;
    --medical-blue: #2c5282;
    --medical-dark: #1a365d;
    --light-red: rgba(92, 1, 1, 0.493);
    --heading-size: clamp(2.5rem, 5vw, 4rem);
    --small-heading-size: clamp(1.2rem, 3vw, 2rem);
    --text-color: #555;
    --bg-color: #f9f9f9;
    --shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px;
}

html, body {
    font-family: var(--primary-font);
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#heroImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.mainHeadingText {
    font-size: var(--heading-size);
    text-transform: uppercase;
    font-weight: 800;
    z-index: 1000;
    position: relative;
}

.mainHeadingText {
    color: white;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.mainHeadingText3,
.mainHeadingText4 {
    font-size: var(--small-heading-size);
    font-weight: 800;
    background-color: #cd6e6e;
    color: white;
    z-index: 10;
    padding: 20px 50px;
    max-width: 1200px;
    margin: 0 auto 60px auto; /* centru și spațiu sus-jos */
    text-align: center;
    text-transform: uppercase;
}

.landingImage {
    margin-left: 30px;
    width: 100%;
    background: url('Imagine1.png') no-repeat center/cover;
}

.secondHeadingLanding {
    width: 50%;
    padding-right: 30px;
}

.secondBlockImage {
    float: right;
    width: 50%;
    display: flex;
    justify-content: end;
}

.thiredBlock {
    display: flex;
    width: 100%;
    margin: auto;
}

.visMisBlock {
    height: 230px;
    width: 50vw;
    background-color: bisque;
    margin: 10px;
    padding: 0 30px;
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.visMisPara {
    line-height: 1.5;
}

.cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { border-color: white; }
    50.1%, 100% { border-color: transparent; }
}

.hero-section,
.hero-section1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 50px;
    max-width: 2000px;
    margin: 0 auto;
}

.text-content,
.text-content2 {
    max-width: 100vh;
    flex: 1;
    min-width: 0;
}

.text-content h1,
.text-content2 h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.text-content p,
.text-content2 p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.image-content,
.image-content1,
.image-content2,
.image-content3 {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
    width: 40vw;
    max-width: 400px;
    flex-shrink: 0;
    margin-left: 50px;
}

.image-content img,
.image-content1 img,
.image-content2 img,
.image-content3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.text {
    max-width: 500px;
    margin-left: 50px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background-color: rgb(83, 0, 0);
}


/* ---------- Services Home ---------- */
.services-home {
  width: 100%;
  background-color: #f6f8f7;
  padding: 80px 20px;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

.services-home-inner {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* ca să fie responsive */
  align-items: flex-start;
}

/* text stanga */
.services-text {
  flex: 1 1 400px;
}

.services-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2b6d42;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.services-text h2 {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #1f3d2b;
}

.services-text p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #2b6d42;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #1f3d2b;
}

/* carduri dreapta */
.services-grid {
  flex: 1 1 500px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 carduri pe rand */
  gap: 20px;
}

.service-card {
  background-color: #fff;
  padding: 25px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1f3d2b;
}

.service-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}


/* responsive */
@media (max-width: 900px) {
  .services-home-inner {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr; /* 1 card pe rand pe mobil */
  }
}

/* Icone simulate */
.icon-check::before { content: "✓"; color: #b85c5c; }
.icon-team::before { content: "🤝"; color: #ff0000; }
.icon-performance::before { content: "📊"; color: #f0ad4e; }
.icon-quality::before { content: "🏅"; color: #d9534f; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 600px) {
  .hero-section1 {
      display: flex;
      flex-direction: column;   /* stivuire verticală */
      align-items: center;
      padding: 15px;
      gap: 20px;
      box-sizing: border-box;
  }

  /* Textul va fi întotdeauna primul */
  .text-content,
  .text-content2 {
      order: 1;
      flex: none;
      width: 100%;
      max-width: 600px;
      text-align: center;
      box-sizing: border-box;
      margin: 0 auto;
  }

  /* Imaginea va fi întotdeauna a doua */
.image-content,
.image-content1,
.image-content2,
.image-content3 {
    order: 2; /* o trimite după text */
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    overflow: hidden;
    margin: 30px auto 0 auto; /* mic spațiu sus, centrare */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-content img,
.image-content1 img,
.image-content2 img,
.image-content3 img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;         /* umple complet cercul */
    object-position: center;   /* centrează imaginea */
    border-radius: 50%;        /* tăiere rotundă completă */
    display: block;
}

  /* Spațiu uniform între secțiuni */
  .hero-section1 + .hero-section1 {
      margin-top: 20px;
  }

  /* Optional: titlu și text centrate */
  .text-content h1,
  .text-content2 h1,
  .text-content p,
  .text-content2 p {
      text-align: center;
      margin-bottom: 10px;
  }

  /* Spațiu uniform între secțiuni */
  .values-container {
      padding: 20px 10px;
  }
  
  /* Valorile, pentru mobile */
  .values-grid {
      display: grid;
      grid-template-columns: 1fr; /* o coloană pe mobil */
      gap: 20px;
      justify-items: center;      /* centru pe coloană */
  }

  .value-item {
      max-width: 300px;           /* lățime uniformă pentru fiecare valoare */
      text-align: center;
  }

    .mainHeadingText,
    .mainHeadingText3 {
        font-size: 40px;
        margin-top: 20px;
    }

    .mainHeadingText4 {
        font-size: 20px;
        height: 400px;
        width: 100%;
    }
    .search-btn{
        display: none;
    }
}

@media (min-width: 2000px) {
    .mainHeadingText,
    .mainHeadingText2,
    .mainHeadingText3 {
        font-size: 200px;
    }

    .mainHeadingText4 {
        font-size: 20px;
        height: 500px;
    }

    .image-content,
    .image-content1,
    .image-content2 {
        width: 30vw;
    }

    .hero-section1 {
        max-width: 1200px;
    }
}
