/*
Theme Name: Vita Clinic
Theme URI: https://example.com/vita-clinic
Author: Vita Clinic
Author URI: https://example.com
Description: A modern, responsive WordPress theme for private clinics, medical centers and family doctors. Ships in English, Spanish and Ukrainian.
Version: 1.5.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: vita-clinic
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, one-column
*/

:root {
  --vita-ink: #173c38;
  --vita-deep: #0d302d;
  --vita-green: #295e57;
  --vita-mint: #dcece6;
  --vita-light: #f1f7f4;
  --vita-coral: #eb735b;
  --vita-cream: #faf8f2;
  --vita-line: #dce6e1;
  --vita-white: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vita-cream);
  color: var(--vita-deep);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 15px 23px 14px;
  overflow: visible;
  clip: auto;
  background: white;
  color: var(--vita-deep);
}

.vita-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(23, 60, 56, 0.12);
}

.header-inner {
  display: flex;
  height: 90px;
  align-items: center;
  justify-content: space-between;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-height: 52px;
}

.vita-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--vita-ink);
  text-decoration: none;
}

.vita-logo-mark {
  position: relative;
  width: 31px;
  height: 31px;
  transform: rotate(45deg);
  border-radius: 10px 10px 10px 2px;
  background: var(--vita-coral);
}

.vita-logo-mark::before,
.vita-logo-mark::after {
  position: absolute;
  border-radius: 2px;
  background: white;
  content: "";
}

.vita-logo-mark::before {
  top: 13px;
  left: 8px;
  width: 15px;
  height: 4px;
}

.vita-logo-mark::after {
  top: 8px;
  left: 13px;
  width: 4px;
  height: 15px;
}

.vita-logo strong {
  display: block;
  font-family: "Prata", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.vita-logo small {
  display: block;
  margin-top: 3px;
  color: #6e817d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.header-navigation {
  margin-left: auto;
}

.header-navigation ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-navigation a {
  position: relative;
  color: #355651;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.header-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--vita-coral);
  content: "";
  transition: transform 0.25s ease;
}

.header-navigation a:hover::after,
.header-navigation .current-menu-item a::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 34px;
}

