/* LAI Máquinas & Serviços — Static (Bootstrap + jQuery) */
:root {
  --brand: #141b4d;
  --brand-glow: #2a3a8c;
  --brand-foreground: #ffffff;
  --surface: #f5f7fa;
  --foreground: #131a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent-amber: #f5b942;
  --shadow-elegant: 0 20px 50px -25px rgba(20, 27, 77, 0.45);
  --shadow-soft: 0 8px 24px -12px rgba(20, 27, 77, 0.18);
  --gradient-brand: linear-gradient(135deg, var(--brand), var(--brand-glow));
  --gradient-hero: linear-gradient(135deg, rgba(20, 27, 77, 0.85), rgba(10, 14, 40, 0.55));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', 'Bebas Neue', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

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

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

.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; color: var(--brand-foreground); }
.bg-surface { background-color: var(--surface) !important; }

.container-x { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}
.eyebrow-light { color: rgba(255,255,255,0.9); }

.section-y { padding: 5.5rem 0; }

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-brand);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-elegant);
  border: none;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}
.btn-brand:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  background: transparent;
  transition: background .25s ease, color .25s ease;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  background: #fff;
  color: var(--brand);
  transition: background .2s ease;
}
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--brand); }

.card-soft {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }

/* Top bar */
.topbar {
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 0.78rem;
}
.topbar .container-x {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px; padding-bottom: 8px;
  gap: 8px;
}
.topbar a { color: inherit; }
.topbar .info { display: flex; gap: 22px; opacity: 0.92; }
.topbar .info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .slogan { opacity: 0.85; display: none; }
@media (min-width: 768px) { .topbar .slogan { display: inline-flex; align-items: center; gap: 6px; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container-x {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.site-header .logo img { height: 48px; width: auto; }
.site-header nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 992px) { .site-header nav { display: flex; } }
.site-header nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(19,26,46,0.82);
  transition: background .2s ease, color .2s ease;
}
.site-header nav a:hover { background: var(--surface); color: var(--brand); }
.site-header nav a.active { background: var(--surface); color: var(--brand); }
.site-header .nav-cta { margin-left: 12px; padding: 10px 20px !important; font-size: 0.875rem !important; }

.menu-toggle {
  display: inline-flex;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 6px;
}
.menu-toggle:hover { background: var(--surface); }
@media (min-width: 992px) { .menu-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav .container-x { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; padding-bottom: 12px; }
.mobile-nav a {
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(19,26,46,0.82);
}
.mobile-nav a.active { background: var(--surface); color: var(--brand); }

/* Hero */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--brand);
}
.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero .slide.active { opacity: 1; }
.hero .slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero .slide.active img { animation: slowZoom 8s ease-in-out forwards; }
.hero .overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
}
.hero .hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  margin: 1rem 0 0;
  max-width: 720px;
}
.hero p.lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.86);
  max-width: 600px;
}
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .actions .btn-ghost-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff; font-weight: 600;
  transition: background .2s;
}
.hero .actions .btn-ghost-white:hover { background: rgba(255,255,255,0.12); color: #fff; }

.hero .controls {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  z-index: 2;
}
.hero .controls .container-x { display: flex; justify-content: space-between; align-items: center; }
.hero .dots { display: flex; gap: 8px; }
.hero .dot {
  height: 6px; width: 20px; border-radius: 9999px;
  background: rgba(255,255,255,0.4); border: 0;
  transition: all .3s ease; cursor: pointer;
}
.hero .dot.active { width: 40px; background: #fff; }
.hero .arrows { display: none; gap: 8px; }
@media (min-width: 768px) { .hero .arrows { display: flex; } }
.hero .arrow {
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.hero .arrow:hover { background: rgba(255,255,255,0.12); }

/* Page hero (subpages) */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--brand);
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.page-hero .inner { position: relative; color: #fff; padding-bottom: 56px; width: 100%; }
.page-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  text-transform: uppercase;
  margin-top: 0.75rem;
  max-width: 800px;
}
.page-hero p { margin-top: 1rem; max-width: 640px; color: rgba(255,255,255,0.86); font-size: 1.125rem; }

/* Sections */
.section-head { max-width: 640px; }
.section-head h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

/* Icon tile */
.icon-tile {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-tile.muted { background: var(--surface); color: var(--brand); }
.icon-tile svg { width: 24px; height: 24px; }

/* Service card */
.service-card .ratio-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-card .body { padding: 28px; }
.service-card .body h3 { font-size: 1.75rem; margin: 0; }
.service-card ul.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.service-card ul.checks li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 0.95rem; }
.service-card ul.checks li svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; flex-shrink: 0; }

/* Stats */
.stat { text-align: center; padding: 32px; }
.stat .k { font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; color: var(--brand); font-weight: 700; }
.stat .l { margin-top: 8px; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--muted); }

