:root {
  --emerald: #8a2a90;
  --emerald-dark: #5b1c61;
  --mint: #f2e6f5;
  --rose: #ec3f93;
  --rose-soft: #fde6f2;
  --gold: #c7a15a;
  --ink: #342739;
  --muted: #7a6c7d;
  --line: #eaddea;
  --paper: #fff8fb;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(16, 56, 52, 0.14);
  --radius: 8px;
  --container: min(1160px, calc(100vw - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.65;
}

body[dir="rtl"] {
  text-align: right;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 14px 18px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100% - 36px);
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 46px rgba(22, 61, 58, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 1px solid rgba(138, 42, 144, 0.18);
  box-shadow: 0 8px 18px rgba(91, 28, 97, 0.16);
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Montserrat", "Poppins", sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 0.86rem;
}

.main-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  border-radius: var(--radius);
  color: #2a4441;
}

.main-menu a:hover,
.main-menu a:focus-visible {
  background: var(--mint);
  outline: none;
}

.nav-cta {
  color: var(--white) !important;
  background: var(--emerald);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--emerald-dark) !important;
}

.menu-toggle,
.round-btn {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--emerald-dark);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 94vh;
  padding: 132px max(18px, calc((100vw - 1160px) / 2)) 70px;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(58, 18, 63, 0.78), rgba(138, 42, 144, 0.3) 56%, rgba(70, 24, 72, 0.2)),
    linear-gradient(0deg, rgba(58, 18, 63, 0.48), transparent 44%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd8dc;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.5vw, 3.35rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.hero-actions,
.section-heading,
.blog-tools,
.testimonial-shell {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--emerald);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.25);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn.text {
  min-height: 42px;
  color: var(--emerald);
  border-color: var(--line);
  background: var(--white);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 56px;
  align-items: center;
}

.section-copy p,
.about-content p,
.appointment-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.stats-grid div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.stats-grid strong {
  display: block;
  color: var(--emerald);
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-card,
.service-card,
.training-card,
.blog-card,
.why-grid article,
.topic-grid article,
.testimonial-card,
.appointment-form,
.contact-form,
.admin-panel,
.data-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.profile-card {
  margin: 0;
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.profile-card figcaption {
  padding: 18px;
}

.profile-card span {
  display: block;
  color: var(--muted);
}

.service-band {
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  background: linear-gradient(180deg, rgba(223, 243, 238, 0.72), rgba(251, 248, 244, 0));
}

.cards-grid,
.why-grid,
.topic-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.training-card,
.blog-card,
.data-card {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.training-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 118, 110, 0.32);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--emerald);
  background: var(--mint);
}

.service-card p,
.training-card p,
.blog-card p,
.why-grid p,
.topic-grid p,
.testimonial-card p {
  color: var(--muted);
}

.service-card button,
.training-card button,
.blog-card button {
  position: absolute;
  inset: auto 24px 22px auto;
  border: 0;
  color: var(--emerald);
  background: transparent;
  font-weight: 800;
}

.why {
  padding-top: 30px;
}

.why-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.why-grid article,
.topic-grid article {
  min-height: 190px;
  padding: 22px;
}

.why-grid svg,
.topic-grid svg {
  color: var(--rose);
  margin-bottom: 16px;
}

.about {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.about-image {
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.values-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.values-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.values-list strong {
  color: var(--emerald);
  font-family: "Poppins", sans-serif;
}

.values-list span {
  color: var(--muted);
}

.specialty {
  padding-top: 40px;
}

.topic-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.topic-grid article {
  min-height: 220px;
}

.lactation {
  position: relative;
  width: 100%;
  min-height: 640px;
  display: grid;
  align-items: center;
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  overflow: hidden;
}

.lactation > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lactation::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 248, 244, 0.96), rgba(251, 248, 244, 0.72), rgba(251, 248, 244, 0.2));
}