.header-phone {
  color: var(--vita-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(23, 60, 56, 0.18);
  border-radius: 999px;
}

.lang-switcher a {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--vita-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher a:hover {
  background: var(--vita-mint);
}

.lang-switcher a.is-active {
  background: var(--vita-ink);
  color: #fff;
}

.vita-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 25px;
  border: 0;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vita-button:hover {
  transform: translateY(-2px);
}

.vita-button-dark {
  min-height: 44px;
  background: var(--vita-ink);
  color: white;
}

.vita-button-primary {
  background: var(--vita-coral);
  color: white;
  box-shadow: 0 12px 30px rgba(235, 115, 91, 0.22);
}

.vita-button-primary:hover {
  background: #dd634d;
  box-shadow: 0 16px 35px rgba(235, 115, 91, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--vita-ink);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.vita-hero {
  position: relative;
  min-height: 825px;
  overflow: hidden;
  padding-top: 168px;
  background: linear-gradient(105deg, #edf4f0 0%, #f6f5ee 56%, #e7efeb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-copy {
  z-index: 2;
  padding-bottom: 74px;
}

.vita-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #58726d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.vita-eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--vita-coral);
  content: "";
}

.vita-hero h1,
.section-title,
.about-copy h2,
.cta-copy h2 {
  font-family: "Prata", serif;
  font-weight: 400;
  letter-spacing: -2.5px;
}

.vita-hero h1 {
  max-width: 660px;
  margin: 24px 0 26px;
  font-size: clamp(54px, 6vw, 80px);
  line-height: 1.08;
}

.accent {
  color: var(--vita-coral);
  font-style: italic;
}

.hero-copy > p {
  max-width: 545px;
  color: #607571;
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.vita-text-link {
  border-bottom: 1px solid #81908c;
  color: var(--vita-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  text-decoration: none;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: #73837f;
  font-size: 10px;
}

.hero-trust strong {
  color: #e9a93d;
  font-size: 12px;
  letter-spacing: 2px;
}

.hero-visual {
  position: relative;
  align-self: end;
  height: 657px;
}

.hero-image {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 88%;
  height: 620px;
  overflow: hidden;
  border-radius: 47% 47% 4px 4px;
  background: #cbded5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  z-index: 3;
  top: 80px;
  left: -25px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(31, 67, 61, 0.13);
  backdrop-filter: blur(12px);
}

.hero-card small,
.hero-card strong {
  display: block;
}

.hero-card small {
  color: #71817e;
  font-size: 9px;
}

.hero-card strong {
  margin-top: 2px;
  font-size: 12px;
}

.vita-stats {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 112px;
  margin-top: -112px;
  background: var(--vita-deep);
  color: white;
}

.vita-stats div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.vita-stats strong {
  font-family: "Prata", serif;
  font-size: 27px;
  font-weight: 400;
}

.vita-stats span {
  max-width: 90px;
  color: #adc2bd;
  font-size: 9px;
  line-height: 1.45;
  text-transform: uppercase;
}

.vita-section {
  padding: 120px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 52px;
}

.section-title,
.about-copy h2,
.cta-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(39px, 4vw, 53px);
  line-height: 1.2;
}

.section-heading > p {
  max-width: 390px;
  color: #6f807c;
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--vita-line);
  border-bottom: 1px solid var(--vita-line);
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 34px 28px 30px;
  border-right: 1px solid var(--vita-line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.service-card:first-child {
  border-left: 1px solid var(--vita-line);
}

.service-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  background: var(--vita-ink);
  color: white;
  box-shadow: 0 20px 40px rgba(21, 59, 54, 0.15);
}

.service-icon {
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  border-radius: 50%;
  background: var(--vita-mint);
  color: var(--vita-green);
  font-size: 22px;
}

.service-card h3 {
  margin: 26px 0 12px;
  font-family: "Prata", serif;
  font-size: 22px;
  font-weight: 400;
}

.service-card p {
  color: #7a8a86;
  font-size: 11px;
  line-height: 1.75;
}

.service-more {
  position: absolute;
  bottom: 28px;
  color: var(--vita-green);
  font-size: 10px;
  font-weight: 700;
}

.service-card:hover p,
.service-card:hover .service-more {
  color: #c4d5d1;
}

.about-section {
  padding: 0;
  background: var(--vita-deep);
  color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
}

.about-image {
  position: relative;
  width: calc(100% + (100vw - min(1180px, calc(100vw - 48px))) / 2);
  margin-left: calc((100vw - min(1180px, calc(100vw - 48px))) / -2);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-score {
  position: absolute;
  right: -55px;
  bottom: 75px;
  display: flex;
  width: 177px;
  height: 177px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--vita-deep);
  border-radius: 50%;
  background: var(--vita-coral);
  text-align: center;
}

.about-score strong {
  font-family: "Prata", serif;
  font-size: 33px;
  font-weight: 400;
}

.about-score span {
  width: 105px;
  font-size: 9px;
}

.about-copy {
  align-self: center;
  padding: 80px 20px 80px 100px;
}

.about-copy > p {
  color: #abc1bc;
  font-size: 12px;
  line-height: 1.85;
}

.benefit-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  color: #e7f0ed;
  font-size: 11px;
}

.benefit-list li::before {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 12px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ef9a87;
  content: "✓";
}

.doctors-section {
  background: #f5f3ed;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.doctor-card img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.78);
}

.doctor-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 20px 2px;
  border-bottom: 1px solid var(--vita-line);
}

.doctor-meta h3 {
  margin: 0;
  font-family: "Prata", serif;
  font-size: 20px;
  font-weight: 400;
}

.doctor-meta p,
.doctor-meta span {
  margin: 5px 0 0;
  color: #748680;
  font-size: 10px;
}

.testimonial-section {
  padding: 100px 0;
  background: var(--vita-mint);
  text-align: center;
}

.testimonial-section blockquote {
  max-width: 880px;
  margin: 0 auto 34px;
  font-family: "Prata", serif;
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1.48;
}

.testimonial-section cite {
  color: #728681;
  font-size: 11px;
  font-style: normal;
}

.contact-section {
  background: var(--vita-cream);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  overflow: hidden;
  background: var(--vita-deep);
  color: white;
}

.cta-copy {
  padding: 70px 72px;
}

.cta-copy p {
  max-width: 500px;
  margin: 22px 0 28px;
  color: #abc0bb;
  font-size: 12px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  padding: 50px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-details small,
.contact-details strong,
.contact-details a {
  display: block;
}

.contact-details small {
  color: #88a29c;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-details strong,
.contact-details a {
  color: #e8f0ee;
  font-size: 11px;
  text-decoration: none;
}

.site-footer {
  padding: 65px 0 25px;
  background: #f0eee8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 50px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 11px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #788884;
  font-size: 10px;
  text-decoration: none;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid #d8ddd9;
  color: #8b9895;
  font-size: 9px;
}

/* Developer credit: same size and colour as the other footer-bottom items. */
.site-footer .footer__credit,
.site-footer .footer__credit a {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.site-footer .footer__credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer__credit a:hover {
  color: var(--vita-ink);
}

.vita-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 29, 27, 0.72);
  backdrop-filter: blur(6px);
}

.vita-modal.is-open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 48px;
  background: var(--vita-cream);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.24);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--vita-line);
  border-radius: 50%;
  background: transparent;
  color: var(--vita-ink);
  font-size: 20px;
}

