/* Stiluri mobile-first inspirate fidel din bannerul COR ECOMED: verde în degrade, frunze și compoziție verticală. */
:root {
  --green-dark: #203f28;
  --green: #385834;
  --green-mid: #66804b;
  --green-light: #a9c675;
  --leaf: #dce8b8;
  --cream: #f4f5df;
  --paper: #fbfbea;
  --text: #26382a;
  --page-gutter: clamp(12px, 3vw, 48px);
  --page-gradient: linear-gradient(90deg, #dfe9c5 0%, var(--cream) 14%, var(--cream) 86%, #dfe9c5 100%);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page-gradient);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header,
main,
footer {
  width: 100%;
  margin-inline: auto;
  background: var(--cream);
}

.site-header {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 26px 20px 6px;
  color: var(--green-dark);
  background: var(--page-gradient);
  text-align: center;
}

.site-header::before {
  position: absolute;
  z-index: 0;
  top: -52px;
  left: -56px;
  width: 175px;
  height: 145px;
  background: url("public/images/leaf-decoration.png") center / contain no-repeat;
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.82;
  pointer-events: none;
  transform: rotate(-12deg) scale(-1, -1);
}

.site-header > strong {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 5.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.header-ornament {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green-light);
}

.header-ornament::before,
.header-ornament::after {
  width: min(25vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-light));
  content: "";
}

.header-ornament::after {
  background: linear-gradient(90deg, var(--green-light), transparent);
}

.header-ornament span {
  font-size: 1.3rem;
}

.desktop-actions {
  display: none;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 14px var(--page-gutter) 26px;
  text-align: center;
  background:
    url("public/images/leaf-decoration.png") right -115px bottom -48px / 290px no-repeat,
    var(--page-gradient);
  background-blend-mode: multiply, normal;
}

.hero-content,
.hero-portrait {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 auto 14px;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 span,
h1 strong {
  display: block;
}

h1 span {
  font-size: clamp(1.95rem, 8.7vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h1 strong {
  margin-top: 4px;
  font-size: clamp(2.55rem, 11.5vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

h1 span,
h1 strong {
  color: transparent;
  background: linear-gradient(180deg, var(--green-dark) 12%, var(--green) 58%, var(--green-mid));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-portrait {
  width: min(88vw, 450px);
  margin: 0 auto;
}

.hero-portrait::before {
  content: none;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 56%, rgba(0, 0, 0, 0.92) 66%, rgba(0, 0, 0, 0.4) 75%, transparent 82%);
  mask-image: radial-gradient(circle, #000 56%, rgba(0, 0, 0, 0.92) 66%, rgba(0, 0, 0, 0.4) 75%, transparent 82%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% center;
}

.doctor-card {
  position: relative;
  z-index: 2;
  width: min(90%, 400px);
  margin: -48px auto 0;
  padding: 10px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  background: linear-gradient(110deg, var(--green-dark), var(--green));
  box-shadow: 0 9px 22px rgba(32, 63, 40, 0.24);
}

.doctor-card strong,
.doctor-card span {
  display: block;
}

.doctor-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 4.8vw, 1.5rem);
  text-transform: uppercase;
}

.services {
  position: relative;
  overflow: hidden;
  padding: 16px var(--page-gutter) 28px;
  background: var(--page-gradient);
}

.services::before,
.services::after {
  display: none;
  position: absolute;
  z-index: 0;
  width: 320px;
  height: 320px;
  background: url("public/images/leaf-decoration.png") center / contain no-repeat;
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
}

.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 470px;
  margin: 0 auto;
  padding: 4px 6px;
}

.service-card {
  display: grid;
  min-height: 72px;
  margin: 0;
  padding: 10px 0;
  align-items: center;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  border-bottom: 1px solid rgba(56, 88, 52, 0.18);
}

.service-card:last-child {
  border-bottom: 0;
}

.service-card h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 5.2vw, 1.55rem);
  line-height: 1.06;
  text-align: left;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--green-dark), var(--green));
}

.service-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.gallery {
  padding: 8px var(--page-gutter);
  background: var(--page-gradient);
}

.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border-radius: 22px;
  background: var(--green);
}

.gallery img {
  width: 100%;
  height: clamp(220px, 58vw, 400px);
  object-fit: cover;
}

.gallery figure:first-child img {
  object-position: center 46%;
}

