@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/young-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f1f4fb;
  --ink: #0d2552;
  --ink-deep: #081a45;
  --ink-soft: #4d5b78;
  --blue: #1037c8;
  --orange: #f36b08;
  --orange-bright: #ff8a33;
  --orange-deep: #c94f00;
  --line: #d3dbeb;
  --bubble: #dcf8c6;
  --focus: var(--blue);
  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1600px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
legend {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

p {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
h2[tabindex="-1"]:focus-visible,
input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero,
.closing {
  --focus: #ffffff;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 8px 28px rgb(13 37 82 / 24%);
}

.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  max-width: var(--maxw);
  min-height: 108px;
  padding: 8px var(--gutter);
  margin-inline: auto;
}

.brand {
  display: block;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 92px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  margin-left: auto;
}

.primary-nav a,
.mobile-menu__panel a {
  padding-block: 8px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 2px no-repeat;
  transition: background-size 220ms var(--ease);
}

.primary-nav a:hover {
  background-size: 100% 2px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  list-style: none;
  place-items: center;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary:hover,
.mobile-menu[open] summary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.mobile-menu__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  width: min(250px, calc(100vw - 32px));
  padding: 8px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 42px rgb(13 37 82 / 14%);
}

.mobile-menu__panel a {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  background-image: none;
}

.mobile-menu__panel a:last-child {
  border-bottom: 0;
}

/* ---------- Botões e links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 700 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 220ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--orange-bright);
  background: var(--orange-bright);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  min-height: 64px;
  padding-inline: 32px;
  font-size: 1.08rem;
}

.button--block {
  width: 100%;
}

.button--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 180ms ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Formas da marca ---------- */

/* O recorte em D vem da letra do logo: lado reto, lado curvo. */
.d-frame {
  --r: 50vmax;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  background: #e9e2d6;
}

.d-frame--right {
  border-radius: 0 var(--r) var(--r) 0;
}

.d-frame--left {
  border-radius: var(--r) 0 0 var(--r);
}

.d-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* O sol repete o círculo listrado do logo. */
.sun {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffb35e 0%, var(--orange) 62%);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% 46% no-repeat,
    repeating-linear-gradient(to bottom, #000 0 11px, transparent 11px 17px) bottom / 100% 54% no-repeat;
  mask:
    linear-gradient(#000, #000) top / 100% 46% no-repeat,
    repeating-linear-gradient(to bottom, #000 0 11px, transparent 11px 17px) bottom / 100% 54% no-repeat;
}

/* ---------- Hero ---------- */

.hero {
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 80px);
  max-width: var(--maxw);
  min-height: min(820px, calc(100svh - 108px));
  padding: clamp(40px, 6vw, 96px) var(--gutter);
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.3vw, 5.6rem);
  line-height: 1.02;
}

.line {
  display: block;
  padding-block: 0.06em;
  margin-block: -0.06em;
  overflow: hidden;
}

.line__text {
  display: block;
  animation: rise 900ms var(--ease) both;
}

.line:nth-child(2) .line__text {
  animation-delay: 130ms;
}

.hero__lead {
  max-width: 24rem;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  animation: fade-in 800ms 520ms ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: clamp(28px, 3vw, 44px);
  animation: fade-in 800ms 680ms ease both;
}

.hero__figure {
  position: relative;
  margin: 0;
}

.hero__photo {
  position: relative;
  z-index: 1;
}

.hero__photo img {
  animation: wipe 1100ms 250ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.hero__sun {
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: -16%;
  width: 34%;
  animation: sun-in 1000ms 900ms var(--ease) both;
}

.hero__figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: rgb(255 255 255 / 76%);
  font-size: 0.82rem;
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes sun-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}

/* ---------- Nossa história ---------- */

.story {
  padding-bottom: clamp(72px, 10vw, 150px);
  background: var(--white);
}

.tape {
  --years: 26;
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--maxw) - 2 * var(--gutter));
  height: 76px;
  padding-top: clamp(0px, 1vw, 12px);
  margin: clamp(36px, 5vw, 72px) auto 0;
}

