/* Ivorest - componentes das paginas: texto que acende com a leitura, a escala de servicos, a lista
   em foco, introducoes, "How we help", os tres pontos, About, Working e Contact.
   Usa os tokens e blocos de site.css. */

/* ---------------------------------------------------- duas colunas (titulo | texto) */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.intro__title { grid-column: 1 / span 5; }
.intro__body { grid-column: 7 / span 6; display: grid; gap: 32px; }
@media (max-width: 1024px) { .intro__title, .intro__body { grid-column: 1 / -1; } }

/* ------------------------------------------- texto que acende palavra a palavra */
.fill { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 34px); line-height: 1.3; letter-spacing: -.012em; }
.fill--sm { font-size: var(--fs-serif-lead); line-height: 1.3; }
.chapter--deep .fill { color: var(--white); }
.chapter--mist .fill { color: var(--deep); }
html.motion .fill .w { transition: color .35s; }
html.motion .chapter--deep .fill .w { color: rgba(255, 255, 255, .2); }
html.motion .chapter--mist .fill .w { color: rgba(11, 45, 66, .18); }
html.motion .chapter--deep .fill .w.is-on { color: var(--white); }
html.motion .chapter--mist .fill .w.is-on { color: var(--deep); }
.fill__close { color: var(--cyan) !important; }
.chapter--mist .fill__close { color: var(--blue) !important; }
html.motion .fill__close .w:not(.is-on) { color: rgba(34, 173, 211, .25) !important; }
html.motion .fill__close .w.is-on { color: inherit !important; }

