@font-face {
  font-family: "Peyda";
  src: url("assets/fonts/PeydaFaNum-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Peyda";
  src: url("assets/fonts/PeydaFaNum-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #071b3f;
  --navy-2: #0b2552;
  --blue: #4269b3;
  --cream: #f6f1eb;
  --cream-logo: #f5f1eb;
  --ink: #081c40;
  --line: rgba(8, 28, 64, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Peyda", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site {
  min-height: 100vh;
  overflow: hidden;
  background: var(--cream);
}

.hero {
  position: relative;
  height: 940px;
  color: var(--cream-logo);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 40px;
  content: "";
  background-color: var(--navy);
  background-image: url("assets/maneli-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.hero-brand {
  display: block;
  width: 60px;
  height: 100px;
}

.hero-brand img {
  width: 60px;
  height: 100px;
  object-fit: contain;
}

.hero-brand:focus-visible,
.hero-nav a:focus-visible,
.consultation-button:focus-visible,
.contact-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 4px;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 42px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-entry {
  display: contents;
}

.hero-nav a {
  display: inline-block;
  color: rgba(245, 241, 235, 0.82);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-separator {
  display: block;
  width: 1px;
  height: 17px;
  flex: 0 0 1px;
  background: rgba(245, 241, 235, 0.55);
  pointer-events: none;
  user-select: none;
}

.hero-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero-content {
  position: absolute;
  z-index: 1;
  top: 312px;
  right: 50%;
  width: min(1300px, calc(100% - 48px));
  text-align: center;
  transform: translateX(50%);
}

.hero-kicker {
  margin: 0 0 20px;
  font-size: clamp(28px, 2.1vw, 40px);
  font-weight: 700;
  line-height: 1.4;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 4.25vw, 78px);
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1.25;
}

.hero-description {
  max-width: 1080px;
  margin: 44px auto 0;
  color: rgba(245, 241, 235, 0.9);
  font-size: 19px;
  font-weight: 400;
  line-height: 2;
}

.consultation-button {
  display: inline-flex;
  width: 260px;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 17px;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition:
    color 300ms ease,
    background-color 300ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.consultation-button:hover {
  color: var(--cream-logo);
  background: var(--navy);
  transform: translateY(-2px);
}

.consultation-button--light {
  margin-top: 78px;
  color: var(--cream-logo);
  border-color: var(--cream-logo);
  background: rgba(245, 241, 235, 0.02);
}

.consultation-button--light:hover {
  color: var(--navy);
  background: var(--cream-logo);
  transform: none;
}

.button-arrow {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
  transform-origin: center;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms ease;
}

.consultation-button:not(.consultation-button--light) .button-arrow {
  filter: brightness(0) saturate(100%) invert(10%) sepia(45%) saturate(1635%)
    hue-rotate(181deg) brightness(86%) contrast(105%);
}

.consultation-button:not(.consultation-button--light):hover .button-arrow {
  filter: none;
  transform: rotate(-45deg);
}

.consultation-button:not(.consultation-button--light):hover {
  transform: none;
}

.consultation-button--light:hover .button-arrow {
  filter: brightness(0) saturate(100%) invert(10%) sepia(45%) saturate(1635%)
    hue-rotate(181deg) brightness(86%) contrast(105%);
  transform: rotate(-45deg);
}

.therapy-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  overflow: hidden;
  color: rgba(245, 241, 235, 0.28);
  background: #071a3b;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  direction: ltr;
  cursor: default;
}

.therapy-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: therapy-marquee-ltr 52s linear infinite;
  will-change: transform;
}

.therapy-sequence {
  display: block;
  flex: 0 0 auto;
  white-space: pre;
}

.therapy-strip:hover .therapy-track {
  animation-play-state: paused;
}

@keyframes therapy-marquee-ltr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.main-content {
  position: relative;
  isolation: isolate;
  background: var(--cream);
}

.contact-section {
  position: relative;
  z-index: 2;
  height: 385px;
}

.contact-inner {
  display: grid;
  width: min(1520px, calc(100% - 80px));
  height: 100%;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 70px;
  margin: 0 auto;
}

.contact-heading {
  align-self: center;
  justify-self: start;
}

.contact-heading p,
.services-intro p,
.about-copy > p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.contact-heading h2 {
  margin: 6px 0 0;
  font-size: 39px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 74px;
  direction: rtl;
}

.contact-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  white-space: nowrap;
}

.contact-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.contact-separator {
  margin-inline: 16px;
  font-weight: 400;
}

.decorated-content {
  position: relative;
  padding-bottom: 15px;
}

.side-pattern {
  position: absolute;
  z-index: 0;
  top: -385px;
  left: 0;
  width: 495px;
  height: 1483px;
  pointer-events: none;
  background-image: url("assets/pattern.svg");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 495px 1483px;
}

.services-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1520px, calc(100% - 80px));
  min-height: 600px;
  grid-template-columns: 38% 62%;
  gap: 34px;
  margin: 0 auto;
  padding: 72px 80px 65px;
  overflow: hidden;
  color: var(--cream-logo);
  background: var(--navy);
  border-radius: 22px;
}

