/* =========================================================
   DUCADU - Main layout / section styles
   Consumes tokens.css + components.css
   ========================================================= */

/* Base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-scrolled) + var(--space-4));
  background: var(--areia);
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--preto);
  background: var(--areia);
  font-family: var(--font);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { color: var(--preto); background: var(--sol); }
:focus-visible { outline: 3px solid var(--mar); outline-offset: 3px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-3);
  z-index: 9999;
  transform: translateY(-160%);
  background: var(--preto);
  color: var(--branco);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 900;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--shell), calc(100% - (2 * var(--gutter)))); margin-inline: auto; }
.section { padding-block: clamp(var(--space-8), 8vw, var(--space-10)); }
.section-title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  text-transform: uppercase;
}
.icon { width: 1em; height: 1em; fill: currentColor; }

/* Header -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 242, 222, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: height var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255, 242, 222, .96);
  box-shadow: 0 10px 30px -24px rgba(5, 5, 5, .45);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: var(--space-6);
}
.brand {
  width: 190px;
  transition: width var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled .brand { width: 164px; }
.brand img { width: 100%; height: auto; }
.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(var(--space-5), 4vw, var(--space-7));
}
.main-nav a {
  position: relative;
  padding-block: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--sol);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.main-nav a:hover::after,
.main-nav a.is-active::after,
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-delivery { min-height: 46px; padding-inline: 22px; }
.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--preto);
  border-radius: 50%;
  background: transparent;
}
.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--preto);
  transform-origin: center;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Hero ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 920px);
  overflow: hidden;
  isolation: isolate;
  background: var(--preto);
}
.hero-media {
  position: absolute;
  z-index: -3;
  inset: -24px 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: calc(100% + 48px);
  object-fit: cover;
  object-position: center 50%;
  transform: translate3d(0, var(--hero-parallax, 0px), 0) scale(1.03);
  will-change: transform;
}
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 5, 5, .60) 0%, rgba(5, 5, 5, .22) 45%, rgba(5, 5, 5, 0) 68%);
}
.hero-inner {
  min-height: inherit;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: min(720px, 70%);
  padding-block: var(--space-8);
}
.hero .eyebrow { margin-bottom: var(--space-5); }
.hero h1,
.hero-accent {
  margin: 0;
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  text-transform: uppercase;
}
.hero h1 { color: var(--branco); font-size: var(--fs-display); }
.hero-accent { margin-top: var(--space-3); color: var(--sol); font-size: clamp(44px, 7.2vw, 108px); }
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-7);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--branco);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-arrow {
  display: inline-block;
  animation: scroll-nudge 4s var(--ease-out) infinite;
}
@keyframes scroll-nudge {
  0%, 18%, 100% { transform: translateY(0); }
  9% { transform: translateY(3px); }
}
.hero-stamp {
  position: absolute;
  z-index: 1;
  right: clamp(-80px, -2vw, -24px);
  bottom: clamp(-110px, -5vw, -56px);
  width: clamp(230px, 25vw, 440px);
  opacity: .96;
  animation: stamp-spin 18s linear infinite;
  pointer-events: none;
}
@keyframes stamp-spin { to { transform: rotate(360deg); } }

/* Marquee ------------------------------------------------- */
.brand-marquee {
  overflow: hidden;
  background: var(--mar);
  color: var(--branco);
  border-block: 3px solid var(--preto);
}
.brand-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee span {
  display: block;
  padding-block: 14px;
  white-space: nowrap;
  font-size: clamp(21px, 2.3vw, 36px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Units --------------------------------------------------- */
.units { background: var(--areia); }
.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 2px solid var(--preto);
}
.section-head-copy { min-width: 0; }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head h2 {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: 900;
  text-transform: uppercase;
}
.section-mark {
  width: clamp(72px, 8vw, 104px);
  align-self: end;
  transform: translateY(2px);
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

/* About --------------------------------------------------- */
.about {
  position: relative;
  overflow: hidden;
  background: var(--mar-gradient);
  color: var(--branco);
}
.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(var(--space-7), 7vw, var(--space-10));
}
.video-card { position: relative; }
.video-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--preto);
  border-radius: var(--radius-lg);
  background: var(--preto);
  box-shadow: var(--elev-2);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.video-open:hover { transform: translate(-2px, -3px); box-shadow: 11px 13px 0 var(--sol); }
.video-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 3px solid var(--preto);
  border-radius: 50%;
  background: var(--sol);
  color: var(--preto);
  font-size: 24px;
  padding-left: 4px;
  box-shadow: 0 0 0 0 rgba(255, 165, 57, .45);
  animation: play-pulse 2.4s ease-in-out infinite;
  transition: transform var(--dur-fast) var(--ease-out);
}
.video-open:hover .play { transform: translate(-50%, -50%) scale(1.08); }
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 165, 57, .45); }
  50% { box-shadow: 0 0 0 16px rgba(255, 165, 57, 0); }
}
.about-copy .eyebrow { margin-bottom: var(--space-5); }
.about-copy h2 {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: 900;
  text-transform: uppercase;
}
.about-copy p {
  max-width: 46ch;
  margin: 0 0 var(--space-4);
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  font-weight: 580;
}
.about-graphic {
  position: absolute;
  z-index: 0;
  width: clamp(520px, 60vw, 980px);
  right: -14%;
  top: -26%;
  opacity: .09;
  transform: rotate(14deg);
  -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 22%, transparent 72%);
  mask-image: radial-gradient(circle at 55% 45%, #000 22%, transparent 72%);
}

