/* =========================================================
 * STARCOMM — style.css (final limpo)
 * Paleta: #FFFFFF / #1E1E1E
 * Fonte: Space Grotesk (carregada no HTML)
 * ========================================================= */

/* =============== VARIABLES CSS =============== */
:root {
  --header-height: 3.5rem;

  /* Colors */
  --white-color: #ffffff;
  --black-color: #1e1e1e;
  --gray-color: #6b7280;
  --gray-light: #f9fafb;
  --accent-color: #3b82f6;

  /* Font */
  --body-font: "Space Grotesk", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /* Font weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* Spacing */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Radius / Shadow */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  color: var(--black-color);
}

h1,
h2,
h3 {
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Focus (acessibilidade) */
:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============== REUSABLE CLASSES =============== */
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--black-color);
  text-align: center;
  margin-bottom: var(--mb-0-75);
  letter-spacing: -0.02em;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  text-align: center;
  color: var(--gray-color);
}

.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: var(--font-medium);
  transition: transform 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.button:hover {
  background-color: var(--gray-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.button--primary {
  background-color: var(--black-color);
  color: var(--white-color);
}

.button--primary:hover {
  background-color: var(--gray-color);
}

/* =============== HEADER / NAV =============== */
.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--white-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: var(--font-bold);
  color: var(--black-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-img {
  width: 30px;
  height: 30px;
}

.logo-text {
  font-weight: var(--font-bold);
  letter-spacing: -1px;
}

/* CTA no header (desktop) */
.nav__cta {
  display: none;
  padding: 0.6rem 1.25rem;
  font-size: var(--small-font-size);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Toggle */
.nav__toggle {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--black-color);
  padding: 0.25rem;
}

.nav__toggle-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--black-color);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* Menu (mobile sheet) */
.nav__menu {
  position: fixed;
  bottom: -110%;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  padding: 2rem 1.5rem 4rem;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
  border-radius: 1.5rem 1.5rem 0 0;
  transition: bottom 0.25s ease;
}

.nav__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--gray-color);
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--black-color);
}

/* Show menu */
.show-menu {
  bottom: 0;
}

/* Active link (com sublinhado discreto) */
.active-link {
  color: var(--black-color);
  position: relative;
}

.active-link::after {
  content: "";
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  position: absolute;
  bottom: -6px;
  left: 0;
  border-radius: 2px;
}

/* Header style on scroll (classe do JS) */
.scroll-header {
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.12);
}

/* =============== HERO =============== */
.hero {
  padding: 6rem 0 2rem;
  background: linear-gradient(
    135deg,
    var(--white-color) 0%,
    var(--gray-light) 100%
  );
}

.hero__container {
  gap: 1rem;
  align-items: center;
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  line-height: 1.15;
  margin-bottom: var(--mb-1);
  color: var(--black-color);
  letter-spacing: -0.03em;
}

.hero__description {
  font-size: var(--h3-font-size);
  color: var(--gray-color);
  margin-bottom: var(--mb-2-5);
  line-height: 1.6;
}

.hero__img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__blob {
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    var(--black-color) 0%,
    var(--gray-color) 100%
  );
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__tech {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tech-icon {
  width: 60px;
  height: 60px;
  background: var(--white-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* =============== ABOUT =============== */
.about {
  background-color: var(--white-color);
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
  color: var(--gray-color);
  line-height: 1.7;
  font-size: var(--h3-font-size);
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--black-color);
  display: block;
  text-align: center;
}

.about__info-name {
  font-size: var(--smaller-font-size);
  color: var(--gray-color);
  display: block;
  text-align: center;
}

/* =============== SERVICES =============== */
.services {
  background-color: var(--gray-light);
}

.services__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services__card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.services__icon {
  font-size: 2.5rem;
  color: var(--black-color);
  margin-bottom: var(--mb-1);
}

.services__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: var(--black-color);
}

.services__description {
  color: var(--gray-color);
  line-height: 1.6;
}

/* =============== PROCESS =============== */
.process {
  background-color: var(--white-color);
}

.process__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process__card {
  text-align: center;
  padding: 2rem;
}

.process__number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: var(--black-color);
  color: var(--white-color);
  border-radius: 50%;
  line-height: 50px;
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
}

.process__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: var(--black-color);
}

.process__description {
  color: var(--gray-color);
  line-height: 1.6;
}

/* =============== CTA =============== */
.cta {
  background: linear-gradient(
    135deg,
    var(--black-color) 0%,
    var(--gray-color) 100%
  );
  padding: 4rem 0;
  text-align: center;
}

.cta__title {
  font-size: var(--h1-font-size);
  color: var(--white-color);
  margin-bottom: var(--mb-1);
  letter-spacing: -0.02em;
}

.cta__description {
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: var(--mb-2-5);
  opacity: 0.92;
  line-height: 1.6;
}

.cta .button {
  background-color: var(--white-color);
  color: var(--black-color);
}

.cta .button:hover {
  background-color: var(--gray-light);
}

/* =============== FOOTER =============== */
.footer {
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 2rem 0;
}

.footer__container {
  text-align: center;
}

.footer__logo {
  margin-bottom: var(--mb-1);
}

.footer__logo .logo-text {
  color: var(--white-color);
  font-size: 1.5rem;
}

.footer__description {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--mb-2);
}

.footer__link {
  color: var(--white-color);
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer__copy {
  margin-top: var(--mb-2);
  padding-top: var(--mb-1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--smaller-font-size);
}

/* =============== SCROLL BAR =============== */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--gray-light);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--gray-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--black-color);
}

/* =============== BREAKPOINTS =============== */

/* Small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    padding: 2rem 0.75rem 4rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__blob {
    width: 250px;
    height: 250px;
  }
}

/* Medium devices */
@media screen and (min-width: 568px) {
  .hero__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }

  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .header {
    top: 0;
    bottom: initial;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    bottom: initial;
    left: initial;
    width: auto;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    transition: none;
  }

  .nav__list {
    display: flex;
    gap: 2rem;
  }

  .nav__cta {
    display: inline-block;
  }

  .hero__container {
    gap: 2rem;
  }

  .hero__blob {
    width: 400px;
    height: 400px;
  }

  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large devices */
@media screen and (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  .hero__blob {
    width: 500px;
    height: 500px;
  }

  .hero__title {
    font-size: 3.5rem;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .hero__blob {
    width: 600px;
    height: 600px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
