/* ==========================================================================
   Ótica Ana Carolina — design tokens
   ========================================================================== */
:root {
  --brand-500: #2f8fe0;
  --brand-600: #1d6fc9;
  --brand-700: #14508f;
  --accent-500: #ffc72c;

  --bg: #f6f9fc;
  --bg-elevated: #ffffff;
  --bg-muted: #eaf1fa;
  --text: #10182a;
  --text-muted: #4b5a6b;
  --border: #dde6f0;
  --shadow-color: 215 40% 15%;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --font-scale: 1;
  --shadow-sm: 0 2px 8px -2px hsl(var(--shadow-color) / .18);
  --shadow-md: 0 12px 32px -8px hsl(var(--shadow-color) / .25);
  --motion: 1;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="dark"] {
  --bg: #0a1420;
  --bg-elevated: #0f1d2e;
  --bg-muted: #13253a;
  --text: #eef4fb;
  --text-muted: #a6b6c9;
  --border: #1f3550;
  --shadow-color: 215 60% 3%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1420;
    --bg-elevated: #0f1d2e;
    --bg-muted: #13253a;
    --text: #eef4fb;
    --text-muted: #a6b6c9;
    --border: #1f3550;
    --shadow-color: 215 60% 3%;
  }
}

/* High contrast / low-vision mode */
:root[data-contrast="high"] {
  --bg: #000000;
  --bg-elevated: #000000;
  --bg-muted: #0d0d0d;
  --text: #ffffff;
  --text-muted: #ffe27a;
  --border: #ffffff;
  --brand-500: #ffe27a;
  --brand-600: #ffd230;
  --brand-700: #ffd230;
  --accent-500: #ffe27a;
  --shadow-sm: none;
  --shadow-md: none;
}

:root[data-readable-font="on"] {
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

:root[data-reduce-motion="on"] {
  --motion: 0;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: calc(1rem * var(--font-scale));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}

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

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; color: var(--text); overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw + 1rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }
:root[data-underline-links="on"] a:not(.btn):not(.brand):not(.icon-btn) { text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-700);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.text-gradient {
  background: linear-gradient(100deg, var(--brand-500), var(--brand-700) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--brand-700);
  background: color-mix(in srgb, var(--brand-500) 14%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow--light { background: rgba(255,255,255,.18); color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 999px;
  padding: 13px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--primary { background: linear-gradient(120deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; color: var(--text); font-size: 1.05rem; }
.brand__mark { color: var(--brand-600); display: inline-flex; }
.brand strong { font-weight: 800; }

.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--text-muted); position: relative; padding: 6px 0; }
.main-nav a:hover { color: var(--brand-700); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand-500); transition: right .25s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  cursor: pointer; transition: background .2s, transform .2s;
}
.icon-btn:hover { transform: translateY(-2px); color: var(--brand-700); }

#theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] #theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .icon-moon { display: inline-flex; }

.header-cta { display: inline-flex; }

.hamburger {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elevated); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Accessibility panel
   ========================================================================== */
.a11y-panel {
  position: fixed; top: 84px; right: 20px; z-index: 900;
  width: min(320px, calc(100vw - 40px));
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); overflow: hidden;
  animation: pop-in .18s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.a11y-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.a11y-panel__close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text-muted); }
.a11y-panel__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; font-size: .92rem; font-weight: 600; gap: 12px; }
.a11y-btn-group { display: flex; gap: 6px; }
.a11y-btn-group button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-muted);
  cursor: pointer; font-weight: 700; color: var(--text);
}
.a11y-switch input { width: 42px; height: 24px; appearance: none; background: var(--border); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; }
.a11y-switch input::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: var(--shadow-sm); }
.a11y-switch input:checked { background: var(--brand-600); }
.a11y-switch input:checked::before { transform: translateX(18px); }
.a11y-reset { align-self: flex-start; background: none; border: none; color: var(--brand-700); font-weight: 700; cursor: pointer; padding: 0; font-size: .88rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 0; }
.hero__blob--1 { width: 420px; height: 420px; background: var(--brand-500); top: -160px; right: -120px; }
.hero__blob--2 { width: 320px; height: 320px; background: var(--accent-500); bottom: -140px; left: -100px; opacity: .2; }
:root[data-contrast="high"] .hero__blob { display: none; }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero__copy { min-width: 0; }
.hero__lead { font-size: 1.08rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0; }
.hero__badges li { font-size: .85rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.hero__badges li::before { content: "✓"; color: var(--brand-600); font-weight: 800; }

.hero__art { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero__photo-card {
  width: 100%; max-width: 420px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out calc(var(--motion) * 1s) infinite;
}
.hero__photo-card img { width: 100%; height: auto; display: block; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--motion) * -14px)); } }

