/* Casa do Mármore — página de links
   Reproduz o layout da bio oficial (bio.site/casadomarmore.ms), sem o selo de propaganda da plataforma. */

:root {
  --ink: #010101;
  --muted: #6d6d6d;
  --bg: #ffffff;
  --col: 485px;
  --pad: 22px;
  --card-w: 243px;
  --card-h: 324px;
  --gap: 12px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Cabeçalho ---------- */
.cover { position: relative; height: 174px; clip-path: url(#cover-curve); }
.cover picture, .cover img { width: 100%; height: 100%; }
.cover img { object-fit: cover; object-position: 50% 50%; }

.avatar {
  position: relative; z-index: 1;
  width: 132px; height: 132px; margin: -90px auto 0; padding: 10px;
  border-radius: 50%; background: var(--bg);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.profile { text-align: center; }
.profile h1 { margin: 8px 0 0; padding: 0 24px; font-size: 28px; line-height: 1.2; font-weight: 400; }
.profile .tagline { margin: 6px 0 0; padding: 0 24px; font-size: 11px; line-height: 1.64; letter-spacing: .5px; text-transform: uppercase; }

.icons { display: flex; justify-content: center; margin-top: 20px; }
.icons a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); transition: opacity .2s; }
.icons a:hover { opacity: .6; }
.icons svg { display: block; }

/* ---------- Seções de cards ---------- */
.section { max-width: calc(var(--col) + var(--pad) * 2); margin: 0 auto; padding: 10px var(--pad); }
.section:first-child { margin-top: 10px; }
.section + .section { margin-top: 20px; }
.section h2 { margin: 0 0 10px; font-size: 20px; line-height: 30px; font-weight: 400; text-align: center; }
.section .desc { margin: 0 0 40px; font-size: 15px; line-height: 23px; text-align: center; }

/* Botões em pílula com miniatura redonda */
.buttons { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; filter: drop-shadow(rgba(0, 0, 0, .06) 0 6px 40px); }
.pill {
  display: flex; align-items: center; min-height: 80px;
  padding: 12px 22px 12px 12px; border-radius: 43px; background: #fff;
  font-size: 16px; line-height: 20px; color: var(--ink);
  transition: transform .2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill picture, .pill img { width: 56px; height: 56px; flex: none; }
.pill img { border-radius: 100%; object-fit: cover; margin-right: 12px; }
.pill picture { margin-right: 12px; }
.pill picture img { margin-right: 0; }

.section h2 + .carousel { margin-top: 40px; }

.carousel { position: relative; }
.track {
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 0;
  margin-right: calc(var(--pad) * -1); padding-right: var(--pad);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

.card {
  position: relative; flex: none; overflow: hidden; isolation: isolate;
  width: var(--card-w); height: var(--card-h); padding: 22px;
  border-radius: 16px; background: #fff;
  display: flex; align-items: flex-end;
  scroll-snap-align: start;
}
.card picture, .card > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.card > picture img { object-fit: cover; transition: transform .5s ease; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .5) 100%);
}
.card:hover > picture img { transform: scale(1.03); }
.card .name { font-size: 16px; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.card .arrow { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: #fff; }

/* Setas de navegação só em computador (mouse) */
.nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav {
    display: grid; place-items: center; position: absolute; top: calc(var(--card-h) / 2 - 20px); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    transition: opacity .2s;
  }
  .nav.prev { left: -56px; }
  .nav.next { right: -56px; }
  .nav[disabled] { opacity: 0; pointer-events: none; }
  .nav svg { width: 16px; height: 16px; }
}
@media (max-width: 620px) { .nav { display: none !important; } }

.foot { margin: 48px 0 0; padding: 0 24px 40px; text-align: center; font-size: 11px; letter-spacing: .5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .card > picture img { transition: none; } .track { scroll-behavior: auto; } }

/* ---------- Formulário antes do WhatsApp (botão "Converse com nossos Especialistas") ----------
   Campos sempre com 16px: abaixo disso o iPhone dá zoom ao tocar no campo. */
body.contato-aberto { overflow: hidden; }
.contato {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .45);
}
.contato[hidden] { display: none; }
.contato-caixa {
  position: relative; width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto;
  padding: 28px 22px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--bg);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, .12);
}
@media (min-width: 560px) {
  .contato { align-items: center; padding: 24px; }
  .contato-caixa { border-radius: 22px; padding-bottom: 18px; }
}
.contato-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 28px; line-height: 1; color: var(--muted);
}
.contato h2 { margin: 0 36px 6px 0; font-size: 22px; line-height: 1.25; font-weight: 400; }
.contato-sub { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.campo { display: block; margin: 0 0 14px; }
.campo > span, .procura legend { display: block; margin: 0 0 6px; font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: .3px; }
.campo input[type="text"], .campo input[type="tel"] {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #d6d6d6; border-radius: 12px; background: #fff; color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
}
.campo input[type="text"]:focus, .campo input[type="tel"]:focus { outline: none; border-color: var(--ink); }
.campo .erro { display: none; margin-top: 6px; font-size: 13px; color: #b42318; }
.campo.invalido input { border-color: #b42318; }
.campo.invalido .erro { display: block; }

/* fieldset em bloco com legend flutuante: o Safari ignora flex em fieldset */
fieldset.procura { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.procura legend { float: left; width: 100%; padding: 0; }
.procura legend em { font-style: normal; font-weight: 400; color: var(--muted); }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 10px 14px; border: 1px solid #d6d6d6; border-radius: 43px;
  font-size: 14px; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
/* janela de orçamento: duas perguntas de opção seguidas, e a obrigatória pode ficar em erro */
fieldset.procura + fieldset.procura { margin-top: 18px; }
.procura.invalido .chips span { border-color: #b42318; }

.contato-enviar {
  display: block; width: 100%; min-height: 52px; margin-top: 18px;
  border: 0; border-radius: 43px; background: var(--ink); color: #fff; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
}
.contato-enviar:hover { opacity: .88; }
.contato-lgpd { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.contato-pular {
  display: block; margin: 10px auto 0; padding: 10px; text-align: center;
  font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