.services-panel::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -50px;
  width: 617px;
  height: 743px;
  content: "";
  pointer-events: none;
  background: url("assets/blue-pattern.svg") left top / 617px 743px no-repeat;
}

.services-intro {
  padding: 0 20px 0 0;
}

.services-intro p {
  color: rgba(245, 241, 235, 0.55);
}

.services-intro h2 {
  max-width: 480px;
  margin: 18px 0 0;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.45;
}

.service-list {
  padding-left: 6px;
}

.service-item {
  padding: 0 0 19px;
  border-bottom: 1px solid rgba(245, 241, 235, 0.12);
}

.service-item + .service-item {
  padding-top: 18px;
}

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

.service-item h3 {
  position: relative;
  margin: 0 0 8px;
  color: rgba(245, 241, 235, 0.58);
  font-size: 19px;
  font-weight: 700;
  text-align: right;
}

.service-item h3::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 12px;
  content: "";
  vertical-align: middle;
  background: rgba(245, 241, 235, 0.48);
  border-radius: 50%;
}

.service-item p {
  margin: 0;
  color: rgba(245, 241, 235, 0.9);
  font-size: 15px;
  line-height: 1.85;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1520px, calc(100% - 80px));
  grid-template-areas:
    "correction team awareness about"
    "sustainable . prevention performance"
    "quality return . education";
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 200px auto 0;
  direction: ltr;
}

.about-copy {
  display: flex;
  min-width: 0;
  min-height: 365px;
  grid-area: about;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 0 0 10px;
  direction: rtl;
}

.about-copy > p {
  font-size: 18px;
}

.about-copy h2 {
  margin: 7px 0 0;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.35;
}

.about-rule {
  width: 100%;
  height: 1px;
  margin: 16px 0 17px;
  background: linear-gradient(to left, rgba(8, 28, 64, 0.18), transparent);
}

.about-description {
  margin: 0;
  font-size: 17px;
  line-height: 2.12;
}

.about-copy .consultation-button {
  margin-top: auto;
}

.team-card {
  position: relative;
  display: flex;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  grid-area: team;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 88px 30px 30px;
  overflow: hidden;
  color: var(--cream-logo);
  background:
    radial-gradient(circle at 95% 6%, rgba(67, 106, 179, 0.82), transparent 55%),
    linear-gradient(145deg, #071a3c 8%, #143765 100%);
  border-radius: 21px;
  direction: rtl;
  text-align: right;
}

.team-card > div {
  width: 100%;
  max-width: 305px;
}

.team-card h3 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.team-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.team-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--navy);
  background: var(--cream-logo);
  border-radius: 50%;
}

.team-arrow img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(10%) sepia(45%) saturate(1635%)
    hue-rotate(181deg) brightness(86%) contrast(105%);
}

.gallery-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ebe7e2;
  border-radius: 21px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card--correction {
  grid-area: correction;
}

.gallery-card--awareness {
  grid-area: awareness;
}

.gallery-card--sustainable {
  grid-area: sustainable;
}

.gallery-card--prevention {
  grid-area: prevention;
}

.gallery-card--performance {
  grid-area: performance;
}

.gallery-card--quality {
  grid-area: quality;
}

.gallery-card--return {
  grid-area: return;
}

.gallery-card--education {
  grid-area: education;
}

.site-footer {
  width: min(1520px, calc(100% - 80px));
  margin: 140px auto 0;
  padding-bottom: 44px;
  color: rgba(8, 28, 64, 0.24);
  text-align: center;
}

