/* ============================================================
   Estúdio Belize · Página de links
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #4d4d4d;
  --ink-3: #8c8c8c;
  --line: #ececec;
  --surface: #f5f5f6;

  /* dourado sutil, usado só em detalhes e interações */
  --gold: #b0905c;
  --gold-deep: #8c6e3f;
  --gold-light: #d8c39c;
  --gold-grad: linear-gradient(135deg, #d6bf94 0%, #b0905c 52%, #94743f 100%);
  --gold-ring: rgba(176, 144, 92, 0.42);

  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 10px 30px -18px rgba(20, 20, 20, 0.14);
  --shadow-hover: 0 1px 2px rgba(20, 20, 20, 0.05), 0 24px 48px -24px rgba(20, 20, 20, 0.24);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
  --max: 680px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */

.page {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 20px var(--gutter) calc(40px + env(safe-area-inset-bottom));
}
.has-fab .page { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

.topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.topline[hidden] { display: none; }
.topline .dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.topline .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold-ring);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.section { margin-top: 72px; }
.section + .section { margin-top: 56px; }

.section-label {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* sem descrição logo abaixo, o título ganha mais espaço */
.section-label + :not(.section-intro) { margin-top: 18px; }

.section-intro {
  margin-bottom: 18px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 44px;
}

.logo {
  display: block;
  flex: none;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }

/* logotipo monocromático: o PNG/SVG funciona como máscara */
.logo-mark {
  background: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: background-color 0.6s var(--ease);
}

.logo-hero { width: 116px; height: 116px; }
.logo-hero.logo-mark:hover { background: var(--gold); }

.brand {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* compensa o espaçamento da última letra para centralizar */
  padding-left: 0.3em;
}

.lede {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Botões ---------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.button .icon { transition: color 0.4s var(--ease); }

/* brilho dourado que atravessa o botão ao passar o mouse */
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(214, 191, 148, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.button-dark {
  margin-top: 28px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(20, 20, 20, 0.5);
}
.button-dark .icon { color: var(--gold-light); }
.button-dark:hover {
  box-shadow: 0 0 0 1px var(--gold-ring), 0 14px 28px -14px rgba(20, 20, 20, 0.55);
}
.button-dark:hover::after,
.cta:hover .button::after,
.fab:hover::after { transform: translateX(120%); }

.button-light {
  flex: none;
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
}
.button-light .icon { color: var(--gold); }

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Cards ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.6s var(--ease);
  isolation: isolate;
}
.card:hover { box-shadow: 0 0 0 1px var(--gold-ring), var(--shadow-hover); }

.media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.media img,
.media-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .media img { transform: scale(1.035); }

.media-feature { aspect-ratio: 4 / 3; }

/* mosaico de fotos do card principal */
.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  aspect-ratio: 1 / 1;
  background: #fff;
}
.mosaic .media { min-height: 0; }
.mosaic .media img { position: absolute; inset: 0; }
.mosaic .media:first-child { grid-row: 1 / span 2; }
.mosaic-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); aspect-ratio: 8 / 5; }
.mosaic-2 .media:first-child { grid-row: auto; }
.mosaic-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic-4 .media:first-child { grid-row: auto; }
.media-service { aspect-ratio: 1 / 1; }