/* Instagram ---------------------------------------------- */
.instagram { overflow: hidden; background: var(--areia); }
.instagram-grid {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  align-items: center;
  gap: clamp(var(--space-7), 7vw, var(--space-10));
}
.instagram-copy .eyebrow { margin-bottom: var(--space-5); }
.instagram-copy h2 {
  margin: 0 0 var(--space-7);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: 900;
  text-transform: uppercase;
}
.instagram-btn .icon { width: 17px; height: 17px; }
.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  min-height: 610px;
  gap: var(--space-4);
}
.photo-mosaic a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 2px solid var(--preto);
  background: var(--preto);
  box-shadow: var(--elev-soft);
}
.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.photo-mosaic a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .25);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.photo-hover {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--preto);
  background: var(--sol);
  border: 2px solid var(--preto);
  transform: translate(-50%, -44%) scale(.88);
  opacity: 0;
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.photo-hover .icon { width: 24px; height: 24px; }
.photo-mosaic a:hover img,
.photo-mosaic a:focus-visible img { transform: scale(1.06); filter: saturate(1.06); }
.photo-mosaic a:hover::after,
.photo-mosaic a:focus-visible::after { opacity: 1; }
.photo-mosaic a:hover .photo-hover,
.photo-mosaic a:focus-visible .photo-hover { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.photo-mosaic a:focus-visible { outline: 3px solid var(--mar); outline-offset: 4px; }
.photo-a { grid-row: 1 / 3; }
.photo-a img { object-position: center 35%; }
.photo-b img { object-position: center 50%; }
.photo-c img { object-position: center 35%; }

/* Delivery CTA ------------------------------------------- */
.delivery-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 690px;
  border-block: 3px solid var(--preto);
  background: var(--preto);
}
.delivery-photo {
  position: relative;
  overflow: hidden;
  background: var(--preto);
}
.delivery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .35);
}
.delivery-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.delivery-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(var(--space-7), 7vw, var(--space-9));
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 207, 122, .42), transparent 42%),
    var(--brasa-gradient);
  color: var(--preto);
}
.delivery-copy .eyebrow { margin-bottom: var(--space-5); }
.delivery-copy h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 var(--space-7);
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: 900;
  text-transform: uppercase;
}
.delivery-copy .btn { position: relative; z-index: 2; }
.delivery-graphic {
  position: absolute;
  z-index: 0;
  width: clamp(420px, 44vw, 760px);
  right: -20%;
  bottom: -34%;
  opacity: .14;
  mix-blend-mode: multiply;
  transform: rotate(-5deg);
  pointer-events: none;
}

/* Contact ------------------------------------------------- */
.contact { overflow: hidden; background: var(--areia); }
.contact-title-wrap {
  position: relative;
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 2px solid var(--preto);
}
.contact-title-wrap .eyebrow { margin-bottom: var(--space-4); }
.contact-title-wrap h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: 900;
  text-transform: uppercase;
}
.contact-graphic {
  position: absolute;
  z-index: 0;
  width: 300px;
  right: 0;
  top: -80px;
  opacity: .08;
  transform: rotate(9deg);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: var(--space-7);
  align-items: start;
}
.contact-form {
  display: grid;
  gap: var(--space-5);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  border: 2px solid var(--preto);
  border-radius: var(--radius-lg);
  background: var(--branco);
  box-shadow: var(--elev-3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.contact-form .btn { justify-self: start; }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-info { display: grid; gap: var(--space-4); }
.info-block {
  padding: var(--space-5);
  border: 2px solid var(--preto);
  border-radius: var(--radius-md);
  background: var(--preto);
  color: var(--branco);
  box-shadow: var(--elev-1);
}
.info-block h3 { margin: 0 0 var(--space-4); color: var(--sol); font-size: 18px; text-transform: uppercase; }
.info-block ul { margin: 0; padding: 0; list-style: none; }
.info-block li + li { margin-top: 10px; }
.info-block a,
.info-block p { font-size: 13px; line-height: 1.5; }
.info-block a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--dur-fast), text-decoration-color var(--dur-fast); }
.info-block a:hover { color: var(--sol); text-decoration-color: currentColor; }
.info-blue { background: var(--mar); }
.info-blue h3 { color: var(--branco); }
.info-orange { background: var(--sol); color: var(--preto); }
.info-orange h3 { color: var(--preto); }
.info-orange p { margin: 0; }

