/* =========================================
   STYLE1.CSS — material.html
   J. A. TECH | Alinhado ao style.css principal
   ========================================= */

:root {
  --orange:        #ff7300;
  --orange-dk:     #e06200;
  --orange-glow:   rgba(255,115,0,0.10);
  --orange-border: rgba(255,115,0,0.22);
  --navy:          #030810;
  --navy-2:        #081424;
  --navy-3:        #122040;
  --white:         #ffffff;
  --text:          #1a2536;
  --muted:         #6b7a96;
  --surface:       #f4f6f9;
  --border:        rgba(0,0,0,0.07);
  --sh-xs:  0 1px 4px rgba(0,0,0,.05);
  --sh-sm:  0 2px 10px rgba(0,0,0,.07);
  --sh-md:  0 8px 30px rgba(0,0,0,.10);
  --sh-lg:  0 20px 64px rgba(0,0,0,.14);
  --sh-xl:  0 32px 80px rgba(0,0,0,.18);
  --r:      16px;
  --r-sm:   8px;
  --r-pill: 100px;
}

/*──────────────────────────────────────────
  RESET & BASE
──────────────────────────────────────────*/
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Inter', system-ui, sans-serif;
  line-height:1.7; color:var(--text); background:#fff;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"ss01","cv01";
}
img { display:block; max-width:100%; }
.container { width:90%; max-width:1200px; margin:0 auto; }

/*──────────────────────────────────────────
  HEADER — sempre scrolled nesta página
──────────────────────────────────────────*/
header {
  position:fixed; top:0; left:0; width:100%;
  z-index:1000; padding:0; overflow:visible;
  height:70px;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 1px 0 rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.06);
  transition:box-shadow .4s ease;
}
.header-scrolled { height:70px; }

.nav-container {
  display:flex; justify-content:space-between; align-items:center;
  height:100%; overflow:visible;
}

.logo {
  display:flex; align-items:center;
  height:100%; width:280px; overflow:visible;
}
.logo a {
  display:flex; align-items:center; height:100%;
}
.site-logo {
  height:200px; width:auto; max-width:none; object-fit:contain;
  pointer-events:none; transform:translateY(18px);
  transition:height .4s ease, transform .4s ease;
  position:absolute;
}
.logo-white { display:none; }
.logo-dark  { display:block; }

nav ul { display:flex; gap:2.2rem; list-style:none; }
nav a {
  font-weight:500; font-size:.875rem; text-decoration:none;
  letter-spacing:.03em; color:var(--text);
  position:relative; transition:color .3s;
}
nav a::after {
  content:''; position:absolute; bottom:-5px; left:0;
  width:0; height:2px; border-radius:2px; background:var(--orange);
  transition:width .3s cubic-bezier(.4,0,.2,1);
}
nav a:hover::after, nav a.active::after { width:100%; }
nav a:hover, nav a.active { color:var(--orange); }

/*──────────────────────────────────────────
  PAGE HEADER (mini-hero)
──────────────────────────────────────────*/
/*──────────────────────────────────────────
  PAGE HEADER (mini-hero premium)
──────────────────────────────────────────*/
.page-header {
  background:var(--navy);
  padding:148px 0 80px;
  text-align:center;
  color:var(--white);
  position:relative;
  overflow:hidden;
}

/* Dot grid animado */
.page-header .hero-grid-ph {
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,115,0,0.10) 1px, transparent 1px);
  background-size:28px 28px;
  animation:gridDrift 28s linear infinite;
  opacity:.5; pointer-events:none;
}
@keyframes gridDrift { to { transform:translateY(28px); } }

/* Orb laranja — top-right */
.page-header .orb-a {
  position:absolute;
  width:560px; height:560px;
  background:radial-gradient(circle, rgba(255,100,0,.18) 0%, rgba(255,60,0,.07) 45%, transparent 70%);
  top:-180px; right:-120px;
  border-radius:50%; pointer-events:none;
  animation:orbDriftPH 14s ease-in-out infinite;
}

/* Orb azul — bottom-left */
.page-header .orb-b {
  position:absolute;
  width:420px; height:420px;
  background:radial-gradient(circle, rgba(20,55,220,.16) 0%, rgba(10,25,140,.07) 45%, transparent 70%);
  bottom:-140px; left:-80px;
  border-radius:50%; pointer-events:none;
  animation:orbDriftPH 18s ease-in-out infinite reverse;
}

@keyframes orbDriftPH {
  0%,100% { transform:translateY(0) scale(1); }
  50%      { transform:translateY(-30px) scale(1.06); }
}

/* Scanline sutil */
.page-header::before {
  content:''; position:absolute; inset:0;
  background:repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,.010) 3px, rgba(255,255,255,.010) 4px
  );
  pointer-events:none; z-index:1;
}

