/* ==========================================
   DOZE CAR - STYLE.CSS COMPLETO
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  transition: 0.3s ease;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.container,
.container-contact,
.container-campanha,
.container-dash {
  width: min(1200px, 92%);
  margin-inline: auto;
  padding: 40px 0;
}

/* HEADER */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo span {
  color: #e74c3c;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.navbar a {
  color: #ccc;
  font-size: 0.95rem;
}

.navbar a:hover,
.navbar a.active {
  color: #fff;
}

.navbar a i {
  display: none;
}

.btn-cliente-nav {
  border: 1px solid #e74c3c;
  color: #e74c3c !important;
  padding: 9px 15px;
  border-radius: 6px;
  font-weight: 700;
}

.btn-cliente-nav:hover {
  background: #e74c3c;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* BOTÕES */

.btn-main,
.btn-primary,
.btn-submit,
.btn-login {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-main:hover,
.btn-primary:hover,
.btn-submit:hover,
.btn-login:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 800;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* INDEX */

.hero {
  min-height: 90vh;
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.85)),
    url('https://www.razaoautomovel.com/wp-content/uploads/2020/09/Peugeot-5008-5-1440x960.jpg') center/cover fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  border-bottom: 3px solid #e74c3c;
}

.hero-content {
  max-width: 900px;
}

.hero-tag,
.section-tag,
.campanha-tag {
  display: inline-block;
  color: #e74c3c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 8px 25px rgba(0,0,0,0.8);
}

.hero-content h1 span,
.venda-hero span,
.servicos-intro span,
.noticias-header span,
.campanha-header span,
.about-text span,
.estoque-vazio span {
  color: #e74c3c;
}

.hero-content p {
  max-width: 760px;
  margin: 0 auto 35px;
  color: #eee;
  font-size: 1.2rem;
}

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

.features,
.servicos-grid,
.noticias-grid,
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card,
.servico-card,
.noticia-item,
.car-card,
.dash-card,
.form-box,
.form-container {
  background: #151515;
  border: 1px solid #292929;
  border-radius: 18px;
  padding: 30px;
  transition: 0.3s ease;
}

.feature-card:hover,
.servico-card:hover,
.noticia-item:hover,
.car-card:hover {
  border-color: #e74c3c;
  transform: translateY(-6px);
}

