:root {
  --navy-900: #0f172a;
  --navy-700: #1e293b;
  --gray-100: #f8fafc;
  --gray-300: #cbd5e1;
  --blue-glow: rgba(147, 197, 253, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Smooth touch scrolling and responsive image defaults */
body {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reduce heavy visuals on small screens for smoother performance */
@media (max-width: 640px) {
  .glass-card,
  .service-card,
  .showcase-image-shell {
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
    border-radius: 0.9rem;
  }

  .portfolio-carousel {
    padding: 0.85rem;
  }

  .portfolio-carousel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .portfolio-carousel-controls {
    justify-content: flex-end;
  }

  .portfolio-carousel-track {
    grid-auto-columns: minmax(12.75rem, 84vw);
  }

  .insta-card {
    min-height: 250px;
  }

  .portfolio-modal-panel {
    padding: 0.8rem;
    border-radius: 1.1rem;
  }

  .portfolio-modal-title {
    font-size: 0.86rem;
  }

  .footer-btn { transform: none; }
}

body {
  min-height: 100vh;
  /* Mantem o degrade do site e ancora a imagem nova no topo da pagina */
  background:
    linear-gradient(to bottom, rgba(59, 130, 246, 0.16) 0%, rgba(96, 165, 250, 0.22) 24%, #93c5fd 58%, #f8fbff 100%),
    url('fundo1.jpg') top center / 100% auto no-repeat,
    linear-gradient(to bottom, #60a5fa 0%, #93c5fd 28%, #bfdbfe 62%, #f8fbff 100%);
  background-color: #60a5fa;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(120deg, rgba(15, 23, 42, 0.04) 0%, rgba(255, 255, 255, 0.1) 48%, rgba(15, 23, 42, 0.03) 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 48px, rgba(255, 255, 255, 0.12) 49px, transparent 50px);
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.1) 100%);
}

.page-fade {
  /* removido overlay de faixas superiores/inferiores */
  display: none !important;
}

.brand-mini-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 3rem;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 40% 30%, rgba(248, 250, 252, 0.65), rgba(226, 232, 240, 0.35));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.brand-mini-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(238, 244, 255, 0.45), transparent 58%),
    linear-gradient(to bottom, transparent 60%, rgba(226, 232, 240, 0.28) 100%);
}

.brand-mini-icon {
  display: block;
  width: 100%;
  height: auto;
  max-height: 2.8rem;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.18) contrast(1.16) brightness(0.95);
  mix-blend-mode: darken;
}

.nav-links {
  padding: 0.28rem;
  gap: 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.56), rgba(248, 250, 252, 0.3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.08);
}

.nav-link-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  padding: 0.54rem 1.02rem;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.06),
    0 3px 8px rgba(15, 23, 42, 0.08);
  transition:
    color 0.24s ease,
    background-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.nav-link-item::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0.26rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.1), rgba(59, 130, 246, 0.72), rgba(30, 41, 59, 0.1));
  transform: scaleX(0.35);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-link-item:hover {
  color: #0b2242;
  background: linear-gradient(140deg, rgba(239, 246, 255, 0.96), rgba(191, 219, 254, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(30, 64, 175, 0.08),
    0 10px 22px rgba(30, 64, 175, 0.22);
  transform: translateY(-2px);
  filter: saturate(1.04);
}

.nav-link-item:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(15, 23, 42, 0.1),
    0 3px 8px rgba(15, 23, 42, 0.08);
}

.nav-link-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(30, 64, 175, 0.42);
}

.budget-pulse {
  position: relative;
  overflow: hidden;
  animation: budgetPulse 1.6s ease-in-out infinite;
}

.budget-pulse:hover {
  animation-play-state: paused;
}

.hero-title {
  max-width: 12.5ch;
  letter-spacing: -0.04em;
}

.hero-title-base {
  display: block;
  color: #0f172a;
  /* Sombra fina e discreta para dar leve profundidade 3D */
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 3px 6px rgba(209,213,219,0.32);
}

