/* =========================================================
   MHnet — Pretinho Básico LP
   Mobile-first. Variáveis. Sem framework.
   ========================================================= */

/* ============= Tipografia: Agrandir (Pangram Pangram) ============= */
@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Agrandir Grand — variante de display (mais larga) — usada no hero por confirmação da cliente */
@font-face {
  font-family: 'Agrandir Grand';
  src: url('fonts/Agrandir-GrandHeavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Basic Sans — fonte de body do DS MHnet */
@font-face {
  font-family: 'Basic Sans';
  src: url('fonts/BasicSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Basic Sans';
  src: url('fonts/BasicSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Basic Sans';
  src: url('fonts/BasicSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores — alinhadas ao Design System MHnet */
  --color-bg: #ffffff;
  --color-text: #0F0069;          /* Navy MHnet (text + dark BGs) */
  --color-text-soft: #4a5478;
  --color-primary: #3A33FF;       /* Electric blue MHnet */
  --color-primary-dark: #2520c4;
  --color-cta-blue: #1f7fd9;      /* Azul saturado do CTA Final */
  --color-accent: #00FEFF;        /* Ciano MHnet */
  --color-accent-dark: #00d4d4;
  --color-pink: #FF007A;          /* Pink MHnet (sub-headings, bullets) */
  --color-muted: #EEEEFF;         /* Lavanda claro do brand */
  --color-border: #e3e8f0;

  /* Tipografia — Agrandir display + Basic Sans body (DS MHnet) */
  --font-display: "Agrandir", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Basic Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(10, 24, 69, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 24, 69, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 24, 69, 0.16);

  /* Transições */
  --t-fast: 120ms ease-out;
  --t-base: 200ms ease-out;
}

/* ============= Reset minimalista ============= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); }

button, .btn { font-family: var(--font-display); }

/* ============= Layout helpers ============= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============= Botões ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base);
  text-align: center;
  min-height: 48px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }

.btn-phone {
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
}
.btn-phone:hover { background: var(--color-accent-dark); }

.btn-lg {
  padding: 1.375rem 3rem;
  font-size: 1.375rem;
  min-height: 64px;
  letter-spacing: 0.04em;
}

/* ============= Header ============= */
.site-header {
  background: var(--color-primary);
  padding: var(--space-5) 0;
}
.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo img {
  width: 130px;
  height: auto;
}

/* ============= Hero ============= */
.hero {
  position: relative;
  overflow: hidden;
  background: #f7faff;
  padding: var(--space-8) 0 var(--space-10);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Mobile: imagem de fundo escondida pra hero ficar limpo (cliente confirmou) */
  display: none;
}
.hero-bg img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: auto;
  max-width: none; /* sobrescreve o reset (img max-width:100%) pra deixar a imagem extrapolar a esquerda */
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}

.hero-title {
  /* Cliente confirmou: Agrandir-GrandHeavy.otf no hero (variante Grand peso 800) */
  font-family: 'Agrandir Grand', var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 11vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  /* Match com as numerações 500/119 da imagem oferta.png — deep navy, não saturado */
  color: #0a1840;
}
.hero-title span {
  display: block;
}

.oferta {
  width: 100%;
  max-width: 540px;
}
.oferta img {
  width: 100%;
  height: auto;
}

.cta-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 360px;
}
.cta-block .btn { width: 100%; }

.disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

/* ============= Hero — Campanha Entre em Campo (Copa) ============= */
/* Override do .hero pra exibir banner full-bleed da campanha (sobrescreve padding/min-height/display do .hero em todos os breakpoints) */
.hero-copa,
.hero.hero-copa {
  padding: 0;
  min-height: 0;
  display: block;
  /* Azul do banner — evita flash branco enquanto a imagem carrega */
  background: #1B4FE3;
  overflow: hidden;
}

/* Wrap relative pra ancorar o botão amarelo em cima do banner */
.hero-copa-wrap {
  position: relative;
  display: block;
  line-height: 0; /* remove gap fantasma do baseline da img */
}

.hero-copa picture,
.hero-copa picture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Botão amarelo ASSINE JÁ — posicionado em cima do banner via percentuais
   pra acompanhar o redimensionamento responsivo */
.hero-copa-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFE600;           /* amarelo da marca / referência da cliente */
  color: #0F0069;                /* navy MHnet */
  font-family: 'Agrandir Grand', var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform var(--t-base), filter var(--t-base), box-shadow var(--t-base);
  line-height: 1;
  z-index: 2;

  /* Mobile (padrão): centralizado horizontalmente, encaixado na faixa
     azul vazia entre o card de preço e o botão verde (51% = centro da
     faixa de 86px de altura no banner 360×834) */
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  padding: 0.875rem 2rem;
  min-width: 160px;
}
.hero-copa-btn:hover,
.hero-copa-btn:focus-visible {
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%) scale(1.03);
}
.hero-copa-btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .hero-copa-btn {
    /* Desktop: centralizado com o card "600 mega + globoplay" (card vai
       de x=1282 a x=2459 no banner 4610px → centro em 40,6%) */
    left: 40.6%;
    top: 84%;
    transform: translate(-50%, -50%);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    min-width: 200px;
  }
  .hero-copa-btn:hover,
  .hero-copa-btn:focus-visible {
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@media (min-width: 1280px) {
  .hero-copa-btn {
    font-size: 1.25rem;
    padding: 1.125rem 3rem;
    min-width: 240px;
  }
}

/* ============= Oportunidades ============= */
.oportunidades {
  padding: var(--space-10) 0;
  /* Royal blue dos banners de produto (match com a referência da cliente) */
  background: #384CAD;
  color: #fff;
}

.opo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  margin-bottom: var(--space-8);
}

.opo-selo {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.opo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}
.opo-title span { display: block; }
/* Subtitle herda mesmo tamanho/peso/cor do título (estrutura unificada) */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.card {
  /* Imagens já têm cantos arredondados com alpha — sem fundo branco aparecendo atrás */
  background: transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t-base);
}
.card:hover {
  transform: translateY(-2px);
}
.card img { width: 100%; height: auto; }

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* ============= CTA Final ============= */
.cta-final {
  background: var(--color-cta-blue);
  color: #fff;
  padding: var(--space-10) 0;
}
.cta-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}
.cta-final-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  max-width: 720px;
  color: #fff;
}
.cta-final-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 320px;
}
.cta-final-actions .btn { width: 100%; }
/* Botões do CTA Final num navy mais escuro que o bloco Oportunidades */
.cta-final-actions .btn-primary,
.cta-final-actions .btn-phone {
  background: var(--color-primary-dark);
  color: #fff;
}
.cta-final-actions .btn-primary:hover,
.cta-final-actions .btn-phone:hover {
  background: #1f237a;
}

