/* iCell Prime: base compartilhada (tokens, cabeçalho, menu, botões, rodapé, barra de WhatsApp).
   Regra de desempenho: animar só transform e opacity. Vidro (backdrop-filter) só no cabeçalho. */

:root {
  --ink: #090909;
  --ink-2: #111113;
  --ink-3: #1b1b1d;
  --paper: #f7f6f2;
  --white: #fff;
  --stone: #ebe8e1;
  --stone-2: #ded9cf;
  --muted: #686765;
  --muted-dark: rgba(255, 255, 255, .62);
  --line: rgba(9, 9, 9, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --gold: #d4aa68;
  --gold-light: #f2d7a2;
  --gold-deep: #84602d; /* contraste 5,3 no off-white e 4,7 no areia (mínimo 4,5) */
  --gold-grad: linear-gradient(135deg, #fbe7bf 0%, #e3bd7d 46%, #c39250 100%);
  --gold-text: linear-gradient(100deg, #f6deae 0%, #d9ac64 45%, #f2d7a2 70%, #b98a49 100%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --shell: min(1180px, 100% - 40px);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hdr-h: 64px;
  --sec: clamp(88px, 13vw, 160px);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-padding-top: calc(var(--hdr-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

.sr-only {
  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 {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Tipografia */

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.on-dark .eyebrow,
.eyebrow--gold {
  color: var(--gold);
}

.t-display {
  font-size: clamp(42px, 11.4vw, 92px);
  font-weight: 620;
  letter-spacing: -.052em;
  line-height: .98;
  text-wrap: balance;
}

.t-h2 {
  font-size: clamp(34px, 8.6vw, 68px);
  font-weight: 620;
  letter-spacing: -.048em;
  line-height: 1.02;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .t-h2 { font-size: clamp(40px, 4.2vw, 60px); }
}

.t-h3 {
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 620;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.t-lede {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.55;
}

.on-dark .t-lede,
.on-dark p {
  color: var(--muted-dark);
}

.gold-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Seções */

.sec {
  position: relative;
  padding-block: var(--sec);
}

.on-dark {
  color: var(--white);
  background: var(--ink);
}

.sec--stone {
  background: var(--stone);
}

/* Botões */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s ease, border-color .3s ease, color .3s ease;
}

.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, .22);
  opacity: 0;
  transition: opacity .3s ease;
}

.btn:active {
  transform: scale(.97);
  transition-duration: .12s;
}

.btn .arr {
  display: inline-block;
  transition: transform .4s var(--ease);
}

.btn-gold {
  color: #17120a;
  background: var(--gold-grad);
  border-color: rgba(255, 240, 210, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 36px rgba(190, 139, 64, .26);
}

.btn-glass {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .24);
}

.btn-ink {
  color: var(--white);
  background: var(--ink);
}

.btn-ink::after {
  background: rgba(255, 255, 255, .1);
}

.btn-line {
  color: var(--ink);
  border-color: rgba(9, 9, 9, .2);
}

.btn-wa .wa-ico {
  width: 18px;
  height: 18px;
  flex: none;
}

@media (hover: hover) {
  .btn:hover::after { opacity: 1; }
  .btn:hover .arr { transform: translate(2px, -2px); }
  .btn-line:hover { border-color: var(--ink); }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 620;
}

.link-arrow .arr {
  transition: transform .4s var(--ease);
}

@media (hover: hover) {
  .link-arrow:hover .arr { transform: translate(2px, -2px); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips > * {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 560;
}

.on-dark .chips > * {
  border-color: var(--line-dark);
  color: rgba(255, 255, 255, .82);
}

/* Cabeçalho */

.hdr {
  position: fixed;
  z-index: 100;
  top: calc(10px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  transition: transform .5s var(--ease);
}

.hdr.is-hidden {
  transform: translateY(calc(-100% - 24px));
}

.hdr__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, 100%);
  height: var(--hdr-h);
  margin-inline: auto;
  padding: 0 10px 0 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: var(--ink);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease;
}

.hdr.is-scrolled .hdr__bar {
  background: rgba(247, 246, 242, .8);
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 34px rgba(9, 9, 9, .08);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}

.hdr.is-dark .hdr__bar {
  color: var(--white);
}

.hdr.is-dark.is-scrolled .hdr__bar {
  background: rgba(16, 16, 18, .72);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .3);
}

.hdr__brand {
  position: relative;
  display: block;
  width: 84px;
  height: 47px;
  flex: none;
}

.hdr__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .3s ease;
}

.hdr__logo--dark,
.hdr.is-dark .hdr__logo--light {
  opacity: 1;
}

.hdr__logo--light,
.hdr.is-dark .hdr__logo--dark {
  opacity: 0;
}

.hdr__nav {
  display: none;
}

.hdr__cta {
  display: none;
}

.hdr__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border-radius: 14px;
}

.hdr__toggle i {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease);
}

.hdr__toggle i:first-of-type {
  transform: translateY(-4px);
}

.hdr__toggle i:last-of-type {
  transform: translateY(4px);
}

html.menu-open .hdr__toggle i:first-of-type {
  transform: rotate(45deg);
}

html.menu-open .hdr__toggle i:last-of-type {
  transform: rotate(-45deg);
}

html.menu-open .hdr {
  transform: none;
}

html.menu-open .hdr__bar {
  color: var(--white);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.menu-open .hdr__logo--light {
  opacity: 1;
}

html.menu-open .hdr__logo--dark {
  opacity: 0;
}

@media (min-width: 900px) {
  :root { --hdr-h: 68px; }

  .hdr {
    left: 24px;
    right: 24px;
  }

  .hdr__bar {
    padding: 0 10px 0 22px;
  }

  .hdr__brand {
    width: 92px;
    height: 52px;
  }

  .hdr__nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }

  .hdr__nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 540;
    opacity: .78;
    transition: opacity .25s ease, background-color .25s ease;
  }

  .hdr__nav a:hover,
  .hdr__nav a[aria-current="page"] {
    opacity: 1;
  }

  .hdr__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--white);
    background: var(--ink);
    font-size: 14px;
    font-weight: 620;
    transition: transform .4s var(--ease);
  }

  .hdr.is-dark .hdr__cta {
    color: #17120a;
    background: var(--gold-grad);
  }

  .hdr__cta:active {
    transform: scale(.97);
  }

  .hdr__toggle {
    display: none;
  }
}

