:root {
  --brand-red: #d30000;
  --brand-dark: #b00000;
  --brand-light: #fff5f5;
  --text-main: #1e293b;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --font-family: "Inter", sans-serif;
  --container-width: 1200px;
  --nav-height: 80px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  line-height: 1.5;
  background-color: var(--bg-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}
.bg-light {
  background-color: var(--bg-light);
}
.text-center {
  text-align: center;
}
.text-highlight {
  color: var(--brand-red);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  position: relative;
  z-index: 1;
  overflow: hidden; /* Contains the sliding background */

  /* FLEXBOX CENTERING (Critical) */
  display: inline-flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  gap: 8px; /* Space between text and arrow */

  /* Visuals */
  background-color: var(--brand-red);
  color: white;
  border: 1px solid transparent;
  transition: box-shadow 0.3s ease;
}

/* 1. THE SLIDING WALL (Darker Red) */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-dark);
  z-index: -1; /* Sits behind text */

  /* Animation Logic */
  transform: scaleX(0); /* Start hidden (width 0) */
  transform-origin: left; /* Anchor to the LEFT side */

  /* "linear" ensures constant speed, no acceleration curves */
  transition: transform 0.3s linear;
}

/* HOVER: Slide the wall in */
.btn-primary:hover::before {
  transform: scaleX(1); /* Fill to 100% width */
}

/* 2. THE ARROW DASH (Optional: Keep if you like the movement) */
.btn-primary i {
  position: relative;
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  animation: arrowDash 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes arrowDash {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(10px);
    opacity: 0;
  }
  41% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.btn-full {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

/* Section Headers */
.overline {
  display: block;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Icons */
.icon-red {
  color: var(--brand-red);
  font-size: 18px;
}
