/* Static Framsyn page — motion + interaction (paired with framsyn-reveal.js). */

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-dur: 0.52s;
  --motion-dur-soft: 0.45s;
}

/* Top bar matches Next.js globals: glass in light; solid navbar strip + no hairline in dark. */
.framsyn-site-header {
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--background) 75%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@supports (backdrop-filter: blur(0)) {
  .framsyn-site-header {
    background: color-mix(in oklch, var(--background) 65%, transparent);
  }
}

@media (min-width: 768px) {
  .framsyn-site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

html.dark .framsyn-site-header {
  border-bottom-color: transparent;
  background: var(--navbar-strip-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Navbar logo: faint lift so wordmark stays legible on the light strip */
html.dark .framsyn-nav-logo {
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.65));
}

/* Mobile menu: use strip foreground — page text color is too light on the navbar strip */
html.dark #b-open,
html.dark .framsyn-nav-menu-btn {
  border-color: rgb(0 0 0 / 0.18) !important;
  background: rgb(255 255 255 / 0.62) !important;
  color: var(--navbar-strip-fg) !important;
}

html.dark #b-open:hover,
html.dark .framsyn-nav-menu-btn:hover {
  background: rgb(255 255 255 / 0.92) !important;
  color: var(--navbar-strip-fg) !important;
}

.framsyn-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.125rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in oklch, var(--border) 76%, transparent);
  background: color-mix(in oklch, var(--muted) 38%, transparent);
}

.framsyn-lang-switcher button {
  appearance: none;
  min-width: 2.25rem;
  cursor: pointer;
  border: none;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--muted-foreground);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    outline-color 0.15s ease;
}

.framsyn-lang-switcher button:hover {
  color: var(--foreground);
  background: color-mix(in oklch, var(--foreground) 7%, transparent);
}

.framsyn-lang-switcher button:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--ring) 70%, transparent);
  outline-offset: 2px;
}

.framsyn-lang-switcher button.is-active {
  background: var(--background);
  color: var(--foreground);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.07),
    0 2px 5px rgb(0 0 0 / 0.04);
  font-weight: 700;
}

html.dark .framsyn-lang-switcher {
  border-color: color-mix(in oklch, var(--navbar-strip-fg) 20%, var(--navbar-strip-bg));
  background: color-mix(in oklch, var(--navbar-strip-fg) 10%, var(--navbar-strip-bg));
}

html.dark .framsyn-lang-switcher button:not(.is-active) {
  color: var(--navbar-strip-fg);
  opacity: 0.92;
}

html.dark .framsyn-lang-switcher button:not(.is-active):hover {
  color: var(--navbar-strip-fg);
  opacity: 1;
  background: color-mix(in oklch, var(--navbar-strip-fg) 14%, transparent);
}

html.dark .framsyn-lang-switcher button:focus-visible {
  outline-color: color-mix(in oklch, var(--navbar-strip-fg) 45%, transparent);
}

html.dark .framsyn-lang-switcher button.is-active {
  background: #fff;
  color: var(--navbar-strip-fg);
  opacity: 1;
  box-shadow:
    0 1px 4px rgb(0 0 0 / 0.16),
    0 6px 12px rgb(0 0 0 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.6);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-dur: 0.001ms;
    --motion-dur-soft: 0.001ms;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .motion-card-fr:hover {
    transform: none !important;
  }

  .motion-card-cap:hover {
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .framsyn-lang-switcher button {
    transition: none;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--motion-dur-soft) var(--motion-ease),
    transform var(--motion-dur-soft) var(--motion-ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Cards: resting shadow + stronger hover lift — no outline border */
.motion-card-fr {
  border: none !important;
  box-shadow:
    0 2px 6px rgb(0 0 0 / 0.05),
    0 14px 32px rgb(0 0 0 / 0.07),
    0 36px 56px -28px rgb(0 0 0 / 0.14),
    0 2px 0 rgb(255 255 255 / 0.35) inset;
  transition:
    transform 0.24s var(--motion-ease),
    box-shadow 0.28s var(--motion-ease),
    background-color 0.22s ease;
}

.dark .motion-card-fr {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.058),
    0 14px 40px rgb(0 0 0 / 0.52),
    0 42px 64px -32px rgb(0 0 0 / 0.68),
    0 26px 40px -30px rgb(0 0 0 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.05);
}

.motion-card-fr:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 24px rgb(0 0 0 / 0.065),
    0 26px 48px rgb(0 0 0 / 0.085),
    0 52px 68px -32px rgb(0 0 0 / 0.13),
    0 2px 0 rgb(255 255 255 / 0.45) inset;
}

.dark .motion-card-fr:hover {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.065),
    0 26px 56px rgb(0 0 0 / 0.62),
    0 54px 80px -30px rgb(0 0 0 / 0.74),
    0 34px 48px -32px rgb(0 0 0 / 0.42),
    inset 0 1px 0 rgb(255 255 255 / 0.06);
}