/* Menu do celular */

.menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 96px) 28px calc(env(safe-area-inset-bottom) + 28px);
  overflow-y: auto;
  color: var(--white);
  background: radial-gradient(120% 60% at 50% 0%, rgba(212, 170, 104, .14), transparent 60%), var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}

html.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s var(--ease), visibility 0s;
}

.menu__links {
  display: grid;
  gap: 4px;
}

.menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.menu__links a::after {
  content: "↗";
  color: var(--gold);
  font-size: .5em;
}

.menu__links a,
.menu__foot {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}

html.menu-open .menu__links a,
html.menu-open .menu__foot {
  opacity: 1;
  transform: none;
}

html.menu-open .menu__links a:nth-child(2) { transition-delay: .04s; }
html.menu-open .menu__links a:nth-child(3) { transition-delay: .08s; }
html.menu-open .menu__links a:nth-child(4) { transition-delay: .12s; }
html.menu-open .menu__links a:nth-child(5) { transition-delay: .16s; }
html.menu-open .menu__foot { transition-delay: .2s; }

.menu__foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 36px;
}

.menu__foot .btn {
  width: 100%;
}

.menu__foot p {
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .menu { display: none; }
}

/* Barra fixa de WhatsApp (celular) */

.wa-bar {
  position: fixed;
  z-index: 80;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  color: var(--white);
  background: #121214;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(calc(100% + 24px));
  transition: transform .6s var(--ease), opacity .4s ease;
  pointer-events: none;
}

.wa-bar.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa-bar:active {
  transform: scale(.98);
}

.wa-bar .wa-ico {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}

.wa-bar small {
  display: block;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 500;
}

.wa-bar__go {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 14px;
  color: #17120a;
  background: var(--gold-grad);
  font-size: 16px;
}

html.menu-open .wa-bar {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 900px) {
  .wa-bar { display: none; }
}

/* Revelação: só esconde o que ainda está abaixo da tela quando o JS roda */

html.js [data-reveal].is-pre {
  opacity: 0;
  transform: translateY(26px);
}

html.js [data-reveal] {
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}

html.js [data-reveal="2"] { transition-delay: .08s; }
html.js [data-reveal="3"] { transition-delay: .16s; }
html.js [data-reveal="4"] { transition-delay: .24s; }

/* Mapa sob demanda */

.map-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--stone-2);
}

.map-slot iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.map-slot[hidden],
html:not(.js) [data-map] {
  display: none;
}

/* Rodapé */

.ftr {
  padding: 72px 0 calc(40px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, .62);
  background: var(--ink);
  font-size: 14px;
}

.ftr__top {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}

.ftr__brand img {
  width: 112px;
}

.ftr__brand p {
  max-width: 30em;
  margin-top: 18px;
  line-height: 1.6;
}

.ftr__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.ftr__nav a {
  color: rgba(255, 255, 255, .86);
}

.ftr__nav a:hover {
  color: var(--gold-light);
}

.ftr__legal {
  display: grid;
  gap: 14px;
  padding-top: 28px;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 899px) {
  .ftr {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 900px) {
  .ftr__top {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .ftr__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Movimento reduzido: tudo parado e visível */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  html.js [data-reveal].is-pre {
    opacity: 1;
    transform: none;
  }
}
