/* ===========================================================
   JN Serviços & Manutenção — Locação de Equipamentos
   Paleta: tons de azul e branco
   =========================================================== */

:root {
  --azul-900: #0a2540;
  --azul-800: #0d3a66;
  --azul-700: #114c87;
  --azul-600: #1565c0;
  --azul-500: #1e7fd4;
  --azul-400: #3d9be9;
  --azul-100: #e8f2fc;
  --azul-50:  #f4f9ff;
  --branco:   #ffffff;
  --cinza-100:#f3f5f8;
  --cinza-300:#d9e0ea;
  --cinza-500:#6b7a8d;
  --cinza-700:#3a4655;
  --whats:    #25d366;
  --whats-d:  #1da851;
  --sombra:   0 8px 30px rgba(10, 37, 64, .10);
  --sombra-sm:0 4px 14px rgba(10, 37, 64, .08);
  --radius:   16px;
  --max:      1180px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--cinza-700);
  background: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 84px 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--azul-600);
  background: var(--azul-100);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

h1, h2, h3 { color: var(--azul-900); line-height: 1.18; font-weight: 800; }

.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.section-head p { margin-top: 14px; color: var(--cinza-500); font-size: 1.05rem; }

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--azul-600); color: #fff; box-shadow: 0 8px 20px rgba(21,101,192,.32); }
.btn-primary:hover { background: var(--azul-700); }
.btn-whats { background: var(--whats); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.34); }
.btn-whats:hover { background: var(--whats-d); }
.btn-outline { background: transparent; color: var(--azul-700); border-color: var(--azul-600); }
.btn-outline:hover { background: var(--azul-600); color: #fff; }
.btn-light { background: #fff; color: var(--azul-700); }
.btn-light:hover { background: var(--azul-100); }
.btn svg { width: 20px; height: 20px; }

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cinza-300);
  z-index: 1000;
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--sombra-sm); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand .brand-txt { line-height: 1.1; }
.brand .brand-txt strong { display: block; color: var(--azul-800); font-size: 1.05rem; font-weight: 800; }
.brand .brand-txt span { font-size: .72rem; color: var(--cinza-500); letter-spacing: 1px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--cinza-700); transition: color .15s; }
.nav a:hover { color: var(--azul-600); }
.nav .btn { padding: 10px 20px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--azul-800); border-radius: 3px; margin: 5px 0; transition: .3s; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(circle at 85% 15%, rgba(61,155,233,.18), transparent 45%),
    linear-gradient(135deg, var(--azul-900) 0%, var(--azul-700) 55%, var(--azul-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 90px;
  background: var(--branco);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-content h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero-content h1 .hl { color: var(--azul-400); }
.hero-content p { margin: 20px 0 32px; font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badges .b { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255,255,255,.9); }
.hero-badges .b svg { width: 22px; height: 22px; color: var(--azul-400); flex-shrink: 0; }

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card img { border-radius: 14px; background: #fff; padding: 18px; }
.hero-card .cap { margin-top: 16px; text-align: center; font-weight: 600; color: #fff; }
.hero-card .cap span { display: block; font-size: .85rem; color: rgba(255,255,255,.7); font-weight: 400; }

/* ===================== STATS ===================== */
.stats { background: var(--branco); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  text-align: center;
  padding: 30px 16px;
  background: var(--azul-50);
  border: 1px solid var(--azul-100);
  border-radius: var(--radius);
}
.stat .num { font-size: 2.3rem; font-weight: 800; color: var(--azul-600); }
.stat .lbl { font-size: .95rem; color: var(--cinza-500); font-weight: 600; }

/* ===================== EQUIPAMENTOS ===================== */
.equip { background: var(--azul-50); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  font-weight: 600; font-size: .92rem;
  padding: 9px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--cinza-300);
  background: #fff; color: var(--cinza-700);
  cursor: pointer; transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--azul-500); color: var(--azul-600); }
.filter-btn.active { background: var(--azul-600); border-color: var(--azul-600); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--cinza-300);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: var(--azul-400); }
.card-img { position: relative; aspect-ratio: 4/3; background: #fff; padding: 18px; display: flex; align-items: center; justify-content: center; }
.card-img img { max-height: 100%; object-fit: contain; }
.card-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: var(--azul-100); color: var(--azul-700);
  padding: 5px 12px; border-radius: 20px;
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--cinza-100); }
.card-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card-body p { font-size: .9rem; color: var(--cinza-500); margin-bottom: 16px; flex: 1; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: .85rem; }
.card-actions .btn-ghost {
  flex: 0 0 auto; padding: 11px;
  background: var(--azul-50); color: var(--azul-700); border: 1px solid var(--cinza-300);
}
.card-actions .btn-ghost:hover { background: var(--azul-100); }

