/* ============================================================
   FixPaper.com.br — Premium Industrial Theme
   Grafite / Alumínio / Tipografia limpa / Micro-animações
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --fp-graphite: #2d2d2d;
  --fp-graphite-light: #3a3a3a;
  --fp-aluminum: #b8bfc6;
  --fp-aluminum-light: #d4dae0;
  --fp-aluminum-dark: #8a939d;
  --fp-accent: #4a6fa5;
  --fp-accent-hover: #3d5d8a;
  --fp-white: #f8f9fa;
  --fp-offwhite: #eef1f4;
  --fp-success: #2e7d32;
  --fp-whatsapp: #25d366;
  --fp-whatsapp-hover: #1fb855;
  --fp-text: #333;
  --fp-text-light: #666;
  --fp-text-muted: #999;
  --fp-border: #dee2e6;
  --fp-shadow: 0 2px 20px rgba(0,0,0,.08);
  --fp-shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --fp-radius: 4px;
  --fp-transition: .3s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--fp-text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fp-accent); text-decoration: none; transition: color var(--fp-transition); }
a:hover { color: var(--fp-accent-hover); }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  color: var(--fp-graphite);
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.lead {
  font-size: 1.15rem;
  color: var(--fp-text-light);
  font-weight: 400;
}

/* --- Navbar --- */
.fp-navbar {
  background: var(--fp-graphite);
  padding: .75rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  position: sticky;
  top: 0;
  z-index: 1050;
}
.fp-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--fp-aluminum-light);
  letter-spacing: .02em;
}
.fp-navbar .navbar-brand:hover { color: #fff; }
.fp-navbar .navbar-brand img {
  height: 36px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: .5rem;
}
.fp-navbar .nav-link {
  color: var(--fp-aluminum);
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem 1rem;
  transition: color var(--fp-transition);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fp-navbar .nav-link:hover,
.fp-navbar .nav-link.active { color: #fff; }

.navbar-toggler { border-color: var(--fp-aluminum-dark); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(180,190,200,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Backgrounds (no inline styles) --- */
.fp-hero-bg-home { background-image: url('../images/final/fixpaper-fixador-papeis-aluminio-hero.webp'); }

/* --- Hero Section --- */
.fp-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: var(--fp-graphite);
  overflow: hidden;
}
.fp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transition: opacity .6s;
}
.fp-hero:hover .fp-hero-bg { opacity: .45; }
.fp-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}
.fp-hero h1 { color: #fff; margin-bottom: 1.2rem; }
.fp-hero .lead { color: var(--fp-aluminum-light); font-size: 1.2rem; }

/* Hero for segment pages (shorter) */
.fp-hero-segment {
  min-height: 50vh;
}

/* --- Buttons --- */
.btn-fp-primary {
  background: var(--fp-accent);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--fp-radius);
  transition: all var(--fp-transition);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn-fp-primary:hover {
  background: var(--fp-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74,111,165,.3);
}

.btn-fp-whatsapp {
  background: var(--fp-whatsapp);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--fp-radius);
  transition: all var(--fp-transition);
}
.btn-fp-whatsapp:hover {
  background: var(--fp-whatsapp-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37,211,102,.3);
}

.btn-fp-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--fp-aluminum);
  padding: .7rem 1.8rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--fp-radius);
  transition: all var(--fp-transition);
}
.btn-fp-outline:hover {
  background: #fff;
  color: var(--fp-graphite);
  border-color: #fff;
}

/* --- Sections --- */
.fp-section {
  padding: 5rem 0;
}
.fp-section-gray {
  background: var(--fp-offwhite);
}
.fp-section-dark {
  background: var(--fp-graphite);
  color: #fff;
}
.fp-section-dark h2,
.fp-section-dark h3 { color: #fff; }
.fp-section-dark .lead { color: var(--fp-aluminum-light); }

.fp-section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.fp-section-title h2 { margin-bottom: .75rem; }
.fp-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--fp-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Cards --- */
.fp-card {
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  overflow: hidden;
  transition: all var(--fp-transition);
  height: 100%;
}
.fp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fp-shadow-lg);
  border-color: var(--fp-aluminum);
}
.fp-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.fp-card-body {
  padding: 1.5rem;
}
.fp-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}
.fp-card-body p {
  color: var(--fp-text-light);
  font-size: .92rem;
}

/* --- How It Works --- */
.fp-how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.fp-step {
  position: relative;
}
.fp-step-img {
  max-width: 200px;
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--fp-aluminum);
  background: var(--fp-offwhite);
  transition: all var(--fp-transition);
}
.fp-step-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.fp-step:hover .fp-step-img {
  border-color: var(--fp-accent);
  transform: scale(1.05);
}
.fp-step-number {
  position: absolute;
  top: -8px;
  right: calc(50% - 52px);
  width: 28px;
  height: 28px;
  background: var(--fp-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}
.fp-step h4 {
  font-size: 1rem;
  margin-bottom: .5rem;
}
.fp-step p {
  font-size: .88rem;
  color: var(--fp-text-light);
}
@media (max-width: 575.98px) {
  .fp-how-it-works { gap: 1.5rem; }
  .fp-step-img { max-width: 160px; }
}

/* --- Feature List --- */
.fp-feature-list {
  list-style: none;
  padding: 0;
}
.fp-feature-list li {
  padding: .6rem 0 .6rem 2rem;
  position: relative;
  font-size: .95rem;
}
.fp-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--fp-accent);
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3e%3cpath d='M5 13l4 4L19 7'/%3e%3c/svg%3e") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3e%3cpath d='M5 13l4 4L19 7'/%3e%3c/svg%3e") center/contain no-repeat;
}

