/* ==============================
   Camachinho – Pure CSS
   ============================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(220,20%,7%);
  --fg: hsl(0,0%,95%);
  --card: hsl(220,18%,10%);
  --card-fg: hsl(0,0%,95%);
  --primary: hsl(200,100%,47%);
  --primary-fg: hsl(220,20%,7%);
  --secondary: hsl(220,15%,15%);
  --muted: hsl(220,15%,18%);
  --muted-fg: hsl(220,10%,55%);
  --border: hsl(220,15%,18%);
  --radius: 0.25rem;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --gradient-industrial: linear-gradient(135deg, hsl(200,100%,47%), hsl(200,80%,35%));
  --gradient-overlay: linear-gradient(180deg, hsla(220,20%,7%,0.8) 0%, hsla(220,20%,7%,0.4) 50%, hsla(220,20%,7%,0.9) 100%);
  --shadow-card: 0 8px 32px -8px hsla(0,0%,0%,0.4);
  --shadow-glow: 0 0 40px -10px hsla(200,100%,47%,0.3);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input, select, textarea { font: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Utilities ---------- */
.section-padding { padding-left: 1.5rem; padding-right: 1.5rem; }
@media(min-width:768px){ .section-padding { padding-left: 3rem; padding-right: 3rem; } }
@media(min-width:1024px){ .section-padding { padding-left: 5rem; padding-right: 5rem; } }
@media(min-width:1280px){ .section-padding { padding-left: 8rem; padding-right: 8rem; } }

.text-gradient {
  background-image: var(--gradient-industrial);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.micro-text {
  font-size: 0.75rem; font-family: var(--font-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.5rem;
}
@media(min-width:768px){ .micro-text { font-size: 0.875rem; } }
.text-muted { color: var(--muted-fg); font-size: 1.125rem; line-height: 1.7; }
.text-center { text-align: center; }

.section-dark { padding: 6rem 0; }
.section-card { padding: 6rem 0; background: var(--card); }
@media(min-width:1024px){ .section-dark, .section-card { padding: 10rem 0; } }

h2 {
  font-size: 1.875rem; font-weight: 700; line-height: 1.15; margin-bottom: 1rem; max-width: 56rem;
}
@media(min-width:768px){ h2 { font-size: 2.25rem; } }
@media(min-width:1024px){ h2 { font-size: 3rem; } }

/* ---------- Buttons ---------- */
.btn-primary-industrial {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  background-image: var(--gradient-industrial); color: var(--primary-fg);
  border: none; transition: all 0.3s;
}
.btn-primary-industrial:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-primary-industrial.small { padding: 0.75rem 1.5rem; font-size: 0.75rem; }

.btn-outline-industrial {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid hsla(0,0%,95%,0.2); color: var(--fg); background: transparent; transition: all 0.3s;
}
.btn-outline-industrial:hover { border-color: var(--primary); color: var(--primary); }

.card-industrial {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: all 0.5s; box-shadow: var(--shadow-card);
}
@media(min-width:768px){ .card-industrial { padding: 2rem; } }
.card-industrial:hover { border-color: hsla(200,100%,47%,0.3); box-shadow: var(--shadow-glow); transform: translateY(-4px); }

.divider-glow {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, hsla(200,100%,47%,0.4), transparent);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.25,0.4,0.25,1), transform 0.7s cubic-bezier(0.25,0.4,0.25,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== HEADER ========== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.5s, border 0.5s;
}
#site-header.scrolled { background: hsla(220,20%,7%,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
#site-header.menu-open { background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.logo img { height: 2rem; filter: brightness(0) invert(1); }
@media(min-width:768px){ .logo img { height: 2.5rem; } }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a { font-size: 0.875rem; font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: hsla(0,0%,95%,0.7); transition: color 0.3s; }
.nav-desktop a:hover { color: var(--primary); }
@media(min-width:1024px){ .nav-desktop { display: flex; } }

/* Hamburger */
.menu-toggle { display: flex; flex-direction: column; gap: 5px; z-index: 60; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); transition: all 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(min-width:1024px){ .menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--bg); padding: 6rem 2rem 2rem; z-index: 50;
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu a { font-size: 1.5rem; font-family: var(--font-display); letter-spacing: 0.05em; color: hsla(0,0%,95%,0.8); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--primary); }

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-overlay); }
.hero-grid-lines { position: absolute; inset: 0; opacity: 0.03; }
.hero-grid-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--fg); }
.hero-grid-lines span:nth-child(1){ left: 25%; }
.hero-grid-lines span:nth-child(2){ left: 50%; }
.hero-grid-lines span:nth-child(3){ left: 75%; }
.hero-content { position: relative; width: 100%; padding-top: 8rem; padding-bottom: 5rem; }
.hero-inner { max-width: 64rem; }
.hero h1 {
  font-size: 1.875rem; font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 2rem;
}
@media(min-width:640px){ .hero h1 { font-size: 2.25rem; } }
@media(min-width:768px){ .hero h1 { font-size: 2.65rem; } }
@media(min-width:1024px){ .hero h1 { font-size: 3rem; } }
@media(min-width:1280px){ .hero h1 { font-size: 3.5rem; } }
.hero-sub { font-size: 1.125rem; color: hsla(0,0%,95%,0.7); max-width: 40rem; margin-bottom: 3rem; line-height: 1.7; }
@media(min-width:768px){ .hero-sub { font-size: 1.25rem; } }
.hero-btns { display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:640px){ .hero-btns { flex-direction: row; } }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: fadeInScroll 1s 1.5s both;
}
.scroll-arrow { animation: bounceDown 1.8s ease-in-out infinite; color: var(--muted-fg); }
.scroll-line { width: 1px; height: 3rem; background: linear-gradient(to bottom, hsla(200,100%,47%,0.6), transparent); }
@keyframes bounceDown { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(6px); } }
@keyframes fadeInScroll { from { opacity: 0; } to { opacity: 1; } }