.tape__band {
  position: relative;
  height: 34px;
  border-radius: 2px;
  background: var(--orange);
}

.tape__band::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(var(--ink), var(--ink)) right top / 2px 24px no-repeat,
    linear-gradient(90deg, var(--ink) 0 2px, transparent 2px) 0 0 / calc(100% * 10 / var(--years)) 26px repeat-x,
    linear-gradient(90deg, var(--ink) 0 2px, transparent 2px) 0 0 / calc(100% * 5 / var(--years)) 19px repeat-x,
    linear-gradient(90deg, var(--ink) 0 2px, transparent 2px) 0 0 / calc(100% / var(--years)) 12px repeat-x;
}

.tape__label {
  position: absolute;
  top: 48px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
}

.tape__label--start {
  left: 0;
  transform: none;
}

.tape__label--2010 {
  left: calc(100% * 10 / 26);
}

.tape__label--2020 {
  left: calc(100% * 20 / 26);
}

.tape__label--end {
  right: 0;
  left: auto;
  transform: none;
}

.has-js .tape__band {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1500ms cubic-bezier(0.6, 0, 0.2, 1);
}

.has-js .tape.is-visible .tape__band {
  clip-path: inset(0 0 0 0);
}

.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 104px);
  max-width: var(--maxw);
  padding: clamp(40px, 6vw, 96px) var(--gutter) 0 0;
  margin-inline: auto;
}

.story__figure {
  margin: 0;
}

.story h2,
.chat h2,
.location h2 {
  font-size: clamp(2.2rem, 3.7vw, 3.7rem);
  line-height: 1.08;
}

.story__copy p {
  max-width: 31rem;
  margin-top: 22px;
  color: var(--ink-soft);
}

.story__copy h2 + p {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

/* ---------- Conversa guiada ---------- */

.chat {
  padding: clamp(72px, 9vw, 140px) var(--gutter);
  background: var(--paper);
}

.chat__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "intro phone"
    "form phone";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 7vw, 120px);
  row-gap: clamp(32px, 4vw, 52px);
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
}

.chat__intro {
  grid-area: intro;
}

.chat__intro p {
  max-width: 30rem;
  margin-top: 20px;
  color: var(--ink-soft);
}

.chat__form {
  grid-area: form;
  display: grid;
  gap: clamp(28px, 3vw, 40px);
}

.field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.field legend {
  padding: 0;
  margin-bottom: 16px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.chips,
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips input,
.swatches input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chips label {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid #aab8d6;
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.chips label:hover {
  border-color: var(--ink);
}

.chips input:checked + label {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.swatches {
  gap: 18px;
}

.swatches label {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 84px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.swatch {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 14%);
  transition: box-shadow 180ms ease;
}

.swatch::after {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 2px var(--white);
  content: "";
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 160ms ease,
    transform 200ms var(--ease);
}

.swatches label:hover .swatch {
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 14%),
    0 0 0 3px var(--paper),
    0 0 0 5px var(--ink);
}

.swatches input:checked + label .swatch {
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 14%),
    0 0 0 3px var(--paper),
    0 0 0 6px var(--orange);
}

.swatches input:checked + label .swatch::after {
  opacity: 1;
  transform: scale(1);
}

.swatch--madeira {
  background:
    repeating-linear-gradient(92deg, rgb(0 0 0 / 9%) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(88deg, rgb(255 255 255 / 8%) 0 2px, transparent 2px 12px),
    #a8672f;
}

.swatch--linho,
.swatch--oliva,
.swatch--ferrugem {
  background-image:
    repeating-linear-gradient(0deg, rgb(0 0 0 / 7%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 7%) 0 1px, transparent 1px 3px);
}

.swatch--linho {
  background-color: #d4c3a6;
}

.swatch--oliva {
  background-color: #66703e;
}

.swatch--ferrugem {
  background-color: #a8481f;
}

.clear {
  justify-self: start;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 0.95rem var(--sans);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.clear[hidden] {
  display: none;
}

.phone {
  position: sticky;
  top: 132px;
  grid-area: phone;
  align-self: start;
  overflow: hidden;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 24px 60px rgb(13 37 82 / 12%);
  justify-self: end;
  width: 100%;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--white);
}

.phone__bar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.phone__bar strong {
  display: block;
  line-height: 1.2;
}

.phone__bar span {
  display: block;
  color: rgb(255 255 255 / 72%);
  font-size: 0.85rem;
  line-height: 1.2;
}

.phone__thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 28px 22px;
  background: #e6ecf8;
}

.bubble {
  position: relative;
  align-self: flex-end;
  max-width: 92%;
  padding: 14px 18px;
  border-radius: 18px 18px 4px 18px;
  background: var(--bubble);
  line-height: 1.5;
}

.bubble.is-new {
  animation: pop 320ms var(--ease);
}

@keyframes pop {
  from {
    opacity: 0.4;
    transform: translateY(8px) scale(0.96);
  }
}

.phone .button {
  width: calc(100% - 44px);
  margin: 22px;
}

/* ---------- Localização ---------- */

.location {
  padding-block: clamp(72px, 9vw, 140px);
  background: var(--white);
}

.location__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 6vw, 104px);
  max-width: var(--maxw);
  padding-left: var(--gutter);
  margin-inline: auto;
}

