/* ---------------------------------------------------
   tá tudo tudo · catálogo
   Paleta extraída do PDF — wine, cream, off-white, ink
---------------------------------------------------- */
:root {
  --wine:        #7B2D29;
  --wine-deep:   #5A1E1B;
  --cream:       #EDE2D0;
  --cream-soft:  #F4ECDC;
  --ivory:       #FAF6EE;
  --ink:         #2B2620;
  --ink-soft:    #4A4339;
  --muted:       #8A8174;
  --line:        #E5DAC5;
  --wa:          #25D366;
  --wa-deep:     #128C7E;
  --shadow-sm:   0 1px 2px rgba(43,38,32,.06), 0 2px 8px rgba(43,38,32,.04);
  --shadow-md:   0 8px 24px rgba(43,38,32,.10), 0 2px 6px rgba(43,38,32,.06);
  --shadow-lg:   0 24px 60px rgba(43,38,32,.20), 0 8px 24px rgba(43,38,32,.10);
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --serif:       "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container:   1200px;
  --easing:      cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

@media (min-width: 768px) { .container { padding: 0 36px; } }

/* ============== Brand / Logo ============== */
.brand { display: inline-flex; align-items: center; }
.logo { display: block; height: auto; width: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; }
.logo-topbar { height: 36px; transition: opacity .2s var(--easing); }
.logo-topbar:hover { opacity: .82; }
.logo-hero { height: clamp(54px, 8vw, 96px); margin: 0 auto 28px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.35)); }
.logo-footer { height: 36px; }

@media (min-width: 768px) {
  .logo-topbar { height: 40px; }
  .logo-footer { height: 40px; }
}

