/* ============================================================
   SOFTLOAD WEB — style.css
   Stack: Bootstrap 5.3 + CSS3 puro | Mobile First
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #dbeafe;
  --success:        #22c55e;
  --dark:           #0f172a;
  --gray:           #64748b;
  --gray-light:     #94a3b8;
  --border:         #e2e8f0;
  --light:          #f8fafc;
  --white:          #ffffff;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  --transition: .2s ease;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family:    var(--font-main);
  color:          var(--dark);
  background:     var(--white);
  line-height:    1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Typography Utilities ────────────────────────────────────── */
.fw-800 { font-weight: 800; }

/* ── Badge Eyebrow ───────────────────────────────────────────── */
.badge-eyebrow {
  display:         inline-block;
  font-size:       .75rem;
  font-weight:     600;
  letter-spacing:  .07em;
  text-transform:  uppercase;
  color:           var(--primary);
  background:      var(--primary-light);
  padding:         .3rem .75rem;
  border-radius:   999px;
  margin-bottom:   1rem;
}

/* ── Section Padding ─────────────────────────────────────────── */
.section-pad { padding: 5rem 0; }

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

/* ── Section Header ──────────────────────────────────────────── */
.section-title {
  font-size:   clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color:       var(--dark);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-sub {
  font-size:  1.05rem;
  color:      var(--gray);
  max-width:  520px;
  margin:     0 auto;
}

/* ── Background Utilities ────────────────────────────────────── */
.bg-light-subtle { background: var(--light); }

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  padding:    .9rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.07);
}

/* Brand */
.navbar-brand,
.footer-brand {
  font-size:   1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand-soft { color: var(--dark); }
.brand-web  { color: var(--primary); }

.nav-link {
  font-size:   .9rem;
  font-weight: 500;
  color:       var(--gray) !important;
  padding:     .4rem .6rem !important;
  transition:  color var(--transition);
}
.nav-link:hover { color: var(--dark) !important; }

/* ============================================================
   HERO
============================================================ */
.section-hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .section-hero { padding: 3rem 0 3rem; }
}

/* Hero Text */
.hero-headline {
  font-size:    clamp(2rem, 5vw, 3rem);
  font-weight:  800;
  line-height:  1.15;
  letter-spacing: -.02em;
  color:        var(--dark);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size:    1.1rem;
  color:        var(--gray);
  max-width:    480px;
  margin-bottom: 2rem;
  line-height:  1.7;
}

.trust-item {
  font-size:   .85rem;
  font-weight: 500;
  color:       var(--gray);
}

/* ── Browser Mockup ──────────────────────────────────────────── */
.browser-mockup {
  width:        100%;
  max-width:    420px;
  background:   var(--white);
  border:       1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:   var(--shadow-lg);
  overflow:     hidden;
  transform:    perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition:   transform .4s ease;
}

.browser-mockup:hover {
  transform: perspective(900px) rotateY(-1deg) rotateX(0deg);
}