.modal-panel h2 {
  margin: 18px 0 12px;
  font-family: "Prata", serif;
  font-size: 34px;
  font-weight: 400;
}

.modal-panel > p {
  color: #71817e;
  font-size: 12px;
}

.appointment-form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.appointment-form label {
  display: grid;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
}

.appointment-form input,
.appointment-form select {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--vita-line);
  border-radius: 2px;
  outline: none;
  background: white;
  color: var(--vita-ink);
  font-size: 12px;
}

.appointment-form input:focus,
.appointment-form select:focus {
  border-color: var(--vita-green);
}

.form-note {
  margin: 0;
  color: #728681;
  font-size: 11px;
  line-height: 1.5;
}

.form-status {
  margin: 0;
  padding: 12px;
  background: var(--vita-mint);
  color: var(--vita-green);
  font-size: 11px;
  text-align: center;
}

.content-area {
  min-height: 65vh;
  padding: 150px 0 90px;
}

.content-area article {
  max-width: 850px;
  margin: auto;
}

.entry-title {
  font-family: "Prata", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
}

.entry-content {
  color: #4f6661;
}

.entry-content a {
  color: var(--vita-coral);
}

.post-card {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--vita-line);
}

@media (max-width: 950px) {
  .header-phone {
    display: none;
  }

  .hero-grid {
    gap: 20px;
  }

  .about-copy {
    padding-left: 75px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 800px) {
  .vita-container {
    width: min(100% - 32px, 620px);
  }

  .header-inner {
    height: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .header-navigation {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    padding: 20px 24px 28px;
    border-top: 1px solid var(--vita-line);
    background: rgba(250, 248, 242, 0.98);
    box-shadow: 0 18px 35px rgba(22, 57, 53, 0.12);
  }

  .header-navigation.is-open {
    display: block;
  }

  .header-navigation ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .header-navigation a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--vita-line);
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .vita-button {
    display: none;
  }

  .vita-hero {
    min-height: auto;
    padding-top: 125px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    width: 100%;
    padding-bottom: 25px;
  }

  .vita-hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-visual {
    width: 100%;
    height: 510px;
  }

  .hero-image {
    right: 5%;
    width: 90%;
    height: 500px;
  }

  .hero-card {
    left: 0;
  }

  .vita-stats {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .vita-stats div {
    min-height: 92px;
  }

  .vita-section {
    padding: 82px 0;
  }

  .section-heading {
    display: block;
  }

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

  .service-card:nth-child(3) {
    border-left: 1px solid var(--vita-line);
  }

  .about-grid {
    display: flex;
    flex-direction: column;
  }

  .about-image {
    width: calc(100% + 32px);
    height: 480px;
    margin-left: -16px;
  }

  .about-score {
    right: 18px;
    bottom: -55px;
  }

  .about-copy {
    padding: 105px 0 78px;
  }

  .doctor-card img {
    height: 330px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .vita-hero h1 {
    font-size: 43px;
    letter-spacing: -1.5px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    height: 430px;
  }

  .hero-image {
    height: 420px;
  }

  .section-title,
  .about-copy h2,
  .cta-copy h2 {
    font-size: 32px;
    letter-spacing: -1.3px;
  }

  .service-grid,
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
    border-left: 1px solid var(--vita-line);
  }

  .about-image {
    height: 390px;
  }

  .doctor-card img {
    height: 440px;
  }

  .cta-copy,
  .contact-details {
    padding: 42px 28px;
  }

  .contact-panel {
    margin-inline: -16px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .modal-panel {
    padding: 43px 24px 28px;
  }
}

/* ---- Inner pages ---- */
.page-hero {
  padding: 170px 0 70px;
  background: linear-gradient(180deg, #eef5f1 0%, var(--vita-cream) 100%);
}

body.admin-bar .page-hero {
  padding-top: 200px;
}

.page-hero h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  font-family: "Prata", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.12;
}

.page-hero p {
  max-width: 600px;
  margin: 0;
  color: #607571;
  font-size: 15px;
  line-height: 1.8;
}

.breadcrumbs {
  margin-bottom: 26px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #748680;
  font-size: 11px;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 6px;
  color: var(--vita-coral);
  content: "/";
}

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

.breadcrumbs a:hover {
  color: var(--vita-green);
  text-decoration: underline;
}

.breadcrumbs [aria-current] {
  color: var(--vita-ink);
  font-weight: 700;
}

.page-section {
  padding: 70px 0;
}

.page-section.doctors-section {
  background: #f5f3ed;
}

.page-section.values-section {
  background: var(--vita-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.info-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  padding: 32px 30px;
  border: 1px solid var(--vita-line);
  border-radius: 4px;
  background: var(--vita-white);
}

.info-card h3 {
  margin: 22px 0 10px;
  font-family: "Prata", serif;
  font-size: 21px;
  font-weight: 400;
}

.info-card h3:first-child {
  margin-top: 0;
}

.info-card p {
  margin: 0 0 14px;
  color: #6f807c;
  font-size: 13px;
  line-height: 1.75;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card .service-icon + h3 {
  margin-top: 24px;
}

.info-card-alert {
  border-color: var(--vita-coral);
  background: #fff6f3;
}

.info-card-alert p {
  color: var(--vita-deep);
  font-weight: 700;
}

.tag-list,
.check-list {
  display: flex;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tag-list {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--vita-mint);
  color: var(--vita-green);
  font-size: 12px;
  font-weight: 700;
}

.check-list {
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  color: #50645f;
  font-size: 13px;
}

.check-list li::before {
  margin-right: 10px;
  color: var(--vita-coral);
  font-weight: 700;
  content: "✓";
}

.doctor-bio {
  margin: 16px 2px 8px;
  color: #6f807c;
  font-size: 13px;
  line-height: 1.75;
}

.doctor-languages {
  margin: 0 2px;
  color: var(--vita-green);
  font-size: 12px;
}

.section-more {
  margin: 40px 0 0;
  text-align: center;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-page-copy p {
  margin: 22px 0 0;
  color: #607571;
  font-size: 15px;
  line-height: 1.85;
}

.about-page-image img {
  display: block;
  width: 100%;
  height: 440px;
  border-radius: 4px;
  object-fit: cover;
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 44px 0;
  border-top: 1px solid var(--vita-line);
  border-bottom: 1px solid var(--vita-line);
  text-align: center;
}

.page-stats strong {
  display: block;
  font-family: "Prata", serif;
  font-size: 42px;
  font-weight: 400;
}

.page-stats span {
  color: #748680;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.faq-wrap {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--vita-line);
}

.faq-item summary {
  position: relative;
  padding: 24px 40px 24px 0;
  font-family: "Prata", serif;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  color: var(--vita-coral);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  transform: translateY(-50%);
  content: "+";
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 700px;
  margin: 0 0 26px;
  color: #607571;
  font-size: 14px;
  line-height: 1.85;
}

.page-editor-content {
  padding: 40px 0 70px;
}

.page-editor-content .entry-content {
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 950px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid-3 {
    grid-template-columns: 1fr;
  }

  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .page-hero {
    padding-top: 125px;
  }

  body.admin-bar .page-hero {
    padding-top: 125px;
  }

  .page-section {
    padding: 50px 0;
  }
}

@media (max-width: 560px) {
  .info-grid,
  .info-grid-2,
  .info-grid-3 {
    grid-template-columns: 1fr;
  }

  .about-page-image img {
    height: 300px;
  }

  .faq-item summary {
    font-size: 18px;
  }
}

/* ---- Home-page blocks ---- */

/* Scroll reveal: content stays visible without JavaScript. */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  opacity: 1;
  animation: vita-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s) backwards;
}

@keyframes vita-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

.hero-badge {
  position: absolute;
  z-index: 3;
  bottom: 150px;
  left: -10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(31, 67, 61, 0.15);
  backdrop-filter: blur(12px);
  color: var(--vita-ink);
  font-size: 11px;
  font-weight: 700;
}

.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2fb67c;
}

.pulse-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2fb67c;
  animation: vita-pulse 2s ease-out infinite;
  content: "";
}

@keyframes vita-pulse {
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

/* Insurance strip */
.trust-strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--vita-line);
  background: var(--vita-cream);
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.trust-label {
  flex: 0 0 200px;
  margin: 0;
  color: #748680;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.7;
  text-transform: uppercase;
}

.trust-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: vita-marquee 34s linear infinite;
}

.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}

