/* =========================================================
   Shrine · template do site do cliente (editor e site publicado)
   Fonte, cantos e transparência das caixas vêm do projeto.
   ========================================================= */
:root {
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --box-radius: 22px;
  --box-alpha: .45;
  --site-top: 0px;
  --wide: max(24px, calc((100% - 1180px) / 2));
}

/* cursor normal: aqui o cliente edita e o visitante navega */
.site-page { cursor: auto; }
.site-page :is(a, button, summary, label, select, [data-gallery], .toggle) { cursor: pointer; }
.site-page :is(input, textarea, [contenteditable="true"]) { cursor: text; }

.cs-site { position: relative; z-index: 2; font-family: var(--font-body); }
.cs-site :is(h1, h2, h3, .cs-logo, .cs-q) { font-family: var(--font-head); }

/* ---------- caixas ---------- */
.s-box {
  border-radius: var(--box-radius);
  border: 1px solid var(--line);
  background: rgba(14, 18, 34, var(--box-alpha));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .3s, box-shadow .3s;
}
/* celular: sem desfoque (borrava o objeto atrás e pesa no iPhone); a caixa fica mais escura no lugar */
@media (max-width: 759px) {
  .s-box { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(14 18 34 / max(var(--box-alpha), .88)); }
}
.box-glow .s-box {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 0 34px -14px var(--accent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ---------- botões ---------- */
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: calc(var(--box-radius) + 8px);
  background: var(--accent); color: var(--bg); border: 1px solid var(--accent);
  font: 600 15px var(--font-body); text-decoration: none;
  box-shadow: 0 10px 36px -12px var(--accent); transition: transform .3s var(--ease), box-shadow .3s;
}
.cs-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 46px -10px var(--accent); }
.cs-btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); box-shadow: none; }
.cs-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.cs-btn.small { padding: 10px 18px; font-size: 13px; }

/* ---------- navegação ---------- */
.cs-nav {
  position: sticky; top: calc(var(--site-top) + 14px); z-index: 30;
  width: min(1180px, calc(100% - 32px)); margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: calc(var(--box-radius) + 14px);
}
.cs-logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: .04em; min-width: 0; }
.cs-logo span[data-cfg] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-menu { display: flex; gap: 22px; flex-wrap: nowrap; justify-content: center; min-width: 0; overflow: hidden; }
.cs-menu a { white-space: nowrap; }
.cs-menu a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .3s; }
.cs-menu a:hover { color: var(--fg); }

/* ---------- início ---------- */
.cs-hero { min-height: calc(100vh - var(--site-top) - 80px); display: flex; align-items: center; padding: 60px var(--wide) 90px; }
.cs-hero-inner { max-width: 660px; }
.cs-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); margin-bottom: 26px; }
.cs-title { font-size: clamp(46px, 8vw, 112px); line-height: .92; letter-spacing: -.04em; font-weight: 700; overflow-wrap: anywhere; }
.cs-lead { max-width: 540px; margin-top: 26px; font-size: 18px; line-height: 1.6; color: var(--muted); white-space: pre-line; }
.cs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cs-stats { display: flex; gap: 36px; margin-top: 50px; flex-wrap: wrap; }
.cs-stats b { display: block; font-size: 32px; font-family: var(--font-head); }
.cs-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- seções (mesmo padrão: conteúdo à esquerda, objeto à direita) ---------- */
.cs-section { padding: 110px var(--wide); }
.cs-head { max-width: 660px; margin-bottom: 40px; }
.cs-kicker { color: var(--accent); font-size: 13px; margin-bottom: 16px; }
.cs-h2 { font-size: clamp(34px, 5.5vw, 66px); line-height: 1; letter-spacing: -.03em; }
.cs-sub { color: var(--muted); margin-top: 16px; font-size: 17px; line-height: 1.55; white-space: pre-line; }
.cs-text { color: var(--muted); line-height: 1.6; white-space: pre-line; }
.cs-h3 { font-size: 20px; }
.cs-num { color: var(--accent); font-size: 12px; }

.cs-about { max-width: 760px; padding: 32px; }
.cs-about .cs-text { font-size: 17px; color: var(--fg); opacity: .85; }

.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; max-width: 760px; }
.cs-about + .cs-grid { margin-top: 16px; } /* seção extra com texto e caixas */
.cs-card, .cs-quote { position: relative; margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.cs-card .cs-num { margin-bottom: 18px; }
.cs-price { color: var(--accent); margin-top: auto; padding-top: 8px; font-size: 14px; }
.cs-stars { color: var(--accent); letter-spacing: 3px; font-size: 14px; }
.cs-cite { color: var(--fg); font-style: normal; font-size: 12px; margin-top: auto; }

.cs-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; }
.cs-tile { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.cs-tile img { width: 100%; height: 100%; object-fit: cover; }
.cs-tile:not(.has-img) { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent2) 16%, transparent)); }
.cs-tile-ph { font-size: 13px; color: var(--muted); }