/* Testimonials ------------------------------------------- */
.testimonials {
  position: relative;
  overflow: hidden;
  background: var(--preto);
  color: var(--branco);
}
.testimonial-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  align-items: start;
}
.testimonial-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  padding-right: clamp(90px, 10vw, 150px);
}
.testimonial-head .eyebrow { margin-bottom: var(--space-5); }
.testimonial-head h2 {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-heading);
  font-weight: 900;
  text-transform: uppercase;
}
.testimonial-stamp {
  flex: 0 0 auto;
  width: clamp(88px, 8vw, 118px);
  height: auto;
}
.testimonial-stage { min-width: 0; }
.testimonial-slides { min-height: 330px; }
.testimonial-slide[hidden] { display: none; }
.testimonial-slide.is-active { animation: testimonial-in var(--dur-base) var(--ease-out); }
@keyframes testimonial-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.testimonial-controls { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--branco);
  background: transparent;
  color: var(--branco);
  font-size: 20px;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.testimonial-controls button:hover { background: var(--branco); color: var(--preto); transform: translateY(-2px); }
.testimonial-counter { min-width: 66px; text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.testimonial-dots { display: flex; align-items: center; gap: 10px; }
.testimonial-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: var(--line-invert);
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.testimonial-dot:hover { transform: scale(1.2); }
.testimonial-dot.is-active { background: var(--sol); border-color: var(--sol); }
.testimonial-brasinha {
  position: absolute;
  z-index: 0;
  width: 280px;
  right: -100px;
  bottom: -105px;
  opacity: .16;
  transform: rotate(13deg);
}

/* Footer -------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--preto);
  color: var(--branco);
  border-top: 8px solid var(--sol);
}
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 2.28fr);
  gap: var(--space-8);
  padding-block: var(--space-9) var(--space-6);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}
.footer-brand img { width: min(280px, 100%); }
.footer-tagline {
  margin: 0;
  max-width: 24ch;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}
.footer-social .icon { width: 18px; height: 18px; color: var(--sol); }
.footer-main { min-width: 0; }
.footer-addresses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  padding-bottom: var(--space-7);
}
.footer-address {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  min-width: 0;
}
.footer-address .icon { width: 18px; height: 18px; color: var(--sol); margin-top: 2px; }
.footer-address strong { display: block; margin-bottom: 5px; font-size: 12px; text-transform: uppercase; }
.footer-address span { display: block; color: rgba(255, 255, 255, .6); font-size: var(--fs-small); line-height: 1.4; }
.footer-address:hover span { color: rgba(255, 255, 255, .86); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-invert);
}
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, .5); font-size: var(--fs-small); }
.footer-graphic {
  position: absolute;
  width: 430px;
  left: -130px;
  bottom: -180px;
  opacity: .12;
  transform: rotate(-12deg);
}

/* Dialogs ------------------------------------------------- */
.modal {
  width: min(1100px, calc(100% - 30px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}
.modal::backdrop {
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--preto);
  border: 2px solid var(--branco);
  opacity: 0;
  transform: scale(.96);
}
.modal[open] .modal-card { animation: dialog-in var(--dur-base) var(--ease-out) forwards; }
.modal.is-closing .modal-card { animation: dialog-out var(--dur-fast) ease forwards; }
@keyframes dialog-in { to { opacity: 1; transform: scale(1); } }
@keyframes dialog-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.96); } }
.modal-close {
  position: absolute;
  z-index: 10;
  right: var(--space-4);
  top: var(--space-4);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--preto);
  background: var(--branco);
  color: var(--preto);
  font-size: 26px;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--preto);
}
.video-frame { aspect-ratio: 16 / 9; background: var(--preto); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.map-layout { min-height: 650px; display: grid; grid-template-columns: 310px 1fr; }
.map-nav { padding: var(--space-7) var(--space-6); background: var(--sol); }
.map-nav .eyebrow { margin-bottom: var(--space-4); }
.map-nav h2 { margin: 0 0 var(--space-7); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--tracking-heading); }
.map-location {
  display: block;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .4);
  background: transparent;
  text-align: left;
  font-weight: 900;
  transition: color var(--dur-fast), padding-left var(--dur-fast) var(--ease-out);
}
.map-location:last-child { border-bottom: 1px solid rgba(0, 0, 0, .4); }
.map-location.is-active { color: var(--mar-escuro); padding-left: 10px; }
.map-frame { width: 100%; height: 100%; min-height: 650px; border: 0; background: #ececec; }

/* Breakpoint ≥1200: default above ------------------------ */

/* Tablet 900–1199 ---------------------------------------- */
@media (max-width: 1199px) {
  .header-inner { grid-template-columns: 185px 1fr auto; gap: var(--space-5); }
  .brand { width: 168px; }
  .site-header.is-scrolled .brand { width: 150px; }
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-card { min-height: 460px; }
  .about-grid, .instagram-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .contact-grid { gap: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer-brand { max-width: 380px; }
}


/* Tablet-mobile 600–899 ---------------------------------- */
@media (max-width: 899px) {
  :root { --header-h: 76px; --header-h-scrolled: 68px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { width: 158px; }
  .site-header.is-scrolled .brand { width: 146px; }
  .menu-toggle { display: block; justify-self: end; }
  .header-delivery { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: rgba(255, 242, 222, .98);
    border-bottom: 2px solid var(--preto);
    box-shadow: 0 20px 30px -25px rgba(5, 5, 5, .48);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-fast), visibility var(--dur-fast), transform var(--dur-fast) var(--ease-out);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { bottom: 8px; }
  .hero-copy { width: min(650px, 88%); }
  .hero-media img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(100deg, rgba(5, 5, 5, .86) 0%, rgba(5, 5, 5, .60) 65%, rgba(5, 5, 5, .20) 100%); }
  .hero-stamp { right: -100px; bottom: -80px; width: 310px; opacity: .82; }
  .about-grid, .instagram-grid { grid-template-columns: 1fr; }
  .about-copy { order: -1; }
  .about-copy p { max-width: 58ch; }
  .photo-mosaic { min-height: 560px; }
  .delivery-cta { grid-template-columns: 1fr; }
  .delivery-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-block:first-child { grid-column: 1 / -1; }
  .testimonial-shell { grid-template-columns: 1fr; }
  .testimonial-head { max-width: 520px; }
  .footer-addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-layout { grid-template-columns: 1fr; }
  .map-nav { padding: var(--space-6) var(--space-5) var(--space-5); }
  .map-frame { min-height: 430px; }
}

/* Mobile ≤599 -------------------------------------------- */
@media (max-width: 599px) {
  :root { --gutter: 18px; }
  .section { padding-block: var(--space-8); }
  .hero { min-height: clamp(600px, 84svh, 720px); }
  .hero-copy { width: 100%; padding-block: var(--space-8) var(--space-9); }
  .hero .eyebrow { max-width: 230px; line-height: 1.35; }
  .hero h1 { font-size: clamp(54px, 17.5vw, 82px); }
  .hero-accent { font-size: clamp(42px, 14.6vw, 67px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: var(--space-5); margin-top: var(--space-6); }
  .hero-stamp { width: 220px; right: -82px; bottom: -62px; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: clamp(48px, 15vw, 72px); }
  .section-mark { width: 58px; align-self: end; }
  .unit-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .unit-card { min-height: 420px; }
  .unit-body { padding: var(--space-5); }
  .video-open { box-shadow: 6px 6px 0 var(--sol); }
  .play { width: 68px; height: 68px; font-size: 20px; }
  .about-copy h2, .instagram-copy h2 { font-size: clamp(48px, 15vw, 72px); }
  .photo-mosaic { min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 290px 200px; gap: 10px; }
  .photo-a { grid-column: 1 / -1; grid-row: auto; }
  .delivery-copy { padding: var(--space-8) var(--space-5); }
  .delivery-copy h2 { font-size: clamp(36px, 10.3vw, 44px); letter-spacing: -.025em; }
  .contact-graphic { width: 250px; right: -90px; top: -68px; }
  .form-row { grid-template-columns: 1fr; gap: var(--space-5); }
  .contact-form { padding: var(--space-5); box-shadow: 7px 7px 0 var(--mar); }
  .contact-info { grid-template-columns: 1fr; }
  .info-block:first-child { grid-column: auto; }
  .testimonial-slides { min-height: 390px; }
  .testimonial-card { padding: var(--space-5); }
  .testimonial-meta { align-items: flex-start; flex-direction: column; }
  .footer-grid { padding-block: var(--space-8) var(--space-5); gap: var(--space-7); }
  .footer-brand { align-items: flex-start; }
  .footer-brand > img:first-of-type { width: min(190px, 52vw); }
  .footer-addresses { grid-template-columns: 1fr; gap: 0; padding-bottom: var(--space-6); }
  .footer-address { padding-block: var(--space-4); border-top: 1px solid var(--line-invert); }
  .footer-address:last-child { border-bottom: 1px solid var(--line-invert); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .map-frame { min-height: 360px; }
  .modal { width: min(100% - 20px, 1100px); }
  .modal-close { right: 10px; top: 10px; }
}

/* =========================================================
   V5 - Marca oficial + Motion System "Cambiante"
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ducadu-page-out 220ms var(--ease-out) both; }
::view-transition-new(root) { animation: ducadu-page-in 320ms var(--ease-out) both; }
@keyframes ducadu-page-out { to { opacity: 0; transform: translateY(-10px) scale(.995); } }
@keyframes ducadu-page-in { from { opacity: 0; transform: translateY(12px) scale(.995); } }

body { transition: background-color 420ms var(--ease-out), color 320ms var(--ease-out); }
.site-grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  width: 100vw;
  height: 100vh;
  opacity: .035;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.site-grain svg { width: 100%; height: 100%; }

/* Custom cursor - desktop/pointer fine only, enabled by JS */
.custom-cursor {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition: opacity var(--dur-fast) ease;
}
.cursor-dot {
  position: absolute;
  width: var(--cursor-size);
  height: var(--cursor-size);
  border: 2px solid var(--preto);
  border-radius: 50%;
  background: var(--sol);
  box-shadow: 2px 2px 0 rgba(5,5,5,.9);
  transition: width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast);
}
.cursor-symbol {
  position: relative;
  z-index: 2;
  color: var(--preto);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
body.cursor-ready .custom-cursor { opacity: 1; }
html.has-custom-cursor:not(.cursor-ready) { cursor: auto; }
.custom-cursor.is-interactive .cursor-dot { width: 42px; height: 42px; }
.custom-cursor.is-interactive .cursor-symbol { opacity: 1; transform: scale(1); }
.custom-cursor.is-drag .cursor-dot { width: 52px; height: 52px; background: var(--areia); }
.custom-cursor.is-play .cursor-dot { width: 54px; height: 54px; }
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready,
  body.cursor-ready a,
  body.cursor-ready button { cursor: none; }
  body.cursor-ready input,
  body.cursor-ready textarea { cursor: text; }
}
@media (hover: none), (pointer: coarse) { .custom-cursor { display: none !important; } }

/* Header theme follows visible section */
.brand {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  transition: opacity .2s ease;
}
.site-header.theme-dark,
.site-header.theme-mar,
.site-header.theme-preto,
.site-header.theme-hero {
  color: var(--branco);
  background: rgba(5,5,5,.92);
  border-bottom-color: rgba(255,255,255,.16);
}
.site-header.theme-mar { background: rgba(2,119,187,.92); }
.site-header.theme-hero { background: rgba(5,5,5,.92); }
.site-header.theme-dark .main-nav a,
.site-header.theme-mar .main-nav a,
.site-header.theme-preto .main-nav a,
.site-header.theme-hero .main-nav a { color: var(--branco); }
.site-header.theme-dark .menu-toggle,
.site-header.theme-mar .menu-toggle,
.site-header.theme-preto .menu-toggle,
.site-header.theme-hero .menu-toggle { border-color: var(--branco); }
.site-header.theme-dark .menu-toggle span:not(.sr-only),
.site-header.theme-mar .menu-toggle span:not(.sr-only),
.site-header.theme-preto .menu-toggle span:not(.sr-only),
.site-header.theme-hero .menu-toggle span:not(.sr-only) { background: var(--branco); }

/* JS/network safety: no theme class means blue logo on opaque Areia, always legible. */
.site-header:not(.theme-dark):not(.theme-mar):not(.theme-preto):not(.theme-hero) {
  background: rgba(255, 242, 222, .94);
}
.nav-brand-mark { display: none; }

/* Hero storytelling / split */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 44%;
  background: var(--horizon-gradient);
  opacity: .55;
  pointer-events: none;
}
.hero-heat-glow {
  position: absolute;
  z-index: -2;
  width: clamp(420px, 58vw, 980px);
  aspect-ratio: 1;
  right: -12%;
  bottom: -45%;
  background: var(--heat-glow);
  filter: blur(42px);
  opacity: .42;
  animation: heat-breathe var(--dur-idle) ease-in-out infinite;
  pointer-events: none;
}
@keyframes heat-breathe { 0%,100% { opacity: .28; transform: scale(.96); } 50% { opacity: .56; transform: scale(1.05); } }
.hero h1 { perspective: 900px; }
.hero-title-line { display: block; will-change: transform, opacity; transform-origin: 50% 100%; }
.hero-title-line-right { transform-origin: 50% 0%; }
.hero-accent { will-change: transform, opacity; }
.hero-stamp { transform-origin: center; }
.hero.is-storytelling .hero-copy { will-change: transform; }

/* Official brand stamps / split system */
.brand-spin { animation: stamp-spin 22s linear infinite; transform-origin: center; }
.units { position: relative; overflow: hidden; }
.units-dd-seal {
  position: absolute;
  right: clamp(-90px, -3vw, -38px);
  bottom: clamp(-100px, -5vw, -48px);
  width: clamp(180px, 18vw, 300px);
  opacity: .055;
  pointer-events: none;
}
.about::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 3%;
  top: 18%;
  width: min(520px, 44vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,165,57,.30), transparent 70%);
  filter: blur(78px);
  pointer-events: none;
}
.about-video-frame { position: relative; z-index: 2; }
.about-brand-row.brasinha-badge {
  position: absolute;
  z-index: 4;
  right: -28px;
  top: -34px;
  width: clamp(106px, 10vw, 138px);
  height: clamp(126px, 12vw, 164px);
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(5,5,5,.34));
  transform-origin: 50% 70%;
  transition: transform .35s var(--ease-out);
}
.about-video-frame:hover .brasinha-badge,
.about-video-frame:focus-within .brasinha-badge { transform: rotate(-8deg) scale(1.06); }
.about-brand-row .brasinha-frame { opacity: 0; }
.about-brand-row .brasinha-frame-1 { opacity: .96; }
.brasinha-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Instagram: grid desktop, Swiper/touch mobile */
.photo-mosaic.swiper { overflow: visible; }
.photo-mosaic-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  min-height: 610px;
  gap: var(--space-4);
}
.photo-mosaic-wrapper .swiper-slide { width: auto; height: auto; }
.instagram-pagination { display: none; }
.photo-mosaic.instagram-swiper-active { overflow: hidden; padding-bottom: var(--space-6); }
.photo-mosaic.instagram-swiper-active .photo-mosaic-wrapper {
  display: flex;
  gap: 0;
  min-height: 0;
}
.photo-mosaic.instagram-swiper-active .swiper-slide {
  width: 82%;
  height: clamp(340px, 62vh, 560px);
  min-height: 0;
}
.photo-mosaic.instagram-swiper-active .photo-a { grid-row: auto; }
.photo-mosaic.instagram-swiper-active .instagram-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: static;
  margin-top: var(--space-4);
}
.instagram-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 !important;
  border: 1px solid var(--preto);
  background: transparent;
  opacity: 1;
}
.instagram-pagination .swiper-pagination-bullet-active { background: var(--sol); }

