/* =========================================================
   DEMO 01 — Landing page de alta conversão
   Cliente fictício: Lumina Estética Avançada
   Paleta clara e sofisticada, proposital: mostra que a
   Codamir não entrega só "site dark de tecnologia".
   ========================================================= */

:root {
  --ink: #14181c;
  --ink-2: #3c464f;
  --muted: #7b8794;
  --cream: #fbf9f6;
  --cream-2: #f4efe8;
  --line: #e6dfd6;
  --green: #17624c;
  --green-2: #0e4536;
  --sand: #c9a227;
  --rose: #d98b8b;
  --white: #fff;

  --r: 18px;
  --r-lg: 28px;
  --pill: 999px;
  --shadow: 0 20px 60px -30px rgba(20, 24, 28, 0.4);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }

.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.sec { padding-block: clamp(64px, 9vw, 120px); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
  margin-bottom: 14px;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 16px; }
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.1rem); max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* ---------- barra da demo ---------- */
.demobar {
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-family: var(--sans);
}
.demobar b { color: #0e93b8; }
.demobar a.ghost { background: none; border: 1px solid var(--line); color: var(--ink); }
.demobar a {
  padding: 5px 14px;
  border-radius: var(--pill);
  background: linear-gradient(115deg, #7c5cff, #22d3ee);
  color: #fff;
  font-weight: 600;
  font-size: 0.76rem;
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hdr.stuck { border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px rgba(0, 0, 0, 0.6); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.logo i {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--green), var(--sand), var(--rose), var(--green));
  display: block;
}
.logo span { color: var(--green); }

.menu { display: flex; gap: 4px; align-items: center; }
.menu a { padding: 9px 14px; font-size: 0.9rem; color: var(--ink-2); border-radius: var(--pill); transition: background 0.25s, color 0.25s; }
.menu a:hover { background: var(--cream-2); color: var(--ink); }
/* o botão do menu precisa vencer a cor genérica de `.menu a` */
.menu a.btn--pri, .menu a.btn--pri:hover { color: var(--white); background: var(--green); }
.menu a.btn--pri:hover { background: var(--green-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-weight: 600; font-size: 0.93rem;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--pri { background: var(--green); color: var(--white); box-shadow: 0 12px 30px -14px rgba(23, 98, 76, 0.9); }
.btn--pri:hover { background: var(--green-2); box-shadow: 0 18px 40px -14px rgba(23, 98, 76, 1); }
.btn--out { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--out:hover { border-color: var(--green); color: var(--green); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--wide { width: 100%; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(50px, 7vw, 90px) clamp(60px, 9vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201, 162, 39, 0.22), transparent 62%),
              radial-gradient(circle at 70% 70%, rgba(23, 98, 76, 0.16), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(30px, 5vw, 70px); align-items: center; }

.rating { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--pill); font-size: 0.82rem; color: var(--ink-2); margin-bottom: 24px; }
.rating__stars { color: var(--sand); letter-spacing: 1px; }
.rating b { color: var(--ink); }

.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero p.sub { font-size: clamp(1.02rem, 1.9vw, 1.2rem); color: var(--ink-2); max-width: 48ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__note { font-size: 0.84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16); }

/* moldura visual (sem imagem: composição em CSS) */
.framewrap { position: relative; }
.frame { position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(160deg, #dfe9e2, #f2e6d8 55%, #e8d9d9); }
.frame::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(220px 220px at 62% 30%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(300px 300px at 25% 78%, rgba(23, 98, 76, 0.22), transparent 62%),
    radial-gradient(260px 260px at 80% 85%, rgba(201, 162, 39, 0.3), transparent 60%);
}
.frame__grain { position: absolute; inset: 0; opacity: 0.25; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }

.badge-float {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  animation: float 5s ease-in-out infinite;
}
.badge-float b { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1; }
.badge-float--1 { left: -18px; top: 16%; z-index: 2; }
.badge-float--2 { right: -14px; bottom: 14%; z-index: 2; animation-delay: 1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- números ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 34px 0; border-block: 1px solid var(--line); }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--green); line-height: 1; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- serviços ---------- */
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.svc {
  position: relative;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc__tag { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: var(--pill); background: var(--green); color: #fff; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.svc__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--cream-2); font-size: 1.4rem; margin-bottom: 18px; }
.svc h3 { font-size: 1.4rem; margin-bottom: 8px; }
.svc p { color: var(--ink-2); font-size: 0.94rem; flex: 1; margin-bottom: 18px; }
.svc__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc__price { font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.svc__price small { font-size: 0.72rem; color: var(--muted); font-family: var(--sans); display: block; }
.svc__link { font-size: 0.86rem; font-weight: 600; color: var(--green); }

/* ---------- antes / depois ---------- */
.ba { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.ba__slider { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); cursor: ew-resize; user-select: none; touch-action: none; }
.ba__img { position: absolute; inset: 0; }
.ba__img--before { background: linear-gradient(150deg, #cdbfae, #b7a597 60%, #9d8d80); }
.ba__img--after { background: linear-gradient(150deg, #e8f0ea, #f3e8d8 55%, #f6dede); clip-path: inset(0 50% 0 0); }
.ba__img span {
  position: absolute; top: 16px;
  padding: 6px 16px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.ba__img--before span { left: 16px; }
.ba__img--after span { right: 16px; color: var(--green); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba__handle::after {
  content: "⇄"; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center;
  background: #fff; border-radius: 50%;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.5);
  font-size: 1rem; color: var(--ink);
}
.ba__hint { font-size: 0.8rem; color: var(--muted); margin-top: 12px; text-align: center; }
.ba__list { display: grid; gap: 14px; margin-top: 24px; }
.ba__list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); }
.ba__list li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.72rem; margin-top: 4px; }

/* ---------- depoimentos ---------- */
.tst { background: var(--green); color: #eef4f0; }
.tst .eyebrow { color: #d9c169; }
.tst .h2, .tst .lead { color: #fff; }
.tst .lead { opacity: 0.82; }
.tst__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 20px; scrollbar-width: none; }
.tst__track::-webkit-scrollbar { display: none; }
.tst__card { flex: 0 0 min(400px, 84vw); scroll-snap-align: center; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-lg); padding: 30px 28px; backdrop-filter: blur(8px); }
.tst__stars { color: #eac85a; margin-bottom: 14px; letter-spacing: 2px; }
.tst__card p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; margin-bottom: 20px; }
.tst__who { display: flex; align-items: center; gap: 12px; }
.tst__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, #d9c169, #d98b8b); display: grid; place-items: center; font-weight: 700; color: #14181c; }
.tst__who b { display: block; font-size: 0.92rem; }
.tst__who span { font-size: 0.78rem; opacity: 0.7; }
.tst__nav { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.tst__nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: #fff; cursor: pointer; transition: background 0.25s; }
.tst__nav button:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- equipe ---------- */
.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mem { text-align: center; }
.mem__ph { aspect-ratio: 1; border-radius: var(--r-lg); margin-bottom: 14px; background: linear-gradient(150deg, #e3ece6, #f2e6d8); position: relative; overflow: hidden; }
.mem__ph::after { content: attr(data-i); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 3.4rem; color: rgba(23, 98, 76, 0.35); }
.mem b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.mem span { font-size: 0.84rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--serif); font-size: 1.2rem; }
.faq__q i { font-style: normal; transition: transform 0.35s var(--ease); color: var(--green); }
.faq__i.on .faq__q i { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq__i.on .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 4px 22px; color: var(--ink-2); font-size: 0.96rem; }

/* ---------- agendamento ---------- */
.book { background: var(--cream-2); }
.book__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.book__form { background: var(--white); padding: 34px; border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f label { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.f input, .f select, .f textarea {
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 98, 76, 0.1); }
.f--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book__ok { font-size: 0.88rem; color: var(--green); font-weight: 600; min-height: 1.3em; text-align: center; }
.book__mini { font-size: 0.78rem; color: var(--muted); text-align: center; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--cream); font-size: 0.84rem; cursor: pointer; transition: all 0.25s; }
.slot:hover { border-color: var(--green); }
.slot.on { background: var(--green); color: #fff; border-color: var(--green); }
.slot[disabled] { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* ---------- footer ---------- */
.ftr { background: var(--cream-2); color: var(--ink-2); border-top: 1px solid var(--line); padding-block: 54px 24px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.ftr .logo { color: var(--ink); }
.ftr .logo span { color: var(--green); }
.ftr p { font-size: 0.9rem; margin-top: 12px; max-width: 34ch; opacity: 0.75; }
.ftr h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 12px; }
.ftr a { display: block; padding: 4px 0; font-size: 0.9rem; opacity: 0.85; }
.ftr a:hover { opacity: 1; color: var(--green); }
.ftr__bot { padding-top: 20px; font-size: 0.78rem; opacity: 0.55; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- barra fixa mobile ---------- */
.stickybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--pill);
  box-shadow: var(--shadow);
}
.stickybar b { font-family: var(--serif); font-size: 1.05rem; }
.stickybar small { display: block; font-size: 0.72rem; color: var(--muted); }

/* ---------- reveal ----------
   Nada pode ficar invisível para sempre: o estado escondido só vale com JS
   ativo e a animação de segurança força a aparição depois de 4s. */
[data-r] { opacity: 1; transform: none; }
.js [data-r] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
  animation: revealSafety 1ms linear 4s forwards;
}
.js [data-r].vis { opacity: 1; transform: none; animation: none; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .hero__in, .ba, .book__in { grid-template-columns: 1fr; }
  .framewrap { max-width: 420px; margin-inline: auto; }
  .burger { display: flex; }
  .menu {
    position: fixed; inset: 110px 12px auto; flex-direction: column; align-items: stretch;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 12px; box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: 0.3s var(--ease);
  }
  .menu.on { transform: none; opacity: 1; pointer-events: auto; }
  .menu .btn { margin-top: 6px; }
  .stickybar { display: flex; }
  body { padding-bottom: 80px; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .ftr__in { grid-template-columns: 1fr; }
  .f--row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-r] { opacity: 1; transform: none; animation: none; }
}


/* voltar ao site da Codamir: integrado ao header, padrão dos botões da demo */
.back-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color 0.25s ease, transform 0.35s ease;
}
.back-btn:hover { border-color: var(--green); transform: translateY(-2px); }