.hero-title-highlight {
  display: block;
  margin-top: 0.08em;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: 0.72em;
  line-height: 1.08;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4ed8;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-copy {
  max-width: 36rem;
}

.section-kicker,
.section-title {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
}

/* Kicker (rótulos das seções) em branco */
.section-kicker {
  color: #ffffff !important;
}

.section-title {
  letter-spacing: 0.02em;
}

.section-copy {
  font-size: 0.98rem;
  line-height: 1.65;
}

.service-card-title {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-card-copy {
  font-size: 0.88rem;
  line-height: 1.55;
}

@keyframes budgetPulse {
  0%,
  100% {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    filter: saturate(1);
  }
  50% {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    filter: saturate(0.95);
  }
}

/* Prevent text overflow in hero stats on small screens */
@media (max-width: 640px) {
  .hero-reveal .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .hero-reveal .glass-card p {
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
  }
}
.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.service-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.2);
  border-color: rgba(191, 219, 254, 0.95);
}

/* Marca sutil 'clique' sobre os cards de serviço */
#servicos .service-card {
  position: relative;
  overflow: hidden;
}

#servicos .service-card::after {
  content: "CLIQUE";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.8rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: rgba(15,23,42,0.08); /* mais visível */
  text-transform: uppercase;
  letter-spacing: 0.18em;
  pointer-events: none;
  z-index: 6;
}

@media (max-width: 640px) {
  #servicos .service-card::after { font-size: 1rem; bottom: 0.6rem; }
}

.service-flip-card {
  position: relative;
  min-height: 210px;
  cursor: pointer;
  perspective: 1100px;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, filter 0.32s ease;
}

.service-flip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 38%, rgba(191, 219, 254, 0.18) 62%, transparent 100%);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.service-flip-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(30, 64, 175, 0.35), 0 18px 42px rgba(15, 23, 42, 0.16);
}

.service-flip-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
  border-color: rgba(191, 219, 254, 0.95);
  filter: saturate(1.03);
}

.service-flip-card:hover::before {
  opacity: 1;
}

.service-flip-inner {
  position: relative;
  min-height: 210px;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-flip-card.is-flipped .service-flip-inner {
  transform: rotateY(180deg);
}

.service-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  transition: background 0.32s ease, transform 0.32s ease;
}

.service-flip-card:hover .service-front {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.58));
  transform: translateY(-1px);
}

.service-back {
  transform: rotateY(180deg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  border-radius: inherit;
}

.service-back img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(160deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.75));
  transform: scale(1);
  transition: transform 0.55s ease;
  border-radius: inherit;
}

.service-flip-card:hover .service-back img {
  transform: scale(1.08);
}

.service-flip-card.is-flipped .service-back img {
  transform: scale(1.25);
}

.service-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.2));
}

.service-back span {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-carousel {
  padding: 1rem;
  border-radius: 1.5rem;
}

.image-carousel {
  margin-top: 1.2rem;
}

.portfolio-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portfolio-carousel-copy {
  max-width: 38rem;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.portfolio-carousel-controls {
  display: flex;
  gap: 0.7rem;
}

.portfolio-nav-btn {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(219,234,254,0.72));
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.portfolio-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 18.5rem);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.portfolio-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.portfolio-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.28);
  border-radius: 999px;
}

.insta-card {
  position: relative;
  min-height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: end start;
  padding: 0.8rem;
  color: #f8fafc;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
  text-align: left;
  scroll-snap-align: start;
  isolation: isolate;
}

.portfolio-card {
  cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(148,163,184,0.08));
}

.gallery-image-card {
  min-height: 300px;
}

.gallery-image-card img {
  object-fit: cover;
  object-position: center;
}

.portfolio-card:focus-visible {
  outline: 3px solid rgba(59,130,246,0.35);
  outline-offset: 4px;
}

.insta-card::before {
  content: none;
}

.insta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.15));
}

/* Remove overlay and hover transforms for specific cards that should show raw video */
.insta-card.no-overlay::after {
  content: none !important;
  background: none !important;
}

.insta-card.no-overlay video {
  filter: none !important;
}

.insta-card.no-overlay:hover video {
  transform: none !important;
}