.lactation-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.check-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.check-list svg {
  color: var(--emerald);
  flex: 0 0 auto;
}

.training-card .meta,
.blog-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
}

.blog-tools {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.blog-tools label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.blog-tools input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filters button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
}

.filters button.active {
  color: var(--white);
  background: var(--emerald);
  border-color: var(--emerald);
}

.blog-card img {
  width: calc(100% + 48px);
  max-width: none;
  height: 180px;
  margin: -24px -24px 20px;
  object-fit: cover;
}

.testimonial-shell {
  justify-content: center;
  gap: 16px;
}

.round-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.testimonial-card {
  width: min(760px, 100%);
  min-height: 260px;
  padding: 34px;
  text-align: center;
}

.stars {
  color: var(--gold);
  font-size: 1.22rem;
  letter-spacing: 0;
}

.testimonial-card blockquote {
  margin: 18px 0;
  font-size: 1.18rem;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

body[dir="rtl"] .faq-item button {
  text-align: right;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-item.open p {
  display: block;
}

.appointment,
.contact {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 40px;
  align-items: start;
}

.appointment-form,
.contact-form,
.admin-panel {
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.notify-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notify-options legend {
  padding: 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.notify-options label,
.privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.notify-options input,
.privacy input {
  width: 18px;
  height: 18px;
  min-height: auto;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--emerald);
  font-weight: 800;
}

.contact-info iframe {
  width: 100%;
  height: 300px;
  margin-top: 22px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-lines {
  display: grid;
  gap: 10px;
}

.contact-lines a,
.contact-lines span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.contact-lines svg {
  color: var(--emerald);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 54px max(18px, calc((100vw - 1160px) / 2));
  color: rgba(255, 255, 255, 0.82);
  background: var(--emerald-dark);
}

.site-footer h3,
.site-footer strong {
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.68);
}

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter input {
  background: rgba(255, 255, 255, 0.96);
}

.rgpd {
  font-size: 0.82rem;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.32);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 48, 46, 0.58);
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.modal-close {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.program-list {
  margin: 18px 0;
  padding-left: 20px;
}

body[dir="rtl"] .program-list {
  padding-right: 20px;
  padding-left: 0;
}

.admin-body {
  padding-top: 112px;
  background: #f5f7f6;
}

.admin-header {
  align-items: center;
}

.admin-main {
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
}

.admin-tabs button.active {
  color: var(--white);
  background: var(--emerald);
  border-color: var(--emerald);
}

.admin-panel {
  box-shadow: none;
}

.admin-grid {
  margin-bottom: 20px;
}

.data-card {
  min-height: 130px;
  padding: 20px;
  box-shadow: none;
}

.data-card strong {
  display: block;
  color: var(--emerald);
  font-size: 1.8rem;
  line-height: 1.1;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-form .wide {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  body[dir="rtl"] .menu-toggle {
    margin-right: auto;
    margin-left: 0;
  }

  .main-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(360px, calc(100vw - 36px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  body[dir="rtl"] .main-menu {
    right: auto;
    left: 0;
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu a {
    width: 100%;
  }

  .why-grid,
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 88vh;
    padding-top: 128px;
  }

  .intro,
  .about,
  .appointment,
  .contact,
  .site-footer,
  .admin-hero {
    grid-template-columns: 1fr;
  }

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

  .cards-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .blog-tools,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  .site-header {
    inset: 10px 10px auto;
    width: calc(100% - 20px);
    min-height: 66px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 92vh;
    padding-inline: 18px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.86rem;
  }

  .hero-actions .btn,
  .appointment-form .btn,
  .contact-form .btn {
    width: 100%;
  }

  .cards-grid,
  .why-grid,
  .topic-grid,
  .form-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .values-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .testimonial-shell {
    gap: 8px;
  }

  .testimonial-card {
    padding: 24px 18px;
  }

  .round-btn {
    width: 40px;
    height: 40px;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }
}