.equip-note { text-align: center; margin-top: 40px; color: var(--cinza-500); font-size: .98rem; }

/* ===================== SERVIÇOS ===================== */
.services .grid-serv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.serv-card {
  background: #fff; border: 1px solid var(--cinza-300); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .2s, box-shadow .2s;
}
.serv-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.serv-ico {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--azul-600), var(--azul-400));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.serv-ico svg { width: 30px; height: 30px; color: #fff; }
.serv-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.serv-card p { color: var(--cinza-500); font-size: .96rem; }

/* ===================== COMO FUNCIONA ===================== */
.steps { background: var(--azul-900); color: #fff; }
.steps .section-head h2 { color: #fff; }
.steps .section-head p { color: rgba(255,255,255,.7); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 10px; position: relative; }
.step .n {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.08); border: 2px solid var(--azul-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--azul-400);
}
.step h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.72); font-size: .92rem; }

/* ===================== SOBRE ===================== */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--azul-700), var(--azul-500));
  padding: 44px; box-shadow: var(--sombra);
}
.about-img img { border-radius: 12px; background: #fff; padding: 24px; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 18px; }
.about-text p { color: var(--cinza-500); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--cinza-700); }
.about-list li svg { width: 24px; height: 24px; color: var(--azul-600); flex-shrink: 0; }

/* ===================== CTA / CONTATO ===================== */
.contact { background: var(--azul-50); }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.contact-info > p { color: var(--cinza-500); margin-bottom: 30px; font-size: 1.05rem; }
.contact-cards { display: grid; gap: 16px; }
.c-item {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--cinza-300); border-radius: 14px; padding: 18px 20px;
  transition: border-color .18s, transform .18s;
}
.c-item:hover { border-color: var(--azul-400); transform: translateX(4px); }
.c-item .ico {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: var(--azul-100); display: flex; align-items: center; justify-content: center;
}
.c-item .ico svg { width: 24px; height: 24px; color: var(--azul-600); }
.c-item .txt small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--cinza-500); font-weight: 700; }
.c-item .txt strong { font-size: 1.05rem; color: var(--azul-900); }

/* Formulário */
.contact-form {
  background: #fff; border: 1px solid var(--cinza-300); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--sombra-sm);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form .sub { color: var(--cinza-500); font-size: .94rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--cinza-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--cinza-300); border-radius: 10px;
  font-family: inherit; font-size: .96rem; color: var(--cinza-700);
  background: var(--azul-50); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--azul-500); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-or { text-align: center; margin: 16px 0; color: var(--cinza-500); font-size: .85rem; position: relative; }

/* ===================== MAPA ===================== */
.map-wrap { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cinza-300); box-shadow: var(--sombra-sm); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ===================== FOOTER ===================== */
.footer { background: var(--azul-900); color: rgba(255,255,255,.78); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand img { height: 56px; background: #fff; border-radius: 10px; padding: 6px; }
.footer .brand .brand-txt strong { color: #fff; }
.footer .brand .brand-txt span { color: rgba(255,255,255,.6); }
.footer p { font-size: .94rem; margin-top: 16px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: .94rem; transition: color .15s; }
.footer ul a:hover { color: var(--azul-400); }
.footer-contact li { display: flex; gap: 10px; font-size: .94rem; margin-bottom: 11px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--azul-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ===================== WHATS FLUTUANTE ===================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whats); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s; animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 420px; margin: 0 auto; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .services .grid-serv { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about .container { grid-template-columns: 1fr; gap: 36px; }
  .about-img { order: -1; }
  .contact .container { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 22px; gap: 16px;
    border-bottom: 1px solid var(--cinza-300); box-shadow: var(--sombra);
  }
  .nav.open .btn { width: 100%; justify-content: center; }
  .section { padding: 60px 0; }
  .services .grid-serv { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat .num { font-size: 1.9rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