.trust-track li {
  padding-right: 60px;
  color: #9db3ad;
  font-family: "Prata", serif;
  font-size: 23px;
  white-space: nowrap;
}

@keyframes vita-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* How it works */
.steps-section {
  background: var(--vita-cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  background: var(--vita-deep);
  color: #fff;
  font-family: "Prata", serif;
  font-size: 22px;
  box-shadow: 0 0 0 8px var(--vita-cream);
}

.step:last-child .step-num {
  background: var(--vita-coral);
}

.step::after {
  position: absolute;
  top: 33px;
  right: -30px;
  left: 82px;
  border-top: 1px dashed #aac3bb;
  content: "";
}

.step:last-child::after {
  display: none;
}

.step h3 {
  margin: 28px 0 10px;
  font-family: "Prata", serif;
  font-size: 22px;
  font-weight: 400;
}

.step p {
  max-width: 260px;
  margin: 0;
  color: #6f807c;
  font-size: 13px;
  line-height: 1.75;
}

/* Care plans */
.plans-section {
  background: var(--vita-light);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 36px;
  border: 1px solid var(--vita-line);
  border-radius: 6px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  box-shadow: 0 26px 54px rgba(22, 57, 53, 0.13);
  transform: translateY(-6px);
}

.plan-card.is-featured {
  border-color: var(--vita-deep);
  background: var(--vita-deep);
  color: #fff;
  transform: translateY(-14px);
}

.plan-card.is-featured:hover {
  transform: translateY(-20px);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 36px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--vita-coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-name {
  margin: 0;
  font-family: "Prata", serif;
  font-size: 28px;
  font-weight: 400;
}

.plan-desc {
  min-height: 46px;
  margin: 10px 0 22px;
  color: #6f807c;
  font-size: 13px;
  line-height: 1.7;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 26px;
}

.plan-price strong {
  font-family: "Prata", serif;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
}

.plan-price span {
  color: #748680;
  font-size: 12px;
}

.plan-features {
  display: grid;
  flex: 1;
  gap: 13px;
  margin: 0 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--vita-line);
  list-style: none;
}

.plan-features li {
  display: flex;
  gap: 11px;
  font-size: 13px;
}

.plan-features li::before {
  color: var(--vita-coral);
  font-weight: 700;
  content: "✓";
}

.plan-card.is-featured .plan-desc,
.plan-card.is-featured .plan-price span {
  color: #a9c0ba;
}

.plan-card.is-featured .plan-features {
  border-color: rgba(255, 255, 255, 0.16);
}

.plan-card .vita-button {
  width: 100%;
}

.vita-button-outline {
  border: 1px solid var(--vita-ink);
  background: transparent;
  color: var(--vita-ink);
}

.vita-button-outline:hover {
  background: var(--vita-ink);
  color: #fff;
}

/* Reviews */
.reviews-section {
  background: var(--vita-mint);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.review-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 34px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(31, 67, 61, 0.08);
}

.review-stars {
  color: #e9a23b;
  font-size: 16px;
  letter-spacing: 3px;
}

.review-card blockquote {
  flex: 1;
  margin: 20px 0 28px;
  font-family: "Prata", serif;
  font-size: 19px;
  line-height: 1.65;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--vita-deep);
  color: #fff;
  font-weight: 700;
}

