/* ============================================
   SEMPRINI TECNOLOGIA — Design tokens
   ============================================ */
:root {
  --bg: #F7F5F0;
  --white: #FFFFFF;
  --ink: #0F1F35;
  --ink-soft: #1C3352;
  --accent: #2388E8;
  --accent-dark: #1B6BB8;
  --muted: #5C6470;
  --line: #E4E1D9;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 53, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 53, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 31, 53, 0.12);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 12px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.header__brand { display: flex; align-items: center; }
.header__logo { height: 36px; width: auto; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.header__nav a:hover { color: var(--ink); }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.header__nav a:hover::after { transform: scaleX(1); }

.header__cta { flex-shrink: 0; }

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.header__menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 100px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  position: relative;
  max-width: 760px;
}
.hero__headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   SECTIONS — shared
   ============================================ */
.section {
  padding: 88px 0;
}
.section--alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  max-width: 640px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card--lead {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.service-card--lead:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card--lead .service-card__desc { color: rgba(247, 245, 240, 0.72); }
.service-card--lead .service-card__mark { color: var(--accent); }
.service-card--lead .service-card__list li::before { background: var(--accent); }

.service-card__mark {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card__desc {
  color: var(--muted);
  margin-bottom: 24px;
}
.service-card__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15px;
}
.service-card__list li:last-child { margin-bottom: 0; }
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dark);
}

.combo-banner {
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(35, 136, 232, 0.08), rgba(35, 136, 232, 0.02));
  border: 1px solid rgba(35, 136, 232, 0.25);
  text-align: center;
}
.combo-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.combo-banner__text {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   CASES
   ============================================ */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.case-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(35, 136, 232, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.case-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.case-card p {
  color: var(--muted);
  font-size: 14.5px;
  flex-grow: 1;
  margin-bottom: 18px;
}
.case-card__link {
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 14.5px;
}
.case-card__link:hover { text-decoration: underline; }
.case-card__note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ============================================
   ABOUT
   ============================================ */
.about { max-width: 640px; }
.about__text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.about__text--strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================
   STEPS (Como funciona)
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.steps__item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.steps__item p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  background: var(--ink);
  padding: 96px 0;
}
.cta-final__inner {
  text-align: center;
  max-width: 520px;
}
.cta-final h2 {
  color: var(--bg);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 12px;
}
.cta-final p {
  color: rgba(247, 245, 240, 0.7);
  margin-bottom: 32px;
}
.cta-final .btn { margin-bottom: 20px; }
.cta-final__phone {
  color: rgba(247, 245, 240, 0.55) !important;
  font-size: 14px;
  margin-bottom: 0 !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(247, 245, 240, 0.1);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer__inner p {
  color: rgba(247, 245, 240, 0.5);
  font-size: 13.5px;
}
.footer__copy { margin-left: auto; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header__nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    z-index: 90;
    background: var(--bg);
    opacity: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, visibility 0.2s ease;
  }
  .header__nav.is-open {
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .header__nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .header__cta { display: none; }
  .header__menu-btn { display: flex; }

  .hero { padding: 64px 0 56px; }

  .section { padding: 64px 0; }
  .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .cta-final { padding: 72px 0; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin-left: 0; }
}