/* Delivery heat / half composition */
.delivery-photo { isolation: isolate; }
.delivery-heat-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -22%;
  width: 78%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: var(--heat-glow);
  filter: blur(45px);
  opacity: .45;
  animation: heat-breathe 5.8s ease-in-out infinite;
}
.delivery-photo img { position: relative; z-index: 1; will-change: transform; }
.delivery-copy::after {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  width: 2px;
  background: rgba(5,5,5,.16);
  pointer-events: none;
}

/* Contact gets primary circular lockup */
.contact-stamp {
  position: absolute;
  z-index: 1;
  right: 310px;
  bottom: 18px;
  width: clamp(72px, 8vw, 118px);
  opacity: .88;
  pointer-events: none;
}

/* Swiper testimonials - mobile audit containment + deterministic pagination */
.testimonials { overflow-x: hidden; }
.testimonial-shell { min-width: 0; max-width: 100%; }
.testimonial-stage.swiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 8px 10px 12px 4px;
}
.testimonial-stage .swiper-wrapper,
.testimonial-slides.swiper-wrapper {
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}
.testimonial-slide.swiper-slide {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.testimonial-slide.swiper-slide[hidden] { display: none !important; }
.testimonial-slide.is-active { width: 100%; max-width: 100%; }
.testimonial-meta { position: relative; z-index: 4; }

.swiper-pagination-custom {
  position: static;
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.swiper-pagination-custom .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  opacity: 1;
  cursor: pointer;
}
.swiper-pagination-custom .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 5px;
  background: var(--sol);
  transition: width .25s ease;
}
/* Native fallback uses the same visual geometry when Swiper CDN is unavailable. */
.swiper-pagination-custom .testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.swiper-pagination-custom .testimonial-dot.is-active {
  width: 22px;
  border-radius: 5px;
  background: var(--sol);
}
.testimonial-counter { font-variant-numeric: tabular-nums; }

