/* ==========================================================================
   IBW Estética Automotiva — Onepage
   ========================================================================== */

/* ===== Fontes auto-hospedadas (Google Fonts — subconjunto latin) ===== */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/barlow-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/barlow-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/barlow-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/rajdhani-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/rajdhani-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/rajdhani-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --preto: #050505;
  --grafite: #111214;
  --vinho: #80182F;
  --vermelho: #A82040;
  --prata: #C5C8CC;
  --branco: #F4F4F4;
  --cinza: #A8A8A8;
  --whatsapp: #25D366;
  --gradiente-cta: linear-gradient(135deg, #80182F, #A82040);
  --borda-sutil: 1px solid rgba(197, 200, 204, 0.1);
  --sombra-cta: 0 8px 30px rgba(168, 32, 64, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background: var(--preto);
  color: var(--branco);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.accent {
  color: var(--vermelho);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 110px 0;
}

.section-dark {
  background: var(--preto);
}

.section-graphite {
  background: var(--grafite);
  border-top: 1px solid rgba(197, 200, 204, 0.08);
  border-bottom: 1px solid rgba(197, 200, 204, 0.08);
}

/* ===== Tipografia ===== */

h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

h1 {
  font-weight: 700;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 1px;
}

h2 {
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: 1px;
  line-height: 1.1;
}

.eyebrow {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: 14px;
}

/* ===== Botões ===== */

.btn {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--gradiente-cta);
  color: var(--branco);
  box-shadow: var(--sombra-cta);
}

.btn-primary:hover {
  filter: brightness(1.15);
}

.btn-lg {
  font-size: 16px;
  padding: 16px 36px;
}

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

.btn-sm {
  font-size: 14px;
  padding: 12px 26px;
}

.btn-nav {
  font-size: 14px;
  letter-spacing: 1.5px;
  padding: 10px 22px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(197, 200, 204, 0.45);
  color: var(--branco);
}

.btn-secondary:hover {
  border-color: var(--vermelho);
  color: var(--vermelho);
}

/* ===== Nav ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 200, 204, 0.12);
}

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

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.nav-wordmark {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--prata);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--vermelho);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(197, 200, 204, 0.3);
  border-radius: 3px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--prata);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* ===== Hero ===== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-video.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.35) 40%, rgba(5, 5, 5, 0.92) 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(5, 5, 5, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
  animation: fadeUp 1s ease both;
}

.hero-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--prata);
  border: 1px solid rgba(197, 200, 204, 0.35);
  padding: 8px 20px;
  margin-bottom: 30px;
}

.hero-content p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--prata);
  max-width: 560px;
  margin: 26px auto 38px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--vermelho), transparent);
  animation: scrollPulse 1.8s ease infinite;
}

.hero-scroll-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cinza);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ===== Serviços ===== */

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.services-intro {
  max-width: 380px;
  font-size: 15px;
  color: var(--cinza);
}

.services-intro strong {
  color: var(--prata);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--grafite);
  border: var(--borda-sutil);
  border-radius: 4px;
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--vinho);
  transform: translateY(-3px);
}

.service-num {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--vinho);
  margin-bottom: 14px;
}

.service-card h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cinza);
}

.services-pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 32px;
  background: var(--grafite);
  border: 1px solid rgba(128, 24, 47, 0.4);
  border-radius: 4px;
  padding: 18px 24px;
}

.services-pricing strong {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--vermelho);
}

.services-pricing span {
  font-size: 15px;
  color: var(--cinza);
}

.services-pricing .btn {
  margin-left: auto;
}

/* ===== Sobre ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 70px;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.about-visual img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.about-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.about-ring-solid {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(168, 32, 64, 0.35);
}

.about-ring-dashed {
  width: 400px;
  height: 400px;
  border: 1px dashed rgba(197, 200, 204, 0.18);
}

.about-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cinza);
  margin-top: 22px;
  max-width: 520px;
}

.about-features {
  list-style: none;
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-features li {
  display: flex;
  gap: 18px;
}

.feature-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--vermelho);
  border: 1px solid rgba(168, 32, 64, 0.5);
  border-radius: 3px;
}

.about-features h4 {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}

.about-features p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cinza);
}

/* ===== Contato ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cinza);
  margin: 22px 0 34px;
  max-width: 440px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grafite);
  border: 1px solid rgba(197, 200, 204, 0.12);
  border-radius: 3px;
  color: var(--vermelho);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item h4 {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cinza);
}

.contact-item a {
  color: var(--prata);
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--vermelho);
}

.contact-cta {
  margin-top: 14px;
}

.contact-map {
  background: var(--grafite);
  border: var(--borda-sutil);
  border-radius: 4px;
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(0.85) contrast(1.05);
}

.contact-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--cinza);
}

.contact-map-footer a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--vermelho);
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.contact-map-footer a:hover {
  filter: brightness(1.25);
}

/* ===== Footer ===== */

.footer {
  background: var(--preto);
  border-top: 1px solid rgba(197, 200, 204, 0.08);
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--prata);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--vermelho);
}

/* ===== Redes sociais (nav + rodapé) ===== */

.nav-social,
.footer-social {
  display: flex;
  align-items: center;
}

.nav-social {
  gap: 10px;
  margin-left: 4px;
}

.footer-social {
  gap: 16px;
  justify-content: center;
}

.nav-links .nav-social a,
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--grafite);
  border: 1px solid rgba(168, 32, 64, 0.45);
  border-radius: 50%;
  color: var(--branco);
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-links .nav-social a {
  width: 36px;
  height: 36px;
}

.nav-links .nav-social svg {
  width: 17px;
  height: 17px;
}

.footer-social a {
  width: 52px;
  height: 52px;
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.nav-links .nav-social a:hover,
.nav-links .nav-social a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--gradiente-cta);
  border-color: transparent;
  color: var(--branco);
  transform: translateY(-3px);
  box-shadow: var(--sombra-cta);
}

.footer-copy {
  font-size: 12px;
  color: var(--cinza);
}

/* ===== Botão flutuante WhatsApp ===== */

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

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

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

/* ===== Responsivo ===== */

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 70px 0;
  }

  .nav {
    padding: 12px 20px;
  }

  .nav-right {
    gap: 14px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid rgba(197, 200, 204, 0.12);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 20px;
  }

  .nav-links .nav-social {
    width: 100%;
    margin-left: 0;
    padding: 12px 20px 6px;
    gap: 14px;
  }

  .nav-links .nav-social a {
    width: 42px;
    height: 42px;
  }

  .nav-links .nav-social svg {
    width: 19px;
    height: 19px;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-nav {
    padding: 10px 16px;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }

  .services-pricing .btn {
    margin-left: 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-visual {
    order: 2;
    min-height: 400px;
  }

  .about-text {
    order: 1;
  }

  .contact-map iframe {
    height: 360px;
  }
}

@media (max-width: 400px) {
  .nav-wordmark {
    display: none;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}
