@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Raleway:ital,wght@0,400;0,600;0,700;1,400&family=Secular+One&display=swap');

:root {
  --color-bg: #f7f5ee;
  --color-text: #202020;
  --color-intro-bg: #bebebe;
  --color-nav-text: #616057;
  --color-nav-pill: rgba(255, 245, 240, 0.73);
  --color-nav-pill-hover: #fff5f0;
  --color-orange: #d74000;
  --color-phone: #1d67cd;
  --color-phone-hover: #689ade;
  --font-secular: 'Secular One', sans-serif;
  --font-raleway: 'Raleway', Helvetica, Arial, sans-serif;
  --font-oswald: 'Oswald', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  font-family: var(--font-secular);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.skip-link {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  transform: translateY(-140%);
  background: #fff;
  border: 1px solid #d74000;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 52;
  background: var(--color-bg);
  width: 100%;
}

.header-inner {
  position: relative;
  width: 980px;
  max-width: 100%;
  height: 100px;
  margin: 0 auto;
}

/* Brand Logo & Text (Right side on Wix 980px grid) */
.brand {
  position: absolute;
  top: 2px;
  left: 840px;
  display: flex;
  align-items: center;
  direction: ltr;
  text-decoration: none;
}

.brand-text {
  width: 162px;
  text-align: center;
  margin-top: 12px;
  direction: rtl;
}

.brand-text strong,
.brand-text span {
  display: block;
  font-family: var(--font-secular);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3em;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.brand img {
  width: 156px;
  height: 96px;
  object-fit: cover;
  margin-left: -11px;
  display: block;
}

/* Main Navigation (Center on Wix 980px grid) */
.main-nav {
  position: absolute;
  top: 28px;
  left: 68px;
  width: 740px;
  display: flex;
  direction: rtl;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  margin: 4px;
  padding: 6px 6px;
  border-radius: 100px;
  border: 1px solid #f7f5ee;
  background: var(--color-nav-pill);
  font-family: var(--font-raleway);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--color-nav-text);
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  border-color: var(--color-orange);
  background: var(--color-nav-pill-hover);
  color: var(--color-orange);
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
  background: #ffffff;
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* Header Contact (Left side on Wix 980px grid) */
.header-contact {
  position: absolute;
  top: 14px;
  left: -136px;
  width: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icons {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 5px;
}

.contact-icons a.phone-icon {
  display: inline-flex;
  width: 36px;
  height: 41px;
  align-items: center;
  justify-content: center;
}

.contact-icons a.phone-icon svg {
  width: 33px;
  height: 33px;
  fill: var(--color-phone);
  transition: fill 0.2s ease;
}

.contact-icons a.phone-icon:hover svg {
  fill: var(--color-phone-hover);
}

.contact-icons a.whatsapp-icon {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
}

.contact-icons a.whatsapp-icon img {
  width: 39px;
  height: 39px;
  object-fit: cover;
  display: block;
}

.header-phone-number {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-secular);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: normal;
  color: var(--color-text);
  white-space: nowrap;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  width: 100%;
  height: 785px;
  background: url("assets/d6a54d_f1fea2aff6dc4c0abf55643a27db3c62.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 980px;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

.hero h1 {
  position: absolute;
  top: 96px;
  left: 680px;
  width: 364px;
  margin: 0;
  font-family: var(--font-secular);
  font-size: 44px;
  font-weight: 400;
  line-height: 72px;
  text-align: center;
  color: var(--color-text);
}

.hero h2 {
  position: absolute;
  top: 196px;
  left: -35px;
  width: 527px;
  margin: 0;
  font-family: var(--font-secular);
  font-size: 40px;
  font-weight: 400;
  line-height: 65px;
  text-align: center;
  color: var(--color-text);
}

.hero h2 .sub-small {
  font-size: 38px;
}

.hero-cta-strip {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 165px;
  background: rgba(32, 32, 32, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-cta-inner {
  position: relative;
  width: 980px;
  max-width: 100%;
  height: 100%;
}

.button {
  position: absolute;
  top: 50px;
  left: 446px;
  width: 145px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-bg);
  background: transparent;
  color: var(--color-bg);
  font-family: var(--font-secular);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.875em;
  transition: border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.button:hover,
.button:focus {
  background: var(--color-bg);
  border-color: transparent;
  color: var(--color-text);
}

/* ==================== INTRO BAND ==================== */
.intro-section {
  width: 100%;
  background: var(--color-intro-bg);
  padding: 54px 16px 48px;
}

.intro {
  width: min(820px, 100%);
  margin: 0 auto;
  font-family: var(--font-secular);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.67em;
  text-align: justify;
  color: var(--color-text);
}

/* ==================== HOME SECTIONS ==================== */
.home-section {
  width: 980px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.home-section h2 {
  margin: 0;
  font-family: var(--font-secular);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.35em;
  color: var(--color-text);
  text-align: right;
}

.home-section h2 .subtitle-inline {
  font-size: 20px;
}

.home-section p {
  margin: 0 0 1.6em 0;
  font-family: var(--font-secular);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6em;
  text-align: justify;
  color: var(--color-text);
}

.home-section p:last-child {
  margin-bottom: 0;
}

/* Section 1: About (#about) */
#about.home-section {
  padding: 53px 0 52px;
  display: grid;
  grid-template-columns: 460px 460px;
  justify-content: space-between;
  align-items: start;
  direction: ltr;
}

#about .about-text {
  direction: rtl;
  padding-top: 100px;
}

#about .about-text h2 {
  margin-bottom: 17px;
}

#about .about-image {
  padding-top: 30px;
}

#about .about-image img {
  width: 460px;
  height: 590px;
  object-fit: cover;
  display: block;
}

/* Section 2: Neurological (#neuro) */
#neuro.home-section {
  padding: 31px 0 62px;
  display: grid;
  grid-template-columns: 492px 471px;
  justify-content: space-between;
  align-items: start;
  direction: ltr;
}

#neuro .service-image {
  padding-left: 23px;
}

