/* ================================
  Reset
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

body {
  font-size: 1rem;
  font-family: var(--font-tertiary);
  background-color: var(--background-color);
  color: var(--text-color);
}

u {
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

/* ================================
  Global Variables
================================ */

:root {
  /* ================================
    Colors
  ================================ */
  --white: #fff;
  --black: #000;
  --grey: #a4a4a4;
  --lightest-grey: #f8f8f8;
  --light-grey: #f0f0f0;
  --medium-grey: #e2e2e2;
  --dark-grey: #333132;
  --black-10: rgb(0 0 0 / 10%);
  --black-30: rgb(0 0 0 / 30%);
  --black-50: rgb(0 0 0 / 50%);
  --black-70: rgb(0 0 0 / 70%);
  --white-10: rgb(255 255 255 / 10%);
  --white-30: rgb(255 255 255 / 30%);
  --white-50: rgb(255 255 255 / 50%);
  --white-70: rgb(255 255 255 / 70%);
  --transparent: rgb(0 0 0 / 0%);

  /* ================================
    Fonts
  ================================ */
  --font-primary: din-m, sans-serif;
  --font-secondary: din-e, sans-serif;
  --font-tertiary: inter, sans-serif;

  /* ================================
    Layout & Misc
  ================================ */
  --main-container-max-width: 56rem;
  --border-radius-min: 0.25rem;
  --border-radius-max: 3rem;
}

/* ================================
  Containers
================================ */

.main-container {
  max-width: var(--main-container-max-width);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--background-color);
  color: var(--text-color);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.secondary-container {
  padding: 8rem 3rem;
  background-color: var(--background-color);
  color: var(--text-color);
}

