/* ============ BASE ============ */
:root {
  --dark: #171b1c;
  --sage: #c9d3d1;
  --ink: #131718;
  --gray: #5e6a6a;
  --blue: #1e63f0;
  --radius-card: 24px;
  --font: 'InterDisplay', 'Inter Display', 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--dark);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2 { font-weight: 600; letter-spacing: -0.01em; }

/* ============ PAGE (background exportado do Figma, tela toda) ============ */
.page {
  background: var(--sage) url('assets/desktop 000.jpg') top center / 100% auto no-repeat;
  min-height: 100vh;
}

/* ============ HERO ============ */
/* A foto e o nome gigante já estão no background — aqui só o texto */
.hero {
  position: relative;
  aspect-ratio: 2880 / 870;
}

.hero-copy {
  position: absolute;
  left: 20.9%;
  bottom: 14%;
  color: #fff;
}

.hero-copy h1 {
  font-size: clamp(26px, 2.6vw, 50px);
  line-height: 1.18;
  margin-bottom: clamp(8px, 0.9vw, 18px);
}

.hero-copy p {
  font-size: clamp(12px, 1.15vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* ============ LINKS SECTION ============ */
.links {
  padding: 0 0 5vw;
}

.links-inner {
  width: 60%;
  margin: 0 auto;
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7vw;
  margin-bottom: 1.7vw;
}

/* ---- cards: background completo exportado do Figma ---- */
.card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 25, 24, 0.10);
  background-size: cover;
  background-position: center;
}

.card-split { aspect-ratio: 839 / 543; }

.card-orcamento { background-image: url('assets/000.jpg'); }
.card-behance   { background-image: url('assets/0001.jpg'); }

.card-content {
  position: absolute;
  inset: 0;
  width: 53%;
  padding: 3.4% 2.5% 3.4% 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  width: clamp(28px, 2.4vw, 46px);
  height: auto;
  border-radius: 22%;
  margin-bottom: clamp(6px, 0.6vw, 12px);
}

/* títulos 33.15px / subtítulos 16.58px na largura de 1920 (escala proporcional abaixo) */
.card h2 {
  font-size: clamp(19px, 1.727vw, 33.15px);
  line-height: 1.2;
  margin-bottom: clamp(5px, 0.55vw, 11px);
}

.card-content p {
  font-size: clamp(11px, 0.864vw, 16.58px);
  line-height: 1.4;
  color: var(--gray);
  margin-bottom: clamp(7px, 0.55vw, 11px);
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: clamp(9px, 0.73vw, 14px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75em 1.7em;
  border-radius: 8px;
  margin-top: auto;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-dark { background: #333e3f; color: #fff; }
.btn-blue { background: #2f6bf6; color: #fff; }
.btn-ghost {
  background: #eef1f0;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(15, 25, 24, 0.18);
}

/* ---- wide card (hospedagem) ---- */
.card-wide {
  aspect-ratio: 1706 / 639;
  background-image: url('assets/0002.jpg');
}

.card-wide .card-content {
  width: 46%;
  justify-content: center;
  padding: 4.5% 4%;
}

/* hospedagem com mais ênfase: 44.25px / 23.82px na largura de 1920 */
.card-wide h2 {
  font-size: clamp(22px, 2.305vw, 44.25px);
  margin-bottom: clamp(6px, 0.7vw, 14px);
}

.card-wide .card-content p {
  font-size: clamp(13px, 1.241vw, 23.82px);
  margin-bottom: clamp(9px, 0.9vw, 18px);
}

.hosting-media { display: none; }

/* telas médias: cards um pouco maiores pra manter leitura confortável */
@media (min-width: 821px) and (max-width: 1240px) {
  .links-inner { width: 72%; }
}

/* ============ SCROLL REVEAL (blur desfocado) ============ */
.reveal {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(28px);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  padding: 26px 5vw 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer p {
  font-size: 10px;
  color: #8d9897;
}

/* ============ MOBILE ============ */
@media (max-width: 820px) {
  .page {
    background: var(--sage) url('assets/Mobile 001.jpg') top center / 100% auto no-repeat;
  }

  /* texto do hero já vem no background mobile */
  .hero { aspect-ratio: 660 / 1075; }
  .hero-copy {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .links { padding: 0 16px 28px; }

  .links-inner { width: 100%; }

  .cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  /* altura livre: card cresce com o texto (tamanhos fixos legíveis) */
  .card-split {
    aspect-ratio: auto;
    background-position: left center;
  }

  .card-split .card-content {
    position: static;
    width: 56%;
  }

  .card-content { padding: 18px 10px 18px 16px; }

  .card-icon { width: 36px; margin-bottom: 10px; }

  .card h2 { font-size: 19px; margin-bottom: 8px; }

  .card-content p { font-size: 12.5px; line-height: 1.45; margin-bottom: 12px; }

  .btn { font-size: 10.5px; }

  /* card hospedagem empilhado: conteúdo em cima, mockup embaixo */
  .card-wide {
    aspect-ratio: auto;
    background-image: none;
    background-color: #fbfcfc;
  }

  .card-wide .card-content {
    position: static;
    width: 100%;
    padding: 24px 20px;
  }

  .card-wide h2 { font-size: 24px; }

  .card-wide .card-content p { font-size: 14.5px; }

  .hosting-media {
    display: block;
    aspect-ratio: 866 / 639;
    background: url('assets/0002.jpg') right center / cover no-repeat;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 22px 16px 26px;
    gap: 6px;
  }
}
