/* ============ 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-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-primary);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
}

h1 {
  font-size: clamp(30px, 4vw, 38px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: clamp(19px, 2vw, 24px);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============ Layout container ============ */
.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--page-pad-mobile);
  padding-right: var(--page-pad-mobile);
}

@media (min-width: 768px) {
  .l-container {
    padding-left: var(--page-pad-desktop);
    padding-right: var(--page-pad-desktop);
  }
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============ SVG icon defaults ============ */
.c-icon {
  flex-shrink: 0;
  fill: currentColor;
}

.c-icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ Fluent Forms submit button (form 1) ============ */
form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style) {
  background-color: var(--color-primary) !important;
}
