/* ============================================
   MAPAZ COMERCIAL, LDA — Site Comercial
   ============================================ */

:root {
  /* Cores extraídas do logo Mapaz Comercial */
  --brand-blue: #0870b8;
  --brand-blue-dark: #065a94;
  --brand-green: #98c850;
  --brand-orange: #f8a020;
  --brand-red: #f81820;
  --ink: #0a0a0a;
  --ink-soft: #1a2a3a;
  --teal: var(--brand-blue);
  --teal-bright: #1a8fd4;
  --sand: #eef3f8;
  --mist: #f5f8fb;
  --coral: var(--brand-orange);
  --white: #ffffff;
  --muted: #5a6f7a;
  --line: rgba(8, 112, 184, 0.14);
  --whatsapp: #25d366;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(8, 112, 184, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ——— WhatsApp ——— */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ——— Header ——— */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(12, 26, 36, 0.08);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  background: transparent;
  padding: 0;
  filter: brightness(0) invert(1);
  transition: filter 0.35s var(--ease);
}
.header.scrolled .logo-img {
  filter: none;
}
.logo-icon {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: filter 0.35s var(--ease);
}
.header.scrolled .logo-icon {
  filter: none;
}
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
  transition: color 0.35s var(--ease);
}
.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.35s var(--ease);
}
.header.scrolled .logo-text strong { color: var(--brand-blue); }
.header.scrolled .logo-text span { color: var(--muted); }

.navbar ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  transition: color 0.25s;
}
.navbar a:hover,
.navbar a.active { color: #fff; }
.header.scrolled .navbar a { color: var(--ink-soft); }
.header.scrolled .navbar a:hover,
.header.scrolled .navbar a.active { color: var(--brand-blue); }

.mobile-menu {
  display: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 6px;
}
.header.scrolled .mobile-menu { color: var(--ink); }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}
.slider { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s linear;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 20, 40, 0.9) 0%, rgba(8, 112, 184, 0.55) 48%, rgba(248, 160, 32, 0.28) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 0.72), transparent 45%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 16vh;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  color: #fff;
}
.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 18px;
  max-width: 12ch;
  animation: rise 0.9s var(--ease) both;
}
.brand-hero em {
  font-style: normal;
  color: var(--brand-green);
}
.slide-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 600;
  max-width: 28ch;
  margin-bottom: 12px;
  animation: rise 0.9s 0.1s var(--ease) both;
}
.slide-content p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  margin-bottom: 28px;
  animation: rise 0.9s 0.18s var(--ease) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.9s 0.26s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-blue-dark); }
.nav-cta {
  background: var(--brand-orange) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.header.scrolled .nav-cta {
  background: var(--brand-blue) !important;
  color: #fff !important;
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.slider-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 6;
}
.slider-dots {
  position: static;
  transform: none;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s, background 0.3s;
}
.dot.active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}
.slider-arrows {
  display: flex;
  gap: 8px;
}
.arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  background: rgba(8, 20, 40, 0.45);
  transition: background 0.25s;
}
.arrow:hover { background: rgba(8, 112, 184, 0.85); }

/* ——— Sections ——— */
section { padding: 100px 0; }
.section-header {
  margin-bottom: 52px;
  max-width: 640px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— Sobre ——— */
.sobre { background: var(--white); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.sobre-image {
  position: relative;
}
.sobre-image img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center;
  background: #f4f6f8;
}
.experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--ink);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.experience-badge .years {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-green);
  line-height: 1;
}
.experience-badge .text {
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0.9;
}
.sobre-content h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 16px;
}
.sobre-content p {
  color: var(--muted);
  margin-bottom: 14px;
}
.sobre-content strong { color: var(--ink); }
.sobre-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 28px 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}
.feature-item i { color: var(--teal); margin-top: 3px; }
.missao-visao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mv-card {
  padding: 22px;
  background: var(--mist);
  border-left: 3px solid var(--brand-blue);
}
.mv-card h4 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.mv-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ——— Categorias ——— */
.categorias {
  background:
    radial-gradient(ellipse at top right, rgba(8, 112, 184, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(152, 200, 80, 0.1), transparent 45%),
    var(--mist);
}
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.categoria-tile {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: block;
  color: #fff;
}
.categoria-tile img {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
}
.categoria-tile:hover img { transform: scale(1.08); }
.categoria-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 26, 36, 0.88) 0%, rgba(12, 26, 36, 0.15) 60%);
}
.categoria-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
}
.categoria-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.categoria-info span {
  font-size: 0.88rem;
  opacity: 0.85;
}

