/* ==========================================================================
   Pragmática Consultores
   ========================================================================== */

/* 1. Fonts
   ========================================================================== */

@font-face {
  font-family: "Mukta";
  src: url("fonts/mukta-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mukta";
  src: url("fonts/mukta-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mukta";
  src: url("fonts/mukta-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens
   ========================================================================== */

:root {
  --color-red: #ff0000;
  --color-red-dark: #7f0000;
  --color-red-footer: #af0100;
  --color-white: #f5f5f5;
  --color-canvas: #e5e5e5;

  --font-primary: "Mukta", sans-serif;
  --page-gutter: clamp(2rem, 8vw, 7.2rem);

  --header-height: clamp(92px, 13.6vh, 138px);
  --header-height-scrolled: 82px;
  --hero-padding-top: clamp(110px, 13.6vh, 138px);
  --header-gradient: linear-gradient(
    to bottom,
    rgb(9 22 31 / 38%) 0%,
    rgb(9 22 31 / 16%) 58%,
    rgb(9 22 31 / 0%) 100%
  );

  --transition-fast: 200ms ease;
  --transition-default: 300ms ease;
}

/* 3. Base and reset
   ========================================================================== */

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

html {
  background: var(--color-canvas);
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-canvas);
  color: var(--color-white);
  font-family: var(--font-primary);
  overscroll-behavior-y: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

/* Preserve the requested width while using native browser colors. */
::-webkit-scrollbar {
  width: 10px;
}

/* 4. Header and navigation
   ========================================================================== */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 15px var(--page-gutter);
  background: var(--header-gradient);
  transition: height var(--transition-default);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
}

.brand {
  flex: 0 0 auto;
  width: 156px;
}

.brand img {
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 3.5vw, 3.15rem);
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition:
    width 250ms ease,
    left 250ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  left: 0;
  width: 100%;
}

.menu-toggle {
  display: none;
  padding: 6px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: var(--color-white);
}

/* 5. Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 100svh;
  min-height: 610px;
  padding: var(--hero-padding-top) var(--page-gutter) 0;
  overflow: hidden;
  background:
    linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 20%)),
    url("assets/hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  transform: translateY(3.4vh);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow span {
  width: 18px;
  height: 3px;
  background: var(--color-red);
}

h1 {
  margin: 0 0 17px;
  font-size: clamp(3rem, 3.7vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.hero-actions {
  display: flex;
  gap: 36px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 6px 16px;
  border: 2px solid var(--color-white);
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.outline-button:hover {
  background: var(--color-white);
  color: var(--color-red);
  transform: translateY(-2px);
}

.corner-graphic {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: min(23.3vw, 334px);
}

/* 6. Social links
   ========================================================================== */

.social-links {
  position: fixed;
  z-index: 25;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  border-radius: 999px;
  background: var(--color-red);
  transform: translateY(-50%);
}

.social-links a,
.social-links img {
  width: 25px;
  height: 25px;
}

.social-links a {
  transition: transform var(--transition-fast);
}

.social-links a:hover {
  transform: scale(1.12);
}

/* 7. Trusted companies
   ========================================================================== */

.trusted {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  height: 153px;
  padding: 8px 0;
  overflow: hidden;
  background: var(--color-red-dark);
}

.trusted-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  white-space: nowrap;
}

.trusted-heading h2 {
  width: auto;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.testimonial-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 1px 7px;
  border: 1px solid var(--color-white);
  border-radius: 30px;
  font-size: 15px;
  line-height: 1.1;
}

.testimonial-button img {
  width: 14px;
  height: 14px;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 29px;
  padding-right: 29px;
}

.logo-set > a,
.logo-set > span {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 33px;
}

.logo-set > .wide {
  width: 200px;
}

.logo-set > * > img {
  max-width: 100%;
  max-height: 33px;
  object-fit: contain;
}

.logo-set .vista {
  width: 100px;
}

.logo-set .vista > span {
  display: grid;
  grid-template-columns: 41px 1fr;
  align-items: center;
  width: 100%;
  height: 33px;
}

.logo-set .vista img {
  max-width: 100%;
  max-height: 32px;
}

/* 8. Footer
   ========================================================================== */

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 54px;
  padding: 0 var(--page-gutter);
  background: var(--color-red-footer);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.022em;
  white-space: nowrap;
}

.copyright p {
  margin: 0;
}

.copyright a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.copyright img {
  width: 48px;
  height: 20px;
  object-fit: contain;
}

/* 9. Animations
   ========================================================================== */

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 10. Responsive: tablet and mobile navigation
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --page-gutter: 28px;
  }

  .site-header {
    height: 90px;
  }

  .brand {
    width: 140px;
  }

  .menu-toggle {
    z-index: 2;
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: min(320px, 82vw);
    height: 100vh;
    padding: 110px 35px 35px;
    background: rgb(60 0 0 / 96%);
    transform: translateX(100%);
    transition: transform var(--transition-default);
  }

  .site-header.menu-open .main-nav {
    transform: translateX(0);
  }

  .hero {
    background-position: 57% center;
  }

  .hero-content {
    transform: none;
  }

  h1 {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .social-links {
    padding: 12px 9px;
  }

  .trusted {
    height: 160px;
  }
}

/* 11. Responsive: small mobile
   ========================================================================== */

@media (max-width: 580px) {
  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .outline-button {
    padding-inline: 12px;
    font-size: 13px;
  }

  .corner-graphic {
    width: 42vw;
  }

  .trusted-heading {
    gap: 10px;
  }

  .trusted-heading h2 {
    font-size: 17px;
  }

  .testimonial-button {
    font-size: 13px;
  }

  .copyright {
    gap: 14px;
    height: 50px;
    padding-inline: 18px;
    font-size: 10px;
  }

  .copyright img {
    width: 40px;
  }
}

/* 12. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-track {
    animation-play-state: paused;
  }
}