/* ============== Topbar ============== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: rgba(250, 246, 238, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav { margin-left: auto; display: none; gap: 28px; font-size: 14px; font-weight: 500; }
.topnav a { color: var(--ink-soft); transition: color .2s var(--easing); }
.topnav a:hover { color: var(--wine); }

.topcta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--wa); color: #fff;
  font-weight: 600; font-size: 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--easing), box-shadow .2s var(--easing), background .2s var(--easing);
}
.topcta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--wa-deep); }
.topcta span { display: none; }

@media (min-width: 768px) {
  .topbar { padding: 16px 36px; }
  .topnav { display: flex; }
  .topcta { margin-left: 0; }
  .topcta span { display: inline; }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero-image, .hero-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43,38,32,.30) 0%, rgba(43,38,32,.55) 60%, rgba(43,38,32,.85) 100%);
}
.hero-inner {
  padding: 80px 24px 120px;
  max-width: 760px;
  animation: fadeUp 1s var(--easing) both;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 8vw, 88px); line-height: 1; letter-spacing: -.01em;
  margin: 0 0 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 560px; margin: 0 auto 36px;
  opacity: .92;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 12px;
  display: block;
}
.hero-scroll span {
  display: block; width: 3px; height: 8px; margin: 6px auto 0;
  background: rgba(255,255,255,.85); border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 20% { transform: translateY(0); opacity: 1; }
  60%, 100% { transform: translateY(14px); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .2s var(--easing), box-shadow .2s var(--easing), background .2s var(--easing), color .2s var(--easing), border-color .2s var(--easing);
  white-space: nowrap;
}
.btn-primary { background: var(--wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--wa-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-large { padding: 16px 28px; font-size: 15px; }

/* ============== Filters ============== */
.filters {
  background: var(--cream);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: flex; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: all .2s var(--easing);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

/* ============== Section header ============== */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-family: var(--serif); font-style: italic;
  font-size: 16px;
  color: var(--wine);
  letter-spacing: .02em;
  margin: 0 0 8px;
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.section-sub { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ============== Catalog grid ============== */
.catalog { padding: 80px 0 100px; background: var(--ivory); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

.card {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--easing), box-shadow .4s var(--easing);
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}
.card.is-visible { animation: cardIn .8s var(--easing) forwards; }
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-media {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--cream);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .9s var(--easing), filter .4s var(--easing);
}
.card:hover .card-media img { transform: scale(1.04); }

.card-badges {
  position: absolute; top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(250,246,238,.92); color: var(--ink);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.badge.wine { background: var(--wine); color: var(--ivory); }
.badge.last { background: var(--ink); color: var(--ivory); }

.card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.card-cat {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--wine);
  margin: 0;
}
.card-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; line-height: 1.15; letter-spacing: -.005em;
  margin: 0;
  color: var(--ink);
}
.card-name em { font-style: italic; font-weight: 600; }
.card-sub { font-size: 13px; color: var(--ink-soft); margin: 0; }
.card-prices { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; margin-top: auto; }
.price {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--serif);
}
.price .currency { font-size: 15px; color: var(--ink-soft); }
.price .value { font-size: 30px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.price .label { font-size: 13px; color: var(--ink-soft); margin-left: 2px; font-family: var(--sans); }
.price.old .value { color: var(--wine); text-decoration: line-through; text-decoration-thickness: 2px; font-size: 22px; }
.price.old .currency { color: var(--wine); }
.price.highlight .value { color: var(--ink); }

.card-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
  padding: 13px 18px;
  background: var(--wa); color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: background .2s var(--easing), transform .2s var(--easing), box-shadow .2s var(--easing);
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
  text-decoration: none;
}
.card-cta:hover { background: var(--wa-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.card-cta:active { transform: translateY(0); }

/* ============== About ============== */
.about { padding: 100px 0; background: var(--cream); }
.about-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.about-text .eyebrow { color: var(--wine); }
.about-text p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.about-text strong { color: var(--ink); font-weight: 600; }
.about-text .btn { margin-top: 8px; }
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============== Footer ============== */
.footer { background: var(--ink); color: var(--cream); padding: 60px 0 24px; }
.footer a { color: var(--cream); transition: color .2s var(--easing); }
.footer a:hover { color: var(--ivory); }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-title { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; color: var(--ivory); }
.muted { color: rgba(237,226,208,.68); font-size: 14px; line-height: 1.6; max-width: 320px; }
.foot-bottom { padding-top: 20px; color: rgba(237,226,208,.5); font-size: 13px; }

/* ============== Floating WhatsApp ============== */
.float-wa {
  position: fixed; right: 18px; bottom: 18px;
  z-index: 60;
  display: inline-flex; align-items: center; gap: 0;
  width: 60px; height: 60px;
  background: var(--wa); color: #fff;
  border-radius: 999px;
  padding: 0;
  box-shadow: 0 12px 28px rgba(37,211,102,.42), 0 4px 10px rgba(0,0,0,.12);
  overflow: hidden;
  transition: width .35s var(--easing), padding .35s var(--easing), background .25s var(--easing);
}
.float-wa svg { flex-shrink: 0; margin: 0 16px; }
.float-wa-label {
  white-space: nowrap;
  font-weight: 600; font-size: 14px;
  opacity: 0; max-width: 0;
  transition: opacity .25s var(--easing) .1s, max-width .35s var(--easing);
}
.float-wa-pulse {
  position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid rgba(37,211,102,.55);
  animation: pulseRing 2s var(--easing) infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { transform: scale(.95); opacity: .85; }
  80%, 100% { transform: scale(1.45); opacity: 0; }
}
@media (hover: hover) {
  .float-wa:hover { width: 240px; background: var(--wa-deep); }
  .float-wa:hover .float-wa-label { opacity: 1; max-width: 200px; padding-right: 18px; }
}
@media (min-width: 768px) {
  .float-wa { right: 28px; bottom: 28px; }
}

/* ============== Modal ============== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43,38,32,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--easing);
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-stage {
  width: 100%; max-width: 1080px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  transform: translateY(20px) scale(.98);
  transition: transform .35s var(--easing);
}
.modal.is-open .modal-stage { transform: translateY(0) scale(1); }
.modal-card {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .modal-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.modal-image {
  background: var(--cream);
  aspect-ratio: 9/16;
  overflow: hidden;
  position: relative;
}
.modal-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (min-width: 900px) { .modal-image { aspect-ratio: auto; height: 100%; min-height: 600px; } }

.modal-info { padding: 36px 28px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .modal-info { padding: 56px 48px; } }
.modal-info .eyebrow { color: var(--wine); margin-bottom: 0; }
.modal-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1;
  margin: 4px 0 0; color: var(--ink);
}
.modal-sub { color: var(--ink-soft); font-size: 14px; margin: 0; }
.modal-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin: 14px 0; }
.modal-prices { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 22px; }
.modal-prices .price .value { font-size: 36px; }
.modal-prices .price.old .value { font-size: 24px; }

.modal-close {
  position: absolute; top: 14px; right: 18px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(250,246,238,.96);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 22px; line-height: 1;
  z-index: 10;
  transition: background .2s var(--easing), transform .2s var(--easing);
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