/* V7 testimonial mural: larger active card, side previews and warm aura. */
.testimonial-stage.swiper {
  position: relative;
  perspective: 1200px;
  padding: 46px clamp(16px, 3vw, 42px) 18px;
}
.testimonial-stage.swiper::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(760px, 72vw);
  height: min(520px, 52vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,165,57,.24) 0%, rgba(255,165,57,.09) 38%, transparent 72%);
  filter: blur(52px);
  opacity: .86;
  pointer-events: none;
  animation: testimonial-aura 5.6s ease-in-out infinite;
}
@keyframes testimonial-aura {
  0%,100% { transform: translate(-50%, -50%) scale(.94); opacity: .56; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: .92; }
}
.testimonial-stage .swiper-wrapper { position: relative; z-index: 1; }
.testimonial-slide.swiper-slide {
  opacity: .36;
  transform: scale(.92);
  transform-origin: center;
  transition: opacity .4s ease, transform .4s var(--ease-out), filter .4s ease;
  filter: saturate(.82);
}
.testimonial-slide.swiper-slide-active,
.testimonial-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
}
.testimonial-slide.swiper-slide-prev,
.testimonial-slide.swiper-slide-next { opacity: .58; transform: scale(.955); }
@media (min-width: 900px) {
  .testimonial-slide.swiper-slide-prev { transform: scale(.955) rotateY(3deg); }
  .testimonial-slide.swiper-slide-next { transform: scale(.955) rotateY(-3deg); }
}
.testimonial-card { min-height: 330px; }
.testimonial-card p { font-size: var(--fs-body-lg); }
.testimonial-author {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  margin-top: auto !important;
  padding-top: var(--space-5);
}
.testimonial-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--preto);
  border-radius: 50%;
  background: var(--mar);
  color: var(--branco);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--sol);
}
.testimonial-author-name { min-width: 0; }
.testimonial-meta { justify-content: center; }
.swiper-pagination-custom { justify-content: center; }

