/* =============================================
   ETech Systems – style.css
   Paleta: Navy #1B3A6B | Cyan #29ABE2 | Gray #8C9AA8
   ============================================= */

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

:root {
  --navy:       #1B3A6B;
  --navy-light: #234d8f;
  --cyan:       #29ABE2;
  --cyan-light: #4fc3f7;
  --gray-dark:  #4A5568;
  --gray-mid:   #8C9AA8;
  --gray-light: #E8EDF2;
  --white:      #FFFFFF;
  --text:       #1A202C;
  --text-muted: #6B7280;
  --border:     #E2E8F0;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     10px;
  --radius-lg:  16px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Colored Bars ---- */
.bar { display: block; height: 6px; flex: 1; }
.bar--dark  { background: var(--gray-dark); }
.bar--cyan  { background: var(--cyan); }
.bar--gray  { background: var(--gray-mid); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--cyan);
  color: var(--white);
}
.btn--primary:hover { background: var(--cyan-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo { display: flex; align-items: baseline; gap: 5px; }
.logo__etech   { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: .05em; }
.logo__systems { font-size: 20px; font-weight: 600; color: var(--cyan); letter-spacing: .04em; }
.logo__ltda    { font-size: 13px; font-weight: 500; color: var(--gray-mid); }

/* Nav */
.nav { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.nav__link:hover { background: var(--gray-light); color: var(--navy); }
.nav__link--cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 20px;
}
.nav__link--cta:hover { background: var(--cyan) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf5 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41,171,226,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__bar {
  display: flex;
  width: 100%;
  height: 6px;
}

.hero__content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 24px;
}
.highlight { color: var(--cyan); }

.hero__desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual { display: flex; justify-content: center; }
.hero__img-wrap {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-3deg);
  transition: transform .4s ease;
}
.hero__img-wrap:hover { transform: perspective(1000px) rotateY(0deg); }
.hero__img { width: 100%; height: 380px; object-fit: cover; }

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 32px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =============================================
   SECTIONS – Shared
   ============================================= */
.section { padding: 96px 0; }

.section__header { margin-bottom: 56px; }
.section__header--center { text-align: center; }

.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(41,171,226,.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   SOBRE
   ============================================= */
.sobre { background: var(--white); }

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.sobre__lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.6;
}

.sobre__text p { color: var(--text-muted); margin-bottom: 16px; }

.sobre__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.badge svg { color: var(--cyan); flex-shrink: 0; }

/* Info Cards */
.info-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cyan);
}

.info-table { width: 100%; border-collapse: collapse; }
.info-table td {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.info-table td:first-child { color: var(--text-muted); width: 45%; }
.info-table td:last-child { font-weight: 600; color: var(--navy); }
.info-table tr:last-child td { border-bottom: none; }

.software-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}
.sw-tag:hover { background: var(--cyan); color: var(--white); border-color: var(--cyan); }

/* =============================================
   SERVIÇOS
   ============================================= */
.servicos { background: #f7f9fc; }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px; height: 56px;
  background: rgba(41,171,226,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
  transition: all var(--transition);
}
.service-card:hover .service-card__icon { background: var(--cyan); color: var(--white); }

.service-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.service-card__desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   CLIENTES
   ============================================= */
.clientes { background: var(--navy); }
.clientes .section__tag { color: var(--cyan-light); background: rgba(41,171,226,.2); }
.clientes .section__title { color: var(--white); }

.clientes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cliente-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 20px 32px;
  transition: all var(--transition);
}
.cliente-item:hover { background: rgba(41,171,226,.2); border-color: var(--cyan); transform: translateY(-2px); }
.cliente-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}

/* =============================================
   PORTFÓLIO
   ============================================= */
.portfolio { background: var(--white); }

.portfolio__filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-light);
  border: 2px solid transparent;
  transition: all var(--transition);
}
.filter-btn:hover { color: var(--navy); background: var(--border); }
.filter-btn--active { background: var(--navy); color: var(--white); border-color: var(--navy); }

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

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.portfolio-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.portfolio-item.hidden { display: none; }

.portfolio-item__img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.portfolio-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.portfolio-item:hover .portfolio-item__img-wrap img { transform: scale(1.05); }

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,58,107,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__zoom {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.portfolio-item__zoom:hover { background: var(--cyan); }

.portfolio-item__info { padding: 20px 22px; }
.portfolio-item__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}
.portfolio-item__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.portfolio-item__desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover { background: var(--cyan); }

.lightbox__content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox__img { max-width: 100%; max-height: 80vh; border-radius: var(--radius); object-fit: contain; }
.lightbox__caption { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 16px; }

/* =============================================
   CONTATO
   ============================================= */
.contato { background: #f7f9fc; }

.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 44px; height: 44px;
  background: rgba(41,171,226,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.contact-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.contact-item a { color: var(--cyan); }
.contact-item a:hover { text-decoration: underline; }

/* Form */
.contato__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }

.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,171,226,.12); }

.form-success {
  grid-column: 1 / -1;
  display: none;
  background: rgba(41,171,226,.1);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  text-align: center;
}
.form-success.visible { display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--navy); color: var(--white); }
.footer__bar { display: flex; }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer__brand .logo__etech   { font-size: 22px; font-weight: 800; color: var(--white); }
.footer__brand .logo__systems { font-size: 22px; font-weight: 600; color: var(--cyan); }
.footer__brand .logo__ltda    { font-size: 14px; color: rgba(255,255,255,.5); }
.footer__tagline { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 8px; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--cyan); }

.footer__legal { text-align: right; }
.footer__legal p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.8; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Header */
  .nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .hamburger { display: flex; }

  /* Hero */
  .hero__content { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .hero__visual { order: -1; }
  .hero__img { height: 260px; }
  .hero__img-wrap { transform: none !important; }

  /* Sobre */
  .sobre__grid { grid-template-columns: 1fr; gap: 40px; }

  /* Serviços */
  .servicos__grid { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio__grid { grid-template-columns: 1fr; }

  /* Contato */
  .contato__grid { grid-template-columns: 1fr; gap: 40px; }
  .contato__form { grid-template-columns: 1fr; padding: 28px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__legal { text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .clientes__grid { flex-direction: column; }
  .cliente-item { width: 100%; text-align: center; }
}
