/*
 * dert. base styles: fonts, reset, fluid type, header, mobile menu, footer, shared bits.
 * Layout values are ported from the original Wix Studio site. Breakpoints follow the
 * original: desktop above 1000px, tablet 1000px and below, mobile 750px and below.
 */

/* ---------- Fonts (self-hosted Montserrat, OFL) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-regular-latin.f85e922a16.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-regular-latinext.2b9edfd8e3.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-bold-latin.04b2a3d8dc.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-bold-latinext.789a614a7d.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-italic-latin.0f49858a6b.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-bolditalic-latin.1fe8a1d624.woff2") format("woff2");
}
/* The original also used four uploaded cuts as separate families. */
@font-face {
  font-family: "Montserrat Medium";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-medium.8d43af7366.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat SemiBold";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-semibold.18b26dcb56.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat Light Italic";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("/assets/fonts/montserrat-light-italic.1dbb918408.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat Regular";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-regular.980ac04823.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-regular-latin.576c7e1adc.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ff: "Montserrat", sans-serif;
  --ff-medium: "Montserrat Medium", "Montserrat", sans-serif;
  --ff-semibold: "Montserrat SemiBold", "Montserrat", sans-serif;
  --ff-light-italic: "Montserrat Light Italic", "Montserrat", sans-serif;
  --ff-regular: "Montserrat Regular", "Montserrat", sans-serif;
  --black: #000;
  --white: #fff;
  --yellow: #e1bf33;
  --blue: #85a4e1;
  --mint: #80cdc3;
  --grey: #c7c7c7;
  /* Fluid type: font size moves linearly from --fs-min to --fs-max (px) while the viewport
     goes from --vp-min to --vp-max (px), exactly like the original's text scaling. */
  --vp-min: 320;
  --vp-max: 1920;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font: 400 16px/normal var(--ff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; font: inherit; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

.fluid {
  --fs-min: 16;
  --fs-max: 16;
  font-size: calc(var(--fs-min) * 1px + (var(--fs-max) - var(--fs-min)) *
    (clamp(var(--vp-min) * 1px, 100vw, var(--vp-max) * 1px) - var(--vp-min) * 1px) / (var(--vp-max) - var(--vp-min)));
}

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

/* Skip link: hidden until focused. */
.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 1000;
  transform: translate(-50%, -150%);
  padding: 8px 20px;
  border-radius: 24px;
  background: var(--white);
  color: #116dff;
  font-size: 14px;
  transition: transform .2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

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

/* Layout pieces behave like the original's components: positioned, stacked by grid areas. */
.site-header, .site-header *, main, main *, .site-footer, .site-footer * { position: relative; }

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template: 1fr / minmax(0, 1fr);
  height: 81.99px;
  min-height: 5vh;
  background: var(--black);
  z-index: 50;
}
.site-header__logo {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: start;
  width: 6.45%;
  margin-left: 2.35%;
  aspect-ratio: 1 / 0.3091;
}
.site-header__logo img { width: 100%; height: 100%; object-fit: cover; }
.site-nav {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: end;
  width: 764.19px;
  max-width: 100%;
  height: 46.74px;
}
.site-nav ul { display: flex; height: 100%; }
.site-nav li { flex: 1 1 auto; text-align: center; }
.site-nav a {
  display: inline-block;
  width: 100%;
  height: 47px;
  font-size: 16px;
  line-height: 47px;
}
.site-nav a span {
  display: inline-block;
  padding: 0 10px;
  color: var(--white);
  transition: color .4s ease;
}
.site-nav a:hover span { color: var(--blue); }
.site-nav a[aria-current] span, .site-nav a.is-active span { color: var(--yellow); }

.menu-toggle {
  display: none;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: end;
  width: 24.99px;
  height: 24.99px;
  margin-right: 5.07%;
  color: var(--grey);
}
.menu-toggle svg, .menu-close svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 1000px) {
  .site-header { height: 50.99px; }
  .site-header__logo { width: 106.68px; height: 32.99px; aspect-ratio: auto; margin: -4px 0 0 3%; }
  .site-nav { width: 567.04px; align-self: end; margin: 0 -0.89% 0.12px 0; }
  .site-nav a { font-size: 12px; }
}
@media (max-width: 750px) {
  .site-header { height: 80.99px; }
  .site-header__logo { margin-top: 0; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Mobile menu (panel slides in from the right over a dimmed page) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  background: rgba(0, 0, 0, 0);
  transition: background-color .3s ease, visibility 0s linear .3s;
}
.menu.is-open {
  visibility: visible;
  background: rgba(0, 0, 0, .8);
  transition: background-color .3s ease;
}
.menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template: 1fr / minmax(0, 1fr);
  width: 300px;
  max-width: 100%;
  height: 100%;
  background: var(--black);
  transform: translateX(100%);
  transition: transform .3s ease;
}
.menu.is-open .menu__panel { transform: none; }
.menu__nav {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  width: 50%;
  margin-top: 50px;
}
.menu__nav a {
  display: block;
  font: 22px/1.4 var(--ff-medium);
  text-align: center;
  color: var(--white);
}
.menu__nav a:hover { color: var(--blue); }
.menu__nav a[aria-current], .menu__nav a.is-active { color: var(--yellow); }
.menu-close {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: end;
  width: 18px;
  height: 18px;
  margin: 30px 30px 0 0;
  color: #424242;
}
body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template: 1fr / minmax(0, 1fr);
  min-height: 12.15vh;
  background: var(--black);
}
.social {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  display: flex;
  gap: 10px;
  margin-top: 21.48px;
}
.social a { display: block; width: 39px; height: 39px; color: #949494; }
.social a:hover { color: var(--white); }
.social svg { width: 39px; height: 39px; fill: currentColor; }
.site-footer__text {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  width: 27.04%;
  margin-top: 72.23px;
  color: var(--grey);
  font-size: 13px;
  text-align: center;
}
.site-footer__text a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .social { margin-top: 5px; }
  .site-footer__text { margin-top: 44px; }
}
@media (max-width: 750px) {
  .site-footer { min-height: 105.97px; }
  .social { margin-top: 12px; }
  .site-footer__text { width: 98.38%; margin-top: 54.5px; }
}

/* ---------- Entrance animations (only with JS and without reduced motion) ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] { opacity: 0; }
  .js [data-anim].is-in {
    opacity: 1;
    animation: fade-in var(--anim-dur, 600ms) cubic-bezier(.445, .05, .55, .95) var(--anim-delay, 0ms) backwards;
  }
}

/* ---------- Forms: shared not-connected / status line ---------- */
.form-status { min-height: 0; }
.form-status:empty { display: none; }