/* Footer hierarchy + Brasinha one-shot easter egg */
.footer-brand { position: relative; }
.footer-brand > img:not(.footer-circle-mark) { width: min(280px, 100%); }
.footer-brand .footer-circle-mark {
  width: 86px;
  margin-top: var(--space-3);
  opacity: .42;
}
.footer-easter-egg {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 4vw, 64px);
  bottom: 20px;
  width: 92px;
  height: 126px;
  opacity: 0;
  transform: translate3d(0, 40px, 0) rotate(8deg);
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(255,165,57,.18));
}
.footer-easter-egg.is-peeking { animation: brasinha-peek 2.8s var(--ease-out) both; }
.footer-easter-egg.is-peeking .brasinha-frame { animation: brasinha-face 1.05s steps(1,end) 2; }
.footer-easter-egg .brasinha-frame-2 { animation-delay: .35s !important; }
.footer-easter-egg .brasinha-frame-3 { animation-delay: .70s !important; }
@keyframes brasinha-peek {
  0% { opacity: 0; transform: translate3d(0,45px,0) rotate(8deg); }
  18%,72% { opacity: 1; transform: translate3d(0,0,0) rotate(0); }
  100% { opacity: 0; transform: translate3d(0,28px,0) rotate(-4deg); }
}
@keyframes brasinha-face { 0%,32% { opacity: 1; } 33%,100% { opacity: 0; } }

