/* =========================================================
   MACAPÁ SERVIÇOS INDUSTRIAIS - STYLE.CSS ORGANIZADO
   ---------------------------------------------------------
   COMO ALTERAR RÁPIDO:
   1. Cores principais: edite as variáveis em :root.
   2. Logo/menu: procure por "CABEÇALHO".
   3. Imagem principal: procure por "HERO".
   4. Cards de serviços: procure por "SERVIÇOS".
   5. Responsivo/celular: procure por "RESPONSIVO".
   ========================================================= */

/* ==================== VARIÁVEIS GERAIS ==================== */
:root {
  --blue: #005fd1;
  --blue-dark: #004fb0;
  --navy: #061525;
  --text: #1b2433;
  --muted: #687386;
  --line: #e6ebf2;
  --soft: #f7f9fc;
  --white: #ffffff;

  --container: 7%;
  --header-padding: 5.5%;
  --radius: 8px;
}

/* ==================== RESET / BASE ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
}

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

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

p {
  font-size: 17px;
  color: var(--muted);
}

h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.18;
  color: #1c2333;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

/* ==================== CABEÇALHO / MENU ==================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 92px;
  padding: 12px var(--header-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.brand img {
  width: 300px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  color: #172033;
  padding: 10px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: 0.25s;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav .quote {
  background: var(--blue);
  color: var(--white);
  border-radius: 4px;
  padding: 16px 24px;
  box-shadow: 0 8px 18px rgba(0, 95, 209, 0.22);
}

.nav .quote::after {
  display: none;
}

.nav .quote:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.menu-btn {
  display: none;
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 4px;
  font-size: 24px;
  padding: 8px 12px;
}

/* ==================== BOTÕES ==================== */
.actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  border: 1px solid transparent;
}

.primary {
  background: var(--blue);
  color: var(--white);
}

.primary:hover {
  background: var(--blue-dark);
}

.outline {
  border: 2px solid rgba(255, 255, 255, 0.82);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ==================== HERO / IMAGEM PRINCIPAL ==================== */
.hero {
  min-height: 86vh;
  padding: 150px 5.5% 70px;
  display: flex;
  align-items: center;
  position: relative;

  /* Para trocar a imagem principal, substitua o arquivo assets/fachada-macapa.jpg */
  background:
    linear-gradient(90deg, rgba(6, 21, 37, 0.72) 0%, rgba(6, 21, 37, 0.52) 34%, rgba(6, 21, 37, 0.18) 62%, rgba(6, 21, 37, 0.08) 100%),
    url('assets/fachada-macapa.jpg') center / cover no-repeat;
}

.hero-content {
  max-width: 780px;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1.06;
  letter-spacing: -2.2px;
  margin-bottom: 24px;
  color: var(--white);
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.25);
  font-weight: 900;
}

.hero p {
  max-width: 620px;
  color: var(--white);
  font-size: 20px;
  line-height: 1.55;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 24px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: wheel 1.4s infinite;
}

@keyframes wheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ==================== TOPO DAS PÁGINAS INTERNAS ==================== */
.page-hero {
  min-height: 44vh;
  padding: 145px 6% 75px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(6, 21, 37, 0.86), rgba(6, 21, 37, 0.34)),
    url('assets/fachada-macapa.jpg') center / cover no-repeat;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  color: var(--white);
}

.page-hero p {
  color: #edf5ff;
  font-size: 18px;
}

.page-content {
  max-width: 900px;
}

/* ==================== SEÇÕES PADRÃO ==================== */
.section {
  padding: 86px var(--container);
}

.soft {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.tag::after {
  content: '';
  width: 82px;
  height: 3px;
  background: var(--blue);
}

/* ==================== SERVIÇOS DA HOME ==================== */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  padding: 48px 5.5%;
  border-bottom: 4px solid var(--blue);
  box-shadow: 0 -12px 35px rgba(15, 23, 42, 0.04);
}

.service-mini {
  min-height: 190px;
  padding: 10px 34px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: 0.25s;
}

.service-mini:last-child {
  border-right: 0;
}

.service-mini:hover {
  transform: translateY(-4px);
}

.mini-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 2px solid var(--blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border-radius: 10px;
  font-weight: 900;
}

