/* ==========================================================
   Maranata Relojoaria e Joalheria
   Preto, branco e marrom claro. Cormorant Garamond + Inter.
   ========================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --surface: #151413;
  --text: #f4f1ec;
  --muted: #a8a29a;
  --gold: #c2a07a;
  --gold-hover: #d4b48e;
  --gold-line: rgba(194, 160, 122, .28);
  --line: rgba(244, 241, 236, .10);

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

  --container: 1200px;
  --gutter: 20px;
  --section-y: 64px;
  --header-h: 80px;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; --section-y: 80px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; --section-y: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--gold); color: var(--bg); }

/* Barra de rolagem: trilho invisível, barra marrom */
html { scrollbar-color: var(--gold) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-hover); }

/* No mobile, sem barra de rolagem */
@media (max-width: 767px), (hover: none) {
  html, .map-modal { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: calc(800px + var(--gutter) * 2); }
.center { text-align: center; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.005em;
}
h1 { font-size: 40px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0; text-wrap: pretty; }

.lead { font-size: 16px; color: var(--muted); max-width: 560px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 44px; }
  h3 { font-size: 28px; }
  .lead { font-size: 18px; }
  .eyebrow { font-size: 14px; }
}
@media (min-width: 1100px) {
  h1 { font-size: 64px; }
  h2 { font-size: 48px; }
}

.ornament { width: 160px; height: 16px; color: var(--gold); margin: 24px auto 0; }

/* ---------- Ícones ---------- */
.icon-24 { width: 24px; height: 24px; flex: none; }
.icon-32 { width: 32px; height: 32px; flex: none; }
.icon-48 {
  width: 48px; height: 48px; flex: none;
  fill: none; stroke: var(--gold); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Botões (vertical : lateral = 1 : 2) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
/* Brilho que atravessa o botão no hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-ghost::after, .btn-outline::after {
  background: linear-gradient(100deg, transparent, rgba(194, 160, 122, .35), transparent);
}
.btn:hover::after { animation: btn-shine .8s ease forwards; }
@keyframes btn-shine { to { left: 125%; } }
.btn-lg { padding: 20px 40px; }
.btn-md { padding: 15px 30px; }
.btn-sm { padding: 12px 24px; font-size: 14px; }
.btn-sm .icon-24 { width: 24px; height: 24px; }

.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { border-color: var(--gold-line); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.actions.center { justify-content: center; }

@media (max-width: 520px) {
  .actions .btn { width: 100%; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

.nav { display: none; gap: 32px; }
.nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 420px) {
  .site-header .btn-sm span { display: none; }
  .site-header .btn-sm { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 78% 50%, rgba(194, 160, 122, .10), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(194, 160, 122, .05), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 64px;
}
.hero-text { position: relative; z-index: 2; max-width: 800px; }
.hero .lead { margin-top: 24px; }

.dial-wrap {
  position: absolute;
  z-index: 1;
  right: -200px;
  top: 24px;
  width: 420px;
  opacity: .14;
  pointer-events: none;
}
@media (min-width: 1200px) {
  /* Texto garante 680px (título em 2 linhas); o relógio cresce até 420px no espaço que sobra */
  .hero-inner { grid-template-columns: minmax(680px, 1fr) minmax(0, 420px); }
  .hero-text { max-width: 800px; }
  .dial-wrap {
    position: relative;
    right: auto; top: auto;
    width: 100%;
    justify-self: end;
    transform: none;
    opacity: 1;
  }
}

.dial { width: 100%; height: auto; overflow: visible; }
.dial-ring { fill: none; stroke: var(--gold-line); stroke-width: 1; }
.dial-ring.thin { stroke: var(--line); }
.dial-ring.faint { stroke: rgba(244, 241, 236, .05); }
.dial .tick { stroke: rgba(244, 241, 236, .28); stroke-width: 1; }
.dial .tick.major { stroke: var(--gold); stroke-width: 1.5; }
.dial .numeral {
  font-family: var(--serif);
  font-size: 32px;
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: central;
}
.dial-brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .3em;
  fill: var(--text);
  text-anchor: middle;
}
.dial-since {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .3em;
  fill: var(--gold);
  text-anchor: middle;
}
.hand line { stroke-linecap: round; }
.hand.hour line { stroke: var(--text); stroke-width: 4; }
.hand.minute line { stroke: var(--text); stroke-width: 2.5; }
.hand.second line { stroke: var(--gold); stroke-width: 1; }
.hand { transform-origin: 300px 300px; }
.dial-pin { fill: var(--gold); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 1px;
  height: 48px;
  background: var(--line);
  overflow: hidden;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  left: 0; top: -24px;
  width: 1px; height: 24px;
  background: var(--gold);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { to { top: 48px; } }

/* ---------- Seções ---------- */
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 64px; }