.scroll-hint { position: relative; margin: 10px auto 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); animation: bob 2s ease-in-out calc(var(--motion) * 1s) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--motion) * 6px)); } }

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.strip__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 26px 20px; }
.strip__item { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1 1 140px; }
.strip__item strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--brand-700); }
.strip__item span { font-size: .82rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 88px 0; }
.section--muted { background: var(--bg-muted); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0; }

.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about__art {
  position: relative; min-width: 0; padding: 28px 10px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 12px;
}
.about__copy { min-width: 0; }
.about__blob { position: absolute; inset: 4% 2%; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); opacity: .14; z-index: 0; }
.about__tag {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--text);
  background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transform: rotate(var(--tag-rot, 0deg)) translateY(var(--tag-y, 0));
  animation: tag-float 5.5s ease-in-out calc(var(--motion) * 1s) infinite;
  animation-delay: var(--tag-delay, 0s);
}
.about__tag svg { color: var(--brand-600); flex-shrink: 0; }
.about__tag--accent { background: linear-gradient(135deg, var(--accent-500), #ffdd7a); border-color: transparent; color: var(--brand-700); }
.about__tag--accent svg { color: var(--brand-700); }
.about__tag--brand { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); border-color: transparent; color: #fff; }
.about__tag--brand svg { color: #fff; }
.about__tag--1 { --tag-rot: -6deg; --tag-y: 10px; --tag-delay: 0s; align-self: flex-start; }
.about__tag--2 { --tag-rot: 4deg; --tag-y: -14px; --tag-delay: .6s; align-self: flex-end; }
.about__tag--3 { --tag-rot: -3deg; --tag-y: 4px; --tag-delay: 1.1s; align-self: center; }
.about__tag--4 { --tag-rot: 5deg; --tag-y: -8px; --tag-delay: .3s; align-self: flex-start; }
.about__tag--5 { --tag-rot: -8deg; --tag-y: 14px; --tag-delay: .9s; align-self: flex-end; }
.about__tag--6 { --tag-rot: 3deg; --tag-y: -4px; --tag-delay: 1.4s; align-self: center; }
.about__tag--7 { --tag-rot: -4deg; --tag-y: 8px; --tag-delay: .2s; align-self: flex-end; }
@keyframes tag-float {
  0%, 100% { transform: rotate(var(--tag-rot, 0deg)) translateY(var(--tag-y, 0)); }
  50% { transform: rotate(var(--tag-rot, 0deg)) translateY(calc(var(--tag-y, 0px) - var(--motion) * 12px)); }
}
:root[data-contrast="high"] .about__tag { animation: none; transform: none; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; font-weight: 500; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-size: .72rem; display: flex; align-items: center; justify-content: center;
}

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand-500) 45%, var(--border)); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--brand-500) 16%, transparent); color: var(--brand-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card p { margin: 0; font-size: .94rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 22px; position: relative; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(120deg, var(--brand-500), var(--brand-700)); color: #fff; font-weight: 800; font-family: var(--font-heading); margin-bottom: 14px;
}
.step p { margin: 0; font-size: .92rem; }

.ig-carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.ig-carousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 14px; scrollbar-width: none; flex: 1; min-width: 0;
}
.ig-carousel__track::-webkit-scrollbar { display: none; }
.ig-carousel__slide { flex: 0 0 auto; width: min(360px, 82vw); scroll-snap-align: start; display: flex; justify-content: center; }
.ig-carousel__slide iframe { border-radius: var(--radius-md) !important; }
.ig-carousel__nav {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s var(--ease);
}
.ig-carousel__nav:hover { color: var(--brand-700); transform: scale(1.06); }
.ig-carousel__follow { display: flex; justify-content: center; margin-top: 28px; }

@media (max-width: 640px) {
  .ig-carousel__nav { display: none; }
}

.clients-strip { padding-top: 0; padding-bottom: 8px; }
.clients-strip__label { text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--text-muted); margin-bottom: 28px; }
.clients-strip__row { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 3vw, 26px); flex-wrap: wrap; }
.clients-strip__row img {
  width: clamp(76px, 9vw, 108px); height: clamp(76px, 9vw, 108px); border-radius: 50%; object-fit: cover;
  border: 4px solid var(--bg-elevated); box-shadow: var(--shadow-md); transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.clients-strip__row img:hover { transform: translateY(-4px) scale(1.06); border-color: var(--brand-500); }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { margin: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; }
.testimonial p { color: var(--text); font-size: .96rem; font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 700; font-size: .84rem; color: var(--brand-700); }

.google-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: .88rem; font-weight: 600; color: var(--text); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease);
}
.google-badge:hover { transform: translateY(-2px); }
.testimonial-cta { display: flex; justify-content: center; margin-top: 32px; }

