/* Take Time: o que é específico deste site. A base (grade, tipografia, botões) está em assets/system.css. */

:root {
  --navy: #0c1036;
  --snow: #f2f2f2;
  --green: #56e86d;
  --purple: #a150f2;
}

.nav__logo img { height: 26px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 20px; } }

/* ------------------------------------------------------------ hero */
.hero h1 { font-size: clamp(31px, 5.6vw, 48px); line-height: 1.06; }
@media (min-width: 1024px) { .hero h1 { font-size: clamp(38px, 3.75vw, 56px); } }
/* laptop pequeno: o h2 fica sempre menor que o h1 */
@media (min-width: 1024px) and (max-width: 1279px) { :root { --t-h2: clamp(32px, 1.57vw + 16px, 36px); } }
.hero .btn-row { column-gap: var(--s-5); }
html[data-buttons] .hero .btn-row > .btn--secondary { padding-inline: 0; }
.hero .hero__lead { max-width: 44ch; }

/* o link secundário alinha com a linha da grade */
html[data-buttons] .section-head--split > .btn--secondary, html[data-buttons] .split__end > .btn--secondary { padding-inline: 0; }

/* menu com 7 itens */
.nav__item--all { display: none !important; }
/* até 1439 px os 7 itens não cabem ao lado do idioma e do WhatsApp: viram o menu único "Serviços" */
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav__item--all { display: flex !important; }
  .nav__links > .nav__item:not(.nav__item--all) { display: none; }
}
@media (min-width: 1280px) {
  .nav--centre .nav__bar { column-gap: var(--s-4); }
  .nav__links { gap: 0; }
  .nav__link { padding-inline: 7px; }
  .nav__link::before { left: 7px; right: 7px; }
}

/* celulares: com o botão de idioma na barra, o botão do WhatsApp do topo vai para o menu
   (ele continua logo abaixo, no início da página, e dentro do menu) */
@media (max-width: 639px) { .nav__actions .btn::after { display: none; } }
@media (max-width: 429px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}

/* ------------------------------------------------------------ globo */
.globe { position: relative; isolation: isolate; min-height: 0; display: grid; place-items: center; }
.globe__canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; display: none; }
.globe--live .globe__canvas { display: block; }

/* sem JavaScript os serviços aparecem como uma lista simples */
.globe__services { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
/* a camada não recebe o mouse: só as etiquetas recebem, e só elas seguram a órbita */
.globe--live .globe__services { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.globe--live .globe__services > [role="listitem"] { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform, opacity; }

.globe__service { display: inline-flex; align-items: center; min-height: 44px; color: var(--p-ink); }
.globe__chip {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
  background: var(--navy); border: 1px solid color-mix(in oklab, var(--snow) 26%, transparent); border-radius: var(--r-sm);
  font: 500 15px/1 var(--font-text); white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.globe__chip::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--green)); }
.globe__service:hover .globe__chip, .globe__service:focus-visible .globe__chip { background: var(--snow); border-color: var(--snow); color: var(--navy); }
.globe__service:hover .globe__chip::before, .globe__service:focus-visible .globe__chip::before { background: var(--navy); }
@media (max-width: 639px) {
  .globe__chip { height: 32px; padding: 0 10px; gap: 6px; font-size: 13px; }
  .globe__chip::before { width: 8px; height: 8px; }
}

