/*
Theme Name: Motokao Moto Center
Theme URI: https://motokao.com.br
Author: Vidoretto
Description: Tema personalizado Motokao Moto Center — loja de pecas e oficina em Araras, SP
Version: 1.0.0
License: Proprietary
Text Domain: motokao
*/

:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --surface: #161616;
  --white: #ffffff;
  --text: #ececea;
  --text-muted: #9a9a96;
  --red: #e20a17;
  --red-dark: #b00812;
  --red-glow: rgba(226, 10, 23, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --font-display: "Saira Condensed", sans-serif;
  --font-body: "Hind", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.menu-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.speed-lines {
  position: fixed;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 80px,
    rgba(226, 10, 23, 0.02) 80px,
    rgba(226, 10, 23, 0.02) 81px
  );
  mask-image: linear-gradient(to left, black 0%, transparent 70%);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  height: var(--header-h);
  isolation: isolate;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 10;
}

.logo-mark {
  width: 40px;
  height: 40px;
  color: var(--red);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.logo-text small {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--red);
  color: var(--white) !important;
  border-radius: 2px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  position: relative;
  z-index: 10003;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s;
}

.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 24px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-arc {
  position: absolute;
  top: 50%;
  right: -15%;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at 30% 30%, rgba(226, 10, 23, 0.08), transparent 55%);
}

.hero-arc::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(226, 10, 23, 0.2);
}

.hero-arc::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 3px;
  height: 18%;
  background: var(--red);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-35deg);
  box-shadow: 0 0 20px var(--red-glow);
  border-radius: 2px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(226, 10, 23, 0.4);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title-line {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-title-accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
  margin-top: -0.05em;
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.hero-lead {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-lead strong {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 520px;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-stats dd {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-plus {
  color: var(--red);
  font-size: 1.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.section-text {
  color: var(--text-muted);
  max-width: 36rem;
}

.section-text strong {
  color: var(--white);
  font-weight: 600;
}

.sobre {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.sobre-visual {
  position: relative;
}

.sobre-frame {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out);
}

.sobre-frame:hover {
  border-color: var(--border-strong);
}

.sobre-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  opacity: 0.22;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

.sobre-frame:hover .sobre-photo {
  opacity: 1;
}

.sobre-year {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s var(--ease-out);
}

.sobre-frame:hover .sobre-year {
  opacity: 0;
}

.sobre-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--red);
  transform: skewX(-8deg) translateY(50%);
  z-index: 3;
}

.sobre-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.sobre-quote {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--red);
}

.sobre-quote p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  letter-spacing: 0.04em;
}

.servicos {
  background: var(--bg-elevated);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s var(--ease-out);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.card:hover::before {
  width: 100%;
}

.card-media {
  position: relative;
  height: 11.5rem;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-card) 0%,
    rgba(20, 20, 20, 0.4) 35%,
    rgba(20, 20, 20, 0.15) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(55%) contrast(1.08) brightness(0.88);
  transition: transform 0.65s var(--ease-out), filter 0.5s var(--ease-out);
}

.card:hover .card-media img {
  transform: scale(1.04);
  filter: grayscale(10%) contrast(1.05) brightness(0.95);
}

.card-body {
  padding: 1.35rem 1.5rem 1.6rem;
  flex: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-body p strong {
  color: var(--white);
}

.card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(226, 10, 23, 0.35);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.65rem;
}

.card-highlight {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(226, 10, 23, 0.05) 100%);
}

.card-highlight .card-media {
  height: 100%;
  min-height: 13.5rem;
}

.card-highlight .card-media::after {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(20, 20, 20, 0.35) 55%,
    var(--bg-card) 100%
  );
}

.card-highlight .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 2rem;
}

.card-highlight .card-body h3 {
  font-size: 1.4rem;
}

.diferenciais-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
}

.diferenciais-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: padding-left 0.35s var(--ease-out);
}

.diferenciais-list li:hover {
  padding-left: 0.5rem;
}

.dif-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(226, 10, 23, 0.25);
  line-height: 1;
}

.diferenciais-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.diferenciais-list p {
  color: var(--text-muted);
  max-width: 40rem;
}

.atacado {
  padding: 0;
}

.atacado-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--surface) 55%, rgba(226, 10, 23, 0.06) 100%);
  color: var(--text);
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.atacado-content {
  padding: 3.5rem;
}

.atacado-content .section-label {
  color: var(--red);
}

.atacado-content .section-title {
  color: var(--white);
}

.atacado-content .section-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.atacado-content .section-text strong {
  color: var(--white);
}

.atacado-visual {
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.atacado-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 2rem;
}

.atacado-blocks span {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transform: rotate(45deg);
  transition: background 0.3s, border-color 0.3s;
}

.atacado-blocks span:nth-child(odd) {
  background: rgba(226, 10, 23, 0.15);
  border-color: rgba(226, 10, 23, 0.3);
}

.atacado-inner:hover .atacado-blocks span {
  border-color: var(--red);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: stretch;
}