.cs-form { max-width: 760px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-field { display: grid; gap: 8px; align-content: start; }
.cs-field.wide, .cs-submit, .cs-edit-note { grid-column: 1 / -1; }
.cs-flabel { font-size: 13px; color: var(--fg); }
.cs-flabel i { color: var(--accent); font-style: normal; }
.cs-form :is(input, textarea, select) {
  width: 100%; padding: 13px 14px; border-radius: calc(var(--box-radius) * .55); border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35); color: var(--fg); font: 15px var(--font-body); outline: none; transition: border-color .3s, box-shadow .3s;
}
.cs-form select option { background: #0b0e19; }
.cs-form :is(input, textarea, select):focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.cs-form textarea { resize: vertical; min-height: 110px; }
.cs-field.error :is(input, textarea, select) { border-color: #ff4d6d; }
.cs-ferr { color: #ff6b81; font-size: 12px; min-height: 0; }
.cs-submit { justify-self: start; margin-top: 4px; }
.cs-edit-note { font-size: 11px; color: var(--muted); }
.cs-dialog-preview { max-width: 760px; margin-top: 18px; }
.cs-dialog-preview > p { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.cs-dialog { padding: 20px 24px; }

.cs-faq { max-width: 760px; display: grid; gap: 10px; }
.cs-qa { position: relative; }
details.cs-qa summary { list-style: none; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
details.cs-qa summary::-webkit-details-marker { display: none; }
details.cs-qa summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
details.cs-qa[open] summary::after { transform: rotate(45deg); }
details.cs-qa .cs-a { padding: 0 24px 20px; }
.cs-qa.open { padding: 20px 24px; display: grid; gap: 8px; }
.cs-q { font-weight: 600; font-size: 17px; }
.cs-a { color: var(--muted); line-height: 1.6; white-space: pre-line; }

.cs-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.cs-info { list-style: none; padding: 24px; display: grid; gap: 16px; align-content: start; }
.cs-info li { display: grid; gap: 3px; }
.cs-info span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cs-info a, .cs-info b { color: var(--fg); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.cs-info a:hover { color: var(--accent); }
.cs-info em { color: var(--muted); font-size: 13px; }
.cs-map { width: 100%; min-height: 280px; height: 100%; border: 0; }

.cs-footer { position: relative; z-index: 2; text-align: center; padding: 30px 16px 90px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* ---------- WhatsApp flutuante e diálogo ---------- */
.cs-wa { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: flex-end; gap: 10px; }
.cs-bubble { padding: 12px 16px; font-size: 14px; max-width: 230px; margin-bottom: 8px; }
.cs-wa-btn {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease);
}
.cs-wa-btn:hover { transform: scale(1.08); }
.cs-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cs-modal[hidden] { display: none; }
.cs-modal-box { max-width: 420px; padding: 28px; display: grid; gap: 18px; background: rgba(14, 18, 34, .96); }
.cs-modal-box .cs-text { color: var(--fg); font-size: 16px; }

/* ---------- marca de prévia (só fora do site publicado) ---------- */
.cs-preview-mark {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; pointer-events: none; user-select: none;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(8, 10, 20, .72); color: rgba(255, 255, 255, .78); font-size: 11px; letter-spacing: .04em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 640px) { .cs-preview-mark { bottom: 84px; } }

/* ---------- aviso rápido ---------- */
.ed-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 95; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: rgba(10, 12, 22, .96); border: 1px solid var(--accent);
  font-size: 14px; max-width: min(520px, calc(100% - 32px)); text-align: center; transition: opacity .3s, transform .3s var(--ease);
}
.ed-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- celular ---------- */
@media (max-width: 980px) { .cs-menu { display: none; } }
@media (max-width: 760px) {
  .cs-section { padding: 80px 16px; }
  .cs-hero { padding: 40px 16px 70px; }
  .cs-gallery { grid-template-columns: repeat(2, 1fr); }
  .cs-form, .cs-contact { grid-template-columns: 1fr; }
  .cs-form { padding: 20px; }
  .cs-bubble { display: none; }
}

/* conteúdo na metade esquerda: o objeto 3D fica livre à direita */
@media (min-width: 761px) {
  .cs-head, .cs-about, .cs-grid, .cs-gallery, .cs-form, .cs-faq, .cs-contact, .cs-dialog-preview { max-width: min(760px, 58%); }
}