.service-mini h3 {
  font-size: 18px;
  text-transform: uppercase;
  color: #202636;
  margin-bottom: 10px;
}

.service-mini p {
  font-size: 15px;
  color: #666666;
  line-height: 1.55;
}

/* ==================== SOBRE / QUALIDADES ==================== */
.about-clean p + p {
  margin-top: 22px;
}

.quality-list {
  border-left: 1px solid var(--line);
  padding-left: 44px;
  display: grid;
}

.quality-list div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.quality-list div::before {
  content: '✓';
  position: absolute;
  left: -4px;
  top: 24px;
  transform: translateX(-100%);
  width: 42px;
  height: 42px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 900;
}

.quality-list strong {
  display: block;
  color: #172033;
  text-transform: uppercase;
  font-size: 14px;
}

.quality-list span {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

/* ==================== PÁGINA DE SERVIÇOS ==================== */
.service-list {
  display: grid;
  gap: 18px;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
}

.service-row span {
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.service-row h2 {
  font-size: 30px;
}

/* ==================== PORTFÓLIO / GALERIA ==================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  height: 230px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9eef5;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: 'Ampliar';
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #081525;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 21, 37, 0.82);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  border-radius: 4px;
  padding: 6px 9px;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.90);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 10px;
}

.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: #081525;
  font-size: 30px;
  cursor: pointer;
}

.close { top: 22px; right: 22px; }
.prev { left: 22px; }
.next { right: 22px; }

/* ==================== CONTATO ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-box,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.contact-box p {
  margin-top: 18px;
}

.contact-box a {
  color: var(--blue);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px 15px;
  font: inherit;
  background: var(--white);
  color: #081525;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.map-wrap {
  padding: 0 6% 86px;
  background: var(--soft);
}

.map-wrap iframe {
  border-radius: 10px;
}

/* ==================== CTA ==================== */
.cta {
  margin: 0 var(--container) 80px;
  padding: 42px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 6px;
}

.cta p {
  color: #cbd5e1;
}

/* ==================== RODAPÉ ==================== */
.footer {
  padding: 36px 5.5%;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--white);
}

.footer img {
  width: 260px;
}

.footer p {
  font-size: 14px;
}

/* ==================== RESPONSIVO / TABLET ==================== */
@media (max-width: 1120px) {
  .nav {
    gap: 14px;
  }

  .brand img {
    width: 250px;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-mini:nth-child(2) {
    border-right: 0;
  }

  .service-mini:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-list {
    padding-left: 34px;
  }
}

/* ==================== RESPONSIVO / CELULAR ==================== */
@media (max-width: 760px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 5%;
  }

  .brand img {
    width: 220px;
    height: 58px;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    background: #f5f8fc;
    margin-top: 6px;
    border-radius: 4px;
  }

  .nav .quote {
    padding: 14px;
  }

  .hero,
  .page-hero {
    padding: 125px 5% 60px;
    min-height: 78vh;
    background-position: center;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 17px;
  }

  .service-strip {
    grid-template-columns: 1fr;
    padding: 34px 5%;
  }

  .service-mini {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 26px 10px;
  }

  .service-mini:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 5%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 260px;
  }

  .service-row {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .cta {
    margin: 0 5% 64px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .scroll-indicator {
    display: none;
  }
}


/* ==================== ÍCONES INDUSTRIAIS ==================== */
.mini-icon svg,
.service-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 10px 24px rgba(0, 95, 209, 0.10);
}

.service-mini:hover .mini-icon {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.service-icon {
  width: 68px;
  height: 68px;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f8ff;
  box-shadow: 0 10px 24px rgba(0, 95, 209, 0.08);
}

.service-row:hover .service-icon {
  background: var(--blue);
  color: var(--white);
}

/* ==================== BOTÕES FLUTUANTES WHATSAPP / INSTAGRAM ==================== */
.floating-social {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  transition: 0.25s;
}

.float-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.04);
}

.float-btn.whatsapp {
  background: #25D366;
}

.float-btn.instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 10%, #fd5949 45%, #d6249f 65%, #285AEB 100%);
}

@media (max-width: 760px) {
  .floating-social {
    right: 15px;
    bottom: 15px;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  .float-btn svg {
    width: 29px;
    height: 29px;
  }
}