.feature-icon,
.icon-box,
.vazio-icon,
.login-icon {
  color: #e74c3c;
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.feature-card {
  text-align: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header a {
  color: #e74c3c;
  font-weight: 700;
}

/* CARDS CARROS */

.car-card {
  padding: 0;
  overflow: hidden;
}

.car-img {
  min-height: 220px;
  background: #333 center/cover;
  position: relative;
}

.car-badge,
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #e74c3c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.car-details,
.car-info {
  padding: 22px;
}

.car-price {
  color: #e74c3c;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 14px 0;
}

.btn-view,
.btn-card,
.btn-read-more {
  display: inline-block;
  color: #e74c3c;
  font-weight: 800;
}

/* ESTOQUE */

.estoque-vazio {
  max-width: 780px;
  margin: auto;
  text-align: center;
  padding: 90px 20px;
}

.estoque-vazio h1,
.estoque-vazio h2,
.venda-hero h1,
.servicos-intro h1,
.noticias-header h1,
.campanha-header h1,
.about-text h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.estoque-vazio p,
.venda-hero p,
.servicos-intro p,
.noticias-header p,
.about-text p {
  color: #bbb;
  font-size: 1.05rem;
}

.vazio-info-box {
  background: #111;
  border: 1px dashed #e74c3c;
  border-radius: 16px;
  padding: 26px;
  margin: 35px 0;
}

.vazio-cta {
  margin-top: 28px;
}

.vazio-cta small,
.subtext {
  display: block;
  color: #888;
  margin-top: 10px;
  font-style: italic;
}

/* VENDA */

.venda-hero,
.servicos-intro,
.noticias-header,
.about-section {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 50px;
}

.form-container {
  max-width: 850px;
  margin: auto;
}

.form-grid,
.campanha-grid,
.contact-grid,
.dash-grid,
.finance-grid,
.payment-details-grid {
  display: grid;
  gap: 22px;
}

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

.form-group,
.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label,
.input-group label {
  color: #e74c3c;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.input-group input,
.form-box input,
.form-box textarea,
.form-box select {
  width: 100%;
  background: #080808;
  border: 1px solid #444;
  border-radius: 10px;
  color: #fff;
  padding: 13px 14px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.input-group input:focus,
.form-box input:focus,
.form-box textarea:focus {
  border-color: #e74c3c;
}

.full-width {
  grid-column: span 2;
}

.upload-area {
  display: block;
  position: relative;
  margin: 28px 0;
  padding: 40px 20px;
  border: 2px dashed #444;
  border-radius: 16px;
  text-align: center;
  color: #aaa;
  cursor: pointer;
}

.upload-area i {
  display: block;
  font-size: 2rem;
  color: #e74c3c;
  margin-bottom: 12px;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* CONTATO */

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e74c3c, transparent);
  margin: 45px 0;
}

.contact-grid {
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
  margin-bottom: 70px;
}

.contact-info {
  background: #151515;
  border: 1px solid #292929;
  border-radius: 18px;
  padding: 32px;
}

.contact-info h3 {
  color: #e74c3c;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.info-icon {
  color: #e74c3c;
  font-size: 1.25rem;
}

.info-item span {
  color: #e74c3c;
  font-weight: 800;
}

.info-item p {
  color: #fff;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.map-container {
  min-height: 420px;
  border: 1px solid #333;
  border-radius: 18px;
  overflow: hidden;
}

/* SERVIÇOS */

.servico-card {
  text-align: center;
}

.servico-card h2 {
  color: #e74c3c;
  margin-bottom: 14px;
}

.servico-card p {
  color: #bbb;
}

.servicos-cta,
.noticias-footer-cta {
  margin: 70px 0;
  background: linear-gradient(135deg, #151515, #050505);
  border: 1px solid #222;
  border-radius: 22px;
  padding: 45px 25px;
  text-align: center;
}

/* CAMPANHAS */

.container-campanha {
  margin-top: 30px;
}

.campanha-header {
  margin-bottom: 40px;
}

.breadcrumb {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.validade {
  color: #aaa;
  margin-top: 10px;
}

.urgente {
  color: #e74c3c;
  font-weight: 800;
}

.campanha-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.campanha-info h3 {
  color: #e74c3c;
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.campanha-info p,
.nota-campanha {
  color: #bbb;
}

.lista-vantagens {
  list-style: none;
  margin: 28px 0;
}

.lista-vantagens li {
  padding: 14px 0;
  border-bottom: 1px solid #222;
  color: #ddd;
}

.lista-vantagens i {
  color: #e74c3c;
  margin-right: 10px;
}

/* NOTÍCIAS */

.noticia-tag {
  display: inline-block;
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.noticia-item h2 {
  margin-bottom: 12px;
}

.noticia-item p {
  color: #aaa;
}

/* MODAL */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(8px);
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  position: relative;
  width: min(800px, 95%);
  max-height: 85vh;
  overflow-y: auto;
  background: #161616;
  border: 1px solid #333;
  border-radius: 22px;
  padding: 38px;
  margin: 5vh auto;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lista-modal {
  margin: 22px 0;
}

.lista-modal p {
  padding: 10px 0;
  border-bottom: 1px solid #262626;
  color: #ddd;
}

.modal-footer-text {
  margin-top: 25px;
  padding: 18px;
  background: #0d0d0d;
  border-left: 4px solid #e74c3c;
  border-radius: 8px;
}

/* LOGIN */

.login-body {
  min-height: 100vh;
  background: radial-gradient(circle, #1a1a1a, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-container {
  width: min(420px, 100%);
}

.login-box {
  background: #161616;
  border: 1px solid #333;
  border-radius: 22px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}

.login-box h1,
.login-box h2 {
  margin: 15px 0 8px;
}

.login-box p {
  color: #888;
  margin-bottom: 28px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #e74c3c;
}

.input-icon input {
  padding-left: 42px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: none;
}

.login-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 22px;
}

.login-options a,
.login-footer a,
.back-home {
  color: #fff;
  font-weight: 800;
}

/* DASHBOARD */

.dashboard-body {
  background: #0a0a0a;
}

.user-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}

.user-info h1 {
  font-size: 2rem;
}

.user-info span {
  color: #e74c3c;
}

.user-info p {
  color: #888;
}

.user-badge {
  height: fit-content;
  background: #e74c3c;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

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

.full-width {
  grid-column: 1 / -1;
}

.dash-card h3 {
  color: #e74c3c;
  margin-bottom: 18px;
}

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

.fin-item span,
.pay-item span {
  display: block;
  color: #888;
  font-size: 0.8rem;
}

.fin-item p,
.pay-item p {
  font-size: 1.2rem;
  font-weight: 800;
}

.highlight p,
.red-text {
  color: #e74c3c !important;
}

.table-container {
  overflow-x: auto;
}

.payment-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.payment-table th {
  color: #e74c3c;
  background: #0d0d0d;
  padding: 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.payment-table td {
  padding: 14px;
  border-bottom: 1px solid #252525;
  color: #ccc;
}

.status-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-paid,
.status-ok {
  color: #2ecc71;
  background: rgba(46,204,113,0.15);
  border: 1px solid #2ecc71;
}

.progress-bar {
  height: 10px;
  background: #333;
  border-radius: 999px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-fill {
  height: 100%;
  background: #e74c3c;
}

.dash-divider {
  border: 0;
  border-top: 1px solid #252525;
  margin: 24px 0;
}

.payment-box {
  background: #101010;
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 24px;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

.iban-copy {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-copy {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.payment-footer {
  color: #888;
  margin-top: 18px;
}

/* FOOTER */

.main-footer,
.dash-footer {
  padding: 30px 20px;
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.main-footer p,
.dash-footer p {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-dev {
  color: #d1d5db;
  font-size: 0.85rem;
}

.footer-dev span {
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
}

/* RESPONSIVO */

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  #menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  #menu.active {
    display: block;
  }

  #menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
  }

  #menu ul li {
    margin: 0;
  }

  #menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  #menu a i {
    display: inline-block;
    color: #e74c3c;
    width: 20px;
  }

  .hero {
    min-height: 78vh;
    background-attachment: scroll;
  }

  .hero-btns,
  .contact-actions,
  .payment-header,
  .user-header {
    flex-direction: column;
  }

  .form-grid,
  .campanha-grid,
  .contact-grid,
  .dash-grid,
  .finance-grid,
  .payment-details-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .form-container,
  .form-box,
  .login-box,
  .contact-info,
  .payment-box,
  .dash-card,
  .servico-card,
  .feature-card,
  .noticia-item {
    padding: 24px;
  }

  .map-container {
    min-height: 320px;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .navbar {
    padding: 15px 4%;
  }

  .logo {
    font-size: 1.25rem;
  }

  .container,
  .container-contact,
  .container-campanha,
  .container-dash {
    width: 94%;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-main,
  .btn-outline,
  .btn-primary,
  .btn-submit,
  .btn-login {
    width: 100%;
    padding: 13px 18px;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    padding: 28px 20px;
  }
}