.gallery figure:last-child img {
  object-position: center 48%;
}

.gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: fit-content;
  padding: 7px 18px;
  border-radius: 0 14px 0 0;
  color: white;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact {
  position: relative;
  overflow: visible;
  padding: 26px 0 0;
  background: var(--page-gradient);
  text-align: center;
}

.care-message {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 22px 24px;
  align-items: center;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  text-align: center;
}

.care-icon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: var(--green);
}

.care-icon svg {
  width: 90px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.care-message h2 {
  margin: 0 0 7px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.72rem, 7vw, 2.55rem);
  font-style: italic;
  line-height: 1.02;
}

.care-message p {
  max-width: 420px;
  margin: 0;
  font-size: 1rem;
}

.contact-actions {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 158px;
  margin: 13px 0 0;
  padding: 26px 18px 23px;
  gap: 9px;
  color: white;
  background: transparent;
  isolation: isolate;
}

.cta-background {
  position: absolute;
  z-index: 0;
  inset: -14px 0 -14px;
  width: 100%;
  height: calc(100% + 28px);
  pointer-events: none;
}

.contact-phone {
  position: relative;
  z-index: 1;
  display: grid;
  text-decoration: none;
}

.contact-phone small {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-phone strong {
  font-size: clamp(2.5rem, 12.5vw, 4.7rem);
  letter-spacing: 0.035em;
  line-height: 1;
}

.cta-buttons {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 380px);
  margin: 3px auto 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cta-call,
.contact-whatsapp {
  display: flex;
  min-height: 44px;
  padding: 8px 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.cta-call {
  color: var(--green-dark);
  background: var(--paper);
}

.contact-whatsapp {
  color: #073b1c;
  background: #25d366;
}

.cta-call svg,
.contact-whatsapp svg {
  width: 20px;
  fill: currentColor;
}

.medical-note {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 27px 20px 14px;
  color: #526052;
  background: var(--page-gradient);
  font-size: 0.9rem;
  text-align: center;
}

.medical-note a {
  color: var(--green-dark);
  font-weight: 800;
}

footer {
  position: relative;
  overflow: hidden;
  display: grid;
  padding: 20px 18px 82px;
  gap: 6px;
  color: #657064;
  background: var(--page-gradient);
  font-size: 0.94rem;
  text-align: center;
}

footer::before,
footer::after {
  position: absolute;
  z-index: 0;
  bottom: -58px;
  width: 170px;
  height: 170px;
  background: url("public/images/leaf-decoration.png") center / contain no-repeat;
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.52;
  pointer-events: none;
}

footer::before {
  left: -70px;
  transform: rotate(18deg);
}

footer::after {
  right: -72px;
  transform: rotate(150deg);
}

footer > * {
  position: relative;
  z-index: 1;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

footer p {
  margin: 0;
}

.mobile-actions {
  position: fixed;
  z-index: 50;
  right: 10px;
  bottom: 9px;
  left: 10px;
  display: grid;
  max-width: 520px;
  margin-inline: auto;
  padding: 5px;
  grid-template-columns: 1.35fr 0.62fr 0.9fr;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--green-dark);
  box-shadow: 0 10px 32px rgba(32, 63, 40, 0.36);
}

.mobile-actions a {
  display: grid;
  min-height: 48px;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  grid-template-columns: 20px auto;
  gap: 6px;
  border-radius: 999px;
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-actions a svg {
  width: 20px;
  fill: currentColor;
}

.fixed-call {
  color: var(--green-dark) !important;
  background: var(--paper);
}

.fixed-whatsapp {
  color: #073b1c;
  background: #25d366;
}

.fixed-number {
  display: grid;
  padding-left: 11px;
  align-content: center;
  color: white;
  line-height: 1.05;
}

.fixed-number small,
.fixed-number strong {
  display: block;
}

.fixed-number small {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fixed-number strong {
  font-size: 1.08rem;
}

.fixed-whatsapp {
  line-height: 1.05;
}

.fixed-call span,
.fixed-whatsapp span {
  font-size: 0.78rem;
  font-weight: 800;
}

@media (min-width: 700px) {
  .site-header {
    padding-top: 42px;
  }

  .hero {
    padding-top: 24px;
  }

  .service-card {
    grid-template-columns: 64px 1fr;
  }

  .service-icon {
    width: 56px;
    height: 56px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery img {
    height: 390px;
  }

  .contact-actions {
    padding-block: 24px 28px;
  }
}

@media (min-width: 900px) {
  :root {
    --page-gradient: linear-gradient(90deg, #c8dba4 0%, #e4edc8 17%, var(--cream) 32%, var(--cream) 68%, #e4edc8 83%, #c8dba4 100%);
  }

  .site-header::before {
    top: -82px;
    left: -78px;
    width: 270px;
    height: 230px;
  }

  .site-header {
    min-height: 112px;
    padding-top: 27px;
  }

  .site-header > strong {
    font-size: 1.65rem;
  }

  .desktop-actions {
    position: absolute;
    top: 26px;
    right: max(48px, calc((100vw - 1200px) / 2));
    display: flex;
    gap: 9px;
  }

  .desktop-actions a {
    padding: 10px 17px;
    border: 1px solid var(--green);
    border-radius: 999px;
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
  }

  .desktop-actions a:last-child {
    border-color: #25d366;
    color: #073b1c;
    background: #25d366;
  }

  .hero {
    display: grid;
    min-height: 650px;
    padding: 60px max(48px, calc((100vw - 1200px) / 2)) 76px;
    align-items: center;
    background-position: right -165px bottom -75px, center;
    background-size: 430px, auto;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.8fr);
    gap: clamp(50px, 8vw, 130px);
  }

  .hero-content {
    text-align: left;
  }

  h1 {
    margin: 0;
  }

  h1 span {
    font-size: clamp(3rem, 3.8vw, 3.8rem);
    line-height: 1;
  }

  h1 strong {
    margin-top: 12px;
    font-size: clamp(4rem, 5.8vw, 5.8rem);
    line-height: 0.92;
  }

  .hero-portrait {
    width: min(39vw, 510px);
  }

  .doctor-card {
    width: min(90%, 430px);
  }

  .services {
    padding: 68px max(48px, calc((100vw - 1200px) / 2));
  }

  .services::before,
  .services::after {
    display: block;
  }

  .services::before {
    bottom: -170px;
    left: -125px;
    transform: rotate(26deg);
  }

  .services::after {
    top: -175px;
    right: -115px;
    transform: rotate(190deg);
  }

  .service-grid {
    max-width: 1200px;
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card {
    min-height: 185px;
    padding: 24px 30px;
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 16px;
    border-right: 1px solid rgba(56, 88, 52, 0.18);
    border-bottom: 0;
  }

  .service-card:last-child {
    border-right: 0;
  }

  .service-card h3 {
    font-size: 1.55rem;
    text-align: center;
  }

  .service-icon {
    width: 66px;
    height: 66px;
  }

  .service-icon svg {
    width: 37px;
  }

  .gallery {
    padding: 20px max(48px, calc((100vw - 1400px) / 2));
  }

  .gallery-grid {
    gap: 22px;
  }

  .gallery img {
    height: min(36vw, 520px);
  }

  .gallery figcaption {
    padding: 10px 23px;
    font-size: 0.9rem;
  }

  .contact {
    display: grid;
    min-height: 430px;
    padding: 86px max(48px, calc((100vw - 1200px) / 2));
    align-items: center;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(50px, 8vw, 120px);
  }

  .care-message {
    max-width: 520px;
    margin: 0;
    padding: 0;
    grid-template-columns: 110px 1fr;
  }

  .care-icon,
  .care-icon svg {
    width: 105px;
    height: 105px;
  }

  .care-message h2 {
    font-size: 2.25rem;
  }

  .contact-actions {
    width: min(100%, 650px);
    margin: 0;
    border-radius: 24px;
    background: linear-gradient(105deg, var(--green-dark), var(--green) 58%, var(--green-mid));
  }

  .cta-background {
    display: none;
  }

  .contact-phone strong {
    font-size: clamp(3.2rem, 5vw, 4.7rem);
  }

  .medical-note {
    padding: 18px;
  }

  footer {
    min-height: 150px;
    padding: 34px max(48px, calc((100vw - 1200px) / 2));
    align-items: center;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    text-align: left;
  }

  footer::before,
  footer::after {
    bottom: -100px;
    width: 280px;
    height: 280px;
    opacity: 0.62;
  }

  .mobile-actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
