/* Small extras; Tailwind handles most styling */
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body {
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
html[dir="rtl"] .rtl\:text-right { text-align: right; }
html[dir="rtl"] .rtl\:flex-row-reverse { flex-direction: row-reverse; }
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] #mobileMenu .text-left { text-align: right; }

header .nav-main-trigger {
  position: relative;
}

header .nav-main-trigger::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .28rem;
  height: 2px;
  border-radius: 999px;
  background: #020617;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

header .group:hover > .nav-main-trigger::after,
header .group:focus-within > .nav-main-trigger::after,
header .nav-main-trigger:focus-visible::after {
  transform: scaleX(1);
}

#btnMobile.is-open {
  border-color: #020617;
  background: #020617;
  color: #fff;
}

#btnMobile.is-open .menu-icon-open {
  display: none;
}

#btnMobile.is-open .menu-icon-close {
  display: block;
}

.mobile-menu-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-.5rem);
  border-top-color: transparent;
  transition:
    max-height .32s ease,
    opacity .2s ease,
    transform .26s ease,
    border-color .2s ease;
}

.mobile-menu-panel.is-open {
  max-height: calc(100svh - 72px);
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
  transform: translateY(0);
  border-top-color: #e2e8f0;
}

.mobile-menu-content {
  transform: translateY(-.35rem);
  transition: transform .26s ease;
}

.mobile-menu-panel.is-open .mobile-menu-content {
  transform: translateY(0);
}

