:root {
  --wine-950: #3d020a;
  --wine-900: #56000b;
  --wine-800: #790012;
  --wine-700: #9e1020;
  --rose-500: #c46a70;
  --cream-50: #fff7ef;
  --cream-100: #f7eadc;
  --cream-200: #efd8c1;
  --champagne: #d8b87a;
  --gold: #c99a42;
  --cocoa: #563521;
  --ink: #2c1513;
  --text: #4c2926;
  --muted: #84615a;
  --glass: rgba(255, 247, 239, .68);
  --line: rgba(121, 0, 18, .10);
  --shadow: 0 28px 82px rgba(127, 82, 44, .14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #caa46b #f3deca; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #f3deca; }
body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d8b87a, #b89158); border-radius: 999px; border: 2px solid #f3deca; }
body::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #e3c98d, #c99a42); }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 4%, rgba(216, 184, 122, .46), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(158, 16, 32, .08), transparent 22rem),
    linear-gradient(145deg, #f8dfc7 0%, #f7eadc 36%, #ead0bb 70%, #e8c9ad 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 75%);
  z-index: -2;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--wine-800);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

.section-shell { position: relative; padding: 92px max(20px, calc((100vw - var(--max)) / 2)); }

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 1120px);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 247, 239, .68);
  border: 1px solid rgba(255,255,255,.64);
  box-shadow: 0 20px 60px rgba(127,82,44,.12), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  z-index: 80;
}
.topbar-brand { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 28px rgba(86,0,11,.14); flex: 0 0 auto; }
.topbar-brand img { width: 100%; height: 100%; object-fit: cover; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--wine-900);
  padding: 12px 16px;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(216,184,122,.20); transform: translateY(-1px); outline: none; }
.topbar-cta, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background .25s ease;
}
.topbar-cta {
  min-height: 48px;
  padding: 0 21px;
  background: linear-gradient(135deg, #fffaf2, #f3dfc5 58%, #e4c692);
  color: var(--wine-900);
  font-size: 12px;
  box-shadow: 0 14px 32px rgba(127,82,44,.18);
}
.primary-button {
  min-height: 58px;
  padding: 0 28px;
  color: var(--wine-900);
  background:
    linear-gradient(135deg, rgba(255,255,255,.66), transparent 32%),
    linear-gradient(135deg, #fffaf2, #f4e2c9 58%, #e7c995 100%);
  box-shadow: 0 18px 42px rgba(127,82,44,.15), inset 0 1px 0 rgba(255,255,255,.64);
  font-size: 13px;
}
.secondary-button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(184,145,88,.32);
  background: rgba(255,250,242,.94);
  color: var(--wine-800);
  font-size: 12px;
}
.topbar-cta:hover, .primary-button:hover, .secondary-button:hover { transform: translateY(-2px); filter: saturate(1.05); }
.primary-button:focus-visible, .secondary-button:focus-visible, .topbar-cta:focus-visible { outline: 3px solid rgba(201,154,66,.5); outline-offset: 3px; }

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,247,239,.94) 0%, rgba(247,234,220,.86) 42%, rgba(248,223,199,.58) 100%),
    url('../images/hero-produtos.webp') center / cover no-repeat;
  z-index: -4;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 14%, rgba(255, 246, 230, .62), transparent 24rem),
    radial-gradient(circle at 18% 74%, rgba(216, 184, 122, .24), transparent 20rem),
    radial-gradient(circle at 30% 26%, rgba(121,0,18,.09), transparent 18rem),
    linear-gradient(to bottom, transparent 58%, rgba(248,223,199,.98) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .28;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.3) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.22) 0 1px, transparent 1.5px);
  background-size: 44px 44px, 58px 58px;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 78px);
}
.hero-logo-card {
  position: relative;
  border-radius: 44px;
  padding: 18px;
  background: rgba(255,247,239,.58);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 35px 100px rgba(127,82,44,.18), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(1.12);
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 34px;
  border: 1px solid rgba(216,184,122,.5);
  pointer-events: none;
}
.hero-logo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32px;
  filter: drop-shadow(0 24px 38px rgba(61,2,10,.2));
}
.hero-copy { color: var(--wine-900); max-width: 680px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--wine-800);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--wine-800); text-shadow: none; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.45vw, 48px);
  line-height: 1.12;
  letter-spacing: -.032em;
  margin-bottom: 24px;
  color: #790012;
  text-wrap: balance;
  text-shadow: 0 12px 32px rgba(127,82,44,.10);
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
  color: #790012;
  margin-bottom: 0;
  text-wrap: balance;
}
h3 {
  color: #790012;
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
p { line-height: 1.72; }
.hero-floating-card {
  position: absolute;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255,247,239,.72);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 22px 60px rgba(61,2,10,.16);
  backdrop-filter: blur(20px);
}
.hero-floating-card span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--wine-900);
  background: rgba(255,255,255,.46);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.about .section-heading h2,