#neuro .service-image img {
  width: 492px;
  height: 577px;
  object-fit: contain;
  display: block;
}

#neuro .service-text {
  direction: rtl;
  padding-top: 63px;
}

#neuro .service-text h2 {
  margin-bottom: 26px;
}

/* Section 3: Orthopedic (#ortho) */
#ortho.home-section {
  padding: 60px 0 88px;
  display: grid;
  grid-template-columns: 460px 460px;
  justify-content: space-between;
  align-items: start;
  direction: ltr;
}

#ortho .service-text {
  direction: rtl;
  padding-top: 74px;
  margin-left: 23px;
}

#ortho .service-text h2 {
  margin-bottom: 20px;
}

#ortho .service-image {
  padding-top: 20px;
  margin-left: 27px;
}

#ortho .service-image img {
  width: 460px;
  height: 560px;
  object-fit: cover;
  display: block;
}

/* Section 4: Pelvic Floor (#pelvic) */
#pelvic.home-section {
  position: relative;
  padding: 58px 0 80px;
  direction: ltr;
}

#pelvic .pelvic-grid {
  display: grid;
  grid-template-columns: 545px 428px;
  justify-content: space-between;
  align-items: start;
}

#pelvic .service-image {
  margin-left: -23px;
  margin-top: 80px;
}

#pelvic .service-image img {
  width: 545px;
  height: 322px;
  object-fit: cover;
  display: block;
}

#pelvic .service-text {
  direction: rtl;
}

#pelvic .service-text h2 {
  margin-bottom: 26px;
}

#pelvic .note {
  direction: rtl;
  margin-top: 14px;
  margin-left: 22px;
  width: 468px;
  font-family: var(--font-secular);
  font-size: 15px;
  line-height: 1.75em;
  color: var(--color-text);
  text-align: right;
}

/* Section 5: Fall Prevention (#falls) */
#falls.home-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 477px;
  direction: ltr;
}

#falls .service-text {
  direction: rtl;
  padding-top: 97px;
  width: 468px;
  max-width: calc(100% - 32px);
  margin-left: max(16px, calc(50vw - 490px));
  margin-right: auto;
}

#falls .service-text h2 {
  margin-bottom: 36px;
}

#falls .service-image {
  width: 100%;
  height: 477px;
  overflow: hidden;
}

#falls .service-image img {
  width: 100%;
  height: 477px;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* ==================== ARTICLES PAGE (team-4) ==================== */
.articles-page {
  width: 980px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 40px 0 43px;
}

.articles-page h1 {
  margin: 0 0 100px;
  font-family: var(--font-secular);
  font-size: 56px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: var(--color-text);
}

.article-grid {
  display: flex;
  direction: rtl;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}

.article-card {
  width: 457px;
  max-width: 100%;
  background: rgba(190, 190, 190, 0.8);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 70px;
}