/* Sobre */
.about-grid { display: grid; gap: 32px; }
.about-body > p { font-size: 16px; color: var(--muted); }
.about-body > p::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  margin: 4px 12px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--gold);
}
@media (min-width: 768px) {
  .about-body > p { font-size: 18px; }
  .stats dd { font-size: 32px; }
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
  .about-head { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* Serviços */
.services { background: var(--bg-2); }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 24px;
  background: var(--bg-2);
  transition: background-color .4s ease;
}
.card:hover { background: var(--surface); }
.card .icon-48 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card-num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  opacity: .7;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.card:hover::after { transform: scaleX(1); }

.card-cta {
  justify-content: center;
  background: var(--gold);
}
.card-cta:hover { background: var(--gold-hover); }
.card-cta::after { background: var(--bg); }
.card-cta h3 { color: var(--bg); }
.card-cta p { color: rgba(10, 10, 10, .78); }
.card-cta .link-arrow { color: var(--text); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.link-arrow span { transition: transform .3s ease; }
.link-arrow:hover span { transform: translateX(4px); }

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 48px 32px; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 64px 48px; }
}

/* Diferenciais */
.why-grid { display: grid; gap: 48px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
}
.why-list p { font-size: 16px; color: var(--muted); }
@media (min-width: 768px) {
  .why-list li { grid-template-columns: 96px 1fr; padding: 32px 0; }
  .why-num { font-size: 32px; }
  .why-list p { font-size: 18px; }
}
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
  .why-head { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* Chamada final */
.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 50% 100%, rgba(194, 160, 122, .12), transparent 70%),
    var(--bg);
}
.final-cta .ornament { margin: 0 auto 32px; }
.final-cta .lead { margin: 24px auto 0; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 64px 0 32px; background: var(--bg); }
.footer-grid { display: grid; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand-name { font-size: 32px; }
.footer-brand .brand-sub { font-size: 14px; }
.footer-since {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.footer-info li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.footer-info .icon-24 { color: var(--gold); }
.footer-info a { transition: color .3s ease; }
.footer-info a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .site-footer { padding: 96px 0 32px; }
  .footer-grid { grid-template-columns: 1fr 2fr; align-items: start; }
  .footer-info { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-bottom { font-size: 14px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease, background-color .3s ease;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--gold-hover); }
@media (min-width: 768px) { .wa-float { right: 32px; bottom: 32px; } }

/* ---------- Popup do mapa ---------- */
.map-modal {
  width: calc(100% - 32px);
  max-width: 800px;
  max-height: calc(100% - 32px);
  padding: 0;
  margin: auto;
  border: 1px solid var(--gold-line);
  background: var(--bg-2);
  color: var(--text);
  overflow: auto;
}
.map-modal::backdrop {
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.map-modal[open] { animation: modal-in .4s cubic-bezier(.2, .7, .2, 1); }
.map-modal[open]::backdrop { animation: fade-in .4s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }

.map-box { padding: 24px 20px; }
.map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.map-head h2 { font-size: 28px; }
.map-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.map-close {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
}
.map-close:hover { border-color: var(--gold); color: var(--gold); }

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.map-actions .btn { flex: 1 1 220px; }

html.modal-open { overflow: hidden; }

@media (min-width: 768px) {
  .map-box { padding: 32px; }
  .map-head h2 { font-size: 32px; }
  .map-frame { aspect-ratio: 16 / 9; }
}

/* ---------- Foco ---------- */
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Animação de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .btn:hover::after { animation: none; }
  .map-modal[open], .map-modal[open]::backdrop { animation: none; }
}