/* Vinheta lateral */
.page-header::after {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(3,8,16,.55) 100%);
  pointer-events:none; z-index:1;
}

.page-header .container { position:relative; z-index:2; }

/* Badge (opcional — adiciona no HTML se quiseres) */
.page-header-badge {
  display:inline-flex; align-items:center; gap:9px;
  background:rgba(255,115,0,.07);
  border:1px solid rgba(255,115,0,.22);
  color:rgba(255,255,255,.75);
  padding:8px 18px; border-radius:var(--r-pill);
  font-size:.73rem; font-weight:500; letter-spacing:.06em;
  margin-bottom:22px;
}
.page-header-badge span {
  width:6px; height:6px; background:var(--orange);
  border-radius:50%; box-shadow:0 0 6px rgba(255,115,0,.8);
}

.page-header h1 {
  font-size:clamp(2rem,4.5vw,3.2rem);
  font-weight:900; letter-spacing:-.04em;
  margin-bottom:16px; color:#fff; line-height:1.06;
}
.page-header h1 em {
  font-style:normal;
  background:linear-gradient(112deg,#ff7300 10%,#ffc46b 90%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.page-header p {
  font-size:1rem; color:rgba(255,255,255,.50);
  max-width:520px; margin:0 auto; line-height:1.90;
  position:relative; padding-top:20px;
}
.page-header p::before {
  content:''; position:absolute; top:0; left:50%;
  transform:translateX(-50%);
  width:44px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, transparent, var(--orange), transparent);
}

/*──────────────────────────────────────────
  FILTER BAR
──────────────────────────────────────────*/
.filter-bar {
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom:44px;
}
.filter-btn {
  padding:9px 22px;
  border:1.5px solid var(--orange-border);
  background:transparent;
  color:var(--orange);
  font-weight:600; font-size:.82rem;
  border-radius:var(--r-pill);
  cursor:pointer; letter-spacing:.02em;
  transition:all .3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background:var(--orange);
  border-color:var(--orange);
  color:#fff;
  box-shadow:0 4px 16px rgba(255,115,0,.30);
}

/*──────────────────────────────────────────
  PRODUCTS SECTION
──────────────────────────────────────────*/
.products-section {
  padding:80px 0 108px;
  background:var(--surface);
}

.product-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

/*──────────────────────────────────────────
  PRODUCT CARD — alinhado ao service-card
──────────────────────────────────────────*/
.product-card {
  background:#fff;
  border-radius:var(--r);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--sh-sm);
  display:flex; flex-direction:column;
  opacity:0; transform:translateY(24px);
  transition:
    opacity .55s ease,
    transform .55s ease,
    box-shadow .4s cubic-bezier(.4,0,.2,1),
    background .4s cubic-bezier(.4,0,.2,1),
    border-color .4s ease;
}
.product-card.visible {
  opacity:1; transform:translateY(0);
}
.product-card:hover {
  box-shadow:var(--sh-xl);
  transform:translateY(-7px);
  background:var(--navy-2);
  border-color:transparent;
}

/* Image area */
.product-image {
  background:linear-gradient(145deg, var(--navy-2) 0%, var(--navy-3) 100%);
  height:220px;
  display:flex; align-items:center; justify-content:center;
  padding:28px;
  position:relative; overflow:hidden;
}
.product-image::after {
  content:''; position:absolute; bottom:-20px; left:50%;
  transform:translateX(-50%);
  width:160px; height:100px;
  background:radial-gradient(ellipse, rgba(255,115,0,.12) 0%, transparent 70%);
  border-radius:50%; pointer-events:none;
}
.product-image img {
  max-height:100%; max-width:100%; width:auto;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.40));
  position:relative; z-index:1;
  transition:transform .5s ease;
}
.product-card:hover .product-image img {
  transform:scale(1.05) translateY(-4px);
}