.mobile-nav-list {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-item + .mobile-nav-item {
  border-top: 1px solid #e5e7eb;
}

.mobile-nav-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

html[dir="rtl"] .mobile-nav-toggle {
  text-align: right;
}

.mobile-nav-chevron {
  flex: none;
  color: #020617;
  transition: transform .2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition:
    max-height .26s ease,
    opacity .2s ease,
    padding .2s ease;
}

.mobile-submenu.is-open {
  max-height: 16rem;
  opacity: 1;
  padding: 0 0 .85rem;
}

.mobile-submenu-link {
  display: block;
  border-radius: .5rem;
  padding: .55rem .75rem;
  color: #475569;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color .18s ease,
    color .18s ease;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus-visible {
  background: #f8fafc;
  color: #020617;
}

.mobile-submenu-link + .mobile-submenu-link {
  margin-top: .15rem;
}

.mobile-apply-button {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: .375rem;
  background: #020617;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color .18s ease,
    transform .18s ease;
}

.mobile-apply-button:hover,
.mobile-apply-button:focus-visible {
  background: #1e293b;
}

a[class*="bg-amber-500"],
button[class*="bg-amber-500"],
a[class*="bg-yellow-"],
button[class*="bg-yellow-"] {
  background-color: #020617 !important;
  border-color: #020617 !important;
  color: #fff !important;
}

a[class*="bg-amber-500"]:hover,
button[class*="bg-amber-500"]:hover,
a[class*="bg-yellow-"]:hover,
button[class*="bg-yellow-"]:hover {
  background-color: #1e293b !important;
  border-color: #1e293b !important;
}

@media (prefers-reduced-motion: reduce) {
  header .nav-main-trigger::after {
    transition: none;
  }

  .mobile-menu-panel,
  .mobile-menu-content,
  .mobile-nav-chevron,
  .mobile-submenu,
  .mobile-submenu-link {
    transition: none;
  }
}

.section-kicker {
  color: #64748b !important;
}

.home-motion .reveal-section,
.home-motion .reveal-item {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(26px);
  transition:
    opacity .72s cubic-bezier(.22, 1, .36, 1),
    transform .72s cubic-bezier(.22, 1, .36, 1),
    filter .72s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.home-motion .reveal-item {
  transform: translateY(18px);
}

.home-motion .reveal-section.is-visible,
.home-motion .reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.home-motion .reveal-hero img {
  transform: scale(1.035);
  transition: transform 1.8s cubic-bezier(.22, 1, .36, 1);
}

.home-motion .reveal-hero.is-visible img {
  transform: scale(1);
}

.home-motion .reveal-hero h1,
.home-motion .reveal-hero p,
.home-motion .reveal-hero a {
  animation: heroRise .85s cubic-bezier(.22, 1, .36, 1) both;
}

.home-motion .reveal-hero p {
  animation-delay: .08s;
}

.home-motion .reveal-hero a {
  animation-delay: .16s;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.loading-skeleton { background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.partners-marquee {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  padding: .25rem 0;
  direction: ltr;
  unicode-bidi: isolate;
}

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(2rem, 10vw, 5rem);
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.partners-marquee-track {
  display: flex;
  width: max-content;
  animation: partners-marquee 34s linear infinite;
  will-change: transform;
  direction: ltr;
}

.partners-marquee-set {
  display: flex;
  gap: .75rem;
  padding-right: .75rem;
}

.partners-marquee-item {
  position: relative;
  flex: 0 0 clamp(9.5rem, 14vw, 12rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: .625rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
}

.partners-marquee-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.partners-marquee-item:hover img {
  transform: scale(1.04);
}

.partners-marquee-item img.object-contain {
  box-sizing: border-box;
  object-fit: contain;
  padding: clamp(.9rem, 1.5vw, 1.15rem) clamp(.9rem, 1.5vw, 1.15rem) 2.7rem;
}

.partners-marquee-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.4rem .8rem .75rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, .88), rgba(2, 6, 23, 0));
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

html[dir="rtl"] .partners-marquee-item figcaption {
  direction: rtl;
  text-align: right;
}

@keyframes partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main > section:not(:first-child):not(.page-title-hero) {
  padding-top: clamp(4.5rem, 7vw, 7rem) !important;
  padding-bottom: clamp(4.5rem, 7vw, 7rem) !important;
}

main > section:not(:first-child):not(.page-title-hero) > .mx-auto[class*="py-"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

main article[class*="rounded"][class*="border"],
main aside[class*="rounded"][class*="border"],
main section[id][class*="rounded"][class*="border"],
main .grid > div[class*="rounded"][class*="border"] {
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}

main article[class*="rounded"][class*="border"],
main section[id][class*="rounded"][class*="border"],
main .grid > div[class*="rounded"][class*="border"] {
  padding: clamp(1.35rem, 1.2rem + .8vw, 2rem) !important;
}

main article[class*="rounded"][class*="border"]:hover,
main aside[class*="rounded"][class*="border"]:hover,
main section[id][class*="rounded"][class*="border"]:hover,
main .grid > div[class*="rounded"][class*="border"]:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

main .bg-slate-950 article[class*="rounded"][class*="border"]:hover,
main .bg-slate-950 .grid > div[class*="rounded"][class*="border"]:hover,
main .page-title-hero .grid > div[class*="rounded"][class*="border"]:hover {
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

main .membership-form-card {
  transition: none !important;
}

main .membership-form-card:hover {
  transform: none !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-motion .reveal-section,
  .home-motion .reveal-item {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .home-motion .reveal-hero img {
    transform: none;
    transition: none;
  }

  .home-motion .reveal-hero h1,
  .home-motion .reveal-hero p,
  .home-motion .reveal-hero a {
    animation: none;
  }

  main article[class*="rounded"][class*="border"],
  main aside[class*="rounded"][class*="border"],
  main section[id][class*="rounded"][class*="border"],
  main .grid > div[class*="rounded"][class*="border"] {
    transition: none;
  }

  main article[class*="rounded"][class*="border"]:hover,
  main aside[class*="rounded"][class*="border"]:hover,
  main section[id][class*="rounded"][class*="border"]:hover,
  main .grid > div[class*="rounded"][class*="border"]:hover {
    transform: none;
  }
}

.page-title-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  background-image:
    linear-gradient(110deg, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .62) 44%, rgba(15, 23, 42, .34) 100%),
    url("../composition-family-concept-blue-background-scaled.webp");
  background-size: cover;
  background-position: center 42%;
}

.page-title-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(14, 116, 144, .22), rgba(15, 23, 42, .18));
}

.page-title-hero > * {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title-hero h1,
.page-title-hero p {
  margin-left: auto;
  margin-right: auto;
}

main > section:first-child h1 {
  margin-top: 0 !important;
}

.page-title-hero p:not(.section-kicker) {
  color: rgba(255, 255, 255, .88);
}

.mobile-hero-image {
  object-position: center center;
}

@media (max-width: 640px) {
  .mobile-hero-image {
    object-position: center top;
  }

  .page-title-hero {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, .76) 0%, rgba(15, 23, 42, .58) 48%, rgba(15, 23, 42, .7) 100%),
      url("../assets/mobile-hero-family.png");
    background-position: center top;
  }
}
.admin-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.admin-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(186 230 253);
}

.admin-module-link {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(51 65 85);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-module-link:hover {
  border-color: rgb(203 213 225);
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