/* as quatro cantoneiras do manual (3.1 Grafismo e Pattern) em volta do globo */
.globe__corner { position: absolute; z-index: 0; width: 18px; height: 18px; border: 0 solid color-mix(in oklab, var(--snow) 55%, transparent); pointer-events: none; }
.globe__corner:nth-of-type(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.globe__corner:nth-of-type(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.globe__corner:nth-of-type(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.globe__corner:nth-of-type(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
@media (max-width: 1023px) { .globe__corner { display: none; } }
.globe .loop-pause { z-index: 6; }

/* ------------------------------------------------------------ importação: o mosaico do manual */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: 0; border-radius: var(--r-lg); overflow: clip; }
.mosaic > * { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: clip; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.mosaic__a { grid-column: span 6; }
.mosaic__b { grid-column: span 2; }
.mosaic__c { grid-column: span 4; }
.brand-field { position: absolute; inset: 0; width: 100%; height: 100%; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); margin-top: var(--s-6); }
.points h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin-bottom: var(--s-1); }
.points p { max-width: 46ch; }
.points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  #importacao .mosaic { flex: none; height: clamp(280px, 56vw, 480px); }
}
@media (max-width: 639px) {
  #importacao .mosaic { height: 148px; }
  .mosaic__a, .mosaic__c { grid-column: span 6; }
  .mosaic__b { display: none; }
  .points, .points--2 { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
}

/* ------------------------------------------------------------ janela do navegador (capturas reais da loja) */
.browser { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg); overflow: clip; background: var(--navy); }
.browser__bar { flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; }
.browser__bar i { width: 9px; height: 9px; border-radius: 2px; background: color-mix(in oklab, var(--snow) 30%, transparent); }
.browser__bar i:nth-child(1) { background: var(--green); }
.browser__bar i:nth-child(2) { background: var(--purple); }
.browser__view { position: relative; flex: 1 1 auto; min-height: 0; overflow: clip; }
.browser__view > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); min-height: 0; }
.split__text { grid-column: span 5; display: flex; flex-direction: column; gap: var(--s-5); min-height: 0; }
.split__visual { grid-column: 6 / -1; }
.split__text .rows p { max-width: 44ch; }
.split__text .rows__name { font-size: var(--t-card); letter-spacing: -0.01em; }
.split__text .rows > li { padding-block: var(--s-5); }
.split__text .rows > li:first-child { padding-top: 0; }
.split__end { margin-top: auto; }
@media (min-width: 640px) and (max-width: 1023px) {
  .split__text .rows > li { padding-block: var(--s-4); }
  .split__visual { height: clamp(240px, 33vw, 320px); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .split__text .rows > li { padding-block: var(--s-3); } }
@media (max-width: 1023px) {
  #produtos .split, #representacao .split { display: flex; flex-direction: column; gap: var(--s-6); flex: none; }
  .split__visual { flex: none; }
}
@media (max-width: 639px) {
  #produtos .split, #representacao .split { gap: var(--s-5); }
  .split__text { gap: var(--s-3); }
  .split__visual { height: 128px; }
  #produtos .split__text .rows p { display: none; }
  #produtos .split__visual { height: 244px; }
  #representacao .split__visual { height: 188px; }
  .split__text .rows > li { padding-block: 10px; }
  #produtos .section-head { margin-bottom: var(--s-5); }
}

/* a grade de categorias continua além do quadro: termina num esmaecido, sem cortar um card ao meio */
#produtos .browser__view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(to bottom, transparent, var(--navy)); pointer-events: none; }

/* ------------------------------------------------------------ foto que preenche a coluna */
.photo-fill { position: relative; margin: 0; border-radius: var(--r-lg); overflow: clip; min-height: 0; }
.photo-fill > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ------------------------------------------------------------ tecnologia e soluções: fotos ocupam a altura que sobra */
.tile__media > .browser { height: 100%; border-radius: inherit; }
@media (min-width: 1024px) {
  #tecnologia .tile { grid-template-rows: minmax(0, 1fr) auto auto; min-height: 0; }
  #tecnologia .tile__media { aspect-ratio: auto; min-height: 0; height: 100%; }
}
@media (max-width: 1023px) { #tecnologia .grid.fill { flex: none; } }
#tecnologia .tile > p { max-width: 56ch; }
.tile__media > .browser { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--snow) 20%, transparent); }
@media (min-width: 1024px) { #tecnologia .tile > p { min-height: 3.1em; } }
@media (min-width: 640px) and (max-width: 1023px) { #tecnologia { --tile-ratio: 5 / 6; } }
@media (max-width: 639px) {
  #tecnologia .grid { row-gap: var(--s-5); }
  #tecnologia .grid > .tile { grid-column: 1 / -1; grid-template-columns: 176px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); align-items: start; }
  #tecnologia .tile__media { grid-row: 1 / span 2; aspect-ratio: 1; border-radius: var(--r-md); }
  #tecnologia .browser__bar { height: 20px; padding-inline: 8px; }
  #tecnologia .browser__bar i { width: 6px; height: 6px; }
}

.mosaic--4 { column-gap: var(--gutter); row-gap: var(--gutter); border-radius: 0; overflow: visible; }
.mosaic--4 > figure { grid-column: span 3; border-radius: var(--r-lg); }
.points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.solution + .solution { margin-top: var(--s-4); }
.points .solution p { max-width: none; }
@media (max-width: 1023px) {
  .points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #solucoes .mosaic { flex: none; height: clamp(220px, 34vw, 320px); }
}
@media (max-width: 639px) {
  /* no celular: as quatro fotos em 2 x 2 e as soluções em duas colunas */
  .mosaic--4 { grid-template-rows: 1fr 1fr; }
  .mosaic--4 > figure { grid-column: span 6; }
  #solucoes .mosaic { height: 196px; }
  #solucoes .section-head > div > p, #solucoes .section-head > .btn { display: none; }
  .points--4 { gap: var(--s-4) var(--gutter); }
  #solucoes .solution h3 { font-size: 16px; }
  #solucoes .solution p { font-size: 15px; line-height: 1.35; }
  .solution + .solution { margin-top: var(--s-3); }
}

/* ------------------------------------------------------------ consultoria */
#consultoria .frame { min-height: 260px; }
#consultoria .frame__img { object-position: 50% 50%; }

/* ------------------------------------------------------------ fechamento */
.close__media .slogan {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: clamp(280px, 40%, 410px);
  display: grid; place-items: center; padding: var(--s-4); background: var(--purple); color: #fff;
}
.slogan__text { position: relative; padding: var(--s-4) var(--s-5); font: var(--display-weight) clamp(24px, 1.2vw + 12px, 30px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.slogan__corner { position: absolute; width: 14px; height: 14px; border: 0 solid currentColor; }
.slogan__corner:nth-of-type(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.slogan__corner:nth-of-type(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.slogan__corner:nth-of-type(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.slogan__corner:nth-of-type(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
@media (max-width: 639px) {
  .close__media .slogan { width: 60%; padding: var(--s-3); }
  .slogan__text { padding: var(--s-4); font-size: 24px; }
}
.footer__contact { font-style: normal; }

/* logística: o link fica à direita do título */
@media (min-width: 640px) {
  #logistica .mo-ph__head { grid-template-columns: minmax(0, 1fr) auto; max-width: none; column-gap: var(--s-5); align-items: end; }
  #logistica .mo-ph__head > h2, #logistica .mo-ph__head > p { grid-column: 1; max-width: 46ch; }
  #logistica .mo-ph__head > .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}
html[data-buttons] #logistica .mo-ph__head > .btn--secondary { padding-inline: 0; }
@media (max-width: 639px) { #logistica .mo-ph__head > .btn { justify-self: start; height: 44px; } }

/* rodapé: as três colunas fecham na linha da direita em qualquer largura */
@media (min-width: 640px) and (max-width: 1023px) { .closing__links .footer__col { grid-column: auto / span 4; } }
@media (max-width: 639px) { .closing__links .footer__col:last-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ idiomas (igual ao da loja: globo + sigla) */
.lang { position: relative; flex: none; }
.lang__btn {
  list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; min-width: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink); cursor: pointer; user-select: none;
  transition: border-color var(--dur) var(--ease);
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover, .lang[open] .lang__btn { border-color: var(--ink); }
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px; margin: 0; padding: 6px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .5);
}
.lang__menu a { display: block; padding: 10px 18px; font-size: 15px; color: var(--muted); transition: color var(--dur) var(--ease); }
.lang__menu a:hover { color: var(--ink); }
.lang__menu a[aria-current] { color: var(--green); }
/* no computador o idioma fica ao lado do botão do WhatsApp; no celular os dois ficam soltos na barra */
.nav__end { display: flex; align-items: center; gap: var(--s-3); }
@media (min-width: 1024px) { .nav--centre .nav__end { grid-column: 3; grid-row: 1; justify-self: end; } }
@media (max-width: 1023px) {
  .nav__end { display: contents; }
  .lang { margin-left: auto; }
  .nav:not(.is-open) .nav__actions { margin-left: 0; }
  .nav__toggle { margin-left: 0 !important; }
}
@media (max-width: 639px) {
  .lang__code { display: none; }
  .lang__btn { padding: 0; width: 44px; }
}