.insta-card span {
  position: relative;
  z-index: 2;
}

.portfolio-card span::after {
  content: "Abrir vídeo";
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.78);
}

.insta-card img,
.insta-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-image-card span::after {
  content: "Abrir imagem";
}

.insta-card:hover img,
.insta-card:hover video {
  transform: scale(1.08);
}

.portfolio-modal[hidden] {
  display: none;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
}

.portfolio-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  border-radius: 1.5rem;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(15,23,42,0.94), rgba(30,41,59,0.88));
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.42);
}

.portfolio-modal-title {
  margin: 0 0 0.8rem;
  padding-right: 3rem;
  color: #eff6ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
}

.portfolio-modal-video {
  display: block;
  width: 100%;
  max-height: min(76vh, 760px);
  border-radius: 1rem;
  background: #020617;
}

.portfolio-modal-image {
  display: block;
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 1rem;
  background: #020617;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 15px 30px rgba(21, 128, 61, 0.38);
  animation: pulse 1.8s ease-out infinite;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.7s ease forwards;
}

.hero-reveal-delay {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.7s ease 0.2s forwards;
}

.showcase-wrap {
  position: relative;
}

@media (max-width: 767px) {
  /* No mobile, a imagem de topo vira uma faixa alta até perto do texto inicial */
  .showcase-wrap {
    min-height: clamp(22rem, 64vh, 32rem);
    padding-top: 8.75rem !important;
    padding-bottom: 1.5rem !important;
    display: flex;
    align-items: flex-end;
    background:
      linear-gradient(to bottom, rgba(96, 165, 250, 0.14) 0%, rgba(191, 219, 254, 0.08) 58%, rgba(59, 130, 246, 0.2) 100%),
      url('fundo1.jpg') 78% 22% / cover no-repeat;
    border-radius: 0 0 1.2rem 1.2rem;
  }

  .showcase-wrap > div {
    width: 100%;
  }

  .showcase-image-shell {
    margin-bottom: 1.5rem;
  }

  body {
    background:
      linear-gradient(to bottom, #60a5fa 0%, #93c5fd 28%, #bfdbfe 62%, #f8fbff 100%);
  }
}

.showcase-image-shell {
  position: relative;
  margin: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  isolation: isolate;
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  animation: showcaseIn 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.28s forwards;
}

.showcase-image-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.45), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(191, 219, 254, 0.35), transparent 36%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.28));
}

.showcase-image-shell::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(238, 244, 255, 0.96) 0%, rgba(238, 244, 255, 0.58) 8%, transparent 18%),
    linear-gradient(to left, rgba(226, 232, 240, 0.95) 0%, rgba(226, 232, 240, 0.56) 8%, transparent 18%),
    radial-gradient(circle at 0% 50%, rgba(238, 244, 255, 0.72), transparent 36%),
    radial-gradient(circle at 100% 50%, rgba(226, 232, 240, 0.68), transparent 36%);
  filter: blur(8px);
}

/* Remover retângulo decorativo atrás do logo inicial (showcase) */
.showcase-image-shell::before,
.showcase-image-shell::after {
  display: none !important;
}

.showcase-image {
  display: block;
  width: auto;
  max-width: 520px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  -webkit-mask-composite: unset !important;
  mask-composite: unset !important;
}

.showcase-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  margin: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.26));
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ajuste: evitar que a imagem do showcase estoure em telas pequenas */
@media (max-width: 640px) {
  .showcase-wrap {
    background-position: 78% 18% !important;
  }

  .showcase-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .showcase-image-shell {
    padding: 0.5rem !important;
    border-radius: 1rem !important;
    margin-bottom: 10rem !important;
    transform: translateY(-2.4rem) scale(0.99) !important;
  }

  .showcase-caption {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.6rem;
  }
}

@keyframes showcaseIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55), 0 15px 30px rgba(21, 128, 61, 0.38);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0), 0 15px 30px rgba(21, 128, 61, 0.38);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 15px 30px rgba(21, 128, 61, 0.38);
  }
}