.contato-map {
  display: flex;
  min-height: 100%;
}

.contato-address {
  font-style: normal;
  margin: 1.5rem 0;
}

.contato-address strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.4;
}

.horario-status {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  margin-bottom: 2rem;
  max-width: 28rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.35s;
}

.horario-status-dot {
  width: 11px;
  height: 11px;
  margin-top: 0.3rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
  box-shadow: 0 0 0 0 transparent;
  transition: background 0.35s, box-shadow 0.35s;
}

.horario-status.is-open {
  border-color: rgba(34, 197, 94, 0.35);
}

.horario-status.is-open .horario-status-dot {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.55);
}

.horario-status.is-closed {
  border-color: rgba(226, 10, 23, 0.35);
}

.horario-status.is-closed .horario-status-dot {
  background: var(--red);
  box-shadow: 0 0 14px var(--red-glow);
}

.horario-status.is-soon {
  border-color: rgba(234, 179, 8, 0.4);
}

.horario-status.is-soon .horario-status-dot {
  background: #eab308;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.5);
  animation: status-pulse 1.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.horario-status-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.horario-status.is-open .horario-status-label {
  color: #4ade80;
}

.horario-status.is-closed .horario-status-label {
  color: #f87171;
}

.horario-status.is-soon .horario-status-label {
  color: #facc15;
}

.horario-status-detail {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contato-phones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.phone-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.phone-card:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.phone-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phone-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.phone-whatsapp:hover .phone-number {
  color: #25d366;
}

.map-frame {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 32rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) invert(92%) hue-rotate(180deg) contrast(88%) brightness(0.95);
  transition: filter 0.4s;
}

.map-frame:hover iframe {
  filter: grayscale(40%) invert(92%) hue-rotate(180deg) contrast(92%) brightness(1);
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(8, 8, 8, 0.95));
  pointer-events: none;
}

.map-overlay p {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.video-section {
  background: var(--bg-elevated);
}

.video-header {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.video-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.video-embed {
  position: absolute;
  inset: 0;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.instagram-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  overflow: hidden;
}

.instagram-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.instagram-profile {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.instagram-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
  color: var(--white);
}

.instagram-avatar svg {
  width: 36px;
  height: 36px;
}

.instagram-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.btn-instagram {
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(220, 39, 67, 0.35);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(220, 39, 67, 0.45);
}

.instagram-feed {
  min-height: 200px;
}

.instagram-feed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-muted);
}

.instagram-feed-loading.hidden {
  display: none;
}

.instagram-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.instagram-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
}

.instagram-grid-item:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.instagram-grid-item a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.instagram-grid-item .ig-media {
  position: absolute;
  inset: 0;
}

.instagram-grid-item .ig-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.4s;
  filter: grayscale(30%);
}

.instagram-grid-item:hover .ig-media img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.instagram-grid-item .ig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(145deg, var(--bg-card), rgba(226, 10, 23, 0.08));
  color: var(--text-muted);
  transition: opacity 0.35s;
}

.instagram-grid-item .ig-placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.instagram-grid-item .ig-placeholder span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.instagram-grid-item .ig-media.has-thumb .ig-placeholder {
  opacity: 0;
  pointer-events: none;
}

.instagram-grid-item .ig-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(transparent, rgba(8, 8, 8, 0.92));
  pointer-events: none;
}

.instagram-grid-item .ig-caption-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.instagram-grid-item .ig-caption-icon {
  display: flex;
  color: var(--red);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.instagram-grid-item .ig-caption-icon svg {
  width: 20px;
  height: 20px;
}

.instagram-grid-item:hover .ig-caption-icon {
  opacity: 1;
  transform: translateY(0);
}

.instagram-fallback {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.instagram-fallback-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.instagram-fallback-card:hover {
  border-color: rgba(220, 39, 67, 0.5);
  color: var(--white);
}

.instagram-fallback-card svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.instagram-fallback-card span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-social a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #e6683c;
}

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--red);
  margin-top: 0.15rem;
}

.footer-founder,
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (max-width: 900px) {
  .sobre-grid,
  .contato-grid,
  .atacado-inner {
    grid-template-columns: 1fr;
  }

  .instagram-grid,
  .instagram-fallback {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card-highlight {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .card-highlight .card-media {
    min-height: 11.5rem;
  }

  .card-highlight .card-media::after {
    background: linear-gradient(
      to top,
      var(--bg-card) 0%,
      rgba(20, 20, 20, 0.4) 40%,
      rgba(20, 20, 20, 0.15) 100%
    );
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hero-stats dd {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s var(--ease-out), opacity 0.25s, visibility 0.4s;
    z-index: 10002;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .hero-scroll {
    display: none;
  }

  .diferenciais-list li {
    grid-template-columns: 56px 1fr;
    gap: 1rem;
  }

  .atacado-content {
    padding: 2rem;
  }

  .atacado-visual {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .instagram-grid,
  .instagram-fallback {
    grid-template-columns: 1fr;
  }

  .instagram-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-frame {
    min-height: 22rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-line {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}