.location { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; }
.location__map {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); min-height: 320px;
  background: var(--bg-elevated); box-shadow: var(--shadow-sm); min-width: 0;
}
.location__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.15); }
:root[data-theme="dark"] .location__map iframe { filter: grayscale(.25) invert(.9) hue-rotate(180deg); }
.location__info {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.location__info h3 { font-size: 1rem; margin-top: 14px; }
.location__info h3:first-child { margin-top: 0; }
.location__info > p a { color: var(--brand-700); font-weight: 600; }
.hours-list { list-style: none; margin: 8px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.hours-list li span:first-child { color: var(--text-muted); }
.hours-list li span:last-child { font-weight: 700; }
.location__info .btn { align-self: flex-start; }

.cta-band { background: linear-gradient(120deg, var(--brand-700), var(--brand-500)); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-band__phone { color: #fff; font-weight: 700; font-size: 1.05rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col { min-width: 0; }
.footer-col p { font-size: .9rem; max-width: 34ch; }
.footer-col h3 { font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-links a:hover { color: var(--brand-600); }
.brand--footer { margin-bottom: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 20px; text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px;
}
.footer-bottom p { margin: 0; font-size: .82rem; }
.footer-bottom__credit a { color: var(--brand-700); font-weight: 600; }
.footer-bottom__credit a:hover { text-decoration: underline; }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 600; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(0,0,0,.4); transition: transform .2s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab__pulse {
  position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .55;
  animation: pulse 2.2s calc(var(--motion) * 1s) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(calc(1 + var(--motion) * .8)); opacity: 0; } }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(calc(var(--motion) * 24px)); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__art { order: -1; min-height: 240px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .location { grid-template-columns: 1fr; }
  .location__map { min-height: 260px; }
}

/* Cabeçalho: 6 links + ações não cabem numa linha só a partir daqui —
   vira menu hamburguer bem antes do breakpoint do hero para não estourar. */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed; top: 76px; right: 0; left: 0; height: calc(100vh - 76px); background: var(--bg); border-top: 1px solid var(--border);
    padding: 24px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 400; overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { max-width: none; margin-inline: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .a11y-panel { top: auto; bottom: 96px; right: 16px; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ==========================================================================
   Modal de contato (antes do WhatsApp)
   ========================================================================== */
.wa-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wa-modal[hidden] { display: none; }
.wa-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 32, .55); backdrop-filter: blur(2px); }
.wa-modal__dialog {
  position: relative; z-index: 1; width: min(420px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--bg-elevated); border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 28px 24px 24px;
}
.wa-modal__dialog h3 { margin: 0 0 8px; font-size: 1.15rem; }
.wa-modal__dialog p { margin: 0 0 18px; color: var(--text-muted); font-size: .9rem; }
.wa-modal__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.1rem;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wa-modal__close:hover { border-color: var(--brand-500); color: var(--brand-700); }
.wa-modal__field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.wa-modal__field-label { display: inline-flex; align-items: baseline; gap: 4px; }
.wa-modal__field-optional { font-weight: 500; color: var(--text-muted); text-transform: none; }
.wa-modal__field input,
.wa-modal__field textarea {
  font: inherit; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); resize: vertical;
}
.wa-modal__field input:focus,
.wa-modal__field textarea:focus { outline: 2px solid var(--brand-500); outline-offset: 1px; }
.wa-modal__field input.is-invalid,
.wa-modal__field textarea.is-invalid { border-color: #d64545; }
.wa-modal__field input.is-invalid:focus,
.wa-modal__field textarea.is-invalid:focus { outline-color: #d64545; }
.wa-modal__error { display: none; font-size: .78rem; font-weight: 600; color: #d64545; margin-top: -8px; }
.wa-modal__error.is-visible { display: block; }

.wa-modal__consent {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400;
}
.wa-modal__consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--brand-600); }
.wa-modal__consent span { display: flex; flex-direction: column; gap: 2px; }
.wa-modal__consent strong { font-size: .85rem; color: var(--text); }
.wa-modal__consent small { font-size: .8rem; font-weight: 500; color: var(--text-muted); line-height: 1.35; }
.wa-modal__consent:has(input.is-invalid) { border-color: #d64545; }
.wa-modal__actions { margin-top: 4px; }
.wa-modal__actions .btn { width: 100%; justify-content: center; }
:root[data-contrast="high"] .wa-modal__backdrop { background: rgba(0, 0, 0, .75); }