/* ——— Produtos ——— */
.produtos { background: var(--white); }
.produtos-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.filtro-btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: all 0.25s;
}
.filtro-btn:hover,
.filtro-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.produto-card {
  background: var(--mist);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.produto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.produto-card.hidden { display: none; }
.produto-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #d9e3e8;
}
.produto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}
.produto-card:hover .produto-img img { transform: scale(1.06); }
.produto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 36, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.produto-card:hover .produto-overlay { opacity: 1; }
.btn-ver {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.produto-info { padding: 18px; }
.produto-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.produto-info p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.categoria-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(8, 112, 184, 0.12);
  color: var(--brand-blue);
}
.categoria-tag.escolar { background: rgba(152, 200, 80, 0.18); color: #5a8a18; }
.categoria-tag.informatico { background: rgba(248, 160, 32, 0.16); color: #c07810; }
.categoria-tag.mobiliario { background: rgba(248, 24, 32, 0.12); color: var(--brand-red); }

/* ——— Serviços ——— */
.servicos {
  background:
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
}
.servicos .section-tag { color: var(--brand-green); }
.servicos .section-subtitle { color: rgba(255, 255, 255, 0.7); }
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.servico-card {
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s, border-color 0.3s;
}
.servico-card:hover {
  background: rgba(8, 112, 184, 0.18);
  border-color: rgba(152, 200, 80, 0.45);
}
.servico-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--brand-blue);
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.servico-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.servico-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* ——— Contacto ——— */
.contacto { background: var(--mist); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
.contacto-info { display: grid; gap: 14px; }
.contacto-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
}
.contacto-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.whatsapp-bg { background: var(--whatsapp); }
.email-bg { background: var(--teal); }
.phone-bg { background: var(--ink-soft); }
.location-bg { background: var(--coral); }
.contacto-detalhes h4 {
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.contacto-detalhes a,
.contacto-detalhes p {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.contacto-detalhes a:hover { color: var(--teal); }
.contacto-form {
  background: var(--white);
  padding: 36px;
}
.contacto-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.form-group { margin-bottom: 14px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--mist);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.25s;
}
.btn-submit:hover { background: var(--ink); }

/* ——— Docs strip ——— */
.docs-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  background: var(--mist);
  border-left: 4px solid var(--brand-blue);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.doc-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.doc-link h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.doc-link p {
  color: var(--muted);
  font-size: 0.92rem;
}
.doc-link i { font-size: 1.4rem; color: var(--brand-orange); }

/* ——— Footer ——— */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { margin-bottom: 18px; font-size: 0.95rem; }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.25s;
}
.footer-social a:hover { background: var(--brand-blue); }
.footer h4 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--brand-green); }
.footer-contact p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.footer-contact i { color: var(--brand-orange); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 36, 0.72);
  display: grid;
  place-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #fff;
  width: min(820px, 100%);
  position: relative;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: #fff;
  z-index: 2;
  display: grid;
  place-items: center;
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-img { height: 360px; background: var(--sand); }
.modal-img img { width: 100%; height: 100%; }
.modal-info { padding: 36px; }
.modal-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.modal-info p {
  color: var(--muted);
  margin-bottom: 16px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 20px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .categorias-grid,
  .produtos-grid { grid-template-columns: repeat(2, 1fr); }
  .servicos-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sobre-grid,
  .contacto-grid { grid-template-columns: 1fr; }
  .sobre-image img { height: 360px; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .mobile-menu { display: block; }
  .navbar ul {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .navbar ul.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar a { color: var(--ink) !important; padding: 14px; }
  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
  }
  .categorias-grid,
  .produtos-grid,
  .servicos-grid,
  .docs-grid,
  .missao-visao,
  .sobre-features,
  .footer-grid,
  .modal-body {
    grid-template-columns: 1fr;
  }
  .slide-content { padding-bottom: 20vh; }
  .slider-controls { bottom: 20px; }
  .modal-img { height: 240px; }
}
