/*
  Official brand palette (Jana Abreu Confeitaria)
  - --ink / --brown: olive dark #4c553a for text
  - --cream: #fdf6ec
  - --primary: dusty rose #b86e88 for accents and normal buttons
  - --secondary: light pink #f5d5e0
  Comprar (.btn--acquire) uses the solid wine --btn-solid with white text.
*/
:root {
  --primary: #b86e88;
  --primary-deep: #9a5870;
  /* Filled buttons only: #9a5870 on white = 5.25:1 (WCAG AA normal). Decorative rose stays --primary. */
  --btn-solid: #9a5870;
  --btn-solid-hover: #7f4560;
  --secondary: #f5d5e0;
  --secondary-deep: #d4a3b5;
  --mint: #b86e88;
  --mint-light: #f5d5e0;
  --mint-deep: #9a5870;
  --blush: #f5d5e0;
  --blush-deep: #d4a3b5;
  --copper: #b86e88;
  --copper-deep: #9a5870;
  --cream: #fdf6ec;
  --ink: #4c553a;
  --brown: #4c553a;
  --muted: #6b7358;
  --line: #e4c4ce;
  --panel: rgba(253, 246, 236, 0.94);
  --panel-strong: rgba(253, 246, 236, 0.97);
  --panel-solid: #fdf6ec;
  --whatsapp: #0e7f36;
  --shadow: 0 16px 42px rgba(184, 110, 136, 0.16), 0 4px 12px rgba(76, 85, 58, 0.06);
  --radius: 17.68px;
  --page-gutter: 1rem;
  --header-h: 88px;
  --container: 1120px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
  background-color: var(--cream);
  min-height: 100%;
  min-height: 100dvh;
}

html.is-locked,
body.is-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Keep the real damask visible without making it compete with the content. */
body::before {
  content: "";
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: url("../assets/brand/padronagem.webp") repeat;
  background-size: 470px auto;
  opacity: 0.08;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--ink);
}

h1,
h2,
h3,
.topo__brand-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  color: var(--brown);
  text-align: center;
  margin: 0 0 1.05rem;
}

h3 {
  font-size: 1.05rem;
  color: var(--brown);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.75rem;
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
}

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

.eyebrow {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 110, 136, 0.45);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(184, 110, 136, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  background: var(--btn-solid);
  color: #fff;
  box-shadow: 0 8px 18px rgba(154, 88, 112, 0.2);
}

.btn--solid {
  background: var(--btn-solid);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(154, 88, 112, 0.2);
}

.btn--acquire {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--btn-solid);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(154, 88, 112, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--btn-solid-hover);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(127, 69, 96, 0.24);
}

.btn--acquire:hover,
.btn--acquire:focus-visible {
  background: #a45f78;
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(164, 95, 120, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.btn--whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
  width: 100%;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: #0c7432;
  border-color: #0c7432;
  color: #fff;
}

.btn--outline {
  background: var(--panel-strong);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.2rem;
}

.icon-link img {
  filter: invert(47%) sepia(12%) saturate(900%) hue-rotate(300deg) brightness(90%) contrast(86%);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
