/* RESET E VARIÁVEIS */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #07111e;
  --bg-darker: #050c16;
  --bg-light: #f8f9fb;
  --bg-white: #ffffff;
  --yellow: #f4c430;
  --yellow-hover: #e0b020;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-gray-light: #cbd5e1;
  --blue-accent: #1d6fa5;
  --border-light: #e2e8f0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

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

/* IMAGEM DE FUNDO DIRETA DO HTML (<img class="section-bg">) */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-yellow {
  color: var(--yellow);
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-yellow {
  background-color: var(--yellow);
  color: #0b1320;
}

.btn-yellow:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: rgba(15, 23, 42, 0.55);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* NAVBAR E LOGO COM EFEITO DE ZOOM */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 17, 30, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* LOGO NAVBAR: Zoom para compensar os 500px com espaço transparente */
.navbar .brand-logo img {
  height: 60px; /* Mantém a barra em um tamanho bom */
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: scale(2.5); /* Zoom de 2.5x */
  transform-origin: left center; /* Cresce para a direita */
  margin-left: 20px; /* Dá um espaço da borda esquerda */
  transition: transform 0.25s ease;
}

.navbar .brand-logo:hover img {
  transform: scale(2.6); /* Efeito de hover um pouco maior */
}

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

.nav-links a {
  color: var(--text-gray-light);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 640px;
  padding: 170px 0 70px;
  background-color: var(--bg-dark);
  background-image: url('../arquivo/hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 15, 28, 0.92) 0%, rgba(6, 15, 28, 0.72) 45%, rgba(6, 15, 28, 0.05) 100%);
}

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

.hero-content {
  max-width: 540px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #6ea8d6;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-gray-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.mouse-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* SEÇÃO NUESTROS SERVICIOS */
.services-section {
  padding: 85px 0;
  background-color: var(--bg-light);
}

.services-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 50px;
  align-items: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #334155;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services-info h2 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.services-info p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
}

.service-img-wrapper {
  width: 100%;
  height: 135px;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 14px;
  background-color: #0f172a;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* SEÇÃO SOBRE IDEIATOUCH */
.about-section {
  position: relative;
  padding: 90px 0;
  background-color: var(--bg-dark);
  background-image: url('../arquivo/sobre-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--text-light);
  overflow: hidden;
}

.about-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 17, 30, 0.94) 0%, rgba(7, 17, 30, 0.78) 48%, rgba(7, 17, 30, 0.05) 100%);
}

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

.about-content {
  max-width: 560px;
}

.section-tag-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.yellow-line {
  width: 24px;
  height: 2px;
  background-color: var(--yellow);
}

.tag-text-light {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-gray-light);
  text-transform: uppercase;
}

.tag-text-dark {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #475569;
  text-transform: uppercase;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--text-gray-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 34px;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-gray-light);
  margin-top: 4px;
}

/* SEÇÃO PORTAFOLIO / PROYECTOS */
.portfolio-section {
  padding: 85px 0;
  background-color: var(--bg-white);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}

.portfolio-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-accent);
}

.view-all-link:hover {
  opacity: 0.8;
}

.link-arrow-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

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

.portfolio-card {
  background: var(--bg-white);
  border-radius: 10px;
  transition: transform 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-img-wrapper {
  width: 100%;
  height: 165px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.portfolio-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ESTILOS ESPECÍFICOS DA PÁGINA DE PORTAFOLIO E FILTROS */
.portfolio-page-header {
  padding: 160px 0 40px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.portfolio-page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 10px 0 14px;
}

.portfolio-page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 24px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--yellow);
  color: #0b1320;
  border-color: var(--yellow);
  transform: translateY(-1px);
}

.portfolio-full-section {
  padding: 60px 0 100px;
  background-color: var(--bg-white);
}

.portfolio-grid-page {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px;
}

.portfolio-card.hide {
  display: none !important;
}

/* SEÇÃO CONTACTO */
.contact-section {
  position: relative;
  padding: 85px 0;
  background-color: #0c1b2e;
  background-image: url('../arquivo/contacto-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 20, 36, 0.88) 0%, rgba(8, 20, 36, 0.55) 100%);
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-info {
  color: var(--text-light);
  max-width: 460px;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--text-gray-light);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 26px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #dce3ec;
  background-color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  object-fit: contain;
}

.form-feedback {
  margin-top: 10px;
  font-size: 0.84rem;
  text-align: center;
  color: var(--yellow);
  min-height: 18px;
}

/* FOOTER E LOGO MAIOR NO RODAPÉ COM ZOOM */
.footer {
  background-color: var(--bg-darker);
  color: var(--text-gray-light);
  padding: 65px 0 95px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-logo img {
  height: 80px; 
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: scale(2.2); /* Zoom aplicado também no rodapé */
  transform-origin: left center;
  margin-left: 15px;
  margin-bottom: 30px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 14px 0 20px;
  max-width: 280px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.social-links a:hover {
  background: var(--yellow);
}

.social-links img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 9px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #64748b;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-link {
  color: #94a3b8;
  font-weight: 500;
}

.lang-link.active,
.lang-link:hover {
  color: #38bdf8;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  padding: 14px 0;
  z-index: 1100;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  max-width: 760px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s ease;
}

.btn-cookie-outline {
  background: var(--bg-white);
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
}

.btn-cookie-gray {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
}

.btn-cookie-yellow {
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: #0b1320;
}

.btn-cookie:hover {
  opacity: 0.9;
}

/* ========================================================
   PÁGINAS LEGAIS (Privacidade, Termos, Cookies, etc.)
   ======================================================== */
.legal-header {
  padding: 160px 0 40px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.legal-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.legal-content {
  padding: 60px 0 100px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.legal-content p {
  margin-bottom: 20px;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: 10px;
}

/* RESPONSIVIDADE - TABLET (Até 992px) */
@media (max-width: 992px) {
  .navbar .brand-logo img {
    height: 55px;        
    transform: scale(2.4);
  }

  .footer-brand .brand-logo img {
    height: 75px;        
    transform: scale(2.2);
  }

  .services-grid-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .portfolio-grid-page {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

  .hero h1 {
    font-size: 2.75rem;
  }
}

/* RESPONSIVIDADE - TELEFONE / MOBILE (Até 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .navbar .brand-logo img {
    height: 45px;        
    transform: scale(2.3);
    margin-left: 15px;
  }

  .nav-actions .btn-sm {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-brand .brand-logo img {
    height: 60px;        
    transform: scale(2.2);
  }

  .services-cards,
  .portfolio-grid,
  .portfolio-grid-page,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .portfolio-header,
  .cookie-container,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .stats-row {
    gap: 28px;
    flex-wrap: wrap;
  }

  /* Ajustes mobile para as Páginas Legais */
  .legal-header {
    padding: 120px 0 30px;
  }
  
  .legal-header h1 {
    font-size: 2.2rem;
  }
}