/* Home: quem somos */
.who { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.who__title { grid-column: 1 / span 3; padding-top: .5em; }
.who__body { grid-column: 4 / span 9; display: grid; gap: 48px; justify-items: start; }
@media (max-width: 1024px) { .who__title, .who__body { grid-column: 1 / -1; } }

/* ------------------------------------------- servicos: indice tipografico */
/* quatro linhas de largura total; o nome e o link, e um ::after estende o clique a linha toda.
   Com mouse, uma faixa no degrade das listras do logo varre a linha da esquerda para a direita
   (azul a esquerda, onde fica o texto, abrindo em azul claro na ponta: o texto branco le bem) */
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 4vw, 64px); }
.svc-index { --bleed: clamp(0px, 1.8vw, 32px); margin-inline: calc(var(--bleed) * -1); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr) auto; column-gap: clamp(24px, 3vw, 56px); align-items: center;
  padding: clamp(28px, 3vw, 48px) var(--bleed);
}
.svc::before { content: ""; position: absolute; left: var(--bleed); right: var(--bleed); top: 0; height: 1px; background: var(--deep); opacity: .22; transform-origin: 0 50%; }
.svc:last-child { box-shadow: inset 0 -1px 0 var(--rule); }
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0A6FA8 0%, #0A7CAE 88%, #22ADD3 100%);
  clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease-out);
}
html.motion .svc::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
html.motion .svc.is-in::before { transform: none; }
.svc__name { font-size: clamp(28px, 2.7vw, 48px); line-height: 1.02; letter-spacing: -.02em; color: var(--deep); transition: color .35s; }
.svc__name a { text-decoration: none; }
.svc__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc__name a:focus-visible { outline: none; }
.svc__text { color: var(--soft); font-size: var(--fs-lead); line-height: 1.5; max-width: 38ch; transition: color .35s; }
.svc__go {
  width: clamp(48px, 4vw, 64px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--rule); color: var(--deep);
  display: grid; place-items: center; transition: background-color .35s, border-color .35s, color .35s, transform .5s var(--ease-out);
}
.svc__go svg { width: 42%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc:focus-within { outline: 2px solid var(--cyan); outline-offset: -2px; }
@media (hover: hover) {
  .svc:hover::after, .svc:focus-within::after { clip-path: inset(0 0 0 0); }
  .svc:hover .svc__name, .svc:focus-within .svc__name, .svc:hover .svc__text, .svc:focus-within .svc__text { color: var(--white); }
  .svc:hover .svc__go, .svc:focus-within .svc__go { background: var(--white); border-color: var(--white); color: var(--blue); transform: translateX(8px); }
  .svc:hover::before, .svc:focus-within::before, .svc:hover + .svc::before, .svc:focus-within + .svc::before { opacity: 0; }
}
/* toque e telas estreitas: sem varredura; uma barrinha no degrade marca cada item */
@media (hover: none), (max-width: 767px) {
  .svc { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; align-items: start; padding-left: calc(var(--bleed) + 18px); }
  .svc__name { grid-column: 1; grid-row: 1; }
  .svc__go { grid-column: 2; grid-row: 1; }
  .svc__text { grid-column: 1 / -1; grid-row: 2; }
  .svc::after { clip-path: none; left: var(--bleed); right: auto; top: clamp(28px, 3vw, 48px); bottom: auto; width: 4px; height: 1.6em; border-radius: 2px; background: linear-gradient(180deg, #22ADD3, #0A6FA8); z-index: 0; }
}
@media (max-width: 767px) { .svc-index { --bleed: 0px; } .svc__go { width: 44px; } }

/* -------------------------------------- costuras: a borda do capitulo azul em curva */
/* a borda entre azul e claro segue a curva das trilhas do logo; tres linhas finas a acompanham e
   afinam nas pontas. O fundo do .seam e o azul (com a textura); o SVG pinta so a parte clara.
   Partials gerados por seam-gen.js */
.seam { position: relative; z-index: 1; margin-block: -1px; height: clamp(90px, 10vw, 180px); background: var(--deep) var(--noise); }
.seam svg { position: absolute; left: 0; width: 100%; top: -1px; height: calc(100% + 2px); display: block; }
html.motion .seam__line { clip-path: inset(0 100% 0 0); }
.chapter:has(+ .seam) { padding-bottom: clamp(32px, 4vw, 72px); }
.seam + .chapter, .seam + .chapter--mist + .chapter--mist { padding-top: clamp(40px, 4.5vw, 88px); }

/* ------------------------------------------------------- lista em foco */
.focus { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.focus__title { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.focus__list { grid-column: 6 / span 7; }
.focus__item { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 28px; padding: 36px 0 40px; border-top: 1px solid var(--rule); }
.focus__item:last-child { border-bottom: 1px solid var(--rule); }
.focus__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--blue); transition: background-color .45s, color .45s, border-color .45s; }
.focus__icon svg { width: 32px; height: 32px; }
.focus__icon--dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.focus__name { font-size: clamp(22px, 1.7vw, 28px); line-height: 1.14; color: var(--deep); padding-top: 10px; }
.focus__text { margin-top: 12px; color: var(--soft); max-width: 54ch; }
.focus__item.is-focus .focus__icon { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (min-width: 1025px) {
  html.motion .focus__item { opacity: .3; transition: opacity .5s; }
  html.motion .focus__item.is-focus { opacity: 1; }
}
@media (max-width: 1024px) {
  .focus__title { position: static; grid-column: 1 / -1; margin-bottom: 40px; }
  .focus__list { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .focus__item { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; }
  .focus__icon { width: 48px; height: 48px; }
  .focus__icon svg { width: 26px; height: 26px; }
}

/* ----------------------------------------------------------- "How we help" */
.includes__title { font-size: var(--fs-h3); line-height: 1.12; color: var(--deep); margin-bottom: clamp(32px, 4vw, 56px); }
.includes__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); }
.includes__list li { position: relative; padding: 30px 0 36px; }
.includes__list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--deep); opacity: .22; transform-origin: 0 50%; }
html.motion .includes__list li::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
html.motion .includes__list li.is-in::before { transform: none; }
.includes__term { display: block; font-family: var(--serif); font-size: clamp(22px, 1.75vw, 29px); line-height: 1.2; color: var(--deep); }
.includes__desc { display: block; margin-top: 10px; color: var(--soft); max-width: 52ch; }
.includes__list--terms .includes__term { font-size: clamp(24px, 2vw, 32px); }
.includes .actions { margin-top: clamp(28px, 3vw, 48px); }
@media (max-width: 860px) { .includes__list { grid-template-columns: 1fr; } }

/* ------------------------------------------- os tres pontos (faixa azul profundo) */
.points-head { margin-bottom: clamp(48px, 6vw, 96px); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.point { padding: 4px clamp(24px, 3vw, 48px) 8px; border-left: 1px solid var(--rule-inverse); display: grid; gap: 16px; align-content: start; }
.point:first-child { padding-left: 0; border-left: 0; }
.point__term { font-size: clamp(22px, 1.6vw, 28px); line-height: 1.14; color: var(--white); }
.point__text { color: rgba(255, 255, 255, .78); }
.point--statement .point__term { font-size: clamp(22px, 1.7vw, 28px); line-height: 1.28; }
html.motion .point { opacity: 0; transform: translateX(-28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
html.motion .point.is-in { opacity: 1; transform: none; }
html.motion .point.is-in:nth-child(2) { transition-delay: .15s; }
html.motion .point.is-in:nth-child(3) { transition-delay: .3s; }
@media (max-width: 860px) {
  .points { grid-template-columns: 1fr; }
  .point, .point:first-child { padding: 28px 0 32px; border-left: 0; border-top: 1px solid var(--rule-inverse); }
}

/* ---------------------------------------------------------- About */
.impact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); }
.impact__title { grid-column: 1 / span 5; }
.impact__lead { grid-column: 7 / span 6; display: grid; gap: 24px; }
.impact__statement { grid-column: 1 / span 11; font-family: var(--serif); font-size: clamp(28px, 2.9vw, 50px); line-height: 1.1; letter-spacing: -.015em; color: var(--white); padding-block: clamp(16px, 3vw, 48px); border-block: 1px solid var(--rule-inverse); }
.impact__col { grid-column: span 6; color: rgba(255, 255, 255, .8); }
@media (max-width: 1024px) { .impact__title, .impact__lead, .impact__statement, .impact__col { grid-column: 1 / -1; } }

.mitch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.mitch__photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.mitch__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
html.motion .mitch__photo img { transform: scale(1.12); }
.mitch__copy { grid-column: 7 / span 6; display: grid; gap: 28px; }
@media (max-width: 860px) { .mitch__photo, .mitch__copy { grid-column: 1 / -1; } .mitch__photo { margin-bottom: 48px; } }

/* ---------------------------------------------------------- Working */
.explore__next { font-family: var(--serif); font-size: var(--fs-serif-lead); line-height: 1.25; color: var(--deep); }

/* ---------------------------------------------------------- Contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.contact__info { grid-column: 1 / span 5; display: grid; gap: 32px; }
.contact__big { display: grid; gap: 6px; margin-top: 8px; }
.contact__big a { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 40px); line-height: 1.15; color: var(--deep); text-decoration: none; overflow-wrap: anywhere; justify-self: start;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease-out); }
.contact__big a:hover, .contact__big a:focus-visible { background-size: 100% 2px; }
.contact__kvk { color: var(--soft); font-size: 15px; }
.contact__panel { grid-column: 7 / span 6; background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); }
@media (max-width: 1024px) { .contact__info, .contact__panel { grid-column: 1 / -1; } .contact__panel { margin-top: 56px; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; color: var(--deep); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--mist);
  border: 1px solid transparent; border-bottom-color: var(--rule); border-radius: 8px; padding: 13px 14px; min-height: 50px;
  transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.form.is-checked :invalid { border-color: #B3261E; }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; }
.form__status { margin-top: 16px; color: var(--soft); }
.form__status a { color: var(--blue); }
.form__done { font-family: var(--serif); font-size: var(--fs-serif-lead); line-height: 1.25; color: var(--deep); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Home: o capitulo depois do hero continua o ceu ja escuro, sem o respiro inteiro em cima */
.peak + .chapter--deep, .pin-spacer:has(> .peak) + .chapter--deep { padding-top: clamp(40px, 5vw, 88px); }

/* faixa de contato logo depois de outro capitulo azul: um filete separa os dois */
.chapter--deep + .cta-band { padding-top: 0; }
.chapter--deep + .cta-band .cta-band__inner { padding-top: clamp(80px, 9vw, 160px); border-top: 1px solid var(--rule-inverse); }

/* faixa de contato depois de uma costura: mantem mais respiro que um capitulo comum */
.seam + .cta-band { padding-top: clamp(64px, 7vw, 140px); }