.review-author strong,
.review-author small {
  display: block;
}

.review-author strong {
  font-size: 13px;
}

.review-author small {
  color: #748680;
  font-size: 11px;
}

/* Blog */
.blog-section {
  background: var(--vita-cream);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--vita-line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-tile:hover {
  box-shadow: 0 22px 48px rgba(22, 57, 53, 0.12);
  transform: translateY(-5px);
}

.post-tile-media {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--vita-mint), #bcd6cc);
  color: var(--vita-green);
  font-size: 42px;
}

.post-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-tile:hover .post-tile-media img {
  transform: scale(1.05);
}

.post-tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 30px;
}

.post-tile h3 {
  margin: 0 0 12px;
  font-family: "Prata", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}

.post-tile p {
  margin: 0 0 22px;
  color: #6f807c;
  font-size: 13px;
  line-height: 1.75;
}

.post-tile .service-more {
  position: static;
  margin-top: auto;
}

/* Sticky call / book bar on phones */
.mobile-actions {
  display: none;
}

@media (max-width: 950px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 30px;
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .plans-grid,
  .reviews-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.is-featured,
  .plan-card.is-featured:hover {
    transform: none;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .trust-label {
    flex: none;
  }

  .trust-marquee {
    width: 100%;
  }
}

@media (max-width: 800px) {
  body {
    padding-bottom: 76px;
  }

  .mobile-actions {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--vita-line);
    background: rgba(250, 248, 242, 0.96);
    box-shadow: 0 -10px 30px rgba(22, 57, 53, 0.1);
    backdrop-filter: blur(10px);
  }

  .mobile-actions .vita-button {
    min-height: 48px;
    padding: 0 14px;
  }

  .hero-badge {
    bottom: 128px;
    left: 0;
  }

  .reviews-grid {
    display: flex;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .review-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step {
    display: grid;
    grid-template-columns: 66px 1fr;
    column-gap: 22px;
    align-items: start;
  }

  .step-num {
    grid-row: 1 / span 2;
  }

  .step h3 {
    margin: 6px 0 8px;
    font-size: 21px;
  }

  .step::after {
    top: 74px;
    right: auto;
    bottom: -36px;
    left: 33px;
    height: auto;
    border-top: 0;
    border-left: 1px dashed #aac3bb;
  }

  .step:nth-child(2)::after {
    display: block;
  }

  .step:last-child::after {
    display: none;
  }

  .step p {
    max-width: none;
  }

  .plan-card {
    padding: 34px 28px 30px;
  }

  .plan-price strong {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    animation: none;
  }

  .trust-track,
  .pulse-dot::after {
    animation: none;
  }
}

/* ---- Floating contact widget ---- */
.vita-chat {
  position: fixed;
  z-index: 95;
  right: 24px;
  bottom: 24px;
  font-size: 14px;
}

.chat-launcher {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--vita-coral);
  box-shadow: 0 14px 36px rgba(235, 115, 91, 0.45);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chat-launcher:hover {
  background: #dd634d;
  transform: scale(1.06);
}

.chat-launcher::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vita-coral);
  animation: vita-ring 2.6s ease-out infinite;
  content: "";
  z-index: -1;
}

