/*================= Base Elements =================*/

:root {
  /* Brand Colors */

  --color-primary: #ef4444;
  --color-secondary: #7f1d1d;

  --bg-color: #140909;
  --bg-color-alt: #2a1212;

  --text-black: #1a1a1a;
  --text-muted: #e4bebe;
  --text-white: #ffffff;

  --font-family: "Poppins";
  --fs-xs: 0.75rem; /* 12px */
  --fs-sm: 0.875rem; /* 14px */
  --fs-base: 1rem; /* 16px */
  --fs-md: 1.125rem; /* 18px */
  --fs-lg: 1.25rem; /* 20px */
  --fs-xl: 1.5rem; /* 24px */
  --fs-2xl: 2rem; /* 32px */
  --fs-3xl: 3rem; /* 48px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  --space-0: 0rem; /* 0px */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.5rem; /* 24px */
  --space-6: 2rem; /* 32px */
  --space-8: 3rem; /* 48px */

  --radius-sm: 0.5rem; /* 8px */
  --radius-md: 1rem; /* 16px */
  --radius-circle: 50%;

  /* Transition */
  --transition: 0.4s;
  --header-height: 70px;
}

html {
  scroll-padding-top: calc(var(--header-height) + (var(--space-4) * 2));
  scroll-behavior: smooth;
}

body {
  padding-block-start: calc(var(--header-height) + var(--space-4));
  padding-block-end: var(--space-4);
  background-color: var(--bg-color);
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  color: var(--text-white);
}

/*================= Page Normalization =================*/

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

input,
button,
textarea {
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  color: var(--text-white);
}

/*================= Components Classes =================*/

.h1 {
  font-size: clamp(var(--fs-2xl), 5vw + var(--fs-base), var(--fs-3xl));
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.h2 {
  font-size: clamp(var(--fs-xl), 4vw + var(--fs-base), var(--fs-2xl));
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.h3 {
  font-size: clamp(var(--fs-lg), 3vw + var(--fs-base), 1.5rem);
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.h4 {
  font-size: clamp(var(--fs-md), 2vw + var(--fs-base), var(--fs-lg));
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: transparent;
  border: none;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding-inline: var(--space-5);
  padding-block: var(--space-3);
  transition: var(--transition);
  gap: var(--space-2);
}

.btn i {
  font-size: var(--fs-lg);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
}

.btn-secondary {
  background-color: var(--bg-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
}

.btn-sm {
  padding-inline: var(--space-5);
  padding-block: var(--space-2);
}

/*================= Utilities Classes =================*/

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.d-none {
  display: none;
}

.flex-column {
  flex-direction: column;
}

.d-center {
  align-items: center;
  justify-content: center;
}

/*================= Layout Structure =================*/
.section {
  background-color: var(--bg-color-alt);
  border-radius: var(--radius-md);
  padding-block: var(--space-8);
  margin-block-start: var(--space-4);
  border: 1px solid var(--color-secondary);
}

.wrapper {
  width: calc(100% - (var(--space-4) * 2));
  padding-inline: var(--space-4);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .wrapper {
    width: calc(48rem - (var(--space-4) * 2));
  }
}

@media (min-width: 62rem) {
  .wrapper {
    width: calc(62rem - (var(--space-4) * 2));
  }
}

@media (min-width: 75rem) {
  .wrapper {
    width: calc(75rem - (var(--space-4) * 2));
  }
}
@media (min-width: 87.5rem) {
  .wrapper {
    width: calc(87.5rem - (var(--space-4) * 2));
  }
}