/* ============= Footer ============= */
.site-footer {
  background: var(--color-cta-blue);
  color: #fff;
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-logo {
  width: 160px;
  height: auto;
  flex-shrink: 0;
}

/* =========================================================
   TABLET — 768px+
   ========================================================= */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-10) 0 var(--space-12);
  }
  .hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
  }
  .cta-block {
    flex-direction: row;
    max-width: none;
    width: auto;
  }
  .cta-block .btn { width: auto; }

  .opo-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: var(--space-8);
  }
  .opo-selo { width: 180px; height: 180px; }

  .cta-final-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: var(--space-8);
  }
  .cta-final-title { max-width: 520px; }
  .cta-final-actions {
    flex-shrink: 0;
    width: auto;
    max-width: none;
  }
  .cta-final-actions .btn { width: auto; min-width: 220px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

/* =========================================================
   DESKTOP — 1024px+
   ========================================================= */
@media (min-width: 1024px) {
  .hero {
    min-height: 600px;
    padding: var(--space-12) 0;
    display: flex;
    align-items: center;
  }
  /* Desktop: mostra a imagem de fundo (lâmpada/wifi à direita) */
  .hero-bg { display: block; }
  .hero-inner {
    align-items: flex-start;
    text-align: left;
    /* Largura suficiente pra "SINAL EM" caber em 1 linha; ainda libera ~40% à direita para a imagem do quarto/wifi */
    max-width: 700px;
  }
  .hero-title {
    font-size: clamp(4rem, 6vw, 5.5rem);
  }
  /* Offer block fica mais compacto pra não invadir a área da imagem */
  .oferta { max-width: 520px; }
  .cta-block { justify-content: flex-start; }

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

/* =========================================================
   DESKTOP LARGE — 1280px+
   ========================================================= */
@media (min-width: 1280px) {
  :root { --container-pad: 2rem; }
}

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