/* SplitType / native title reveal helpers */
.split-title { overflow: visible; }
.split-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .05em;
  margin-bottom: -.05em;
  transform-origin: 50% 100%;
}
.split-title .line > .word,
.split-title .line-inner { display: inline-block; will-change: transform, opacity; }

/* Progressive CSS scroll-driven enhancement (where supported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .units-dd-seal {
      animation: native-brand-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes native-brand-drift {
      from { transform: translate3d(0, 34px, 0) rotate(-8deg); }
      to { transform: translate3d(-22px, -30px, 0) rotate(8deg); }
    }
  }
}

@media (max-width: 899px) {
  .nav-brand-mark {
    display: block;
    width: 112px;
    margin: var(--space-2) 0 var(--space-5);
  }
  .site-header.theme-dark .main-nav,
  .site-header.theme-mar .main-nav,
  .site-header.theme-preto .main-nav,
  .site-header.theme-hero .main-nav {
    color: var(--preto);
    background: rgba(255,242,222,.985);
  }
  .site-header.theme-dark .main-nav a,
  .site-header.theme-mar .main-nav a,
  .site-header.theme-preto .main-nav a,
  .site-header.theme-hero .main-nav a { color: var(--preto); }
  .about-brand-row.brasinha-badge { right: -8px; top: -26px; width: 104px; height: 124px; }
  .contact-stamp { right: 10px; bottom: 14px; opacity: .42; }
  .photo-mosaic-wrapper { min-height: 560px; }
}

@media (max-width: 599px) {
  .hero-title-line { max-width: 100%; }
  .testimonial-head { display: block; padding-right: 86px; }
  .testimonial-stage.swiper { padding: 30px 8px 12px; }
  .testimonial-stage.swiper::before { width: 92vw; height: 92vw; filter: blur(38px); }
  .testimonial-card { min-height: 390px; }
  .testimonial-slide.swiper-slide { opacity: .42; transform: scale(.94); }
  .testimonial-slide.swiper-slide-active { opacity: 1; transform: scale(1); }
  .about-brand-row.brasinha-badge { right: -4px; top: -18px; width: 88px; height: 106px; }
  .photo-mosaic { display: block; min-height: 0; }
  .photo-mosaic-wrapper { display: grid; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 290px 200px; gap: 10px; }
  .photo-mosaic.instagram-swiper-active .photo-mosaic-wrapper { display: flex; gap: 0; }
  .photo-mosaic.instagram-swiper-active .swiper-slide { width: 88%; height: 430px; }
  .testimonial-stage.swiper { padding-inline: 4px; }
  .testimonial-stamp { width: 78px; margin-top: var(--space-5); }
  .footer-brand .footer-circle-mark { width: 74px; }
  .footer-easter-egg { width: 72px; height: 100px; right: 14px; bottom: 12px; }
}


/* Motion accessibility ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .hero-media img { transform: scale(1.03) !important; }
  .hero-stamp,
  .brand-marquee-track,
  .play,
  .scroll-arrow { animation: none !important; }
}

/* Contact success page ----------------------------------- */
.success-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  overflow: hidden;
  background: var(--mar-gradient);
  color: var(--branco);
}
.success-card {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(var(--space-7), 7vw, var(--space-9));
  overflow: hidden;
  border: 3px solid var(--preto);
  border-radius: var(--radius-lg);
  background: var(--areia);
  color: var(--preto);
  box-shadow: 10px 10px 0 var(--sol);
  text-align: center;
}
.success-card > img:not(.success-mark) { width: 240px; margin: 0 auto var(--space-6); }
.success-card h1 { margin: 0 0 var(--space-4); font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-heading); text-transform: uppercase; }
.success-card p { margin: 0 0 var(--space-6); font-size: var(--fs-body-lg); font-weight: 700; }
.success-card .btn { position: relative; z-index: 2; }
.success-mark { position: absolute; width: 300px; right: -120px; bottom: -120px; opacity: .12; transform: rotate(12deg); }

/* V5 post-rules */
.about-copy { position: relative; }
.photo-mosaic.swiper { display: block; min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  .site-grain { opacity: .025; }
  .custom-cursor { display: none !important; }
  .hero-heat-glow,
  .delivery-heat-glow,
  .brand-spin,
  .footer-easter-egg,
  .about-brand-row .brasinha-frame,
  .brasinha-loader-frame { animation: none !important; }
  .hero-heat-glow,
  .delivery-heat-glow { opacity: .24 !important; transform: none !important; }
  .footer-easter-egg { display: none !important; }
  .about-brand-row .brasinha-frame { opacity: 0 !important; }
  .about-brand-row .brasinha-frame-1 { opacity: .92 !important; }
}