/* ========== AUTHORITY BAR ========== */
.authority-bar { padding: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); }
.authority-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media(min-width:1024px){ .authority-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.authority-item { display: flex; align-items: center; gap: 1rem; }
.authority-icon {
  flex-shrink: 0; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid hsla(200,100%,47%,0.2); border-radius: var(--radius); color: var(--primary);
}
.authority-item span { font-size: 0.875rem; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.02em; color: hsla(0,0%,95%,0.8); }

/* ========== ABOUT ========== */
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media(min-width:1024px){ .about-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.about-text h2 { margin-bottom: 2rem; }
.about-text .text-muted { margin-bottom: 2.5rem; }
.about-highlights { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.about-highlights li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: hsla(0,0%,95%,0.8); }
.check-icon {
  flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 0.125rem;
  border-radius: 50%; background: hsla(200,100%,47%,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.about-image { position: relative; }
.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.about-badge {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--primary); padding: 1.25rem 2rem;
}
.badge-num { font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; color: var(--primary-fg); display: block; }
.badge-label { font-size: 0.75rem; font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: hsla(220,20%,7%,0.8); }

/* ========== SECTORS ========== */
.sectors-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media(min-width:1024px){ .sectors-grid { grid-template-columns: 1fr 1fr; } }

.sector-card { overflow: hidden; border-radius: var(--radius); cursor: pointer; display: flex; flex-direction: column; }
.sector-card:hover .sector-img img { transform: scale(1.05); }
.sector-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.sector-text { padding: 1.25rem 1.5rem; background: var(--bg); }
.sector-text h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
@media(min-width:640px){ .sector-text h3 { font-size: 1.5rem; } }
@media(min-width:1024px){ .sector-text h3 { font-size: 1.875rem; } }
.sector-sub { color: var(--primary); font-size: 0.875rem; font-family: var(--font-display); }
.sector-text p { color: var(--muted-fg); margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; max-width: 28rem; }
.sector-link {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
  color: var(--primary); font-size: 0.875rem; font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase;
}

/* ========== EQUIPMENT ========== */
.equipment-grid { display: grid; gap: 1rem; }
@media(min-width:640px){ .equipment-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .equipment-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1280px){ .equipment-grid { grid-template-columns: repeat(4,1fr); } }

.equip-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: all 0.5s; box-shadow: var(--shadow-card); overflow: hidden;
}
.equip-card:hover { border-color: hsla(200,100%,47%,0.3); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.equip-card:hover .equip-img img { transform: scale(1.1); }
.equip-card:hover .equip-line { width: 4rem; }
.equip-img { width: 100%; height: 15rem; overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem; background: hsla(220,15%,18%,0.2); }
@media(min-width:1024px){ .equip-img { height: 16rem; } }
.equip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.equip-line { width: 2rem; height: 1px; background: var(--primary); margin-bottom: 1rem; transition: width 0.5s; }
.equip-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.75rem; line-height: 1.3; }
.equip-card p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }

/* ========== DIFFERENTIALS ========== */
.diff-grid { display: grid; gap: 3rem; margin-top: 2rem; align-items: center; }
@media(min-width:1024px){ .diff-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.diff-slider { }
.diff-content { min-height: 280px; }
.diff-num { font-size: 4.5rem; font-family: var(--font-display); font-weight: 700; color: hsla(200,100%,47%,0.1); line-height: 1; }
.diff-header { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; margin-bottom: 1rem; }
.diff-icon {
  width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid hsla(200,100%,47%,0.2); border-radius: var(--radius); background: hsla(200,100%,47%,0.05); color: var(--primary);
}
.diff-content h3 { font-size: 1.5rem; font-weight: 700; }
@media(min-width:1024px){ .diff-content h3 { font-size: 1.875rem; } }
.diff-content .text-muted { font-size: 1.125rem; line-height: 1.7; max-width: 32rem; }

.diff-nav { display: flex; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.diff-dots { display: flex; gap: 0.5rem; flex: 1; max-width: 16rem; }
.diff-dot { height: 4px; flex: 1; border-radius: 999px; background: var(--border); transition: background 0.5s; border: none; cursor: pointer; }
.diff-dot.active { background: var(--primary); }
.diff-arrows { display: flex; gap: 0.75rem; }
.diff-arrow {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: all 0.3s; color: var(--fg);
}
.diff-arrow:hover { border-color: var(--primary); color: var(--primary); }

.diff-image { display: none; }
@media(min-width:1024px){ .diff-image { display: block; } }
.diff-image-wrapper {
  border-radius: 1rem; overflow: hidden; border: 1px solid hsla(220,15%,18%,0.5); position: relative;
}
.diff-image-wrapper img { width: 100%; height: auto; object-fit: cover; }
.diff-image-wrapper::after {
  content: ''; position: absolute; inset: 0; border-radius: 1rem;
  background: linear-gradient(to top, var(--card) 0%, transparent 40%); pointer-events: none;
}

/* ========== CLIENTS ========== */
.clients-rows { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.clients-track-wrapper { overflow: hidden; position: relative; }
.clients-track { display: flex; gap: 1rem; width: max-content; }
.clients-track.scroll-left { animation: scrollLeft 30s linear infinite; }
.clients-track.scroll-right { animation: scrollRight 30s linear infinite; }
@keyframes scrollLeft { 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }
@keyframes scrollRight { 0%{ transform: translateX(-50%); } 100%{ transform: translateX(0); } }

.logo-card {
  flex-shrink: 0; width: 10rem; height: 5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid hsla(220,15%,18%,0.5); background: hsla(220,18%,10%,0.8);
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: var(--muted-fg); white-space: nowrap; padding: 0 1rem;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2,1fr); auto-rows: 200px; gap: 0.75rem;
}
@media(min-width:768px){ .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1024px){ .gallery-grid { grid-template-columns: repeat(4,1fr); auto-rows: 240px; } }

.gallery-item { overflow: hidden; border-radius: var(--radius); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; background: transparent; transition: background 0.5s;
}
.gallery-item:hover::after { background: hsla(220,20%,7%,0.3); }

.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-1x2 { grid-row: span 2; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; gap: 4rem; }
@media(min-width:1024px){ .contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.contact-text h2 { margin-bottom: 1.5rem; }
.contact-text .text-muted { margin-bottom: 1rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media(min-width:640px){ .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--fg);
  transition: border-color 0.3s; outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-fg); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: none; }
.contact-form select { appearance: none; }

.contact-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; text-align: center;
}
.success-icon {
  width: 4rem; height: 4rem; border-radius: 50%; background: hsla(200,100%,47%,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 1rem;
}
.contact-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-success p { color: var(--muted-fg); font-size: 0.875rem; }

/* ========== FOOTER ========== */
footer { border-top: 1px solid var(--border); background: var(--card); }
.footer-grid { display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
@media(min-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .footer-grid { grid-template-columns: 1fr 1fr 2fr; } }

.footer-brand img { height: 2rem; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.footer-brand p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--muted-fg); font-size: 0.875rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }

.footer-contact-items { display: flex; flex-direction: column; gap: 1rem; }
.footer-ci { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-fg); transition: color 0.3s; }
a.footer-ci:hover { color: var(--primary); }

.footer-bottom { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted-fg); }

/* ========== WHATSAPP BUTTON ========== */
.whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: hsl(142,70%,45%); display: flex; align-items: center; justify-content: center;
  color: var(--fg); transition: all 0.3s;
  box-shadow: 0 4px 20px hsla(142,70%,45%,0.4);
}
.whatsapp-btn:hover { background: hsl(142,70%,40%); transform: scale(1.1); }