.card-body {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
}
.card-body-sm { padding: 16px 16px 18px; flex: 1; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card-body-sm .eyebrow { margin-bottom: 8px; font-size: 10px; }
.eyebrow-gold { color: var(--gold-light); }

.title-xl {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
.title-md {
  font-family: var(--font-display);
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.title-sm {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.desc {
  margin-top: 12px;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.desc-sm {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* texto de ação com sublinhado dourado que cresce no hover */
.card-action {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.6s var(--ease), color 0.4s var(--ease);
}
.card:hover .card-action { background-size: 100% 1px; color: var(--gold-deep); }
.card-action-sm {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  background-position: 0 100%;
}

.arrow {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-grad);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease);
}
.arrow-lg { width: 52px; height: 52px; }
.arrow-lg svg { width: 20px; height: 20px; }

.card:hover .arrow {
  border-color: transparent;
  color: #fff;
}
.card:hover .arrow::before { opacity: 1; }
.card:hover .arrow svg { transform: translate(2px, -2px); }

.card-service .arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- Portfólio ---------- */

/* galeria em movimento contínuo, dentro das mesmas margens dos cards */
.marquee {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--dur, 40s) linear infinite;
}
.marquee-track.is-reverse { animation-direction: reverse; }
/* pausa ao passar o mouse ou navegar pelo teclado */
.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.work {
  display: block;
  flex: none;
  width: 136px;
  margin-right: 10px; /* margem em vez de gap: mantém a emenda do loop exata */
}
.media-work {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
}
.work:hover .media img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-row { overflow-x: auto; scrollbar-width: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.5s var(--ease), color 0.4s var(--ease);
}
.text-link:hover { background-size: 100% 1px; color: var(--gold-deep); }
.icon-xs { width: 14px; height: 14px; }

/* ---------- Depoimentos ---------- */

.testimonials {
  padding: 8px 0 4px;
  text-align: center;
}
#depo-titulo,
#depo-descricao { text-align: center; }
#depo-descricao { margin-left: auto; margin-right: auto; }

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  column-gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  scroll-snap-align: start;
}
/* fio dourado delicado no lugar das aspas */
.testimonial::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-bottom: 26px;
  background: var(--gold);
}

.testimonial blockquote {
  margin: 0;
  max-width: 32ch;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--gold-ring);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-empty {
  background: linear-gradient(145deg, #f7f7f8, #ececee);
}

.testimonial-who strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
.testimonial-who span {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--ink-3);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9d9db;
  cursor: pointer;
  transition: width 0.5s var(--ease), background-color 0.5s var(--ease);
}
.dot.is-on { width: 22px; background: var(--gold); }
/* área de toque maior sem aumentar o ponto */
.dot { position: relative; }
.dot::after { content: ""; position: absolute; inset: -10px -4px; }

/* ---------- Chamada WhatsApp ---------- */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 38px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.6s var(--ease);
}
/* linha dourada fina no topo */
.cta::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.55;
  transition: opacity 0.6s var(--ease);
}
.cta:hover { box-shadow: 0 0 0 1px var(--gold-ring), var(--shadow-hover); }
.cta:hover::before { opacity: 1; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.cta-desc {
  margin-top: 12px;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.64);
}

/* ---------- Produtos ---------- */

.product-group + .product-group { margin-top: 40px; }

.group-title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-md);
}
.media-product {
  flex: none;
  width: 108px;
  aspect-ratio: 6 / 5;
  border-radius: var(--radius-sm);
}
.product-text { flex: 1; min-width: 0; }

.price {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-ring);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-deep);
}

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

.footer {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-brand span { display: block; margin-top: 2px; }

.logo-sm { width: 44px; height: 44px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
}
.footer-meta a {
  color: var(--ink);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.4s var(--ease);
}
.footer-meta a:hover { background-size: 100% 1px; color: var(--gold-deep); }

.copy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- Botão flutuante ---------- */

.fab {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(216, 195, 156, 0.25), 0 18px 40px -16px rgba(20, 20, 20, 0.55);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}
.fab .icon { color: var(--gold-light); }
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(214, 191, 148, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.fab:hover { box-shadow: 0 0 0 1px var(--gold), 0 18px 40px -16px rgba(20, 20, 20, 0.55); }

.noscript {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.noscript a { text-decoration: underline; }

.notfound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.notfound .eyebrow { margin: 0; }
.notfound a { text-decoration: underline; }

/* ---------- Entrada suave ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.6s var(--ease), background-color 0.6s var(--ease);
}
.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */

@media (max-width: 359px) {
  .grid-2 { grid-template-columns: 1fr; }
  .media-service { aspect-ratio: 4 / 3; }
  .media-product { width: 88px; }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .page { padding-top: 28px; }
  .has-fab .page { padding-bottom: 48px; }
  .hero { padding-top: 60px; }
  .logo-hero { width: 128px; height: 128px; }
  .section { margin-top: 88px; }

  .media-feature { aspect-ratio: 3 / 2; }
  .mosaic { aspect-ratio: 16 / 11; gap: 4px; }
  .mosaic-4 { aspect-ratio: 4 / 3; }
  .testimonials { padding: 16px 0 8px; }
  .marquee { gap: 14px; }
  .work { width: 176px; margin-right: 14px; }
  .card-body { padding: 34px 34px 28px; }
  .card-body-sm { padding: 20px 20px 22px; }
  .grid-2 { gap: 16px; margin-top: 16px; }

  .cta {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 46px 40px;
  }
  .cta::before { left: 40px; right: 40px; }
  .button-light { align-self: auto; }

  .product { padding: 12px 22px 12px 12px; gap: 22px; }
  .media-product { width: 150px; }

  .footer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
  }
  .footer-meta { margin-top: 0; justify-content: flex-end; }
  .copy { grid-column: 1 / -1; margin-top: 4px; }

  .fab {
    left: auto;
    right: 28px;
    bottom: 28px;
    transform: translateY(16px);
  }
  .fab.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
