/* Restrained motion layer shared by every Cedario page. */
.site-header {
  transition:
    background-color 420ms cubic-bezier(.22, .61, .36, 1),
    border-color 420ms cubic-bezier(.22, .61, .36, 1),
    box-shadow 420ms cubic-bezier(.22, .61, .36, 1),
    color 320ms ease,
    backdrop-filter 420ms cubic-bezier(.22, .61, .36, 1),
    -webkit-backdrop-filter 420ms cubic-bezier(.22, .61, .36, 1);
}

.site-header.is-scrolled {
  color: #171916;
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid rgba(23, 25, 22, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .045);
}

.site-header.is-scrolled .header-inner { border-bottom-color: transparent; }
.site-header.is-scrolled .brand,
.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .nav a,
.site-header.is-scrolled .menu-toggle { color: #171916; }
.site-header.is-scrolled .brand-name small { color: #74766e; }
.site-header.is-scrolled .nav a:hover { color: #645b46; }
.site-header.is-scrolled .nav .header-cta,
.site-header.is-scrolled .header-cta {
  border-color: rgba(23, 25, 22, .34);
  color: #171916 !important;
}
.site-header.is-scrolled .nav .header-cta:hover,
.site-header.is-scrolled .header-cta:hover {
  border-color: #171916;
  color: #fff !important;
  background: #171916;
}
.site-header.is-scrolled .menu-toggle { border-color: rgba(23, 25, 22, .22); }

/* The homepage header stays over the hero while its glass treatment follows scroll. */
.has-hero-header .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.has-hero-header .site-header.is-scrolled {
  background: rgba(255, 255, 255, .85);
  border-bottom-color: rgba(23, 25, 22, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.has-hero-header .site-header.is-scrolled .header-inner { border-bottom-color: transparent; }
.has-hero-header .site-header.is-scrolled .nav { color: #171916; }
@media (max-width: 760px) {
  .has-hero-header .site-header.is-scrolled .nav {
    border-color: rgba(23, 25, 22, .12);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 35px rgba(22, 24, 20, .12);
  }
  .has-hero-header .site-header.is-scrolled .nav a { border-bottom-color: rgba(23, 25, 22, .1); }
}

/* Elements only become hidden when the motion script can observe them. */
.motion-ready [data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition:
    opacity 760ms cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms),
    translate 760ms cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}
.motion-ready [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  will-change: auto;
}

/* Cards lift gently; image movement remains the primary product hover cue. */
.product-card,
.category-card {
  transition: transform 300ms ease-out, box-shadow 300ms ease-out;
}
.product-card { box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.product-card:hover { transform: scale(1.012); }
.category-card { box-shadow: 0 8px 26px rgba(0, 0, 0, .045); }
.category-card:hover { transform: scale(1.012); box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }

.button,
.header-cta,
.contact-submit,
.contact-whatsapp,
.about-button,
.whatsapp-cta,
.text-button,
.page-button,
.not-found-link,
.about-link,
.arrow-link,
.whatsapp-float {
  transition: transform 300ms ease-out, box-shadow 300ms ease-out, color 300ms ease-out, background-color 300ms ease-out, border-color 300ms ease-out;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover,
  .header-cta:hover,
  .contact-submit:hover,
  .contact-whatsapp:hover,
  .about-button:hover,
  .whatsapp-cta:hover,
  .text-button:hover,
  .page-button:hover:not(:disabled),
  .not-found-link:hover,
  .about-link:hover,
  .arrow-link:hover,
  .whatsapp-float:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .09);
  }
}

.hero-media {
  inset: -7% 0;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.05);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
    will-change: auto;
  }
  .hero-media { transform: none !important; will-change: auto; }
  .product-card, .category-card,
  .button, .header-cta, .contact-submit, .contact-whatsapp,
  .about-button, .whatsapp-cta, .text-button, .page-button,
  .not-found-link, .about-link, .arrow-link, .whatsapp-float {
    transition: none !important;
  }
}

/* Shared language selector and locale-specific reading direction. */
.language-picker { display: inline-flex; align-items: center; flex: 0 0 auto; }
.language-picker select {
  min-height: 40px;
  max-width: 138px;
  padding: 0 26px 0 11px;
  border: 1px solid rgba(23,25,22,.3);
  border-radius: 0;
  color: var(--ink, #171916);
  background: transparent;
  font: 600 11px/1.2 var(--sans, Arial, sans-serif);
  cursor: pointer;
}
.has-hero-header .language-picker select { border-color: rgba(255,255,255,.45); color: #fff; }
.has-hero-header .language-picker option { color: #171916; }
.site-header.is-scrolled .language-picker select { border-color: rgba(23,25,22,.3); color: #171916; }
html[lang="ar"] body { direction: rtl; font-family: "Noto Sans Arabic", "Noto Naskh Arabic", Arial, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", Arial, sans-serif; letter-spacing: 0; }
html[lang="zh-CN"] {
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}
html[lang="ar"] .language-picker select { direction: rtl; padding: 0 11px 0 26px; }
html[lang="ar"] .eyebrow::before { order: 1; }
html[lang="ar"] .product-highlights-label { margin-right: 0; margin-left: 6px; }
html[lang="ar"] .product-category, html[lang="ar"] .results-summary, html[lang="ar"] .intro-aside { text-align: start; }
html[lang="ar"] .feature-group li { padding-right: 14px; padding-left: 0; }
html[lang="ar"] .feature-group li::before { right: 0; left: auto; }
html[lang="ar"] .about-proof-note { padding-right: 22px; padding-left: 0; border-right: 1px solid rgba(23,25,22,.2); border-left: 0; }
html[lang="ar"] .about-steps li { padding-right: 0; padding-left: 18px; }
html[lang="ar"] .about-steps li + li { padding-right: 18px; padding-left: 0; border-right: 1px solid rgba(23,25,22,.12); border-left: 0; }
html[lang="ar"] .about-link span, html[lang="ar"] .category-arrow, html[lang="ar"] .cta-arrow { transform: scaleX(-1); }
@media (max-width: 760px) {
  .language-picker { width: 100%; padding: 8px 0 4px; }
  .language-picker select { width: 100%; max-width: none; min-height: 44px; }
  .language-picker option { color: #171916; }
  .header-inner > .language-picker { width: auto; flex: 0 0 auto; margin-left: auto; padding: 0; }
  .header-inner > .language-picker select { width: auto; }
  html[lang="ar"] .about-proof-note { padding-right: 0; border-right: 0; }
  html[lang="ar"] .about-steps li, html[lang="ar"] .about-steps li + li { padding-right: 0; padding-left: 10px; border-left: 0; }
  html[lang="ar"] .about-steps li:nth-child(odd) { padding-left: 13px; border-right: 1px solid rgba(23,25,22,.12); }
}