.address {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 32px 0 36px;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-style: normal;
  line-height: 1.55;
}

.address__icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  margin-top: 3px;
  color: var(--orange-deep);
}

.address span span {
  display: block;
}

.address__postal {
  color: var(--ink-soft);
}

.location__figure {
  margin: 0;
}

/* ---------- Fechamento ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 150px) var(--gutter);
  background: var(--blue);
  color: var(--white);
}

.closing__sun {
  position: absolute;
  top: -26%;
  right: -3%;
  width: clamp(200px, 30vw, 460px);
}

.closing__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
}

.closing h2 {
  font-size: clamp(3rem, 6.6vw, 6.8rem);
  line-height: 1;
}

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink-deep);
  color: rgb(255 255 255 / 78%);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  max-width: var(--maxw);
  padding: 48px var(--gutter);
  margin-inline: auto;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.2;
  text-decoration: none;
}

.site-footer__side {
  text-align: right;
}

.footer-top {
  display: inline-block;
  margin-top: 8px;
  color: var(--white);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer a:focus-visible {
  outline-color: var(--white);
}

/* ---------- Telas médias e pequenas ---------- */

@media (max-width: 1000px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header__inner {
    min-height: 88px;
  }

  .brand img {
    height: 72px;
  }

  .primary-nav {
    display: none;
  }

  .button--header {
    margin-left: auto;
  }

  .mobile-menu {
    display: block;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11.5vw, 5.2rem);
  }

  .hero__lead {
    max-width: 28rem;
  }

  .story__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 0;
  }

  .story__figure {
    width: 92%;
  }

  .story__copy {
    padding-inline: var(--gutter);
  }

  .chat__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "form"
      "phone";
    grid-template-rows: none;
  }

  .phone {
    position: static;
    justify-self: stretch;
    max-width: 520px;
  }

  .location__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }

  .location__copy {
    padding-inline: var(--gutter);
  }

  .location__figure {
    width: 92%;
    margin-left: auto;
  }

  .phone__thread {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: 80px;
    gap: 10px;
  }

  .brand img {
    height: 64px;
  }

  .button--header {
    min-height: 46px;
    gap: 8px;
    padding-inline: 16px;
    font-size: 0.92rem;
  }

  .button--header .icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .mobile-menu summary {
    width: 44px;
    height: 44px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .button--primary {
    padding-inline: 22px;
    font-size: 1rem;
  }

  .tape {
    height: 70px;
  }

  .swatches {
    gap: 10px;
  }

  .swatches label {
    width: 76px;
  }

  .swatch {
    width: 64px;
    height: 64px;
  }

  .closing .button {
    width: 100%;
  }

  .site-footer__side {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
