/* ===========================
   Codorna Film — Estética Automotiva
   =========================== */

:root {
  --primary: #141414;
  --secondary: #414246;
  --accent: #b31610;
  --accent-light: #d81e17;
  --light: #ededed;
  --white: #ffffff;
  --grey: #5c5c5c;
  --text-dark: #1c1c1c;
  --success: #4caf50;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section--light {
  background: var(--light);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--grey);
}

.section--dark p,
.section--dark .grey-on-dark {
  color: #c9c9c9;
}

.lede {
  font-size: 1.1rem;
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-light);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  border-color: rgba(20, 20, 20, 0.25);
  color: var(--text-dark);
}

.btn--outline-dark:hover {
  border-color: var(--text-dark);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */

.topbar {
  background: #0a0a0a;
  color: #cfcfcf;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  color: #cfcfcf;
}

.topbar a:hover {
  color: var(--white);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand__tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 12px;
  line-height: 1.3;
}

.brand__tag span {
  display: block;
  color: #9a9a9a;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a {
  color: #e7e7e7;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--white);
  min-width: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 70vh;
  overflow-y: auto;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  display: flex;
}

.dropdown a {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}

.dropdown a:hover {
  background: var(--light);
}

.dropdown a::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  display: block;
  transition: 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--primary) 0%, #1d1d1d 100%);
  color: var(--white);
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Spotlight que acompanha o cursor, como uma luz de inspeção sobre a pintura. */
.hero--spotlight {
  --spot-x: 25%;
  --spot-y: 35%;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--spot-x) var(--spot-y),
    rgba(179, 22, 16, 0.32),
    rgba(179, 22, 16, 0.1) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.hero--spotlight.is-active .hero__glow {
  opacity: 1;
}

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

@media (max-width: 760px) {
  .hero__glow {
    display: none;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--white);
}

.hero__stat span {
  color: #a9a9a9;
  font-size: 0.85rem;
}

.hero--page {
  padding: 54px 0;
}

.hero--page .hero__grid {
  grid-template-columns: 1fr;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #a9a9a9;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #a9a9a9;
}

.breadcrumb a:hover {
  color: var(--white);
}

.photo-placeholder {
  background: repeating-linear-gradient(
    135deg,
    #232323,
    #232323 12px,
    #1a1a1a 12px,
    #1a1a1a 24px
  );
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: #b7b7b7;
  min-height: 260px;
  padding: 24px;
  font-size: 0.85rem;
}

.photo-placeholder--light {
  background: repeating-linear-gradient(
    135deg,
    #f1f1f1,
    #f1f1f1 12px,
    #e6e6e6 12px,
    #e6e6e6 24px
  );
  border-color: rgba(20, 20, 20, 0.15);
  color: var(--grey);
}

/* Foto real (substitui .photo-placeholder quando há imagem do cliente). */
.photo-real {
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
}

.photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .photo-real {
  height: 160px;
  border-radius: 0;
}

/* Reflexo de luz varrendo o card, como brilho de pintura recém-polida. */
.hero__shine {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero__shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.16) 55%,
    transparent 100%
  );
  transform: rotate(8deg);
  animation: shine-sweep 5.5s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}

@keyframes shine-sweep {
  0% {
    left: -60%;
  }
  35%,
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__shine::after {
    animation: none;
  }
}

.photo-placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.7;
}

/* ---------- Service grid / cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__body h3 {
  font-size: 1.1rem;
}

.card__body p {
  font-size: 0.92rem;
  flex: 1;
}

.card__link {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card .photo-placeholder {
  min-height: 160px;
  border-radius: 0;
  border: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head p {
  max-width: 560px;
}

/* ---------- Steps / process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 20px 20px;
  background: var(--light);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
}

/* ---------- Benefits / checklist ---------- */

.checklist {
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}

.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--accent);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 26px;
}

.cta-band .btn--primary {
  background: var(--white);
  color: var(--accent);
}

.cta-band .btn--primary:hover {
  background: var(--light);
}

/* ---------- About page blocks ---------- */

.timeline {
  display: grid;
  gap: 18px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6e6e6;
}

.timeline__item strong {
  color: var(--accent);
}

.mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mvv > div {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: #0a0a0a;
  color: #b8b8b8;
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer__grid ul {
  display: grid;
  gap: 10px;
}

.footer__grid a:hover {
  color: var(--white);
}

.footer__brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer__bottom {
  padding: 20px 0;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25d366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 90;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- 404 ---------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--accent);
}

/* ---------- Blog ---------- */

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-card__meta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card h3 {
  font-size: 1.05rem;
}

.post-card p {
  font-size: 0.9rem;
  flex: 1;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--light);
  font-size: 0.9rem;
}

.pagination a:hover {
  background: var(--accent);
  color: var(--white);
}

.pagination .current {
  background: var(--accent);
  color: var(--white);
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}

.post-content h2 {
  margin: 32px 0 14px;
  font-size: 1.5rem;
}

.post-content h3 {
  margin: 24px 0 12px;
}

.post-content p {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 16px 22px;
  color: var(--text-dark);
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 0.92rem;
}

.post-content th,
.post-content td {
  border: 1px solid #e2e2e2;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.post-content th {
  background: var(--light);
  font-weight: 700;
}

.post-content tbody tr:nth-child(even) {
  background: #fafafa;
}

.yt-embed {
  margin: 24px 0;
}

.yt-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

.yt-embed--vertical {
  max-width: 340px;
}

.yt-embed--vertical iframe {
  aspect-ratio: 9 / 16;
}

.post-hero {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0;
}

.post-hero .container {
  max-width: 760px;
}

.post-meta-row {
  display: flex;
  gap: 16px;
  color: #a9a9a9;
  font-size: 0.85rem;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

@media (max-width: 760px) {
  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    width: 100%;
    margin-top: 10px;
  }

  .has-dropdown.open .dropdown {
    display: flex;
  }

  .dropdown a {
    color: var(--white) !important;
  }

  .dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .hamburger {
    display: flex;
  }

  .nav__cta .btn {
    display: none;
  }

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    padding: 50px 0 60px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
