/* ==========================================================================
   Kirby One-Page Scroll Theme
   Vertical full-page sections with CSS Scroll Snap (y mandatory)
   Mobile-first, uses 100svh to avoid mobile browser chrome issues
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #0a0a0a;
  --color-text: #f5f5f5;
  --color-text-dark: #1a1a1a;
  --color-muted: #a0a0a0;
  --color-accent: #e8e8e8;
  --color-header-bg: rgba(10, 10, 10, 0.75);
  --color-dot: rgba(255, 255, 255, 0.35);
  --color-dot-active: #ffffff;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 4.5rem;
  --section-padding: max(25px, clamp(1.5rem, 4vw, 3rem));
  --max-content-width: 960px;
  --layout-gap: 1.75rem;
  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Shared content column: centered, max 960px, ≥25px side inset */
.content-column {
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  box-sizing: border-box;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Fixed Header – transparent over background
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  border-bottom: none;
  pointer-events: none; /* clicks pass through empty areas */
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  box-sizing: border-box;
  pointer-events: auto; /* logo + switcher remain clickable */
  text-align: left;
}

.site-logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.site-logo img {
  max-height: 2rem;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.site-logo__text {
  color: var(--color-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.lang-switcher__link {
  padding: 0.25rem 0.45rem;
  border-radius: 3px;
  opacity: 0.65;
  color: #fff;
  transition: opacity var(--transition), background var(--transition);
}

.lang-switcher__link:hover,
.lang-switcher__link:focus-visible {
  opacity: 1;
}

.lang-switcher__link.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

/* On static (non-onepager) pages: darker header text for light backgrounds */
body:not(.is-onepager) .site-logo__text,
body:not(.is-onepager) .lang-switcher__link {
  color: var(--color-text-dark);
  text-shadow: none;
}

body:not(.is-onepager) .lang-switcher__link.is-active {
  background: rgba(0, 0, 0, 0.08);
}

body:not(.is-onepager) .site-logo img {
  filter: none;
}

/* --------------------------------------------------------------------------
   Scroll Container – CSS Scroll Snap
   -------------------------------------------------------------------------- */
.scroll-container {
  height: 100svh;                 /* modern mobile-safe viewport unit */
  height: 100dvh;                 /* dynamic fallback when supported */
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Each section fills the viewport and snaps */
.section {
  position: relative;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;       /* force stop on each section */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.section--hero {
  color: var(--color-text);
}

.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

.section__content--hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: calc(var(--header-height) + 2rem) 0 3rem;
  text-align: left;
}

.hero-inner {
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  box-sizing: border-box;
  text-align: left;
}

.hero-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: left;
}

.hero-subheadline {
  font-size: 36px;
  line-height: 1.35;
  opacity: 0.9;
  margin-bottom: 2.25rem;
  max-width: var(--max-content-width);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Content Sections
   -------------------------------------------------------------------------- */
.section:not(.section--hero) {
  background-color: var(--section-bg, #ffffff);
}

.section__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  padding: calc(var(--header-height) + 1.5rem) 0 2rem;
  width: 100%;
}

.section__content--dark {
  color: var(--color-text-dark);
}

.section__content--light {
  color: var(--color-text);
}

.content-inner {
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  box-sizing: border-box;
  text-align: left;
}

.section-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-body {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: left;
}

.section-body p + p {
  margin-top: 1em;
}

.section-body h3 {
  font-size: 1.25rem;
  margin: 1.5em 0 0.5em;
}

/* Layout field – multi-column rows */
.layout-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--layout-gap);
  margin-bottom: var(--layout-gap);
  width: 100%;
}

.layout-row:last-child {
  margin-bottom: 0;
}

.layout-col {
  /* span comes from Kirby column->span() as fraction of 12 */
  grid-column: span min(12, max(1, calc(var(--span, 12) * 1)));
}

.layout-col__blocks > * + * {
  margin-top: 1em;
}

@media (max-width: 700px) {
  .layout-row {
    grid-template-columns: 1fr;
  }

  .layout-col {
    grid-column: 1 / -1;
  }
}

.section-body ul,
.section-body ol {
  text-align: left;
  margin: 1em 0;
  padding-left: 1.5em;
}

.section-body ul {
  list-style: disc;
}

.section-body ol {
  list-style: decimal;
}

.section-body blockquote {
  border-left: 3px solid currentColor;
  padding-left: 1.25rem;
  margin: 1.5em 0;
  opacity: 0.85;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s var(--ease-out);
}

/* Section buttons – same invert logic as hero */
.btn--section {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

/* Dark text on light section → fill text color, label white (like hero inverted) */
.section__content--dark .btn--section:hover,
.section__content--dark .btn--section:focus-visible {
  background: currentColor;
  color: #fff;
  border-color: currentColor;
  transform: translateY(-1px);
}

/* Light text on dark section → same as hero: solid light fill, dark label */
.section__content--light .btn--section:hover,
.section__content--light .btn--section:focus-visible {
  background: #fff;
  color: #111;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn--hero {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.btn--hero:hover,
.btn--hero:focus-visible {
  background: #fff;
  color: #111;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateY(3px);
}

/* --------------------------------------------------------------------------
   Section Footer (inside last section)
   -------------------------------------------------------------------------- */
.section-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
}

.section-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  box-sizing: border-box;
  font-size: 14px;
  opacity: 0.7;
  text-align: left;
}

.section-footer__nav {
  display: flex;
  gap: 1.25rem;
}

.section-footer__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Dot Navigation (right edge)
   -------------------------------------------------------------------------- */
.nav-dots {
  position: fixed;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 90;
}

.nav-dots__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-dots__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-dot);
  border: 2px solid transparent;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.nav-dots__dot:hover,
.nav-dots__dot:focus-visible {
  background: var(--color-dot-active);
  transform: scale(1.25);
}

.nav-dots__dot.is-active {
  background: var(--color-dot-active);
  transform: scale(1.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* On light sections the dots become darker – handled via JS class on body */
body.section-light .nav-dots__dot {
  background: rgba(0, 0, 0, 0.3);
}
body.section-light .nav-dots__dot.is-active,
body.section-light .nav-dots__dot:hover {
  background: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Regular (non-onepager) pages – static template
   Same horizontal padding & content width as one-pager sections
   -------------------------------------------------------------------------- */
.page-shell {
  min-height: 100svh;
  background-color: var(--page-bg, #ffffff);
  color: var(--color-text-dark);
  display: flex;
  flex-direction: column;
}

.page-shell.page-content--dark {
  color: var(--color-text-dark);
}

.page-shell.page-content--light {
  color: var(--color-text);
}

.page-content {
  flex: 1 0 auto;
  padding: calc(var(--header-height) + 1.5rem) 0 3rem;
  background: transparent;
  color: inherit;
}

.page-content--dark {
  color: var(--color-text-dark);
}

.page-content--light {
  color: var(--color-text);
}

/* Light text on dark page: white header controls */
body.template-page:has(.page-shell.page-content--light) .site-logo__text,
body.template-page:has(.page-shell.page-content--light) .lang-switcher__link,
body.template-default:has(.page-shell.page-content--light) .site-logo__text,
body.template-default:has(.page-shell.page-content--light) .lang-switcher__link {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.template-page:has(.page-shell.page-content--light) .lang-switcher__link.is-active,
body.template-default:has(.page-shell.page-content--light) .lang-switcher__link.is-active {
  background: rgba(255, 255, 255, 0.18);
}

body.template-page:has(.page-shell.page-content--light) .site-logo img,
body.template-default:has(.page-shell.page-content--light) .site-logo img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.page-content__inner {
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  box-sizing: border-box;
  text-align: left;
}

.page-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  text-align: left;
}

.page-body {
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.page-body p + p {
  margin-top: 1em;
}

.page-body h2,
.page-body h3 {
  font-weight: 600;
  margin: 1.75em 0 0.5em;
}

.page-body ul,
.page-body ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.page-body ul {
  list-style: disc;
}

.page-body ol {
  list-style: decimal;
}

.page-body blockquote {
  border-left: 3px solid currentColor;
  padding-left: 1.25rem;
  margin: 1.5em 0;
  opacity: 0.85;
  font-style: italic;
}

.page-content--error {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

/* Page Footer – transparent, inherits page-shell background & color */
.page-footer {
  background: transparent;
  border: none;
  padding: 1.25rem 0;
  color: inherit;
  flex-shrink: 0;
}

.page-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
  box-sizing: border-box;
  font-size: 14px;
  opacity: 0.75;
  text-align: left;
}

.page-footer__nav {
  display: flex;
  gap: 1.25rem;
}

.page-footer__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}
.section-footer__nav,
.page-footer__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.section-footer__copy,
.page-footer__copy {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  /* Same right edge as .site-header__inner / hamburger */
}




/* --------------------------------------------------------------------------
   Hamburger + Menu panel
   -------------------------------------------------------------------------- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

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

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

body:not(.is-onepager) .menu-toggle {
  color: var(--color-text-dark);
}

body.template-page:has(.page-shell.page-content--light) .menu-toggle,
body.template-default:has(.page-shell.page-content--light) .menu-toggle {
  color: #fff;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.site-menu:not([hidden]) {
  pointer-events: auto;
}

.site-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-menu:not([hidden]) .site-menu__backdrop {
  opacity: 1;
}

.site-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(22rem, 100%);
  height: 100%;
  background: var(--menu-bg, #111);
  color: var(--menu-text, #f5f5f5);
  padding: calc(var(--header-height) + 1rem) var(--section-padding) 2rem;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-menu:not([hidden]) .site-menu__panel {
  transform: translateX(0);
}

.site-menu__close {
  position: absolute;
  top: 1rem;
  right: var(--section-padding);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.site-menu__close:hover {
  opacity: 1;
}

.site-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-menu__link {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6rem 0;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  transition: opacity 0.2s ease;
}

.site-menu__link:hover,
.site-menu__link:focus-visible {
  opacity: 0.75;
}

.site-menu__text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.75;
  text-align: left;
}

.site-menu__text p + p {
  margin-top: 0.75em;
}

body.menu-open {
  overflow: hidden;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 3.75rem;
    /* Keep side inset consistent for logo + content */
    --section-padding: 25px;
  }

  /* ---- Mobile: normal vertical page, no scroll-snap, no clipping ---- */
  .scroll-container {
    height: auto;
    min-height: 0;
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .section {
    height: auto;
    min-height: 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    overflow: visible;
    display: block;
    justify-content: flex-start;
  }

  .section--hero {
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .section__content {
    height: auto;
    min-height: 0;
    display: block;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  /* Hero: full viewport, headline + subheadline vertically centered */
  .section__content--hero {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-bottom: 2rem;
    box-sizing: border-box;
  }

  .section__bg,
  .section__overlay {
    position: absolute;
  }

  /* Footer inside section: flow in document, not absolute overlay */
  .section-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 2rem;
    padding-top: 0;
    padding-bottom: 1.5rem;
  }

  /* Hide side dots on mobile – linear page */
  .nav-dots {
    display: none;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-subheadline {
    font-size: 22px;
  }

  .section-headline,
  .page-headline {
    font-size: 28px;
  }

  .site-nav__list {
    gap: 1rem;
  }

  .site-nav__list a {
    font-size: 0.8rem;
  }

  .nav-dots {
    right: 0.75rem;
  }

  .nav-dots__dot {
    width: 8px;
    height: 8px;
  }

  /* No extra horizontal padding – column already uses --section-padding */
  .section__content,
  .section__content--hero,
  .page-content {
    padding-left: 0;
    padding-right: 0;
  }

  .site-header__inner,
  .hero-inner,
  .content-inner,
  .page-content__inner,
  .section-footer__inner,
  .page-footer__inner {
    padding-left: var(--section-padding);
    padding-right: var(--section-padding);
  }

  /* Footer: stack links + copyright, left-aligned */
  .section-footer__inner,
  .page-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
  }

  .section-footer__nav,
  .page-footer__nav {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    text-align: left;
  }

  .section-footer__copy,
  .page-footer__copy {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 0.75rem;
  }

  .lang-switcher {
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-container {
    scroll-behavior: auto;
  }

  .btn,
  .nav-dots__dot,
  .btn__arrow {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Embed blocks + Cognito Forms (seamless)
   Match Montserrat, left align, site buttons/inputs
   Tip in Cognito: Form Styles → Field Style → "Chameleon"
   -------------------------------------------------------------------------- */
.block-embed {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  text-align: left;
  font-family: var(--font-sans);
}

.block-embed iframe {
  max-width: 100%;
  border: 0;
}

/* Cognito root */
.block-embed .cog-cognito,
.block-embed .cognito,
.cog-cognito {
  font-family: var(--font-sans) !important;
  color: inherit;
  text-align: left;
  max-width: 100%;
}

/* CSS variables for Cognito (when not using Chameleon exclusively) */
:root .cog-cognito {
  --cog-font-family: "Montserrat", system-ui, sans-serif;
}

/* Form title / headers */
.block-embed .cog-header h1,
.block-embed .cog-section__heading,
.cog-cognito .cog-header h1,
.cog-cognito .cog-section__heading {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  text-align: left !important;
  color: inherit !important;
}

/* Labels */
.block-embed .cog-label,
.cog-cognito .cog-label {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.02em;
  color: inherit !important;
  opacity: 0.9;
  text-align: left !important;
}

/* Help text */
.block-embed .cog-helptext,
.cog-cognito .cog-helptext {
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
  opacity: 0.7;
  color: inherit !important;
}

/* Text inputs & textareas */
.block-embed .el-input__inner,
.block-embed .el-textarea__inner,
.cog-cognito .el-input__inner,
.cog-cognito .el-textarea__inner {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  border-radius: 2px !important;
  border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #1a1a1a !important;
  padding: 0.75rem 0.9rem !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-content--light .block-embed .el-input__inner,
.page-content--light .block-embed .el-textarea__inner,
.section__content--light .block-embed .el-input__inner,
.section__content--light .block-embed .el-textarea__inner {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f5f5f5 !important;
}

.block-embed .el-input__inner:focus,
.block-embed .el-textarea__inner:focus,
.cog-cognito .el-input__inner:focus,
.cog-cognito .el-textarea__inner:focus {
  border-color: currentColor !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08) !important;
}

/* Dropdowns */
.block-embed .el-select .el-input__inner,
.cog-cognito .el-select .el-input__inner {
  border-radius: 2px !important;
}

/* Checkboxes / radios */
.block-embed .el-checkbox__label,
.block-embed .el-radio__label,
.cog-cognito .el-checkbox__label,
.cog-cognito .el-radio__label {
  font-family: var(--font-sans) !important;
  color: inherit !important;
}

/* Primary button – match site .btn */
.block-embed .cog-button,
.block-embed .cog-button--primary,
.cog-cognito .cog-button,
.cog-cognito .cog-button--primary {
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  border: 1.5px solid currentColor !important;
  background: transparent !important;
  color: inherit !important;
  padding: 0.85rem 1.75rem !important;
  box-shadow: none !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease !important;
}

.block-embed .cog-button:hover,
.block-embed .cog-button--primary:hover,
.cog-cognito .cog-button:hover,
.cog-cognito .cog-button--primary:hover {
  background: currentColor !important;
  color: #0a0a0a !important;
  transform: translateY(-1px);
}

.page-content--light .block-embed .cog-button:hover,
.page-content--light .block-embed .cog-button--primary:hover,
.section__content--light .block-embed .cog-button:hover,
.section__content--light .block-embed .cog-button--primary:hover {
  color: #111 !important;
  background: #fff !important;
  border-color: #fff !important;
}

/* Errors */
.block-embed .cog-error-message,
.block-embed .cog-field.is-error .cog-label,
.cog-cognito .cog-error-message {
  font-family: var(--font-sans) !important;
  color: #c0392b !important;
}

/* Confirmation */
.block-embed .cog-confirmation__message,
.cog-cognito .cog-confirmation__message {
  font-family: var(--font-sans) !important;
  color: inherit !important;
}

/* Form background transparent so section/page bg shows through */
.block-embed .cog-form,
.block-embed .c-forms-form,
.cog-cognito .cog-form {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Spacing between fields */
.block-embed .cog-row,
.cog-cognito .cog-row {
  margin-bottom: 1rem;
}
