/* ==========================================================================
   Líder Empilhadeiras — Landing Page
   ========================================================================== */

:root {
  --color-primary: #e87722;
  --color-primary-dark: #c9621a;
  --color-dark: #1a1a1f;
  --color-dark-soft: #2d2d35;
  --color-gray: #6b7280;
  --color-gray-light: #f4f5f7;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;
  --font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  --header-height: 72px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: clip;
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

main,
.site-header,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

.row > [class*="col-"] {
  min-width: 0;
}

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

a:hover {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

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

.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-dark);
  --bs-btn-hover-border-color: var(--color-primary-dark);
  --bs-btn-active-bg: var(--color-primary-dark);
  --bs-btn-active-border-color: var(--color-primary-dark);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
}

.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
  font-weight: 600;
  border-radius: 8px;
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  border: none;
  color: var(--color-white);
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: var(--color-whatsapp-dark);
  color: var(--color-white);
}

.btn-outline-light {
  border-radius: 8px;
  font-weight: 600;
}

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

.site-header {
  background: rgba(26, 26, 31, 0.97);
  backdrop-filter: blur(8px);
  min-height: var(--header-height);
  transition: box-shadow var(--transition);
  z-index: 1030;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.site-header .navbar {
  min-height: var(--header-height);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-white) !important;
  font-size: 1.125rem;
  min-width: 0;
  max-width: calc(100% - 3.5rem);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 8px;
  color: var(--color-white);
  font-size: 1.125rem;
}

.brand-text strong {
  color: var(--color-primary);
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 0.875rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--color-primary) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.375rem 0.625rem;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-cta-nav {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .btn-cta-nav {
    white-space: normal;
  }

  .site-header .navbar-collapse {
    padding: 1rem 0 0.5rem;
  }

  .site-header .nav-link {
    padding: 0.625rem 0 !important;
  }
}

/* --------------------------------------------------------------------------
   WhatsApp float
   -------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 1020;
  transition: transform var(--transition), background var(--transition);
}

.whatsapp-float:hover {
  background: var(--color-whatsapp-dark);
  color: var(--color-white);
  transform: scale(1.08);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 26, 31, 0.62) 0%,
    rgba(26, 26, 31, 0.35) 45%,
    rgba(26, 26, 31, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero-section h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  max-width: 540px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-form-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.hero-form-title {
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.form-microcopy {
  font-size: 0.8125rem;
  color: var(--color-gray);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Image placeholders
   -------------------------------------------------------------------------- */

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-light);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  color: var(--color-gray);
  text-align: center;
  overflow: hidden;
}

.img-placeholder__icon {
  font-size: 2.5rem;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.img-placeholder__label {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: monospace;
  color: var(--color-dark-soft);
}

.img-placeholder__hint {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  opacity: 0.7;
}

.img-placeholder--hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: linear-gradient(145deg, #2d2d35 0%, #1a1a1f 100%);
}

.img-placeholder--hero:has(img) {
  display: block;
}

.img-placeholder--hero img,
.hero-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  object-fit: cover;
  object-position: center;
}

.img-placeholder--hero .img-placeholder__label,
.img-placeholder--hero .img-placeholder__hint {
  color: rgba(255, 255, 255, 0.5);
}

.img-placeholder--hero .img-placeholder__icon {
  color: rgba(255, 255, 255, 0.25);
}

.img-placeholder--about {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.img-placeholder--gallery {
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 1rem;
}

.img-placeholder--gallery .img-placeholder__label {
  font-size: 0.75rem;
}

/* Galeria — quando imagens reais forem adicionadas:
.gallery-item img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius); }
*/

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 5rem 0;
}

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

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-gray);
  max-width: 640px;
  margin: 0 auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-list i {
  color: var(--color-primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

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

.service-card {
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 119, 34, 0.12);
  color: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-gray);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

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

.step-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.step-card h3 {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  margin: 0;
}

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

.benefit-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid #e5e7eb;
}

.benefit-item i {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: block;
}

.benefit-item h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: var(--color-gray);
  font-size: 0.9375rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-item {
  margin: 0;
}

.gallery-item .img-placeholder {
  transition: opacity var(--transition);
}

.gallery-item:hover .img-placeholder {
  opacity: 0.85;
}

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

.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4rem 0;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

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

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

.contact-list i {
  font-size: 1.25rem;
  color: var(--color-primary);
  width: 24px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

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

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-item {
  margin-bottom: 0.75rem;
}

.faq-item details {
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq-item details[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  background: var(--color-gray-light);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  color: var(--color-gray);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Form feedback
   -------------------------------------------------------------------------- */

.form-feedback {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.form-feedback--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
}

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

.footer-tagline {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.footer-local {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

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

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

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

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

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 119, 34, 0.2);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #22c55e;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #ef4444;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

@media (max-width: 575.98px) {
  .section {
    padding: 3.5rem 0;
  }

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

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}

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

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