/* Success page - official Brasinha as feedback agent */
.success-brasinha {
  position: relative;
  width: 118px;
  height: 156px;
  margin: 0 auto var(--space-5);
  filter: drop-shadow(0 12px 20px rgba(255,165,57,.2));
}
.success-brasinha .brasinha-frame { opacity: 0; animation: brasinha-success-face 1.2s steps(1,end) infinite; }
.success-brasinha .brasinha-frame-2 { animation-delay: .4s; }
.success-brasinha .brasinha-frame-3 { animation-delay: .8s; }
@keyframes brasinha-success-face {
  0%, 32% { opacity: 1; transform: translateY(0) scale(1); }
  33%, 100% { opacity: 0; transform: translateY(2px) scale(.98); }
}
.success-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -110px;
  width: 340px;
  height: 240px;
  transform: translateX(-50%);
  background: var(--heat-glow);
  filter: blur(28px);
  opacity: .36;
  pointer-events: none;
}
.success-card > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .testimonial-stage.swiper::before { animation: none !important; }
  .testimonial-slide.swiper-slide { transition: none !important; }
  .success-brasinha .brasinha-frame { animation: none !important; opacity: 0 !important; }
  .success-brasinha .brasinha-frame-1 { opacity: 1 !important; }
}


/* Mobile audit fix - final source-order overrides */
@media (max-width: 1050px) {
  .footer-brand > img:first-of-type { width: min(240px, 40vw); }
}
@media (max-width: 560px) {
  .footer-brand { align-items: flex-start; }
  /* 190px remains the hard ceiling from the spec; 36vw keeps the visual footprint
     close to one third of narrow iPhone viewports, matching the QA acceptance note. */
  .footer-brand > img:first-of-type { width: min(190px, 36vw); }
}

.logo-blend {
  width: 42px;
  height: auto;
  vertical-align: middle;
  margin-left: 5px;
}

/* Cookie consent ----------------------------------------- */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10020;
  box-sizing: border-box;
  width: min(620px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 32px - env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px 22px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--preto);
  border-radius: 18px;
  background: rgba(255, 242, 222, .98);
  color: var(--preto);
  box-shadow: 7px 7px 0 var(--sol);
  transform: translate(-50%, 18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.cookie-consent[hidden] { display: none !important; }
.cookie-consent.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.cookie-consent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(2,119,187,.05), transparent 44%, rgba(255,165,57,.08));
  pointer-events: none;
}
.cookie-consent__icon {
  width: 70px;
  min-height: 78px;
  display: grid;
  place-items: center;
  align-self: stretch;
  border: 2px solid var(--preto);
  border-radius: 14px;
  background: var(--mar);
  overflow: hidden;
}
.cookie-consent__icon img {
  width: 46px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 0 rgba(5,5,5,.12));
}
.cookie-consent__content { min-width: 0; }
.cookie-consent__eyebrow {
  margin: 0 0 5px;
  color: var(--mar-escuro);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cookie-consent h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.cookie-consent p:not(.cookie-consent__eyebrow) {
  max-width: 52ch;
  margin: 0;
  color: var(--cinza-700);
  font-size: 14px;
  line-height: 1.45;
}
.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.cookie-consent__accept.btn {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 11px;
  box-shadow: 3px 3px 0 var(--preto);
}
.cookie-consent__accept.btn:hover {
  transform: translate(-1px,-2px);
  box-shadow: 5px 5px 0 var(--preto);
}
.cookie-consent__reject {
  appearance: none;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid var(--preto);
  background: transparent;
  color: var(--preto);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}
.cookie-consent__reject:hover { color: var(--mar); border-color: var(--mar); }
.cookie-consent button { touch-action: manipulation; }
.cookie-consent button:focus-visible { outline: 3px solid var(--mar); outline-offset: 3px; }

/* Tablet e mobile: respeita safe-area do iOS e nunca ultrapassa a viewport. */
@media (max-width: 599px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: calc(100svh - 24px - env(safe-area-inset-bottom));
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--sol);
    transform: translateY(16px);
  }
  .cookie-consent.is-visible { transform: translateY(0); }
  .cookie-consent__icon {
    width: 46px;
    min-height: 56px;
    border-radius: 10px;
  }
  .cookie-consent__icon img { width: 32px; }
  .cookie-consent__eyebrow { margin-bottom: 4px; font-size: 9px; }
  .cookie-consent h2 { margin-bottom: 7px; font-size: clamp(17px, 5vw, 20px); }
  .cookie-consent p:not(.cookie-consent__eyebrow) {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .cookie-consent__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-top: 12px;
  }
  .cookie-consent__accept.btn,
  .cookie-consent__reject {
    width: 100%;
    min-height: 46px;
  }
  .cookie-consent__accept.btn {
    justify-content: center;
    padding-inline: 12px;
  }
  .cookie-consent__reject {
    padding-inline: 12px;
    border: 2px solid var(--preto);
    border-radius: var(--radius-pill);
  }
}

/* iPhones e Androids estreitos: reduz o ornamento para priorizar texto e ações. */
@media (max-width: 390px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }
  .cookie-consent__icon { width: 40px; min-height: 50px; }
  .cookie-consent__icon img { width: 28px; }
  .cookie-consent h2 { font-size: 17px; }
  .cookie-consent p:not(.cookie-consent__eyebrow) { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent { transition: none !important; transform: translate(-50%, 0); }
}
@media (max-width: 599px) and (prefers-reduced-motion: reduce) {
  .cookie-consent { transform: none; }
}
