/* Reset, base typography and shared utilities. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--c-text);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--sp-3);
  font-family: var(--f-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--c-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}
.txt-center{
  text-align: center;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-accent);
}

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

/* <picture> only exists to pick a source. Taking it out of the layout box tree
   keeps the <img> as the effective child, so sizing rules aimed at the image
   (object-fit, height:100%, flex/grid placement) keep working. */
picture {
  display: contents;
  img{
    width: 100%;
  }
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---- Utilities ---- */

.container {
  width: 80%;
  max-width: var(--container);
  margin-inline: auto;
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--sp-8);
}

.section--alt {
  background: var(--c-surface-alt);
}

.section--tint {
  background: var(--c-surface-tint);
}

.section--dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--c-on-dark);
}

.text-center {
  text-align: center;
}
.mt-6 {
  margin-top: var(--sp-6);
}
.mb-6 {
  margin-bottom: var(--sp-6);
}
.mt-7 {
  margin-top: var(--sp-7);
}

.mt-8 {
  margin-top: var(--sp-8);
}
.pb-9 {
  padding: var(--sp-9) 0;
}
.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-accent);
  color: #000;
  font-weight: 700;
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ---- Buttons ---- */

.btn {
  white-space: nowrap;
  display: inline-block;
  padding: 0.3em 1.5em 0.3em 1em;
  font-family: var(--f-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7em;
  color: var(--c-text);
  border: 2px solid currentColor;
  background: transparent;
  transition: all var(--transition);
}

.btn:hover {
  padding: 0.3em 1.5em 0.3em 1em;
  background: rgba(255, 255, 255, 0.2);
  color: var(--c-text);
}

.btn--light {
  color: #fff;
}

.btn--light:hover {
  color: #fff;
}

.btn--dark {
  color: #000;
}

.btn--dark:hover {
  color: #000;
}

/* Solid accent button (Divi's et_pb_button_1 / contact submit). */
.btn--accent {
  padding: 0.3em 1em;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-accent);
  border: 12px solid var(--c-accent);
  border-radius: var(--radius);
}

.btn--accent:hover {
  color: #fff;
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  padding: 0.3em 2em 0.3em 0.7em;
}

/* The original renders an arrow glyph on hover via the ETmodules icon font.
   Reproduced here with a CSS-drawn chevron so no licensed font is needed. */
.btn::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: -1em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
  opacity: 0;
  transition: all var(--transition);
}

.btn:hover::after {
  margin-left: 0.5em;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  :root {
    --fs-display-lg: 38px;
    --fs-display: 32px;
    --fs-hero-title: 42px;
    --fs-hero-content: 28px;
  }

  .container {
    width: 90%;
  }
}

@media (max-width: 767px) {
  :root {
    --fs-display-lg: 30px;
    --fs-display: 26px;
    --fs-hero-title: 30px;
    --fs-hero-content: 20px;
    --sp-8: 40px;
  }
}