@media (min-width: 640px) {
  .brand-mini-icon-wrap {
    width: 3.2rem;
    height: 3.2rem;
  }

  .portfolio-carousel {
    padding: 1.2rem;
  }

  .portfolio-carousel-track {
    grid-auto-columns: minmax(16rem, 21rem);
  }

  .insta-card {
    min-height: 340px;
  }

  .whatsapp-float {
    right: 1.4rem;
    bottom: 1.4rem;
  }

  .showcase-caption {
    left: 1.3rem;
    right: auto;
    bottom: 1.3rem;
    max-width: min(75%, 520px);
    font-size: 0.82rem;
  }
}

/* Efeito de profundidade para elementos clicáveis (intensificado) */
.depth-effect,
a.button, button, .budget-pulse, .footer-btn, .nav-link-item, .whatsapp-float {
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms cubic-bezier(.2,.8,.2,1), background-color 200ms ease;
  will-change: transform, box-shadow;
  box-shadow: 0 12px 30px rgba(2,6,23,0.24);
  transform: translateY(0);
}

.depth-effect:hover,
.budget-pulse:hover, .nav-link-item:hover, .whatsapp-float:hover, button:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(2,6,23,0.28);
}

.depth-effect:active,
.budget-pulse:active, .nav-link-item:active, .whatsapp-float:active, button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(2,6,23,0.18) inset;
}

.depth-effect:focus-visible,
.budget-pulse:focus-visible, .nav-link-item:focus-visible, .whatsapp-float:focus-visible, button:focus-visible {
  outline: 3px solid rgba(99,102,241,0.16);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .depth-effect,
  a.button, button, .budget-pulse, .nav-link-item, .whatsapp-float {
    transform: none !important;
    box-shadow: 0 8px 20px rgba(2,6,23,0.14) !important;
  }
}

@media (max-width: 767px) {
  /* Mostrar links de âncoras no header em telas pequenas e ajustar espaçamento */
  header nav a[href^="#"] {
    display: inline-flex !important;
    padding: 0.36rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(140deg, rgba(255,255,255,0.9), rgba(241,245,249,0.6));
    color: rgba(15,23,42,0.9);
    margin-right: 0.25rem;
    font-weight: 600;
  }

  header nav .nav-links {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0.48rem;
    align-items: center;

  /* Ajuste do link de marca para evitar corte e criar visual mais largo */
  header > nav a {
    gap: 0.9rem; /* mais espaço horizontal */
    padding: 0.28rem 0.6rem;
    align-items: center;
  }
  }
}

/* Mobile: stack header elements to avoid crowding */
@media (max-width: 767px) {
  header > nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  header > nav a[aria-label^="Ohana"], header > nav .brand-mini-icon-wrap {
    order: 1;
  }

  header > nav .nav-links {
    order: 2;
    width: 100%;
    justify-content: center;
    padding: 0.2rem 0.25rem;
    background: transparent;
  }

  header > nav .budget-pulse {
    order: 3;
  }

  header > nav .nav-links a { margin: 0 0.25rem; }
}

/* Amplificar presença da marca no topo em telas pequenas */
@media (max-width: 767px) {
  .brand-mini-icon-wrap {
    width: 5.2rem;
    height: 2.8rem;
    border-radius: 0.6rem;
  }

  header > nav a span .text-xs {
    font-size: 0.92rem; /* 'Ohana' maior */
    letter-spacing: 0.18em;
    color: var(--navy-700);
  }

  header > nav a span .text-sm {
    font-size: 0.95rem; /* subtítulo 'Vidros e Espelhos' maior */
    font-weight: 800;
    color: var(--navy-900);
  }

  /* Forçar os links principais um ao lado do outro, com scroll se necessário */
  header nav .nav-links {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding-inline: 0.5rem;
  }

  header nav .nav-links::-webkit-scrollbar { height: 6px; }
  header nav .nav-links::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.08); border-radius: 999px; }
}

