/*********************/
/* CUSTOM PROPERTIES */
/*********************/
@font-face {
  font-family: "sonos";
  src: url("../fonts/sonos.woff2");
}

html,
body {
  font-family: "sonos", sans-serif;
}

:root {
  /* Color scheme */
  color-scheme: light dark;

  /* light-dark color kleurtjes */
  --primary-background: light-dark(#ffffff, #000000);
  --secondary-background: light-dark(#3b410b, #262a07);
  --tertiary-background: light-dark(#ffffff, #1c1b22);

  --img-text: light-dark(#ffffff, #ffffff);
  --img-background: light-dark(#ffffff, #17171b);
  --primary-text: light-dark(#000000, #ffffff);
  --secondary-text: light-dark(#000000, #e1e1e1);
  --tertiary-text: light-dark(#333333, #ffffff);
  --primary-text-link: light-dark(#5b672a, #7b8d33);

  --primary-btn-border-color: light-dark(#000000, #ffffff);

  --focus-ring-color: light-dark(#000000, #ffffff);
  --secondary-focus-ring-color: light-dark(#ffffff, #ffffff);
   --focus-ring-color-img: light-dark(#ffffff, #ffffff);

  /* algemeene zooi */
  --max-width: 100%;

  /* Legacy */
  --main-color: #ffffff;
  --primary-color: #222222;
  --secondary-color: #555555;
  --tertiary-color: #888888;
  --accent-color: #ff0000;
  --background-color: #3b410b;
  --promo-bar-background: #3a410b;

  --text-color: #000000;
  --warning-color: #ffcc00;
  --error-color: #ff0000;

  /* typo */
  --font-size-small: 0.9rem;
  --font-size-base: 1rem;
  --font-size-medium: clamp(1rem, 0.8125rem + 0.9375vw, 1.375rem);
  --font-size-large: clamp(1rem, 10vw, 1.6rem);
  --font-size-xlarge: clamp(1.4rem, 3vw, 2rem);
  --font-size-xxlarge: clamp(2rem, 5vw, 3.5rem);

  /* Hero  */
  --hero-title-size: clamp(2.4rem, 5vw, 4.8rem);
  --feature-title-size: clamp(2.2rem, 4vw, 3.4rem);
  --feature-text-size: clamp(1rem, 2vw, 1.3rem);
  --feature-text-color: #ffffff;

  /* White space scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border-radius */
  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 12px;
  --border-radius-xlarge: 16px;
  --border-radius-xxlarge: 50px;

  /* Padding */
  --padding-small: 0.5rem;
  --padding-medium: 0.75rem;
  --padding-large: 1rem;
  --padding-xlarge: 1.5rem;
  --padding-xxlarge: 2rem;

  /* gap */
  --gap-small: 0.6em;
  --gap-medium: 1em;
  --gap-large: 1.8em;
  --gap-xlarge: 2.4em;

  /* Header, nav */
  --header-height-mobile: 10vh;
  --promo-bar-height: 5vh;
  --nav-padding-inline: 1.5rem;
  --nav-padding-block: 0.75rem;
  --nav-gap: 2rem;
  --nav-icon-gap: 1rem;
  --nav-icon-gap-desktop: 1.5rem;
  --nav-hover-underline-height: 1px;
  --nav-hover-underline-offset: 0.25rem;
  --hamburger-line-height: 2px;
  --hamburger-gap: 0.25rem;
  --hamburger-size: 2rem;

  /* Hero */
  --hero-height: 100vh;
  --hero-overlay: rgba(0, 0, 0, 0.35);
  --hero-content-padding-inline: 1rem;
  --hero-heading-margin-bottom: 1.2rem;
  --hero-button-hover-overlay: rgba(255, 255, 255, 0.12);

  /* Featuresssssssss */
  --feature-height: 56vh;
  --feature-border-radius: var(--border-radius-xxlarge);
  --feature-inner-gap: 0.5em;

  /* Primary Button */
  --primary-button-radius: 40px;
  --primary-button-padding: 0.9em 2.2em;
  --primary-button-font-size: 1.1rem;
  --primary-button-border-width: 1px;

  /* Grids */
  --grid-max-width: 75rem;
  --grid-gutter: var(--space-md);
  --grid-gutter-large: clamp(0.5rem, -2.7981rem + 19.6154vw, 2.5rem);
  --grid-columns: 4;

  /* Sections */
  --section-padding: 1em;
  --section-gap: 2em;

  /* Hero + main section spacing */
  --hero-bottom-margin: 5%;

  /* footer */
  --footer-background: #222222;
  --footer-text-color: #ffffff;
  --footer-border-color: #444444;
  --footer-link-color: #cccccc;
  --footer-link-hover-decoration: underline;
  --footer-top-margin: 4rem;
  --footer-padding-block: 2.5rem;
  --footer-gap-columns: 2rem;
  --footer-gap-links: 0.75rem;
  --footer-gap-links-wide: 1.5rem;
  --footer-newsletter-title-size: 2rem;
  --footer-checkbox-gap: 0.5rem;
  --footer-block-gap: 1.5rem;
  --footer-blockquote-gap: 2rem;

  /* Inputs, form */
  --input-padding-block: 0.9rem;
  --input-padding-inline: 1rem;
  --input-border-radius-pill: 999px;
  --input-background: #111111;
  --input-text-color: #ffffff;

  /* idk */
  --section-cta-margin-top: 1rem;

  /* newssletter form */
  --newsletter-gap: 1rem;

  /* Blockquotes */
  --blockquote-border-width: 1px;
  --blockquote-padding: 1em;

  /* BTN hover statesss */

}


/**********************/
/* HEADER + PROMO BAR */
/**********************/


/* Hidden H1 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  /* voorkomt dat tekst meerdere regels wordt */
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999em;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}

.skip-link:focus {
  position: static;
  left: auto;
  width: auto;
  height: auto;
  padding: 0.5em 1em;
  background: var(--main-color);
  color: var(--card-background);
  z-index: 1000;
}

/* Promo bar */
header ul:first-child {
  background-color: var(--promo-bar-background);
  color: var(--main-color);
  display: flex;
  height: 5vh;
  align-items: center;
  justify-content: space-around;
  text-decoration: none;
}

header ul:nth-of-type(1) li {
  list-style-type: "";
  text-align: center;
}

header ul:nth-of-type(1) a {
  color: var(--main-color);
  text-decoration: none;
  text-underline-position: below;
}




/**********************/
/* MAIN NAV (structure based) */
/**********************/

header>nav {
  background-color: var(--tertiary-background);
  border-bottom: 1px solid var(--primary-background);
  z-index: 10;

  /* max-width: var(--grid-max-width); */
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  height: 10vh;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 2rem;

  position: relative;
}

/* Logo */
header>nav>a:first-of-type {
  font-size: 1.4rem;
  letter-spacing: 0.4rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-text);
  text-transform: uppercase;
  white-space: nowrap;
}

header>nav>ul:nth-of-type(1) {
  list-style: "";
  display: none;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

/* Links in menu */
header>nav>ul:nth-of-type(1) li a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--primary-text);
  white-space: nowrap;
}

/* Black Friday highlight */
header>nav>ul:nth-of-type(1) li:first-of-type a {
  color: var(--primary-text-link);
  font-weight: 500;
}

/* Icons  */
header>nav>menu:nth-of-type(1) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* header>nav>menu:nth-of-type(1)>button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
} */


header>nav>ul:nth-of-type(2) {
  list-style: "";
  gap: var(--gap-large);
  display: inline-flex;
  flex-direction: row;
  align-items: center;


}

/* Links in menu */
header>nav>ul:nth-of-type(2) svg {
  color: var(--primary-text);
  white-space: nowrap;
  height: 17px;
}

/* Hamburger  */
header>nav>button:last-of-type {
  justify-self: end;
  width: 2rem;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

#disable-close-btn {
  justify-self: end;
  width: 2rem;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

#disable-close-btn span {
  display: block;
  height: 2px;
  width: var(--max-width);
  background: var(--main-color);
  /* Moet wit blijven */
}

#disable-close-btn span:first-of-type {
  transform: translateY(3px) rotate(45deg);
}

#disable-close-btn span:last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}

/* Lines burger */
header>nav>button:last-of-type span {
  display: block;
  height: 2px;
  width: var(--max-width);
  background: var(--primary-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Nav open == true > animation transform */
header>nav[data-open="true"]>button:last-of-type span:first-of-type {
  transform: translateY(3px) rotate(45deg);
}

header>nav[data-open="true"]>button:last-of-type span:last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}


/**************/
/* MOBIEL     */
/**************/
@media screen and (max-width: 64em) {
  header>nav {
    grid-template-columns: auto auto auto;
  }

  /* dropdown menu */
  header>nav>ul:nth-of-type(1) {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border-bottom: 1px solid var(--tertiary-background);

    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
  }


  header>nav[data-open="true"]>ul:nth-of-type(1) {
    display: flex;
    background-color: var(--tertiary-background);
  }
}

/**************/
/* DESKTOP    */
/**************/
@media screen and (min-width: 64em) {
  header>nav>ul:nth-of-type(1) {
    display: flex;

  }

  /* hamburger = weg */
  header>nav>button:last-of-type {
    display: none;
  }

  header>nav>ul:nth-of-type(1) {
    justify-self: center;
  }

  header>nav>menu:nth-of-type(1) {
    justify-self: end;
    gap: 1.5rem;
  }

  /* hover middle links  state  */
  header>nav>ul:nth-of-type(1) li a {
    position: relative;
  }

  header>nav>ul:nth-of-type(1) li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: width 0.2s ease;
  }

  header>nav>ul:nth-of-type(1) li a:hover::after {
    width: var(--max-width);
  }
}

/* main nav states */
header a:focus-visible:not(.promo-bar) {
  outline: 4px solid var(--focus-ring-color);
  outline-offset: 5px;

  & a:hover {
    color: var(--primary-text);
    text-decoration: none;
    text-underline-position: below;
  }
}

header a:active {
  background-color: pink;
  /* Tijdelijke placeholder */
}


.promo-bar:focus-visible {
  outline: 0.2rem solid var(--focus-ring-color-img);
  outline-offset: 0.3rem;
}



/********************/
/* MAIN GRID LAYOUT  */
/********************/
main> :not(.hero, .reverse-scroll-animation) {
  display: grid;
  gap: 2em;
  grid-template-columns: repeat(1, 1fr);
  padding: var(--grid-gutter);
  max-width: var(--grid-max-width);
  margin: 0 auto;
}

@media screen and (66em > width) {
  main {
    grid-template-columns: 1fr;
  }
}

/****************/
/* SECTION template */
/****************/
main>section {
  color: var(--primary-text) !important;
  padding: 1em;
}

/* } & img {
  background-color: black;
} */



/****************************/
/* Footer                  */
/****************************/
footer {
  background-color: #222;
  color: #fff;
  margin-top: 4rem;
}

/* footer max width geven zodat alles nice loopt */
footer>section {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 2.5rem var(--grid-gutter);
}

/* nieuwsbrief */
footer>section:first-of-type {
  border-bottom: 1px solid #444;
}

footer>section:first-of-type h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

footer>section:first-of-type p {
  color: #ddd;
  max-width: 32rem;
}

/* form */
footer>section:first-of-type form {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

footer>section:first-of-type form input[type="email"] {
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: none;
  min-width: min(20rem, 100%);
  background-color: #111;
  color: #fff;
}

footer>section:first-of-type form button {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-color: #fff;
  color: #000;
  font-weight: 500;
}

/* Checkbox */
footer>section:first-of-type>label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  max-width: 34rem;
}

footer>section:first-of-type>label input[type="checkbox"] {
  margin-top: 0.25rem;
}

footer>section:first-of-type>label a {
  color: #fff;
}

footer>section:nth-of-type(3) {
  border-bottom: 1px solid #444;
}

footer>section:nth-of-type(2)>ul {
  list-style: "";
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

/* !ELKE! kolom */
footer>section:nth-of-type(2)>ul>li>h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

footer>section:nth-of-type(2)>ul>li>ul {
  list-style: "";
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

footer>section:nth-of-type(2) a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}

footer>section:nth-of-type(2) a:hover {
  text-decoration: underline;
}

footer>section:last-of-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  font-size: 0.8rem;
}

footer>section:last-of-type>p:first-of-type {
  margin-right: auto;
}

footer>section:last-of-type>ul {
  list-style: "";
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

footer>section:last-of-type>ul a {
  color: #ccc;
  text-decoration: none;
}

footer>section:last-of-type>ul a:hover {
  text-decoration: underline;
}

/*********************/
/* Footer responsive shizzle */
/*********************/
@media (min-width: 64em) {

  /* nieuwsbrief + input + checkbox === breder */
  footer>section:first-of-type {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 4rem;
    align-items: start;
  }

  footer>section:first-of-type form {
    flex-wrap: nowrap;
  }

  /* kolomen 5 grid */
  footer>section:nth-of-type(2)>ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


@media (max-width: 48em) {
  footer>section:nth-of-type(2)>ul>li {
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
  }
}


/******************/
/* ALGEMENE BTN, ETC. STATES   */
/******************/

/* Button states toevoegen, Active / hover / focus */
/* Button states toevoegen, Active / hover / focus */
/* Button states toevoegen, Active / hover / focus */

/* Header states */



/* Main states */
/* main > a:focus-visible:not(img) {
     outline: 4px solid var(--focus-ring-color);
     outline-offset: 5px;
} */


/* on:focus */
main a:focus-visible {
  outline: 0.2rem solid var(--focus-ring-color);
  outline-offset: 0.3rem;
}

footer a:focus-visible {
  outline: 0.15rem solid var(--secondary-focus-ring-color);
  outline-offset: 0.15rem;
}

footer input:focus-visible {
  outline: 0.25rem solid var(--secondary-focus-ring-color);
  outline-offset: 0.35rem;
}

footer button:focus-visible {
  outline: 0.25rem solid var(--secondary-focus-ring-color);
  outline-offset: 0.35rem;
}




/* Disable all animations */
/* https://www.inovex.de/de/blog/removing-animations-people-troubled-motion-css-angular/ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::after,
  *::before {
    animation-duration: 1ms !important;
    /* 1 */
    animation-delay: -1ms !important;
    /* 2 */
    animation-iteration-count: 1 !important;
    /* 3 */
    transition-duration: 1ms !important;
    /* 4 */
    transition-delay: -1ms !important;
    /* 5 */
  }

  /* Als animations disabled is = disable vid */
  .hero>section:first-of-type video {
    display: none;

  }

  .hero>section:first-of-type {
    background-image: url("../images/sonosBar.png");
    background-size: cover;
    /* covers the whole section */
    background-position: center;
    /* keeps image centered */
    background-repeat: no-repeat;
    /* no tiling */
  }
}



/******************/
/* ALGEMENE IMG   */
/******************/
main img {
  max-width: var(--max-width);
  height: auto;
  background-color: var(--img-background);
}