.browser-bar {
  display:     flex;
  align-items: center;
  gap:         .4rem;
  padding:     .65rem 1rem;
  background:  #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: #fc5f5f; }
.dot-yellow { background: #fdbc40; }
.dot-green  { background: #34c749; }

.browser-url {
  font-size:   .72rem;
  color:       var(--gray);
  background:  var(--white);
  border:      1px solid var(--border);
  border-radius: 6px;
  padding:     .18rem .6rem;
  margin-left: .4rem;
  flex: 1;
  font-family: monospace;
  overflow:    hidden;
  white-space: nowrap;
}

.browser-content {
  padding: 1rem;
  background: var(--white);
}

/* Mock nav */
.mock-nav {
  height: 28px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: .75rem;
  border: 1px solid var(--border);
}

/* Mock hero area */
.mock-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: .75rem;
}
.mock-headline {
  height: 12px;
  width: 80%;
  background: var(--primary);
  border-radius: 4px;
  opacity: .7;
  margin-bottom: .5rem;
}
.mock-sub {
  height: 8px;
  width: 65%;
  background: var(--gray-light);
  border-radius: 4px;
  margin-bottom: .75rem;
  opacity: .5;
}
.mock-btn {
  height: 22px;
  width: 100px;
  background: var(--primary);
  border-radius: 6px;
  opacity: .85;
}

/* Mock cards */
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.mock-card {
  height: 50px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  .browser-mockup {
    max-width: 340px;
    transform: none;
  }
  .browser-mockup:hover { transform: none; }
}

/* ============================================================
   SERVIÇOS
============================================================ */
.service-card {
  position:   relative;
  background: var(--white);
  border:     1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:    2rem;
  display:    flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-card--featured {
  border-color:  var(--primary);
  border-width:  2px;
}

.featured-badge {
  position:   absolute;
  top:        -1px;
  right:      1.5rem;
  background: var(--primary);
  color:      var(--white);
  font-size:  .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding:    .25rem .75rem;
  border-radius: 0 0 8px 8px;
}

.service-icon {
  font-size:  1.75rem;
  color:      var(--primary);
}

.service-price {
  font-size:   1.5rem;
  font-weight: 800;
  color:       var(--dark);
  margin-bottom: .25rem;
}

.service-name {
  font-size:  1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.service-desc {
  font-size: .9rem;
  color:     var(--gray);
  margin-bottom: 1.25rem;
}

.service-list {
  list-style: none;
  padding:    0;
  margin:     0 0 1.5rem;
  flex:       1;
}

.service-list li {
  font-size:  .9rem;
  padding:    .3rem 0;
  display:    flex;
  align-items: center;
  gap:        .5rem;
  color:      var(--dark);
  border-bottom: 1px solid #f1f5f9;
}

.service-list li:last-child { border-bottom: 0; }

.service-list i {
  color:      var(--success);
  font-size:  .95rem;
  flex-shrink: 0;
}

/* ── Incluso / Não Incluso ───────────────────────────────────── */
.included-box {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       1.75rem;
  height:        100%;
}

.included-title {
  font-size:   1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.included-box ul {
  list-style: none;
  padding:    0;
  margin:     0;
}

.included-box ul li {
  font-size:   .9rem;
  color:       var(--gray);
  padding:     .3rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.included-box ul li:last-child { border-bottom: 0; }

/* ============================================================
   PORTFÓLIO
============================================================ */
.portfolio-card {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  transition:    box-shadow var(--transition), transform var(--transition);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform:  translateY(-3px);
}

.portfolio-thumb {
  height:          160px;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.portfolio-thumb--petshop  { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.portfolio-thumb--solar    { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.portfolio-thumb--engine   { background: linear-gradient(135deg, #eff6ff, #dbeafe); }

.portfolio-thumb-inner {
  font-size:  2.5rem;
  opacity:    .6;
}

.portfolio-thumb--petshop .portfolio-thumb-inner  { color: #db2777; }
.portfolio-thumb--solar   .portfolio-thumb-inner  { color: #d97706; }
.portfolio-thumb--engine  .portfolio-thumb-inner  { color: var(--primary); }

.portfolio-body { padding: 1.25rem 1.5rem 1.5rem; }

.portfolio-tag {
  font-size:   .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color:       var(--primary);
}

.portfolio-title {
  font-size:   1rem;
  font-weight: 700;
  margin: .3rem 0 .4rem;
}

.portfolio-desc {
  font-size:   .85rem;
  color:       var(--gray);
  margin-bottom: 1rem;
}

/* ============================================================
   COMO FUNCIONA
============================================================ */
.step-card {
  background:    var(--white);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       1.75rem;
  height:        100%;
  position:      relative;
  transition:    box-shadow var(--transition);
}

.step-card:hover { box-shadow: var(--shadow-sm); }

.step-number {
  font-size:   2.5rem;
  font-weight: 800;
  color:       var(--primary-light);
  line-height: 1;
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}

.step-icon {
  font-size:    1.4rem;
  color:        var(--primary);
  margin-bottom: .75rem;
}

.step-title {
  font-size:   1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.step-desc {
  font-size: .875rem;
  color:     var(--gray);
  margin:    0;
}

/* ============================================================
   DIFERENCIAIS
============================================================ */
.diff-card {
  padding:    1.5rem;
  border:     1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.diff-card:hover {
  border-color: var(--primary);
  box-shadow:   0 0 0 3px var(--primary-light);
}

.diff-icon {
  font-size:    1.5rem;
  color:        var(--primary);
  margin-bottom: .75rem;
}

.diff-title {
  font-size:   .95rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.diff-desc {
  font-size: .85rem;
  color:     var(--gray);
  margin:    0;
}

/* ============================================================
   FAQ
============================================================ */
.accordion-item {
  border:  1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: .5rem;
  overflow: hidden;
}

.accordion-button {
  font-size:   .95rem;
  font-weight: 600;
  color:       var(--dark);
  background:  var(--white);
  box-shadow:  none !important;
  padding:     1.1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  color:      var(--primary);
  background: var(--white);
}

.accordion-button::after {
  filter: none;
}

.accordion-body {
  font-size:  .9rem;
  color:      var(--gray);
  line-height: 1.7;
  padding:    0 1.25rem 1.1rem;
}

/* ============================================================
   CTA FINAL
============================================================ */
.section-cta {
  background: var(--primary);
  padding:    5rem 0;
}

.cta-headline {
  font-size:   clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color:       var(--white);
  margin-bottom: .75rem;
}

.cta-sub {
  font-size:  1.05rem;
  color:      rgba(255,255,255,.8);
  margin-bottom: 1.5rem;
}

.section-cta .btn-light {
  color:       var(--primary);
  font-weight: 600;
}

.section-cta .btn-light:hover {
  background: var(--light);
  color:      var(--primary-dark);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background:  var(--dark);
  color:       var(--gray-light);
  padding:     3.5rem 0 1.5rem;
}

.footer-desc {
  font-size: .875rem;
  color:     var(--gray);
  max-width: 280px;
}

.footer-heading {
  font-size:   .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:       var(--gray-light);
  margin-bottom: 1rem;
}

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

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

.footer-links a,
.footer-links span {
  font-size: .875rem;
  color:     var(--gray);
  transition: color var(--transition);
  display:   inline-flex;
  align-items: center;
}

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

.footer-bottom {
  margin-top:   2.5rem;
  padding-top:  1.25rem;
  border-top:   1px solid #1e293b;
  text-align:   center;
}

.footer-bottom p {
  font-size: .8rem;
  color:     #475569;
  margin:    0;
}

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.whatsapp-float {
  position:    fixed;
  bottom:      1.75rem;
  right:       1.75rem;
  z-index:     1000;
  width:       56px;
  height:      56px;
  border-radius: 50%;
  background:  #25d366;
  color:       var(--white);
  font-size:   1.6rem;
  display:     flex;
  align-items: center;
  justify-content: center;
  box-shadow:  0 4px 20px rgba(37,211,102,.45);
  animation:   waPulse 2.5s ease infinite;
  transition:  transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  color:      var(--white);
  transform:  scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
  animation:  none;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
  position:   fixed;
  bottom:     5.5rem;
  right:      1.75rem;
  z-index:    999;
  width:      40px;
  height:     40px;
  border-radius: 50%;
  background: var(--white);
  border:     1px solid var(--border);
  color:      var(--gray);
  font-size:  1rem;
  display:    flex;
  align-items: center;
  justify-content: center;
  cursor:     pointer;
  opacity:    0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background:  var(--primary);
  color:       var(--white);
  border-color: var(--primary);
  box-shadow:  var(--shadow-md);
  transform:   translateY(-2px);
}

/* ============================================================
   BOTÕES — override Bootstrap
============================================================ */
.btn {
  font-weight:  600;
  border-radius: 8px;
  letter-spacing: -.01em;
  transition: all var(--transition);
}

.btn-primary {
  background:   var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background:   var(--primary-dark);
  border-color: var(--primary-dark);
  transform:    translateY(-1px);
  box-shadow:   0 4px 12px rgba(37,99,235,.35);
}

.btn-outline-primary {
  border-color: var(--border);
  color:        var(--dark);
}

.btn-outline-primary:hover {
  background:   var(--light);
  border-color: var(--primary);
  color:        var(--primary);
}

.btn-outline-secondary {
  border-color: var(--border);
  color:        var(--dark);
  background:   var(--white);
}

.btn-outline-secondary:hover {
  background:  var(--light);
  color:       var(--dark);
  border-color: var(--border);
  transform:   translateY(-1px);
}

/* ============================================================
   FADE IN ANIMATION (IntersectionObserver)
============================================================ */
.fade-in,
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-in-up { transform: translateY(30px); }

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-up,
  .btn,
  .service-card,
  .portfolio-card,
  .diff-card,
  .browser-mockup,
  .whatsapp-float {
    transition: none !important;
    animation:  none !important;
    transform:  none !important;
    opacity:    1 !important;
  }
}