/* --- Partners / Clients --- */
.fp-partners-img {
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
}
.fp-partner-disclaimer {
  font-size: .78rem;
  color: var(--fp-text-muted);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* --- FAQ Accordion --- */
.fp-faq .accordion-button {
  font-weight: 600;
  color: var(--fp-graphite);
  background: var(--fp-offwhite);
  font-size: .95rem;
}
.fp-faq .accordion-button:not(.collapsed) {
  background: var(--fp-accent);
  color: #fff;
}
.fp-faq .accordion-body {
  font-size: .92rem;
  color: var(--fp-text-light);
  line-height: 1.7;
}

/* --- WhatsApp Floating Button --- */
.fp-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--fp-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--fp-transition);
  cursor: pointer;
}
.fp-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,.5);
}
.fp-whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* --- Footer --- */
.fp-footer {
  background: var(--fp-graphite);
  color: var(--fp-aluminum);
  padding: 3rem 0 1.5rem;
  font-size: .88rem;
}
.fp-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fp-footer a {
  color: var(--fp-aluminum);
  transition: color var(--fp-transition);
}
.fp-footer a:hover { color: #fff; }
.fp-footer-links { list-style: none; padding: 0; }
.fp-footer-links li { margin-bottom: .4rem; }
.fp-footer-bottom {
  border-top: 1px solid var(--fp-graphite-light);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--fp-text-muted);
  font-size: .8rem;
}

/* --- Contact Form --- */
.fp-form .form-control {
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: .75rem 1rem;
  font-size: .92rem;
  transition: border-color var(--fp-transition), box-shadow var(--fp-transition);
}
.fp-form .form-control:focus {
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px rgba(74,111,165,.15);
}
.fp-form label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--fp-graphite);
  margin-bottom: .3rem;
}
.fp-form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.fp-form-success.show { display: block; }
.fp-form-success h3 { color: var(--fp-success); }

/* --- Breadcrumbs --- */
.fp-breadcrumb {
  background: var(--fp-offwhite);
  padding: .75rem 0;
  font-size: .85rem;
}
.fp-breadcrumb a { color: var(--fp-text-light); }
.fp-breadcrumb a:hover { color: var(--fp-accent); }
.fp-breadcrumb .separator {
  margin: 0 .5rem;
  color: var(--fp-text-muted);
}
.fp-breadcrumb .current {
  color: var(--fp-graphite);
  font-weight: 600;
}

/* --- Animations (IntersectionObserver driven) --- */
.fp-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fp-animate.fp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utilities --- */
.fp-img-rounded { border-radius: var(--fp-radius); }
.fp-img-shadow { box-shadow: var(--fp-shadow); }
.fp-gap-lg { gap: 2rem; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .fp-hero { min-height: 60vh; }
  .fp-hero-segment { min-height: 40vh; }
  .fp-section { padding: 3.5rem 0; }
}

@media (max-width: 575.98px) {
  /* Hero */
  .fp-hero { min-height: 50vh; }
  .fp-hero-segment { min-height: 35vh; }
  .fp-hero-content { padding: 0 .5rem; }
  .fp-hero-content h1 { font-size: 1.6rem; }
  .fp-hero .lead { font-size: 1rem; }

  /* Sections */
  .fp-section { padding: 2.5rem 0; }
  .fp-section-title { margin-bottom: 2rem; }
  .fp-section-title h2 { font-size: 1.4rem; }

  /* Buttons: full width on mobile, min margin from edges */
  .btn-fp-primary,
  .btn-fp-whatsapp,
  .btn-fp-outline {
    width: 100%;
    padding: .7rem 1rem;
    font-size: .88rem;
    text-align: center;
    letter-spacing: .02em;
  }
  .btn-lg {
    padding: .7rem 1rem !important;
    font-size: .88rem !important;
  }

  /* Button groups: stack vertical with gap, respect margins */
  .d-flex.flex-wrap.gap-3,
  .d-flex.justify-content-center.gap-3 {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem !important;
    padding: 0;
    max-width: 320px;
  }

  /* Cards */
  .fp-card-img { height: 180px; }

  /* How It Works: single column */
  .fp-how-it-works { gap: 1.5rem; }

  /* Feature list */
  .fp-feature-list li { font-size: .88rem; }

  /* Footer */
  .fp-footer { padding: 2rem 0 1rem; font-size: .82rem; }

  /* WhatsApp float */
  .fp-whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .fp-whatsapp-float svg { width: 28px; height: 28px; }

  /* Breadcrumb */
  .fp-breadcrumb { font-size: .78rem; }

  /* Contact form */
  .fp-form .form-control { font-size: .88rem; padding: .65rem .8rem; }
  .p-4.p-lg-5 { padding: 1.25rem !important; }

  /* Accordion */
  .fp-faq .accordion-button { font-size: .88rem; padding: .65rem 1rem; }
  .fp-faq .accordion-body { font-size: .85rem; padding: .75rem 1rem; }

  /* Partners image */
  .fp-partners-img { border-radius: 2px; }

  /* Container safe margin */
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Extra small: iPhone SE / very narrow */
@media (max-width: 374.98px) {
  .fp-hero-content h1 { font-size: 1.35rem; }
  .btn-fp-primary,
  .btn-fp-whatsapp,
  .btn-fp-outline { font-size: .82rem; padding: .6rem .75rem; }
  .fp-section { padding: 2rem 0; }
}
