@import url("./fonts.css");

:root {
  --bg: #0d0c0b;
  --bg-elev: #151311;
  --paper: #f2ece1;
  --paper-ink: #161412;
  --paper-muted: #5a544b;
  --ink: #f4eee3;
  --muted: #b8afa2;
  --accent: #c9a46b;
  --accent-strong: #dfb97c;
  --line: rgba(244, 238, 227, 0.14);
  --line-paper: rgba(22, 20, 18, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 72px;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font: 100%/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

h1, h2, h3, p, figure, blockquote, dl, dd {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.28em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 0.7rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Fixed topbar strictly OUTSIDE #smooth-wrapper */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(13, 12, 11, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  width: min(92%, 82rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.brand__mark::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.15rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}

.nav__cta:active,
.btn:active {
  transform: scale(0.97);
}

/* Main container utilities */
.container {
  width: min(92%, 82rem);
  margin: 0 auto;
}

/* HERO WITH 4 PARALLAX LAYERS + SANDWICHED EDITORIAL TYPOGRAPHY */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: grid;
  align-items: stretch;
  overflow: clip;
  background: var(--bg);
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
}

.hero__layer--04 { z-index: 10; }
.hero__layer--03 { z-index: 20; }
.hero__layer--02 { z-index: 30; }
.hero__layer--01 { z-index: 40; }

.hero__content {
  position: relative;
  z-index: 25;
  width: min(92%, 82rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 5rem) 0 clamp(4.5rem, 9vh, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 2rem;
}

.hero__copy {
  position: relative;
  z-index: 26;
  max-width: 44rem;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeOnly 400ms var(--ease-out) both;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__title {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.35rem, 7.6vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  animation: heroLead 620ms var(--ease-out) both;
}

.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.84em;
  line-height: 1.04;
}

.hero__proof {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  animation: heroSupport 480ms var(--ease-out) 90ms both;
}

.hero__proof strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__star {
  color: var(--accent);
}

.hero__dot {
  opacity: 0.4;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  animation: heroCta 460ms var(--ease-out) 155ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.85rem 1.55rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(13, 12, 11, 0.55);
}

.btn--dark {
  background: var(--paper-ink);
  color: var(--paper);
}

.hero__meta-right {
  position: relative;
  z-index: 45;
  justify-self: end;
  align-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
  animation: fadeOnly 400ms var(--ease-out) 120ms both;
}

.hero__badge-demo {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__caption {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* SECTION 01: PROVA REAL (AVALIAÇÕES GOOGLE) */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.proof {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.chapter-index {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  line-height: 0.82;
  font-weight: 500;
  color: rgba(201, 164, 107, 0.22);
  font-variant-numeric: tabular-nums;
  user-select: none;
  margin-bottom: 1rem;
}

.section__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.score-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.score-block__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.score-block__meta {
  font-size: 0.92rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.quotes {
  display: grid;
  gap: 2.5rem;
  min-width: 0;
}

.quote-card {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.quote-card blockquote {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.28;
  font-weight: 500;
  color: var(--ink);
  text-wrap: pretty;
}

.quote-card__source {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 107, 0.4);
  transition: color 160ms ease, border-color 160ms ease;
}

/* SECTION 02: VISITA, ENDEREÇO & HORÁRIOS (LIGHT ALABASTER SHIFT) */
.visit {
  background: var(--paper);
  color: var(--paper-ink);
}

.visit .section__label {
  color: #7c5c2b;
}

.visit__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-paper);
}

.visit__sub {
  max-width: 28rem;
  font-size: 0.95rem;
  color: var(--paper-muted);
}

.visit__grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.visit__col h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.address {
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.6;
}

.address strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
}

.address__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px solid var(--line-paper);
}

.visit__links {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.schedule {
  display: grid;
}

.schedule__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-paper);
}

.schedule__row dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.schedule__row dd {
  font-size: 0.96rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.notice-box {
  padding: 1.35rem;
  border: 1px solid var(--line-paper);
  background: rgba(22, 20, 18, 0.03);
}

.notice-box__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c5c2b;
  margin-bottom: 0.65rem;
}

.notice-box p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--paper-muted);
}

.notice-box .text-link {
  margin-top: 0.85rem;
  color: var(--paper-ink);
  border-bottom-color: var(--paper-ink);
}

/* SECTION 03: CLOSING CTA + FOOTER */
.closing {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.closing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* FIXED MOBILE WHATSAPP DOCK (OUTSIDE #smooth-wrapper) */
.mobile-dock {
  display: none;
}

/* COMPOSITOR-ONLY ONE-SHOT HERO ENTRANCE */
@keyframes heroLead {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSupport {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCta {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOnly {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* GATED HOVER ONLY ON FINE POINTER DEVICES */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    color: var(--ink);
  }
  .nav__cta:hover,
  .btn--primary:hover {
    background: var(--accent-strong);
  }
  .btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .btn--dark:hover {
    background: #2c2722;
  }
  .text-link:hover {
    color: var(--ink);
    border-color: var(--ink);
  }
  .visit .text-link:hover {
    color: #7c5c2b;
    border-color: #7c5c2b;
  }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 62rem) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    padding-top: clamp(3rem, 10vh, 6rem);
  }
  .hero__meta-right {
    justify-self: start;
    text-align: left;
  }
  .hero__layer--03 {
    object-position: 78% 20%;
    opacity: 0.48;
  }
  .proof__grid,
  .visit__grid,
  .closing__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .closing__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 48rem) {
  :root {
    --nav-h: 60px;
  }
  .brand__name {
    font-size: 1.06rem;
  }
  .nav__link,
  .nav__cta {
    display: none;
  }
  .hero {
    min-height: 92svh;
  }
  .hero__content {
    padding: 2.25rem 0 2.5rem;
  }
  .hero__title {
    font-size: clamp(2.85rem, 13.5vw, 4.4rem);
  }
  .hero__layer--03 {
    object-position: 76% 18%;
    opacity: 0.36;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mobile-dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: rgba(13, 12, 11, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 0.65rem 4% calc(0.65rem + env(safe-area-inset-bottom));
  }
  .mobile-dock .btn {
    width: 100%;
    min-height: 48px;
  }
  .footer {
    padding-bottom: calc(5.2rem + env(safe-area-inset-bottom));
  }
}

/* REDUCED MOTION: GENTLE OPACITY ONLY, NO MOVEMENT, NO SMOOTH PARALLAX */
@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .hero__title,
  .hero__proof,
  .hero__actions,
  .hero__meta-right {
    animation: fadeOnly 200ms ease both;
  }
  .nav__cta:active,
  .btn:active {
    transform: none;
  }
}