/* Capability variant: subtler lift */
.motion-card-cap:hover {
  transform: translateY(-4px);
}

/* Hero CTAs subtle press feedback */
.hero-cta a:active {
  transform: scale(0.982);
  transition: transform 0.14s var(--motion-ease);
}

.framsyn-field-rest {
  transition:
    border-color 0.22s var(--motion-ease),
    box-shadow 0.26s var(--motion-ease);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.038),
    0 10px 24px -12px rgb(0 0 0 / 0.088);
}

.dark .framsyn-field-rest {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.052),
    0 12px 28px -12px rgb(0 0 0 / 0.48),
    0 5px 12px -8px rgb(0 0 0 / 0.35);
}

/* Success panel + small chrome tiles */
.framsyn-panel-rest {
  border: none !important;
  box-shadow:
    0 2px 8px rgb(0 0 0 / 0.056),
    0 22px 48px rgb(0 0 0 / 0.082),
    0 42px 64px -32px rgb(0 0 0 / 0.13),
    0 2px 0 rgb(255 255 255 / 0.32) inset;
}

.dark .framsyn-panel-rest {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.058),
    0 26px 56px rgb(0 0 0 / 0.72),
    0 52px 80px -32px rgb(0 0 0 / 0.75),
    inset 0 1px 0 rgb(255 255 255 / 0.048);
}

.framsyn-icon-well {
  border: none !important;
  box-shadow:
    0 1px 5px rgb(0 0 0 / 0.06),
    0 8px 20px rgb(0 0 0 / 0.068),
    0 14px 28px rgb(0 0 0 / 0.07);
  transition: box-shadow 0.22s var(--motion-ease);
}

.dark .framsyn-icon-well {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.068),
    0 14px 32px rgb(0 0 0 / 0.62),
    0 26px 40px rgb(0 0 0 / 0.25);
}

.motion-card-fr:hover .framsyn-icon-well {
  box-shadow:
    0 2px 6px rgb(0 0 0 / 0.065),
    0 14px 28px rgb(0 0 0 / 0.098),
    0 26px 40px rgb(0 0 0 / 0.084);
}

.dark .motion-card-fr:hover .framsyn-icon-well {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.1),
    0 22px 44px rgb(0 0 0 / 0.74),
    0 42px 56px rgb(0 0 0 / 0.38);
}

/* Primary / outline CTAs + secondary actions */
.framsyn-btn-elevate {
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.09),
    0 14px 32px -14px rgb(0 0 0 / 0.26),
    0 6px 16px -10px rgb(0 0 0 / 0.13);
}

.dark .framsyn-btn-elevate {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 12px 32px -10px rgb(0 0 0 / 0.82),
    0 8px 20px -10px rgb(0 0 0 / 0.62);
}

.framsyn-btn-elevate-soft {
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.046),
    0 14px 32px -16px rgb(0 0 0 / 0.13),
    0 6px 14px -10px rgb(0 0 0 / 0.068);
}

.dark .framsyn-btn-elevate-soft {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.058),
    0 14px 36px -12px rgb(0 0 0 / 0.62),
    0 8px 18px -10px rgb(0 0 0 / 0.42);
}

.framsyn-btn-elevate-muted {
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.048),
    0 11px 28px -13px rgb(0 0 0 / 0.13),
    0 5px 12px -8px rgb(0 0 0 / 0.068);
}

.dark .framsyn-btn-elevate-muted {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.065),
    0 13px 32px -12px rgb(0 0 0 / 0.62),
    0 8px 16px -8px rgb(0 0 0 / 0.42);
}

.framsyn-btn-elevate:hover,
.framsyn-btn-elevate-soft:hover,
.framsyn-btn-elevate-muted:hover {
  box-shadow:
    0 2px 4px rgb(0 0 0 / 0.085),
    0 22px 48px -16px rgb(0 0 0 / 0.26),
    0 14px 24px -12px rgb(0 0 0 / 0.13);
}

.dark .framsyn-btn-elevate:hover,
.dark .framsyn-btn-elevate-soft:hover,
.dark .framsyn-btn-elevate-muted:hover {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.1),
    0 24px 56px -12px rgb(0 0 0 / 0.92),
    0 14px 28px -10px rgb(0 0 0 / 0.72);
}

/* Alternating section surfaces — subtle scroll rhythm (paired with globals.css class names). */
.framsyn-band-hero {
  background-color: var(--background);
}

.framsyn-band-about {
  background-color: color-mix(in oklch, var(--muted) 34%, var(--background));
}

.framsyn-band-services {
  background-color: color-mix(in oklch, var(--muted) 18%, var(--background));
}

.framsyn-band-capabilities {
  background-color: color-mix(
    in oklch,
    var(--muted) 28%,
    color-mix(in oklch, var(--primary) 3%, var(--background))
  );
}

.framsyn-band-contact {
  background-color: color-mix(in oklch, var(--muted) 22%, var(--background));
}