/* Ajustes adicionais para evitar corte dos botões */
@media (max-width: 767px) {
  .nav-link-item {
    min-width: auto;
    padding: 0.38rem 0.72rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .brand-mini-icon-wrap { margin-right: 0.5rem; }

  header > nav { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .budget-pulse {
    animation: none !important;
    background: #0f172a;
    color: #ffffff;
  }
}

/* Mostrar somente a imagem da logo, mantendo o tamanho original */
.brand-mini-icon-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0.55rem !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 4.4rem !important;
  height: 2.6rem !important;
  display: grid !important;
  place-items: center !important;
}

.brand-mini-icon-wrap::after {
  display: none !important;
}

.brand-mini-icon {
  filter: none !important;
  mix-blend-mode: normal !important;
  max-height: 2.4rem !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 767px) {
  header > nav a[aria-label^="Ohana"] {
    width: 100%;
    justify-content: center;
    margin-right: 0;
    border-radius: 0.9rem;
  }
}

/* Forçar texto branco em trechos específicos conforme solicitado */
#inicio .hero-copy {
  color: #ffffff !important;
}

#servicos .mb-10 > .section-copy {
  color: #ffffff !important;
}

/* Header hide/show on scroll for mobile */
@media (max-width: 767px) {
  header.sticky {
    will-change: transform;
    transition: none; /* animation handled by JS for smooth per-frame motion */
    backface-visibility: hidden;
  }

  header.sticky.header-hidden {
    transform: translateY(-120%);
    pointer-events: none;
    opacity: 0.98;
  }

  /* When hidden, keep a small visual gap to avoid jump with content */
  body.header-space-padding {
    padding-top: 0.6rem;
  }
}

/* Footer buttons: Instagram, WhatsApp, Voltar ao topo */
.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 12rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}

.footer-btn:hover { transform: translateY(-6px) scale(1.02); }
.footer-btn:active { transform: translateY(-2px); }
.footer-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,0.92), 0 0 0 8px rgba(30,64,175,0.14); }

.footer-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }

.btn-instagram {
  /* Instagram multi-stop gradient similar to brand */
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 20%, #d62976 40%, #962fbf 60%, #4f5bd5 90%);
  box-shadow: 0 20px 40px rgba(214,45,118,0.12), 0 6px 18px rgba(79,91,213,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-instagram svg { filter: drop-shadow(0 8px 24px rgba(214,45,118,0.12)); }

.btn-whatsapp {
  background: linear-gradient(180deg, #25D366 0%, #1DA851 100%);
  box-shadow: 0 20px 40px rgba(37,211,102,0.12), 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.btn-top {
  background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(30,41,59,0.96));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}

.btn-label {
  display: inline-block;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1;
  color: #ffffff;
  text-transform: none;
}

/* small helper for screen-reader-only text */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 780px) {
  .footer-btn { min-width: 9rem; padding: 0.7rem 0.8rem; font-size: 0.98rem; }
}

footer .footer-address {
  margin-top: 0.15rem;
  /* herda fonte, tamanho, peso e cor do elemento pai (mesma tipografia do copy) */
  font: inherit;
  color: inherit;
}

/* Sobre a Ohana: fundo escuro, texto centralizado e fonte branca */
#sobre .glass-card {
  background: linear-gradient(180deg, #071027 0%, #0f172a 70%);
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
}

#sobre .glass-card .text-xs {
  color: rgba(255,255,255,0.78) !important;
}

#sobre .section-title {
  color: #ffffff !important;
  display: inline-block;
}

#sobre .section-copy {
  color: rgba(255,255,255,0.92) !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;
}

#sobre .section-copy p {
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Logo de fundo translúcido no cartão 'Sobre a Ohana' */
#sobre .glass-card {
  position: relative;
  overflow: hidden;
}

#sobre .glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('logo-novo2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 85% auto;
  opacity: 0.06;
  /* inverter cores do logo */
  filter: invert(1) grayscale(1) brightness(1.2) contrast(1.02);
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}

/* Ocultar o pseudo-elemento que desenha o retângulo/logo no cartão 'Sobre' */
#sobre .glass-card::before { display: none !important; }

#sobre .glass-card > * { position: relative; z-index: 2; }

@media (max-width: 640px) {
  #sobre .section-copy { padding: 0 0.5rem; }
}

/* (revertido) */
