/* =====================================================================
   Identidade visual Cally Atelier
   Cores tiradas do logo: creme, marrom café e dourado.
   Tipografia: Playfair Display (títulos), Great Vibes (cursiva),
   Montserrat (texto e rótulos em caixa alta espaçada).
   ===================================================================== */
:root {
  --cream: #fce7d1;        /* fundo do logo */
  --cream-light: #fdf3e8;  /* fundo da página */
  --paper: #fffaf4;        /* cards */
  --brown: #5b2d10;        /* "Cally" */
  --brown-soft: #7a4a2b;
  --muted: #97755a;
  --gold: #e4ac53;         /* detalhes dourados */
  --gold-deep: #b9822f;    /* dourado legível sobre creme */
  --gold-line: #ecd2ab;
  --wa: #25d366;

  --font-title: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Montserrat", system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(91, 45, 16, 0.08);
}

/* Playfair usa números estilo antigo por padrão; preços ficam mais claros alinhados */
h2, h3, .price { font-variant-numeric: lining-nums; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  color: var(--brown);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(228, 172, 83, 0.14), transparent 45%),
    radial-gradient(ellipse at 100% 30%, rgba(228, 172, 83, 0.10), transparent 40%),
    var(--cream-light);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }

.script {
  font-family: var(--font-script);
  color: var(--brown-soft);
}

/* ---------- Hero ---------- */
.hero {
  padding: 28px 18px 8px;
}
.hero-frame {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 26px 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
/* Moldura dourada fina, como nas artes do ateliê */
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  opacity: 0.55;
  pointer-events: none;
}
.logo {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 250, 244, 0.7), 0 12px 30px rgba(185, 130, 47, 0.25);
}
.tagline {
  margin-top: 18px;
  font-family: var(--font-script);
  font-size: 30px;
  line-height: 1.2;
  color: var(--brown-soft);
}
.hero-actions {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Botões ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 999px;
  font: 600 14px var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(91, 45, 16, 0.22);
}
.btn-primary .icon { color: var(--gold); }
.btn-primary:hover { background: #4a240c; }
.btn-ghost {
  background: rgba(255, 250, 244, 0.6);
  color: var(--brown);
  border: 1px solid var(--gold);
}
.btn-ghost .icon { color: var(--gold-deep); }
.btn-ghost:hover { background: var(--paper); }
.btn-ghost #ig-handle { text-transform: none; letter-spacing: 0.02em; font-size: 15px; }
.btn-sm {
  gap: 7px;
  padding: 11px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.btn-sm .icon { width: 16px; height: 16px; }

/* ---------- Seções ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 18px 16px;
}
.section[hidden] { display: none; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
h2 {
  margin-top: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  color: var(--brown);
}
/* Linha dourada com coração, motivo do logo */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  color: var(--gold);
  font-size: 13px;
}
.ornament::before,
.ornament::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { transform: scaleX(-1); }
.section-sub {
  max-width: 460px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.section-sub[hidden] { display: none; }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.filters[hidden] { display: none; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: var(--paper);
  color: var(--brown);
  font: 500 13px var(--font-body);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}

/* ---------- Grade e cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fade-in .4s ease both;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(91, 45, 16, 0.12);
  }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
}
.card-media img,
.card-media video,
.card-media .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Artes do catálogo têm texto e preço nas bordas: mostrar inteiras */
#catalogo .card-media img { object-fit: contain; }

.badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(91, 45, 16, 0.72);
  color: var(--cream);
  font: 600 11px var(--font-body);
  letter-spacing: 0.04em;
}
.badge .icon { width: 11px; height: 11px; color: var(--gold); }

.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cream), #f3d4b2);
  color: var(--paper);
  font: 64px var(--font-script);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 14px 16px;
}
.card-body h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.card-body p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-deep);
}
.card-body .btn { margin-top: auto; }
.card-body > :nth-last-child(2) { margin-bottom: 10px; }

/* ---------- Rodapé ---------- */
.footer {
  margin-top: 40px;
  padding: 36px 18px 110px;
  text-align: center;
  border-top: 1px solid var(--gold-line);
  background: var(--cream);
}
.footer img { width: 72px; height: 72px; border-radius: 50%; }
.footer .script { margin-top: 8px; font-size: 24px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-deep); }
.footer-links span { color: var(--gold); }
.copy {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Botão flutuante (verde do WhatsApp, para ser reconhecido) ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .2s ease, opacity .2s ease;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float.hidden { opacity: 0; transform: scale(0.6); pointer-events: none; }

/* ---------- Visualização ampliada ---------- */
.lightbox {
  width: min(560px, 100vw);
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 22px;
  overflow: auto;
  background: var(--paper);
  color: var(--brown);
}
@media (max-width: 600px) {
  .lightbox { width: 100vw; max-width: 100vw; height: 100dvh; border-radius: 0; }
}
.lightbox::backdrop {
  background: rgba(50, 25, 10, 0.72);
  backdrop-filter: blur(4px);
}
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.92);
  color: var(--brown);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lb-stage {
  position: relative;
  background: var(--cream);
}
.lb-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 70dvh;
}
.lb-media img,
.lb-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.9);
  color: var(--brown);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-nav[hidden] { display: none; }
.lb-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 12px;
}
.lb-dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--gold-line);
  cursor: pointer;
}
.lb-dots button[aria-current="true"] { background: var(--gold-deep); }
.lb-info {
  display: grid;
  gap: 8px;
  padding: 16px 24px 28px;
}
.lb-info h3 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 600;
}
.lb-info p { color: var(--muted); line-height: 1.6; }
.lb-info .price { color: var(--gold-deep); font-size: 20px; }
.lb-info .btn { margin-top: 8px; }

@media (max-width: 480px) {
  .btn-sm .icon { display: none; }
}
@media (max-width: 380px) {
  .btn { font-size: 13px; letter-spacing: 0.04em; }
  .btn-sm { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