/* Info area */
.product-info {
  padding:26px 26px 24px;
  display:flex; flex-direction:column; flex:1; gap:8px;
}
.category {
  font-size:.70rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.14em;
  color:var(--orange);
}
.product-info h3 {
  font-size:1.05rem; font-weight:700;
  color:var(--text); line-height:1.3;
  transition:color .3s;
}
.product-card:hover .product-info h3 { color:#fff; }

.product-info p {
  font-size:.88rem; color:var(--muted);
  line-height:1.65; flex:1;
  transition:color .3s;
}
.product-card:hover .product-info p { color:rgba(255,255,255,.52); }

/* Buttons */
.product-buttons {
  display:flex; gap:10px;
  margin-top:10px; flex-wrap:wrap;
}
.btn-tech {
  flex:1; padding:10px 16px;
  border:1.5px solid var(--orange-border);
  background:transparent; color:var(--orange);
  font-weight:600; font-size:.82rem;
  border-radius:var(--r-pill);
  cursor:pointer; white-space:nowrap;
  transition:all .3s ease;
}
.btn-tech:hover {
  background:var(--orange);
  border-color:var(--orange);
  color:#fff;
}
.product-card:hover .btn-tech {
  border-color:rgba(255,255,255,.28);
  color:#fff;
}
.product-card:hover .btn-tech:hover {
  background:#fff; color:var(--navy-2); border-color:#fff;
}

.btn-quote {
  flex:1; padding:10px 16px;
  background:var(--orange); color:#fff;
  border:1.5px solid var(--orange);
  font-weight:600; font-size:.82rem;
  border-radius:var(--r-pill);
  cursor:pointer; white-space:nowrap;
  transition:all .3s ease;
  box-shadow:0 4px 14px rgba(255,115,0,.28);
}
.btn-quote:hover {
  background:var(--orange-dk);
  border-color:var(--orange-dk);
  box-shadow:0 6px 20px rgba(255,115,0,.40);
}

/*──────────────────────────────────────────
  MODAL
──────────────────────────────────────────*/
.modal {
  display:none; position:fixed; inset:0; z-index:2000;
  background:rgba(3,8,16,.65);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  align-items:center; justify-content:center;
}
.modal.active { display:flex; }

.modal-content {
  background:#fff;
  border-radius:20px;
  padding:40px;
  max-width:780px; width:90%;
  position:relative;
  box-shadow:var(--sh-xl);
  animation:modalIn .32s cubic-bezier(.4,0,.2,1);
  max-height:88vh; overflow-y:auto;
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(20px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.close-modal {
  position:absolute; top:16px; right:20px;
  font-size:1.5rem; color:var(--muted);
  cursor:pointer; background:none; border:none;
  line-height:1; transition:color .2s;
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  transition:all .2s;
}
.close-modal:hover {
  color:var(--text);
  background:var(--surface);
}

/* Modal header — imagem + título */
.modal-header {
  display:flex; align-items:center; gap:20px;
  padding-bottom:20px;
  border-bottom:2px solid var(--orange); /* ← linha laranja completa */
  margin-bottom:24px;
}
.modal-header::after { display:none; }

.modal-image-wrap {
  flex:0 0 200px; height:100px;
  background:linear-gradient(145deg, var(--navy-2) 0%, var(--navy-3) 100%);
  border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  padding:14px;
  box-shadow:var(--sh-sm);
}
.modal-image-wrap img {
  width:100%; height:100%; object-fit:contain;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.40));
}

#modal-body h2 {
  flex:1;
  font-size:1.3rem; font-weight:800;
  color:var(--text); line-height:1.3;
  letter-spacing:-.02em;
  border-bottom:none; margin-bottom:0; padding-bottom:0;
}

/* Tabela de specs */
#modal-body table {
  width:100%; border-collapse:collapse; font-size:.92rem;
}
#modal-body table tr {
  border-bottom:1px solid rgba(0,0,0,.06);
  transition:background .2s;
}
#modal-body table tr:hover { background:var(--surface); }
#modal-body table td { padding:11px 10px; color:var(--text); }
#modal-body table td:first-child {
  font-weight:600; color:var(--navy-2); width:44%;
  font-size:.88rem; letter-spacing:.01em;
}

/*──────────────────────────────────────────
  FOOTER — idêntico ao principal
──────────────────────────────────────────*/
footer { background:var(--navy); color:rgba(255,255,255,.48); padding:64px 0 24px; }
.footer-cols,
.footer-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:36px; margin-bottom:44px; padding-bottom:44px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.footer-cols h4,
.footer-grid h4 {
  color:#fff; font-size:.8rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:14px;
}
.footer-cols p,
.footer-grid p { font-size:.88rem; line-height:1.80; }
.footer-bottom,
.footer-copy {
  text-align:center; font-size:.75rem; color:rgba(255,255,255,.18);
  border-top:none; padding-top:0;
}

/*──────────────────────────────────────────
  RESPONSIVE
──────────────────────────────────────────*/
@media (max-width:992px) {
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .page-header h1 { font-size:2.1rem; }
  .modal-image-wrap { flex:0 0 150px; height:80px; }
}
@media (max-width:768px) {
  nav ul { display:none; }
  .product-grid { grid-template-columns:1fr; }
  .page-header { padding:110px 0 52px; }
  .page-header h1 { font-size:1.7rem; }
  .product-buttons { flex-direction:column; }
  .btn-tech, .btn-quote { flex:none; width:100%; }
  .modal-header { flex-direction:column; text-align:center; }
  .modal-image-wrap { flex:0 0 auto; width:100%; height:120px; }
}
@media (max-width:480px) {
  .product-image { height:180px; }
  .modal-content { padding:28px 20px; }
}