/* Gallery */
.gallery-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: 1rem; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item figcaption {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity .3s ease;
  color: #fff; font-weight: 600; margin: 0;
}
.gallery-item:hover figcaption { opacity: 1; }

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 18px; list-style: none; padding: 0; }
.contact-info li { display: flex; gap: 16px; }
.contact-info .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.contact-info .title { font-weight: 600; }
.contact-info .line { font-size: 0.9rem; color: var(--muted); }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,27,77,0.15); }
label.fl { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.required { color: #b91c1c; }

/* Footer */
.site-footer { background: var(--brand); color: #fff; margin-top: 48px; }
.site-footer .top { padding: 56px 0; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer .top { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-family: inherit; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.7); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer .logo img { height: 56px; margin-bottom: 16px; }
.site-footer .desc { font-size: 0.9rem; color: rgba(255,255,255,0.78); max-width: 420px; }
.site-footer .quote { margin-top: 16px; font-style: italic; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.site-footer .bottom .container-x { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* CTA Strip */
.cta-strip { background: var(--brand); color: #fff; padding: 80px 0; }
.cta-strip .container-x { text-align: center; }
.cta-strip h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin: 0 auto; max-width: 760px; }
.cta-strip.split .container-x { display: grid; gap: 32px; text-align: left; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cta-strip.split .container-x { grid-template-columns: 1fr auto; align-items: center; } }

/* Grid utils */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .g-2 { grid-template-columns: repeat(2, 1fr); } }
.g-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .g-3 { grid-template-columns: repeat(3, 1fr); } }
.g-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }
.g-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .g-5 { grid-template-columns: repeat(5, 1fr); } }
.g-split { grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 992px) { .g-split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.g-contact { grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 992px) { .g-contact { grid-template-columns: 1fr 1.2fr; } }

.checks-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .checks-grid { grid-template-columns: repeat(2, 1fr); } }
.checks-grid .item { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; }
.checks-grid .item svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }

.feature-img-wrap { position: relative; }
.feature-img-wrap::before {
  content: ''; position: absolute; inset: -16px;
  background: var(--surface); border-radius: 1.25rem; z-index: -1;
}
.feature-img-wrap img { border-radius: 0.75rem; box-shadow: var(--shadow-elegant); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--brand); color: #fff; padding: 20px;
  border-radius: 0.75rem; box-shadow: var(--shadow-elegant);
  display: none;
}
@media (min-width: 768px) { .feature-badge { display: block; } }
.feature-badge .k { font-size: 2.25rem; font-weight: 700; line-height: 1; }
.feature-badge .l { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.85; margin-top: 4px; }

/* Process step */
.step { padding: 28px; }
.step .n { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; color: var(--brand); font-weight: 700; line-height: 1; }
.step h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Big service (services page) */
.big-service .badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--brand); color: #fff;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem;
  padding: 4px 12px; border-radius: 4px;
}
.big-service .ratio-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.big-service .ratio-img img { width: 100%; height: 100%; object-fit: cover; }
.big-service .body { padding: 32px; }
.big-service .head { display: flex; align-items: center; gap: 12px; }
.big-service .head .icon-tile { width: 44px; height: 44px; margin: 0; }
.big-service h2 { margin: 0; font-size: 1.875rem; }
.big-service p { color: var(--muted); margin: 16px 0 0; }
.big-service ul.checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.big-service ul.checks li { display: flex; gap: 8px; font-size: 0.9rem; align-items: flex-start; }
.big-service ul.checks li svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* Equipment grid */
.equip-card { padding: 24px; }
.equip-card .n { font-family: ui-monospace, monospace; font-size: 0.75rem; color: rgba(20,27,77,0.7); }
.equip-card h3 { margin: 8px 0; font-size: 1.25rem; }
.equip-card p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* Animations */
@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.18); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-fade-up { animation: fadeUp .8s ease both; }
.animate-fade-in { animation: fadeIn .8s ease both; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
