/* ==========================================================================
   Sete Diesel Auto Peas  Estilos principais
   ========================================================================== */

:root {
  --color-orange: #F58220;
  --color-orange-dark: #e06d0f;
  --color-navy: #0B163F;
  --color-navy-secondary: #111B4D;
  --color-white: #FFFFFF;
  --color-bg-light: #F5F6FA;
  --color-text: #4B5563;
  --color-dark: #111827;
  --font-main: "Poppins", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(11, 22, 63, 0.08);
  --shadow-hover: 0 20px 50px rgba(11, 22, 63, 0.14);
  --transition: 0.3s ease;
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

/* ---------- Utilitrios ---------- */
.section-padding {
  padding: 5rem 0;
}

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

.section-navy {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-secondary) 100%);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 0.75rem;
}

.section-label-light {
  color: rgba(245, 130, 32, 0.95);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-text {
  color: var(--color-text);
  font-size: 1.05rem;
}

/* ---------- Botes CTA ---------- */
.btn-cta {
  background: var(--color-orange);
  border: 2px solid var(--color-orange);
  color: var(--color-white) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-cta:hover,
.btn-cta:focus {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 130, 32, 0.35);
}

.btn-outline-light {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-width: 2px;
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy) !important;
}

/* ---------- Navbar ---------- */
#mainNavbar {
  background: rgba(11, 22, 63, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  transition: box-shadow var(--transition), padding var(--transition), background var(--transition);
}

#mainNavbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  background: rgba(11, 22, 63, 0.98);
}

.brand-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: 10px;
  padding: 4px 8px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-white) !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--color-navy-secondary);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(11, 22, 63, 0.92) 0%,
    rgba(17, 27, 77, 0.85) 45%,
    rgba(11, 22, 63, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--navbar-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 130, 32, 0.2);
  border: 1px solid rgba(245, 130, 32, 0.5);
  color: var(--color-orange);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions .btn i {
  margin-right: 0.35rem;
}

/* ---------- Cards destaques ---------- */
.highlight-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(11, 22, 63, 0.06);
}

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

.highlight-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.15), rgba(245, 130, 32, 0.05));
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.highlight-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.highlight-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Sobre ---------- */
.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
  font-weight: 500;
}

.about-list i {
  color: var(--color-orange);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.about-image-wrap {
  position: relative;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1rem;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 200px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.about-badge strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .about-badge {
    left: 0.5rem;
    bottom: 0.5rem;
  }
}

/* ---------- Produtos ---------- */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(11, 22, 63, 0.05);
}

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

.product-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.product-card-body p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- Servios ---------- */
.service-item {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 130, 32, 0.3);
}

.service-item-featured {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-secondary) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.service-item-featured h3,
.service-item-featured .service-number {
  color: var(--color-white);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.service-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.service-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Diferenciais ---------- */
.diff-card {
  padding: 1.5rem;
}

.diff-icon {
  font-size: 2rem;
  color: var(--color-orange);
  margin-bottom: 1rem;
}

.diff-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.diff-card p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Galeria ---------- */
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 63, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

#galleryModal .modal-content {
  border-radius: var(--radius);
}

#galleryModal .modal-header {
  background: var(--color-navy);
  color: var(--color-white);
}

#galleryModal .btn-close {
  filter: invert(1);
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-secondary) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  position: relative;
}

/* ---------- Contato ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-list > li > i {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(245, 130, 32, 0.12);
  color: var(--color-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-list strong {
  display: block;
  color: var(--color-navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: var(--color-orange);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--color-orange-dark);
}

.contact-form {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.9rem;
}

.contact-form .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.contact-form .form-control.is-invalid {
  border-color: #dc3545;
}

/* ---------- Rodap ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: 10px;
  padding: 6px 10px;
  opacity: 1;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-title {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-credit a {
  color: var(--color-orange);
  font-weight: 500;
}

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

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: var(--color-white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: var(--color-white) !important;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ---------- Voltar ao topo ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 5.5rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 1039;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-orange);
}

@media (max-width: 575.98px) {
  .back-to-top {
    right: 1.5rem;
    bottom: 5.5rem;
  }
}

/* ---------- Alerta customizado ---------- */
.custom-alert {
  position: fixed;
  top: 100px;
  right: 1.5rem;
  z-index: 1100;
  max-width: 380px;
  width: calc(100% - 3rem);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-alert.show {
  transform: translateX(0);
}

.custom-alert[hidden] {
  display: block;
  visibility: hidden;
}

.custom-alert.show[hidden] {
  visibility: visible;
}

.custom-alert-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(11, 22, 63, 0.18);
  border-left: 4px solid var(--color-orange);
}

.custom-alert.error .custom-alert-inner {
  border-left-color: #dc3545;
}

.custom-alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.custom-alert-icon.success {
  color: #198754;
  display: none;
}

.custom-alert-icon.error {
  color: #dc3545;
  display: none;
}

.custom-alert.success .custom-alert-icon.success,
.custom-alert.error .custom-alert-icon.error {
  display: block;
}

.custom-alert strong {
  color: var(--color-navy);
  display: block;
  margin-bottom: 0.25rem;
}

.custom-alert p {
  font-size: 0.9rem;
  color: var(--color-text);
}

.custom-alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text);
  opacity: 0.6;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
}

.custom-alert-close:hover {
  opacity: 1;
}

/* ---------- Animaes scroll ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }

/* ---------- Acessibilidade / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in-up { opacity: 1; transform: none; transition: none; }
  .hero-bg,
  .highlight-card,
  .product-card,
  .whatsapp-float { animation: none; transition: none; }
}