@keyframes vita-ring {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.vita-chat.is-open .chat-launcher::before {
  display: none;
}

.chat-launcher svg {
  grid-area: 1 / 1;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.chat-icon-close,
.vita-chat.is-open .chat-icon-open {
  opacity: 0;
  transform: rotate(-60deg) scale(0.6);
}

.vita-chat.is-open .chat-icon-close {
  opacity: 1;
  transform: none;
}

.chat-teaser {
  position: absolute;
  right: 74px;
  bottom: 12px;
  margin: 0;
  padding: 11px 16px;
  border-radius: 999px 999px 4px 999px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 57, 53, 0.18);
  color: var(--vita-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  animation: vita-rise 0.5s ease backwards;
}

.chat-teaser[hidden] {
  display: none;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 372px;
  max-height: calc(100vh - 130px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--vita-cream);
  box-shadow: 0 30px 80px rgba(13, 48, 45, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.vita-chat.is-open .chat-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 18px 18px 20px;
  background: var(--vita-deep);
  color: #fff;
}

.chat-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--vita-cream);
}

.chat-avatar .vita-logo-mark {
  transform: scale(0.8);
}

.chat-head strong,
.chat-head small {
  display: block;
}

.chat-head strong {
  font-family: "Prata", serif;
  font-size: 18px;
  font-weight: 400;
}

.chat-head small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: #a9c0ba;
  font-size: 11px;
  line-height: 1.4;
}

