/* ==========================================================================
   Axis Capital — estilos
   Tokens extraídos do site original no Framer (antes eram --token-<uuid>).
   ========================================================================== */

@font-face {
  font-family: "Quiche Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/quiche-sans-bold.otf") format("opentype");
}
/* Work Sans é variável: o mesmo arquivo atende 400 e 500 */
@font-face {
  font-family: "Work Sans";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #3075cf;
  --blue-dark: #245ca6;
  --cyan: #00c2ff;
  --ink: #292929;
  --gray: #727272;
  --line: #cecece;
  --bg-soft: #e6e6e6;
  --white: #fff;
  --purple: #8854c4;
  --green: #7fc127;
  --sand: #d9a76e;
  --indigo: #4d4dd9;
  --salmon: #ffab9e;

  --font-display: "Quiche Sans", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;
  --radius-feature: clamp(48px, 7vw, 100px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 16px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 40px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--light { background: var(--cyan); color: var(--ink); }
.btn--light:hover { background: #4fd5ff; }
.btn--accent { background: var(--accent); min-height: 52px; padding: 0 28px; font-size: 20px; }
.btn--accent:hover { background: var(--accent); filter: brightness(.92); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  background: rgb(0 0 0 / .4);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-header.is-solid { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { width: 140px; height: auto; }
.logo-dark, .is-solid .logo-light { display: none; }
.is-solid .logo-dark { display: block; }

.main-nav__list { display: flex; align-items: center; gap: 32px; }
.main-nav__link, .dropdown__trigger {
  font: 500 16px/1 var(--font-body);
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav__social { display: flex; gap: 14px; }
.main-nav__social a { display: flex; }

.dropdown { position: relative; }
.dropdown__trigger svg { transition: transform .2s; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  min-width: 240px;
  padding: 8px;
  background: var(--white);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; text-decoration: none; }
.dropdown__menu a:hover { background: #f1f5fb; color: var(--blue); }
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu,
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown:hover .dropdown__trigger svg,
.dropdown.is-open .dropdown__trigger svg { transform: rotate(180deg); }

.menu-toggle { display: none; }
/* Trava a página atrás do menu aberto (iOS ignora overflow só no body) */
html.menu-locked, html.menu-locked body { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(720px, 100svh);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.hero picture, .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / 0) 55%);
}
.hero__content { padding-block: 140px 96px; }
.hero__title { font: 700 clamp(40px, 5vw, 64px)/1 var(--font-display); letter-spacing: 0; margin-bottom: 24px; }
.hero__lead { max-width: 470px; font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.2; }

.intro {
  padding-block: 64px 24px;
  text-align: center;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
}

/* ---------- Produtos ---------- */
.product { padding-block: clamp(48px, 8vw, 96px); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.product--reverse .product__img { order: -1; }

.product__icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.product__title { font: 700 clamp(30px, 3.2vw, 40px)/1.2 var(--font-display); letter-spacing: 0; color: var(--blue); margin-bottom: 12px; }
.product__lead { margin-bottom: 28px; }

.product__list { margin-bottom: 32px; }
.product__list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.product__list li:last-child { border-bottom: 0; }
.product__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 2v9.3h-1.8V5l-9 9L2 12.7l9-9H4.7V2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 2v9.3h-1.8V5l-9 9L2 12.7l9-9H4.7V2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product__list--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.product__list--cols li:nth-last-child(2) { border-bottom: 0; }

.product__img { width: 100%; height: 100%; max-height: 640px; aspect-ratio: 1 / 1; object-fit: cover; }
.product__img[data-corner="tl"] { border-top-left-radius: var(--radius-feature); }
.product__img[data-corner="tr"] { border-top-right-radius: var(--radius-feature); }
.product__img[data-corner="bl"] { border-bottom-left-radius: var(--radius-feature); }
.product__img[data-corner="br"] { border-bottom-right-radius: var(--radius-feature); }

.product--dark { background: var(--ink); color: var(--white); }
.product--dark .product__title,
.product--dark .product__icon,
.product--dark .product__list li::before { color: var(--cyan); }
.product--dark .product__list li { border-color: rgb(255 255 255 / .2); }

/* ---------- Instrumentos de crédito ---------- */
.instruments {
  padding-block: 72px 96px;
  /* fundo cinza só na metade de baixo, como no original */
  background: linear-gradient(to bottom, var(--white) 0 42%, var(--bg-soft) 42% 100%);
}
.instruments__title { font: 700 clamp(30px, 3.2vw, 40px)/1.2 var(--font-display); color: var(--blue); text-align: center; margin-bottom: 40px; }
/* Ticker: faixa contínua que anda para a esquerda e pode ser arrastada */
.ticker {
  --card-w: 360px;
  --card-gap: 40px;
  overflow: hidden;
  padding-block: 8px 24px;
  cursor: grab;
  touch-action: pan-y;          /* rolagem vertical fica com o navegador; horizontal com o carrossel */
  user-select: none;
  -webkit-user-select: none;
}
.ticker.is-dragging { cursor: grabbing; }
.ticker img { -webkit-user-drag: none; pointer-events: none; }
.ticker__track {
  display: flex;
  align-items: flex-start;      /* cada card com a altura do próprio conteúdo, como no original */
  gap: var(--card-gap);
  width: max-content;
  padding-inline: var(--card-gap);
  will-change: transform;
}
/* Sem JS (ou com movimento reduzido): vira rolagem horizontal nativa */
.ticker:not(.is-ready) { overflow-x: auto; cursor: auto; user-select: auto; }

.card {
  flex: 0 0 var(--card-w);
  display: flex;
  flex-direction: column;
}
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-top-left-radius: 50px; }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 40px 40px;
  background: var(--white);
  border-bottom-right-radius: 50px;
  font-size: 16px;
}
.card__title { font: 400 22px/1.3 var(--font-body); color: var(--accent); border-left: 3px solid var(--accent); padding-left: 14px; }
.card__source { font-size: 14px; color: var(--accent); }
.card .btn { align-self: flex-start; margin-top: 8px; border-radius: 0 0 25px 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 72px 32px; font-size: 16px; font-weight: 500; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 48px; }
/* Desktop: logotipo completo na 4ª coluna, alinhado à direita e ao topo dos títulos */
.site-footer__logo { justify-self: end; }
.site-footer__logo img { width: 180px; height: auto; }
.site-footer__heading { font: 400 22px/1.4 var(--font-body); margin-bottom: 16px; }
.site-footer__heading::before { content: ""; display: block; width: 20px; height: 2px; background: currentColor; margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer__links li { padding: 8px 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
.site-footer__contacts li + li { margin-top: 14px; }
.site-footer__contacts a { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 14px; font-weight: 400; color: rgb(255 255 255 / .6); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__logo { grid-column: 1 / -1; grid-row: 1; justify-self: start; } /* tablet: logo no topo */
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-header__logo img { width: 112px; }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
  }
  .menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform .2s;
  }
  .menu-toggle__bar { position: relative; }
  .menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bar::before { top: -7px; }
  .menu-toggle__bar::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    /* dvh = altura visível de verdade (descontando a barra do navegador no celular);
       vh fica de fallback para navegadores antigos */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--white);
    color: var(--ink);
    /* folga no fim para o último link não ficar colado/atrás da barra de gestos do iPhone */
    padding: 24px var(--gutter) calc(48px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;      /* ao chegar no fim, não passa a rolar a página atrás */
    -webkit-overflow-scrolling: touch;
    display: none;
  }
  .site-header.menu-open { background: var(--white); color: var(--ink); }
  .site-header.menu-open .logo-light { display: none; }
  .site-header.menu-open .logo-dark { display: block; }
  .main-nav.is-open { display: block; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__list > li { border-bottom: 1px solid var(--line); }
  .main-nav__link, .dropdown__trigger { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 18px; }
  .dropdown__menu { position: static; display: none; box-shadow: none; padding: 0 0 12px; min-width: 0; opacity: 1; visibility: visible; transform: none; }
  .dropdown:hover .dropdown__menu, .dropdown:focus-within .dropdown__menu { display: none; }
  .dropdown.is-open .dropdown__menu { display: block; }
  .main-nav__social { padding: 18px 0; border-bottom: 0 !important; }

  .hero { min-height: 100svh; }
  .hero::after { background: linear-gradient(0deg, rgb(0 0 0 / .65) 0%, rgb(0 0 0 / 0) 70%); }
  .hero__content { padding-bottom: 56px; }

  .product__grid { grid-template-columns: 1fr; }
  .product__img, .product--reverse .product__img { order: -1; aspect-ratio: 4 / 3; max-height: none; }
  .product__list--cols { grid-template-columns: 1fr; }
  .product__list--cols li:nth-last-child(2) { border-bottom: 1px solid rgb(255 255 255 / .2); }
  .btn { width: 100%; }
  .card .btn { width: auto; }
  .ticker { --card-w: 280px; --card-gap: 20px; }
  .card__body { padding: 24px 24px 32px; }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Mobile (mesmo breakpoint do Framer, < 810px): o original mostra só Endereço e Contatos */
@media (max-width: 809px) {
  .site-footer__services { display: none; }
}

/* Mobile (< 810px, mesmo breakpoint do <picture>): o <picture> troca para o símbolo,
   que vira marca d'água ocupando toda a largura, no pé do rodapé (como no original) */
@media (max-width: 809px) {
  .site-footer {
    position: relative;
    isolation: isolate; /* permite z-index: -1 no símbolo sem sumir atrás do fundo */
    overflow: hidden;
    /* reserva a altura do símbolo (proporção 375×290) abaixo do conteúdo */
    padding-bottom: calc(100vw * 290 / 375);
  }
  .site-footer__logo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    opacity: .25;
    z-index: -1;
    pointer-events: none;
  }
  .site-footer__logo img { width: 100%; }
}