.site-footer > div {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.site-footer p {
  margin: 24px 0 0;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .hero {
    height: 860px;
  }

  .hero-content {
    top: 275px;
  }

  .hero-description {
    max-width: 900px;
  }

  .contact-inner,
  .services-panel,
  .about-grid,
  .site-footer {
    width: min(1120px, calc(100% - 64px));
  }

  .contact-inner {
    gap: 30px;
  }

  .contact-details {
    gap: 24px 30px;
  }

  .contact-item {
    font-size: 16px;
  }

  .services-panel {
    grid-template-columns: 36% 64%;
    padding-inline: 55px;
  }

  .services-intro h2 {
    font-size: 32px;
  }

  .about-grid {
    grid-template-areas:
      "awareness about"
      "team correction"
      "performance prevention"
      "sustainable education"
      "return quality";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 120px;
  }

  .about-copy,
  .team-card {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .hero {
    height: 810px;
  }

  .hero::before {
    background-position: 57% center;
  }

  .hero-header {
    padding-top: 32px;
  }

  .hero-nav {
    gap: 14px;
    margin-top: 35px;
    font-size: 13px;
  }

  .hero-content {
    top: 275px;
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: clamp(40px, 8.8vw, 62px);
    letter-spacing: -0.8px;
  }

  .hero-description {
    max-width: 640px;
    margin-top: 32px;
    font-size: 16px;
  }

  .consultation-button--light {
    margin-top: 54px;
  }

  .contact-section {
    height: auto;
  }

  .contact-inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 76px 0 88px;
  }

  .contact-heading {
    justify-self: stretch;
  }

  .contact-details {
    gap: 22px;
  }

  .services-panel,
  .about-grid,
  .site-footer {
    width: calc(100% - 40px);
  }

  .services-panel {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 55px 42px;
  }

  .services-intro {
    padding: 0;
  }

  .services-intro h2 {
    max-width: none;
  }

  .side-pattern {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    height: 760px;
  }

  .hero::before {
    background-position: 61% center;
  }

  .hero-header {
    padding-top: 28px;
  }

  .hero-nav {
    width: calc(100% - 30px);
    justify-content: center;
    gap: clamp(7px, 2.5vw, 13px);
    margin-top: 28px;
    font-size: clamp(11px, 3.3vw, 13px);
  }

  .nav-separator {
    height: 13px;
  }

  .hero-content {
    top: 260px;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 52px);
    line-height: 1.32;
  }

  .hero-description {
    margin-top: 26px;
    font-size: 14px;
    line-height: 2;
  }

  .consultation-button {
    width: 228px;
    height: 54px;
    font-size: 16px;
  }

  .consultation-button--light {
    margin-top: 42px;
  }

  .therapy-strip {
    font-size: 11px;
  }

  .contact-inner {
    padding-block: 60px 70px;
  }

  .contact-heading h2 {
    font-size: 34px;
  }

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

  .contact-item {
    font-size: 15px;
  }

  .services-panel {
    width: calc(100% - 28px);
    padding: 44px 26px;
    border-radius: 18px;
  }

  .services-intro h2 {
    font-size: 29px;
  }

  .service-item h3 {
    font-size: 17px;
  }

  .service-item p {
    font-size: 14px;
    line-height: 1.95;
  }

  .about-grid {
    width: calc(100% - 28px);
    grid-template-areas:
      "about"
      "awareness"
      "team"
      "correction"
      "performance"
      "prevention"
      "sustainable"
      "education"
      "return"
      "quality";
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 82px;
  }

  .about-copy {
    min-height: 390px;
    padding: 0 4px 20px;
  }

  .about-copy h2 {
    font-size: 41px;
  }

  .about-description {
    font-size: 16px;
  }

  .team-card {
    aspect-ratio: auto;
    min-height: 340px;
    padding: 66px 30px 30px;
  }

  .gallery-card {
    aspect-ratio: 1;
    border-radius: 18px;
  }

  .site-footer {
    width: calc(100% - 28px);
    margin-top: 90px;
    padding-bottom: 32px;
  }

  .site-footer p {
    font-size: 12px;
  }
}

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

  .hero-nav a,
  .consultation-button,
  .button-arrow,
  .gallery-card img {
    transition: none;
  }

  .therapy-track {
    animation: none;
    transform: none;
  }
}