.products .section-heading h2,
.events .section-heading h2 {
  font-size: clamp(21px, 2.6vw, 37px);
  line-height: 1.15;
  letter-spacing: -.025em;
  max-width: 620px;
  color: #790012;
}

.about { padding-top: 104px; }
.about::before, .products::before, .events::before, .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(255,255,255,.28), transparent 18rem),
    radial-gradient(circle at 86% 8%, rgba(121,0,18,.055), transparent 21rem);
  z-index: -1;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about-card {
  min-height: 100%;
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,247,239,.36)),
    rgba(255,247,239,.52);
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: 0 28px 72px rgba(127,82,44,.10), inset 0 1px 0 rgba(255,255,255,.68);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.about-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,184,122,.22), transparent 68%);
}
.about-card:hover, .product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 92px rgba(127,82,44,.15), inset 0 1px 0 rgba(255,255,255,.72);
  border-color: rgba(201,154,66,.42);
}
.card-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--wine-900);
  background: linear-gradient(135deg, #ead0ad, #d8b87a);
  font-size: 12px;
  font-weight: 900;
}
.about-card p { color: var(--muted); margin-bottom: 0; font-size: 15px; }

.products {
  padding-top: 102px;
  background: linear-gradient(180deg, rgba(248,223,199,0) 0%, rgba(255,247,239,.32) 44%, rgba(232,201,173,.68) 100%);
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.product-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,247,239,.52);
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: 0 26px 68px rgba(127,82,44,.12);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  isolation: isolate;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(61,2,10,.20));
  opacity: .68;
  z-index: 1;
  pointer-events: none;
}
.product-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .65s ease; }
.product-card:hover img { transform: scale(1.055); }
.featured-product {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 576px;
}
.product-caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff7ef;
}
.product-caption span {
  display: inline-flex;
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: #790012;
  background: rgba(255,247,239,.74);
  border: 1px solid rgba(255,255,255,.52);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.product-caption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.events {
  padding-top: 100px;
  padding-bottom: 118px;
  overflow: hidden;
}
.events-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 14px 0 30px;
}
.events-stage::before, .events-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(16vw, 240px);
  z-index: 2;
  pointer-events: none;
}
.events-stage::before { left: 0; background: linear-gradient(90deg, #e9cdb4, transparent); }
.events-stage::after { right: 0; background: linear-gradient(270deg, #e9cdb4, transparent); }
.events-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: carousel-left-to-right 32s linear infinite;
  will-change: transform;
  transform: translate3d(-50%, 0, 0);
}
.events-track.is-js-carousel {
  animation: none !important;
}
.events-track figure {
  width: clamp(230px, 25vw, 360px);
  height: clamp(300px, 34vw, 460px);
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.54);
  background: rgba(255,247,239,.46);
  box-shadow: 0 28px 70px rgba(127,82,44,.16);
  transform: translateZ(0);
}
.events-track img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.events-track figure:hover img { transform: scale(1.06); filter: saturate(1.06) contrast(1.02); }
@keyframes carousel-left-to-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.site-footer {
  padding-top: 96px;
  padding-bottom: 46px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.28), transparent 18rem),
    radial-gradient(circle at 88% 12%, rgba(121,0,18,.06), transparent 20rem),
    linear-gradient(180deg, rgba(232,201,173,.20), #f7eadc 30%, #e8c9ad 100%);
  color: var(--text);
}
.footer-main {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: center;
}
.footer-brand-copy { min-width: 0; }
.footer-brand img { width: 128px; height: 128px; object-fit: cover; border-radius: 28px; box-shadow: 0 18px 52px rgba(127,82,44,.18); }
.footer-brand h2 { color: #790012; font-size: clamp(24px, 2.7vw, 38px); margin-bottom: 4px; }
.footer-brand p { color: var(--muted); margin: 0; white-space: nowrap; font-weight: 700; font-size: clamp(12px, 1.35vw, 15px); }
.footer-contact { display: grid; gap: 12px; font-style: normal; color: var(--text); }
.footer-contact a, .footer-contact span {
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,247,239,.56);
  border: 1px solid rgba(255,255,255,.56);
  transition: background .25s ease, transform .25s ease;
}
.footer-contact a:hover { background: rgba(255,247,239,.82); transform: translateX(3px); }
.footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,247,239,.24));
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 24px 60px rgba(127,82,44,.12);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  position: relative;
  overflow: hidden;
}
.footer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(214,175,143,.34), rgba(255,255,255,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.footer-shell small { font-size: 13px; position: relative; z-index: 1; color: var(--muted); }
.footer-shell a { color: var(--wine-800); text-decoration: none; font-weight: 800; }
.dhominic-credit { color: #d8b45b !important; }
.privacy-link:hover { color: var(--wine-900); }

.cookie-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 22px;
  background: rgba(127,82,44,.16);
  backdrop-filter: blur(8px);
  z-index: 120;
}
.cookie-modal[hidden] { display: none; }
.cookie-box {
  width: min(100%, 620px);
  padding: 26px;
  border-radius: 30px;
  background: rgba(255,247,239,.94);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 30px 90px rgba(127,82,44,.22);
}
.cookie-box h2 { font-size: 28px; margin-bottom: 10px; color: #790012; }
.cookie-box p { margin-bottom: 20px; color: var(--muted); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-accept { min-height: 52px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition-duration: .001ms !important; }
  .topbar-cta, .primary-button, .secondary-button, .about-card, .product-card, .events-track img, .footer-contact a {
    transition-duration: .001ms !important;
  }
}

@media (max-width: 980px) {
  .section-shell { padding-left: 22px; padding-right: 22px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-logo-card { max-width: 360px; }
  .about-grid { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
  .featured-product { grid-column: span 2; min-height: 430px; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 28px;
    display: grid;
    grid-template-columns: 48px 1fr;
    min-height: auto;
    padding: 8px;
  }
  .topbar-brand { width: 48px; height: 48px; }
  .main-nav {
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 10px 11px; font-size: 12px; white-space: nowrap; }
  .topbar-cta { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .hero { min-height: auto; padding-top: 164px; padding-bottom: 86px; }
  .hero-logo-card { max-width: 284px; padding: 12px; border-radius: 34px; }
  .hero-logo-card img { border-radius: 25px; }
  h1 { font-size: clamp(28px, 9.2vw, 41px); }
  h2 { font-size: clamp(31px, 10vw, 46px); }
  .hero-floating-card { position: static; margin-top: 28px; border-radius: 24px; justify-content: center; }
  .about, .products, .events, .site-footer { padding-top: 76px; }
  .about-card { padding: 24px; border-radius: 26px; }
  .product-gallery { grid-template-columns: 1fr; }
  .featured-product { grid-column: span 1; min-height: 420px; }
  .product-card { min-height: 360px; }
  .events-track figure { width: 250px; height: 330px; border-radius: 24px; }
  .footer-brand { grid-template-columns: 88px 1fr; }
  .footer-brand p { white-space: nowrap; font-size: 12px; }
  .footer-brand img { width: 88px; height: 88px; }
  .footer-shell { border-radius: 28px; }
  .cookie-box { padding: 22px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { width: 100%; }
}

@media (max-width: 420px) {
  .section-shell { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 176px; }
  .main-nav a { padding: 9px 8px; }
  .hero .primary-button { width: 100%; }
  .product-card { min-height: 320px; }
  .featured-product { min-height: 360px; }
}


/* Ajustes V02: detalhes em vinho apenas pontuais */
.card-number { color: var(--wine-900); }
.skip-link { color: #fff7ef; }
.hero-copy .primary-button { margin-top: 2px; }


/* Ajustes V03: títulos em #790012, botões mais claros e carrossel contínuo via JS */
.hero-copy,
.hero .eyebrow,
.main-nav a,
.topbar-cta,
.primary-button,
.secondary-button { color: #790012; }

/* Ajustes V08: correção do logo na hero mobile + menu hamburguer aplicado sobre a base V06 */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,250,242,.92), rgba(242,220,190,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 12px 28px rgba(127,82,44,.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #790012;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .26s ease, opacity .22s ease;
}

.topbar.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.topbar-brand {
  border-radius: 18px;
  background: rgba(255,247,239,.78);
}

.topbar-brand img {
  object-fit: contain;
  object-position: center;
}

.hero-content {
  justify-items: center;
}

.hero-logo-card {
  width: min(100%, 420px);
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  overflow: hidden;
}

.hero-logo-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 740px) {
  .topbar {
    top: 10px;
    width: calc(100% - 24px);
    min-height: 72px;
    display: grid;
    grid-template-columns: 56px 1fr 52px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 28px;
  }

  .topbar-brand {
    width: 54px;
    height: 54px;
    grid-column: 1;
    border-radius: 16px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    overflow: visible;
    justify-content: stretch;
    padding-top: 8px;
  }

  .topbar.is-open .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .main-nav a {
    width: 100%;
    padding: 13px 14px;
    text-align: center;
    background: rgba(255,250,242,.54);
    border: 1px solid rgba(255,255,255,.52);
    font-size: 13px;
  }

  .topbar-cta {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
  }

  .topbar.is-open .topbar-cta {
    display: inline-flex;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 76px;
  }

  .hero-content {
    justify-items: center;
    text-align: center;
    gap: 24px;
  }

  .hero-logo-card {
    width: min(82vw, 360px);
    max-width: 360px;
    padding: 10px;
    border-radius: 30px;
    margin-inline: auto;
  }

  .hero-logo-card::before {
    inset: 9px;
    border-radius: 24px;
  }

  .hero-logo-card img {
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 108px;
  }

  .hero-logo-card {
    width: min(86vw, 340px);
    max-width: 340px;
  }
}