.article-card img {
  width: 456px;
  max-width: 100%;
  height: 336px;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

.article-card h2 {
  width: 387px;
  max-width: 90%;
  margin: 0;
  font-family: var(--font-secular);
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: var(--color-text);
}

/* ==================== ARTICLE DETAIL PAGES (about-1, about-4) ==================== */
.article-detail {
  width: 980px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  min-height: 1100px;
}

.article-detail.about-1 {
  padding: 80px 0 60px;
}

.article-detail.about-1 h1 {
  margin: 0 0 35px;
  font-family: var(--font-secular);
  font-size: 28px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: var(--color-text);
}

.article-detail.about-1 .article-body {
  width: 723px;
  max-width: 100%;
  margin: 0 auto;
}

.article-detail.about-4 {
  padding: 51px 0 60px;
}

.article-detail.about-4 h1 {
  width: 804px;
  max-width: 100%;
  margin: 0 auto 30px;
  font-family: var(--font-secular);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25em;
  text-align: center;
  color: var(--color-text);
}

.article-detail.about-4 .article-body {
  width: 818px;
  max-width: 100%;
  margin: 0 auto;
}

.article-detail .article-body p,
.article-detail .article-body h2 {
  margin: 0 0 1.5em 0;
  font-family: var(--font-secular);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75em;
  color: var(--color-text);
}

.article-detail.about-1 .article-body p,
.article-detail.about-1 .article-body h2 {
  text-align: justify;
}

.article-detail .article-body h2.underlined {
  text-decoration: underline;
  padding-right: 48px;
  margin-bottom: 0;
}

.article-detail .article-body h2.plain-sub {
  margin-bottom: 0;
}

/* ==================== ACCESSIBILITY PAGE (general-clean) ==================== */
.accessibility-page {
  width: 980px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 80px 0 80px;
  min-height: 1000px;
}

.accessibility-page h1 {
  margin: 0 0 35px;
  font-family: var(--font-secular);
  font-size: 56px;
  font-weight: 400;
  line-height: normal;
  text-align: right;
  color: var(--color-text);
}

.accessibility-body {
  width: 639px;
  max-width: 100%;
}

.accessibility-body p,
.accessibility-body h2,
.accessibility-body li {
  font-family: var(--font-secular);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.875em;
  color: var(--color-text);
  margin: 0;
}

.accessibility-body h2 {
  margin-top: 1.5em;
}

.accessibility-body ul {
  margin: 0;
  padding-inline-start: 24px;
  list-style: disc;
}

.accessibility-body a {
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid rgba(247, 245, 238, 0.15);
  background: var(--color-bg);
  padding: 26px 16px 22px;
  text-align: center;
  color: var(--color-text);
}

.footer-inner {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
}

.social-links {
  display: flex;
  direction: rtl;
  justify-content: center;
  gap: 37px;
  margin-bottom: 20px;
}

.social-links img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  display: block;
}

.footer-bottom {
  display: flex;
  direction: rtl;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-raleway);
  font-size: 14px;
  line-height: 1.79em;
  color: var(--color-text);
}

.menu-toggle,
.mobile-bar {
  display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1260px) {
  .header-inner {
    height: 100px;
    min-height: 100px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 10px;
  }

  .brand,
  .main-nav,
  .header-contact {
    position: static;
    width: auto;
  }

  .brand img {
    width: 140px;
    height: 86px;
    object-fit: contain;
    margin-left: 0;
  }

  .brand-text {
    width: auto;
    margin-top: 0;
  }

  .brand-text strong,
  .brand-text span {
    font-size: 18px;
    line-height: 1.2;
  }

  .main-nav {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: center;
    top: auto;
  }

  .main-nav a {
    margin: 2px;
    padding: 6px 5px;
  }

  .header-contact {
    top: auto;
  }
}