.gallery-container {
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

.footer-container {
  padding: 2.5rem 3rem;
  background-color: var(--background-color);
  color: var(--text-color);
}

.copyright-container {
  padding: 1.25rem 3rem;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* ================================
  Containers Tablet & Mobile Overrides
================================ */

@media (width <= 834px) {
  .secondary-container {
    padding: 8rem 2rem;
  }
}

@media (width <= 393px) {
  .secondary-container {
    padding: 4rem 1rem;
  }
}

/* @media (width <= 1024px) {
  .main-container {
    padding: 4rem 2rem;
  }

  .secondary-container {
    padding: 4rem 2rem;
  }
} */

/* ================================
  Section Themes
================================ */
:root,
[data-theme="light"] {
  --background-color: var(--white);
  --text-color: var(--dark-grey);
  --link-color: var(--grey);
  --contrast-text-color: var(--black);
  --headline-text-color: var(--dark-grey);
  --input-default-border-color: var(--black-30);
  --input-placeholder-color: var(--black-30);
  --input-active-border-color: var(--dark-grey);
  --input-active-shadow-color: var(--black-10);
  --border-color: var(--dark-grey);
}

[data-theme="dark"] {
  --background-color: var(--black);
  --text-color: var(--white);
  --link-color: var(--light-grey);
  --contrast-text-color: var(--white);
  --headline-text-color: var(--lightest-grey);
  --input-default-border-color: var(--white-70);
  --input-placeholder-color: var(--white-70);
  --input-active-border-color: var(--white);
  --input-active-shadow-color: var(--white-10);
  --border-color: var(--white);
}

/* ================================
  Typography
  Using calculator to get the clamp values:
  MinViewPort - 400px (mobile)
  MaxViewPort - 1200px (desktop)
  https://utopia.fyi/clamp/calculator
================================ */

/* Usually used in H1 */
.text-3xl {
  color: var(--headline-text-color);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(
    4rem,
    calc(1.1563rem + 11.375vw),
    9.6rem
  ); /* 64px - 114px - 155px */

  line-height: 1;
  text-wrap: balance;
}

.text-2xl {
  color: var(--headline-text-color);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(
    4rem,
    calc(2.4375rem + 6.25vw),
    7.1rem
  ); /* 64px - 114px - 114px */

  line-height: 1;
  text-wrap: balance;
}

.text-xl {
  color: var(--headline-text-color);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(2rem, calc(1rem + 4vw), 4rem); /* 32px - 64px - 64px */
  line-height: 1;
  text-wrap: balance;
}

.text-l {
  color: var(--headline-text-color);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(
    1.5rem,
    calc(0.875rem + 2.5vw),
    2.75rem
  ); /* 24px - 44px - 44px */

  line-height: 1;
  text-wrap: balance;
}

.text-m {
  color: var(--headline-text-color);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(1.5rem, calc(1.25rem + 1vw), 2rem); /* 24px - 32px - 32px */
  line-height: 1.4;
  text-wrap: balance;
}

.text-s {
  color: var(--headline-text-color);
  font-family: var(--font-tertiary);
  font-weight: 400;
  font-size: 1.5rem; /* 24px - 24px - 24px */
  line-height: 1.2;
  text-wrap: balance;
}

h2.text-s {
  font-weight: 700;
}

.text-xs {
  color: var(--headline-text-color);
  font-family: var(--font-tertiary);
  font-weight: 370;
  font-size: 1rem; /* 16px - 16px - 16px */
  line-height: 1;
  text-wrap: balance;
}

h3.text-xs {
  font-weight: 700;
}

/* ================================
  Images
================================ */
.team-member-image {
  border-radius: 50%;
  object-fit: cover;
}

/* ================================
  Buttons
================================ */
.button {
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-tertiary);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5rem;
  border-radius: var(--border-radius-max);
  border: 1px solid var(--border-color);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.button--solid {
  color: var(--background-color);
  background-color: var(--contrast-text-color);
  border-color: var(--contrast-text-color);
}

.button--solid:hover {
  opacity: 0.9;
}

.button--outline {
  color: var(--text-color);
  background-color: transparent;
  border-color: var(--border-color);
}

.button--outline:hover {
  opacity: 0.85;
}

.button.squared {
  border-radius: var(--border-radius-min);
}

/* ================================
  Links
================================ */
a {
  color: var(--link-color);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus,
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  clip-path: none;
  white-space: normal;
  background-color: var(--background-color);
  color: var(--text-color);
  outline: 2px solid var(--border-color);
  outline-offset: 2px;
}

p > a,
small > a {
  font-size: inherit;
  font-weight: inherit;
}

/* ================================
  Accordeon
================================ */
.accordion details {
  width: 100%;
}

/* Estilo del encabezado (Summary) */
.accordion summary {
  display: flex;
  justify-content: space-between; /* Empuja el texto a la izq e icono a la der */
  align-items: center;
  padding: 15px 5px;
  cursor: pointer;
  list-style: none; /* Quita la flecha nativa */
  border-bottom: 1px solid var(--border-color); /* Linea inferior sutil */
  transition: color 0.3s ease;
}

.accordion summary > span {
  flex: 1;
  min-width: 0;
  padding-right: 1rem;
}

/* Quitar flecha nativa en navegadores basados en Safari/Webkit */
.accordion summary::-webkit-details-marker {
  display: none;
}

/* Estilo del icono (La dependencia externa) */
.accordion summary i {
  transition: transform 0.3s ease; /* Para que la rotación sea suave */
}

/* Rotación del icono cuando el details está abierto */
.accordion details[open] summary i {
  transform: rotate(180deg);
}

/* Estilo del contenido revelado */
.accordion-content {
  padding: 15px 5px;
}

/* ---------- INFO INFERIOR ---------- */
.accordion {
  padding-top: 2rem;
}

/* ================================
  Dividers
================================ */

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

/* ================================
  Carrusel
================================ */
.carousel {
  width: 100vw;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
}

.carousel li {
  list-style-type: none;
  background-color: var(--black);
  border: 1px solid var(--black);
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel li:nth-child(even) {
  background-color: var(--black);
}
