:root {
  --blue: #0ea7d0;
  --blue-dark: #0a3b68;
  --green: #4f8d27;
  --green-dark: #174c2d;
  --leaf: #6aa43a;
  --red: #e4243d;
  --ink: #173d2c;
  --muted: #5f7467;
  --page: #f8fbf3;
  --soft-blue: #e6f7fb;
  --soft-green: #eff7e8;
  --soft-red: #fff0f1;
  --cream: #fffdf6;
  --white: #ffffff;
  --line: rgba(23, 76, 45, 0.14);
  --shadow: 0 22px 58px rgba(23, 76, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(106, 164, 58, 0.16), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--page) 54%, #fffdf6 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.overline {
  margin: 0 0 0.85rem;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.3rem;
  color: var(--green-dark);
  font-size: 5.6rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-weight: 800;
}

.btn-main {
  color: var(--white);
  background: var(--green-dark);
  box-shadow: 0 16px 34px rgba(23, 76, 45, 0.22);
}

.btn-light {
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn-wellness {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 8px 24px rgba(228, 36, 61, 0.25);
  transition: transform 200ms ease;
}

.btn-wellness.floating-top-right {
  position: fixed;
  top: 6rem;
  right: 2rem;
  z-index: 1000;
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(228, 36, 61, 0.35);
}

.btn-wellness:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  color: var(--white);
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  transition: transform 200ms ease;
}

.btn-whatsapp.floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
}

.section-title {
  max-width: 860px;
  margin-bottom: 2.3rem;
}

.section-title h2,
.care-copy h2,
.contact-panel h2 {
  margin-bottom: 0;
  color: var(--green-dark);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.section-title p:not(.overline) {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.treatments-section,
.contact-section {
  padding: 5.4rem 5rem;
}

.care-section {
  padding: 2rem 5rem;
}

.treatments-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 1rem;
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  position: relative;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 300ms ease;
}

.popup-overlay.show .popup-content {
  transform: translateY(0);
}

.popup-content img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  height: auto;
  border-radius: 8px;
  display: block;
}

#close-popup {
  position: absolute;
  top: -44px;
  right: -8px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
}

#close-popup svg {
  width: 32px;
  height: 32px;
}

#close-popup:hover {
  transform: scale(1.1);
}

@media (max-width: 1050px) {
  .treatments-section,
  .care-section,
  .contact-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  h1 {
    font-size: 4.2rem;
  }

  .section-title h2,
  .care-copy h2,
  .contact-panel h2 {
    font-size: 2.65rem;
  }
}

@media (max-width: 900px) {
  .treatments-section,
  .care-section,
  .contact-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-title {
    margin-bottom: 1.9rem;
  }

  .section-title h2,
  .care-copy h2,
  .contact-panel h2 {
    font-size: 2.45rem;
    line-height: 1.08;
  }
}

@media (max-width: 760px) {
  .treatments-section,
  .care-section,
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  h1 {
    max-width: 11ch;
    font-size: 3.05rem;
    line-height: 1;
  }

  .contact-buttons .btn {
    width: 100%;
  }

  .btn-whatsapp.floating {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
  }
  
  .btn-whatsapp.floating span {
    display: none;
  }
  
  .btn-whatsapp.floating svg {
    width: 28px;
    height: 28px;
    margin: 0;
  }

  .btn-wellness.floating-top-right {
    top: 5rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 50%;
  }
  
  .btn-wellness.floating-top-right span {
    display: none;
  }
  
  .btn-wellness.floating-top-right svg {
    width: 28px;
    height: 28px;
    margin: 0;
  }

  .section-title h2,
  .care-copy h2,
  .contact-panel h2 {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .section-title p:not(.overline),
  .care-copy p:not(.overline),
  .contact-note {
    font-size: 1rem;
    line-height: 1.65;
  }

  .popup-overlay {
    padding: 0.75rem;
  }

  .popup-content {
    padding: 0.35rem;
    border-radius: 10px;
  }

  #close-popup {
    top: 0.35rem;
    right: 0.35rem;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  }

  #close-popup svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.45rem;
    max-width: none;
  }

  .section-title h2,
  .care-copy h2,
  .contact-panel h2 {
    font-size: 1.9rem;
  }

  .btn-whatsapp.floating {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .btn-wellness.floating-top-right {
    right: 1rem;
  }
}