.chat-head .pulse-dot {
  flex: none;
}

.chat-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-body {
  overflow-y: auto;
  padding: 20px;
}

.chat-bubble {
  display: inline-block;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 67, 61, 0.08);
  font-size: 14px;
}

.chat-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--vita-line);
  border-radius: 8px;
  background: #fff;
  color: var(--vita-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-channel:hover {
  border-color: var(--vita-green);
  box-shadow: 0 8px 20px rgba(31, 67, 61, 0.1);
  transform: translateY(-2px);
}

.chat-channel-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--vita-mint);
  color: var(--vita-green);
}

.chat-channel-icon svg {
  width: 17px;
  height: 17px;
}

.chat-channel-whatsapp .chat-channel-icon {
  background: #25d366;
  color: #fff;
}

.chat-channel-telegram .chat-channel-icon {
  background: #2aabee;
  color: #fff;
}

.chat-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #748680;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chat-divider::before,
.chat-divider::after {
  height: 1px;
  flex: 1;
  background: var(--vita-line);
  content: "";
}

.chat-form {
  display: grid;
  gap: 9px;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--vita-line);
  border-radius: 8px;
  background: #fff;
  color: var(--vita-deep);
  font: inherit;
  font-size: 13px;
}

.chat-form textarea {
  min-height: 84px;
  resize: vertical;
}

.chat-form input:focus,
.chat-form textarea:focus {
  border-color: var(--vita-green);
  outline: 0;
}

.chat-hp {
  position: absolute;
  left: -9999px;
}

.chat-note,
.chat-emergency {
  margin: 0;
  color: #748680;
  font-size: 11px;
  line-height: 1.5;
}

.chat-emergency {
  margin-top: 14px;
  text-align: center;
}

.chat-form .vita-button {
  width: 100%;
  min-height: 46px;
}

.chat-form .vita-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.chat-status {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.chat-status:empty {
  display: none;
}

.chat-status.is-success {
  padding: 10px;
  border-radius: 8px;
  background: var(--vita-mint);
  color: var(--vita-green);
}

.chat-status.is-error {
  padding: 10px;
  border-radius: 8px;
  background: #fde9e4;
  color: #b4432d;
}

@media (max-width: 800px) {
  .vita-chat {
    right: 14px;
    bottom: 84px;
  }

  .chat-launcher {
    width: 56px;
    height: 56px;
  }

  .chat-teaser {
    display: none;
  }

  .chat-panel {
    position: fixed;
    right: 12px;
    bottom: 150px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 190px);
  }
}

@media (max-width: 380px) {
  .chat-channels {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher::before {
    animation: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
