@import url(components/footer.css);
@import url(components/fonts.css);

/*Variables*/
:root {
  /*Color variables*/
  --text: #ffffff;
  --background: #181c1c;
  --cianEletrico: #01f5d1;
  --backgroundDestaque: #000000;
  --verdePetronas: #00a19b;
  --prataSelenita: #c8ccce;
  --primaryGradient: linear-gradient(to right, #01f5d1, #00a19b);
  --secondaryGradient: linear-gradient(to right, #00a19b, #01f5d1);

  /* Responsive Spacing - Mobile First */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  --font-title: "Space Grotesk", sans-serif;
  --font-text: "Inter", sans-serif;

  /* Accessibility */
  --min-touch-target: 2rem; /* 44px */
  --focus-color: var(--cianEletrico);
}

/* Tablet breakpoints */
@media (min-width: 48rem) {
  :root {
    --spacing-lg: 1.75rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3.5rem;
  }
}

/* Desktop breakpoints */
@media (min-width: 64rem) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
}

/* Basic reset and layout */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  font-weight: 400;
}

body {
  font-family: var(--font-text);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

a {
  text-decoration: none;

  &:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
  }
}

/* Tipography - Mobile First with Responsive Scaling */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

/* Mobile First (320px+) */
h1 {
  font-size: clamp(1.8rem, 5vw, 7.2rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 4.8rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.2rem, 3.5vw, 3rem);
  line-height: 1.2;
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
}

h5 {
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
}

/* Container - Responsive with fluid max-width */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Tablet (768px+) */
@media (min-width: 48rem) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* Desktop (1024px+) */
@media (min-width: 64rem) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/*Buttons - Accessible with min 44x44px touch target*/

.btn-menu,
.btn-primary,
.btn-secondary {
  font-family: var(--font-text);
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.25rem, 5vw, 3.125rem);
  min-height: var(--min-touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;

  &:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
  }
}

.btn-menu {
  background-image: var(--primaryGradient);
  color: var(--text);

  &:hover,
  &:active {
    transform: translateY(-2px);
    background-image: var(--secondaryGradient);
  }
}

.btn-primary {
  background-image: var(--primaryGradient);
  color: var(--text);

  &:hover,
  &:active {
    transform: translateY(-2px);
    background-image: var(--secondaryGradient);
  }
}

.btn-secondary {
  background-color: var(--text);
  color: var(--background);

  &:hover,
  &:active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
    transform: translateY(-2px);
  }
}

/*Hero Section - Mobile First*/

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-image: url("../images/heroHome.png");
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(27, 27, 27, 0.75) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 4vw, 1.5rem);
  padding: 0 var(--spacing-md);

  .heading span {
    background: var(--primaryGradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
  }

  .tag p {
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 2rem);
    line-height: 1.5;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: clamp(0.5rem, 2vw, 1rem);

    a {
      width: 100%;
      text-align: center;
    }
  }
}

/* Tablet (768px+) */
@media (min-width: 48rem) {
  .hero {
    min-height: 100vh;
    background-attachment: scroll;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(27, 27, 27, 0.85) 50%,
      rgba(0, 0, 0, 0.3) 100%
    );
  }

  .hero-content {
    max-width: 600px;
    gap: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: 5rem;

    .buttons {
      flex-direction: row;
      gap: clamp(1rem, 2vw, 1rem);

      a {
        width: auto;
      }
    }
  }
}

/* Desktop (1024px+) */
@media (min-width: 64rem) {
  .hero {
    min-height: 100vh;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(27, 27, 27, 0.8) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .hero-content {
    max-width: 760px;
    gap: 1.5rem;
  }
}