@media (max-width: 980px) {
  body {
    padding-bottom: 64px;
  }

  .site-header {
    z-index: 80;
  }

  .header-inner {
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    height: 84px;
    min-height: 84px;
    padding: 0 8px;
    gap: 6px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 9px;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 90;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #202020;
    transition: transform 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(-45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(45deg);
  }

  .brand {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 4px;
  }

  .brand img {
    width: 64px;
    height: 44px;
    margin: 0;
    object-fit: contain;
  }

  .brand-text {
    width: auto;
    margin: 0;
  }

  .brand-text strong,
  .brand-text span {
    font-size: 17px;
    line-height: 1.35;
  }

  .header-contact {
    position: static;
    top: auto;
    left: auto;
    flex: 0 0 39px;
    width: 39px;
  }

  .contact-icons {
    margin: 0;
    gap: 0;
  }

  .contact-icons a.phone-icon,
  .header-phone-number {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 72px 16px 80px;
    background: var(--color-bg);
    transform: translateY(-110%);
    visibility: hidden;
  }

  .main-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .main-nav a {
    order: 0;
    width: min(220px, 100%);
    margin: 0;
    padding: 14px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-secular);
    font-size: 20px;
    letter-spacing: 0;
    text-align: center;
    color: #202020;
  }

  .main-nav a:nth-child(1) { order: 7; }
  .main-nav a:nth-child(2) { order: 6; }
  .main-nav a:nth-child(3) { order: 5; }
  .main-nav a:nth-child(4) { order: 4; }
  .main-nav a:nth-child(5) { order: 3; }
  .main-nav a:nth-child(6) { order: 2; }
  .main-nav a:nth-child(7) { order: 1; }

  .main-nav a.active,
  .main-nav a[aria-current="page"] {
    background: transparent;
    border: 0;
    color: #616057;
  }

  .hero {
    height: 320px;
    min-height: 0;
    padding: 0;
  }

  .hero-inner {
    width: 100%;
  }

  .hero h1,
  .hero h2 {
    position: absolute;
    left: 16px;
    right: 16px;
    width: auto;
    margin: 0;
    text-align: center;
  }

  .hero h1 {
    top: 14px;
    font-size: 25px;
    line-height: 1.35;
  }

  .hero h2 {
    top: 56px;
    font-size: 23px;
    line-height: 1.45;
  }

  .hero h2 br:first-child {
    display: none;
  }

  .hero h2 .sub-small {
    font-size: 23px;
  }

  .hero-cta-strip {
    height: 88px;
    bottom: 0;
    align-items: center;
  }

  .hero-cta-inner,
  .button {
    position: static;
    display: flex;
  }

  .hero-cta-inner {
    align-items: center;
    justify-content: center;
  }

  .button {
    width: 120px;
    height: 42px;
    font-size: 18px;
  }

  .intro-section {
    padding: 28px 20px 36px;
  }

  .intro {
    width: 100%;
    font-size: 17px;
    font-style: normal;
    line-height: 1.75;
  }

  .home-section,
  #about.home-section,
  #neuro.home-section,
  #ortho.home-section,
  #pelvic.home-section,
  #falls.home-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 20px 8px;
    margin: 0;
  }

  #about .about-image,
  #neuro .service-image,
  #ortho .service-image {
    order: -1;
    margin: 0;
    padding: 0;
  }

  #about .about-text,
  #neuro .service-text,
  #ortho .service-text,
  #falls .service-text {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .home-section h2 {
    font-size: 24px;
    line-height: 1.35;
    text-align: right;
  }

  #about .about-text h2 {
    font-size: 30px;
  }

  .home-section p,
  #pelvic .note {
    font-size: 16px;
    line-height: 1.75;
  }

  #about .about-image img,
  #neuro .service-image img,
  #ortho .service-image img,
  #pelvic .service-image img {
    width: 100%;
    height: auto;
    max-height: 360px;
    margin: 0;
    object-fit: cover;
  }

  #neuro .service-image img {
    object-fit: contain;
    max-height: 340px;
  }

  #pelvic .pelvic-grid,
  #pelvic .service-text {
    display: contents;
  }

  #pelvic .service-text h2 { order: 1; }
  #pelvic .service-image { order: 2; margin: 0; }
  #pelvic .service-text p { order: 3; }
  #pelvic .note { order: 4; width: 100%; margin: 0; }

  #falls.home-section {
    padding-right: 0;
    padding-left: 0;
  }

  #falls .service-text {
    padding: 0 20px;
  }

  #falls .service-image,
  #falls .service-image img {
    width: 100%;
    height: 180px;
    margin: 0;
    object-fit: cover;
  }

  .articles-page,
  .article-detail,
  .accessibility-page {
    width: 100%;
    max-width: 100%;
    padding: 28px 20px 40px;
  }

  .articles-page h1,
  .article-detail h1,
  .accessibility-page h1 {
    font-size: 32px;
    margin-bottom: 28px;
  }

  .article-grid {
    gap: 28px;
  }

  .article-card {
    padding-bottom: 28px;
  }

  .article-card img {
    height: 220px;
  }

  .mobile-bar {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    direction: ltr;
    grid-template-columns: repeat(4, 1fr);
    height: 64px;
    background: #fff;
    border-top: 1px solid rgba(32, 32, 32, 0.12);
  }

  .mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #202020;
    font-family: var(--font-raleway);
    font-size: 11px;
  }

  .mobile-bar svg,
  .mobile-bar img {
    width: 22px;
    height: 22px;
    object-fit: cover;
  }
}
