/* Custom Properties / Colors */
:root {
  --primary-color: #D5313D;
  --secondary-color: #6D30FB;
  --dark-blue: #010F34;
  --darker-blue: #00081C;
  --purple-light: #B465A5;
  --heading-font: "Ubuntu", sans-serif;
  --body-font: "DM Sans", sans-serif;
}

/* Global & Reset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--body-font);
  color: #4a4a4a;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--heading-font);
}

.text-dark-blue {
  color: var(--dark-blue) !important;
}

.bg-dark-blue {
  background-color: var(--dark-blue) !important;
}

.bg-darker-blue {
  background-color: var(--darker-blue) !important;
}

/* Utilities */
.tracking-wide {
  letter-spacing: 2px;
}

.text-gradient {
  background: linear-gradient(266deg, #FF6633 -1.18%, #6D2CF9 96.14%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purple-icon {
  color: #8A3FFC;
}

/* Header & Navigation (Efeito Vidro) */
.header-area {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  transition: all 0.3s ease;
  background-color: rgba(1, 15, 52, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 0;
}

.header-area.scrolled {
  padding: 8px 0;
  background-color: rgba(1, 15, 52, 0.98);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  margin: 0 12px;
  font-family: var(--heading-font);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #FF6633 !important;
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(266deg, #FF6633 -1.18%, #6D2CF9 96.14%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(109, 44, 249, 0.3);
}

.btn-purple {
  background: linear-gradient(90deg, #8A3FFC, #D55897);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-purple:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(138, 63, 252, 0.4);
}

/* Hero Section */
.hero-section {
  background-color: var(--dark-blue);
  background-image: url('../assets/images/home-one/hero/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  padding-top: 100px;
}

.tag-line {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
  letter-spacing: 1px;
}

.hero-robot-img {
  max-width: 110%;
  transform: translate(20px, -20px);
}

/* Seção Sobre */
.about-image-wrapper {
  z-index: 2;
}

.about-image-wrapper .main-img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
}

.about-image-wrapper .inset-img {
  bottom: -30px;
  right: -20px;
  max-width: 200px;
  border-radius: 20px;
}

.robot-hand-float {
  max-width: 350px;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.custom-check-list li span {
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Seção Serviços */
.service-col {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.service-col:last-child {
  border-right: none;
}

.service-icon {
  height: 60px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.service-active {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
}

.service-col:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

/* Custom Accordion (Casos de Uso) */
.custom-accordion .accordion-button:focus {
  box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--dark-blue);
  box-shadow: none;
}

/* Seção Para Quem É */
.floating-badge {
  bottom: -20px;
  left: 20px;
  width: 220px;
  z-index: 3;
}

@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* ══════════════════════════════════════════
   HEADER / NAVBAR — MOBILE
   ══════════════════════════════════════════ */

/* Logo maior */
.navbar-brand img,
.header-area .navbar-brand img {
  height: 36px !important;
  width: auto !important;
}

/* Menu mobile aberto */
.navbar-collapse.show,
.navbar-collapse.collapsing {
  background: rgba(1, 15, 52, 0.98);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 12px;
}

.navbar-nav .nav-link {
  font-size: 1rem !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-nav .nav-item:last-child .nav-link {
  border-bottom: none;
}

/* ══════════════════════════════════════════
   FOOTER — LEGIBILIDADE
   ══════════════════════════════════════════ */

footer,
.footer-area,
[class*="footer"] {
  font-size: 0.95rem;
  line-height: 1.7;
}

footer h5,
footer h6,
.footer-area h5,
.footer-area h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

footer a,
.footer-area a {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

footer a:hover,
.footer-area a:hover {
  color: #FF6633 !important;
}

footer p,
.footer-area p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   SEÇÃO SERVIÇOS — ÍCONES E LEGIBILIDADE
   ══════════════════════════════════════════ */

.service-icon {
  height: 52px;
  filter: brightness(0) invert(1);
  opacity: 1 !important;
}

.service-col h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-col p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.85 !important;
}

/* ══════════════════════════════════════════
   TABLET (≤ 991px)
   ══════════════════════════════════════════ */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 50px;
    text-align: center;
  }

  .hero-section .d-flex {
    justify-content: center !important;
  }

  .navbar-collapse {
    background: rgba(1, 15, 52, 0.98);
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 12px;
  }

  /* Esconder imagem inset que sobrepõe no mobile */
  .about-image-wrapper .inset-img {
    display: none;
  }

  .about-image-wrapper .main-img {
    max-width: 100%;
    border-radius: 16px;
  }

  .service-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 28px !important;
    margin-bottom: 28px !important;
  }

  .service-col:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
  }

  .floating-badge {
    position: relative !important;
    bottom: auto;
    left: auto;
    width: auto;
    max-width: 240px;
    margin: 20px auto 0;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   MOBILE (≤ 767px) — AJUSTES FINOS
   ══════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Tipografia */
  h1.display-4 {
    font-size: 1.85rem !important;
    line-height: 1.2;
  }

  h2.display-5 {
    font-size: 1.55rem !important;
    line-height: 1.3;
  }

  h2.display-2 {
    font-size: 2.8rem !important;
  }

  p, li {
    font-size: 0.95rem;
  }

  /* Hero */
  .hero-section {
    padding: 110px 0 48px;
  }

  .hero-section .container {
    margin-top: 0 !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
    max-width: 100% !important;
  }

  .hero-section .btn-lg {
    font-size: 0.9rem;
    padding: 11px 18px;
    width: 100%;
    text-align: center;
  }

  .hero-section .gap-3 {
    gap: 0.75rem !important;
  }

  /* Sobre */
  .about-section .container {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .custom-check-list li span {
    font-size: 0.95rem;
  }

  .about-section .btn-lg {
    width: 100%;
    text-align: center;
  }

  /* Serviços — forçar 1 coluna e aumentar ícone */
  .service-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .service-icon {
    height: 46px;
  }

  .services-section h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  .services-section h2 br {
    display: none;
  }

  /* Accordion */
  .accordion-button {
    font-size: 1rem !important;
    padding-right: 2rem !important;
  }

  .accordion-body {
    font-size: 0.9rem !important;
  }

  /* Casos de Uso — mockup telefone */
  .phone-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mockup-topbar {
    width: auto !important;
    margin-left: 10px !important;
    font-size: 0.8rem;
  }

  .phone-mockup video {
    max-width: 240px !important;
    width: 100% !important;
  }

  /* Para Quem É */
  .choose-img {
    height: 220px !important;
  }

  .floating-badge {
    max-width: 220px;
    margin-top: 16px !important;
  }

  .floating-badge h2.display-5 {
    font-size: 1.8rem !important;
  }

  /* Bloco IA+ */
  .ia-features-block {
    flex-direction: column !important;
  }

  .ia-title-box {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    padding-bottom: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    padding-right: 0 !important;
    text-align: center;
  }

  .ia-list-box {
    padding-left: 0 !important;
  }

  /* Contato */
  .contact-section .btn-lg {
    font-size: 0.9rem;
    padding: 12px 20px;
    white-space: normal;
    line-height: 1.5;
    width: 100%;
  }

  /* Espaçamentos globais */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .mt-5 {
    margin-top: 2rem !important;
  }
}

/* ── NOVO AVISO DE COOKIES (DARK MODE) ── */
.cookie-banner {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  /* Escondido fora da tela inicialmente */
  background-color: rgba(1, 15, 52, 0.95);
  /* Azul escuro da Vero com leve transparência */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 25px;
  z-index: 9999;
  width: 90%;
  max-width: 800px;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Classe que o JavaScript vai adicionar para fazer o banner deslizar para cima */
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-text p {
  line-height: 1.5;
}

.cookie-text a:hover {
  filter: brightness(1.2);
}

.cookie-actions {
  flex-shrink: 0;
}

/* Responsividade para telemóveis */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 15px;
    padding: 15px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .cookie-icon {
    font-size: 28px;
    margin-bottom: -5px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

/* Altura controlada da imagem "Para Quem É" */
.choose-img {
  height: 500px;
}

/* Barra do mockup de telemóvel */
.mockup-topbar {
  width: max-content;
  margin-left: 20px;
}

@media (max-width: 767px) {
  .choose-img {
    height: 260px !important;
  }

  .mockup-topbar {
    width: auto !important;
    margin-left: 0 !important;
    font-size: 0.8rem;
  }
}