:root {
  color-scheme: light;
}

html,
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

:root {
  --site-chrome-h: 0px; /* topbar + header; set by JS */
}

/* Subtle site-wide mountain background */
.site-bg {
  background-color: #ffffff;
  /* Uses your image if present; falls back to SVG */
  background-image: url("./images/ui/mountains-bg.jpg"), url("./images/ui/mountains.svg");
  background-repeat: no-repeat;
  background-position: center bottom, center bottom;
  background-size: cover, min(1900px, 125vw) auto;
  background-attachment: fixed;
}

/* Top utility bar */
.toplink {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
}
.toplink:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Small set of reusable “components” to keep index.html clean */
.navlink {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: rgb(15 23 42);
  opacity: 0.78;
  transition: opacity 150ms ease, transform 150ms ease;
}
.navlink:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  border-radius: 14px;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 10px;
  box-shadow:
    0 16px 30px rgba(2, 6, 23, 0.08),
    0 6px 12px rgba(2, 6, 23, 0.06);
}
.dropdown-item {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: rgb(30 41 59);
  text-decoration: none;
}
.dropdown-item:hover {
  background: rgb(248 250 252);
}

.iconbtn {
  display: inline-flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240 / 0.9);
  background: rgb(255 255 255);
  color: rgb(15 23 42);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}
.iconbtn:hover {
  background: rgb(248 250 252);
  border-color: rgb(203 213 225);
}
.iconbtn:active {
  transform: scale(0.98);
}
.iconbtn svg {
  height: 18px;
  width: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(15 23 42);
  text-decoration: none;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}
.btn:hover {
  background: rgb(248 250 252);
  border-color: rgb(203 213 225);
}
.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(2 6 23);
  background: rgb(2 6 23);
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition:
    filter 150ms ease,
    transform 150ms ease;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-primary:active {
  transform: scale(0.99);
}

.mobile-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  border: 1px solid rgb(226 232 240);
  background: rgb(255 255 255);
  padding: 12px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgb(15 23 42);
}
.mobile-sublink {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: rgb(71 85 105);
  text-decoration: none;
}
.mobile-sublink:hover {
  color: rgb(15 23 42);
}

.feature-card {
  border-radius: 18px;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 20px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.03);
}
.feature-icon {
  display: inline-flex;
  height: 42px;
  width: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
.feature-icon svg {
  height: 20px;
  width: 20px;
}

.blog-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgb(226 232 240);
  background: white;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.08);
}
.blog-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgb(226 232 240), rgb(219 234 254));
}
.blog-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.blog-image-label {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(71 85 105);
  backdrop-filter: blur(10px);
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(15 23 42);
}
.footer-link {
  color: rgb(71 85 105);
  text-decoration: none;
}
.footer-link:hover {
  color: rgb(15 23 42);
}

.social {
  display: inline-flex;
  height: 38px;
  width: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  color: rgb(30 41 59);
}
.social:hover {
  background: rgb(248 250 252);
  border-color: rgb(203 213 225);
}
.social svg {
  height: 18px;
  width: 18px;
}

/* Footer on dark background (matches top bar) */
.site-footer-dark .footer-title {
  color: rgba(255, 255, 255, 0.92);
}
.site-footer-dark .footer-link {
  color: rgba(255, 255, 255, 0.78);
}
.site-footer-dark .footer-link:hover {
  color: rgba(255, 255, 255, 1);
}
.site-footer-dark .social {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
.site-footer-dark .social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Reference-like tiles + logo strip */
.category-tile {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgb(226 232 240);
  background: white;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.08);
}
.category-media {
  aspect-ratio: 16 / 10;
  position: relative;
  background: linear-gradient(135deg, rgb(241 245 249), rgb(219 234 254));
}
.category-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.category-media-label {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(71 85 105);
  backdrop-filter: blur(10px);
}
.category-body {
  padding: 16px;
}
.category-kicker {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}
.category-title {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgb(15 23 42);
}
.category-cta {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(2 6 23);
}

.logo-pill {
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(30 41 59);
  background: white;
}

/* Association logos: normal as-is; hover darkens */
.assoc-logo {
  opacity: 1;
  filter: none;
}
a.group:hover .assoc-logo {
  filter: brightness(0.35) contrast(1.1);
}

/* Products tiles (screenshot-like) */
.product-tile {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.product-media {
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.product-img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(2, 6, 23, 0.18));
  transform: translateY(-1px) scale(1.32);
}
.product-meta {
  text-align: center;
  padding-bottom: 6px;
}
.product-title {
  font-family: Inter, ui-sans-serif, system-ui;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: rgb(2 6 23);
}
.product-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgb(2 6 23);
  padding: 7px 12px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(2 6 23);
  background: transparent; /* stroke only */
  transition: transform 150ms ease, background 150ms ease;
}
.product-tile:hover .product-cta {
  background: rgba(2, 6, 23, 0.04);
}
.product-tile:active .product-cta {
  transform: scale(0.99);
}
@media (max-width: 640px) {
  .product-media {
    padding: 0;
  }
}

/* Hero slider */
.hero {
  position: relative;
  overflow: hidden;
  background: white;
  --hero-image: none;
  /* Fill remaining viewport below topbar+header */
  min-height: calc(100svh - var(--site-chrome-h));
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Slide image layer */
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  will-change: transform;
}
.hero-bg.kenburns::before {
  animation: hero-zoomout 5.6s ease-out forwards;
}
@keyframes hero-zoomout {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1);
  }
}
.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}
.hero-media {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgb(226 232 240);
  background: linear-gradient(135deg, rgb(241 245 249), rgb(219 234 254));
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}
.hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
.hero-dot {
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.hero-dot:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.85);
}
.hero-dot.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(2, 6, 23, 0.18);
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.btn-hero:hover {
  background: rgba(2, 6, 23, 0.2);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-hero:active {
  transform: scale(0.99);
}

/* Header icons without circular stroke */
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border: 0;
  background: transparent;
  color: rgb(15 23 42);
  opacity: 0.75;
  transition: opacity 150ms ease, transform 150ms ease;
  text-decoration: none;
}
.header-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.header-icon svg {
  height: 20px;
  width: 20px;
}

.hero h1,
.hero p {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-family: "Playfair Display", Montserrat, Inter, ui-sans-serif, system-ui;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.92;
}

/* Use slider heading font for all titles */
h1,
h2,
h3,
h4,
.footer-title {
  font-family: "Playfair Display", Montserrat, Inter, ui-sans-serif, system-ui;
}

/* Accessible screen-reader-only helper (Tailwind equivalent) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Slide-up animations for scroll */
.slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.slide-up-delay-1 {
  transition-delay: 0.2s;
}

.slide-up-delay-2 {
  transition-delay: 0.4s;
}

.slide-up-delay-3 {
  transition-delay: 0.6s;
}

.slide-up-delay-4 {
  transition-delay: 0.8s;
}

.slide-up-delay-4 {
  transition-delay: 0.8s;
}

/* Directional slide animations for twin content blocks */
.slide-from-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.slide-from-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-from-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.slide-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}
