/* --- CORES DE MARCA --- */
:root {
  --laranja-principal: #f90;
  --laranja-escuro: #e67e00;
  --laranja-claro: #ffb347;
  --cinza-claro: #f8f9fa;
  --cinza-medio: #6c757d;
  --cinza-escuro: #343a40;
  --preto: #212529;
}

small a {
  color:#fff;
  text-decoration: none;
}
small a:hover {
  color:#ccc;
  text-decoration: none;
}
.text-white a {
  color:#fff !important;
  text-decoration: none !important;
}
.text-white a:hover {
  color:#ccc !important;
  text-decoration: none !important;
}

.pt40 {
  padding-top:40px !important;
}

.feature-box a {
  color:#222;
}

.bg-raioz {
  background: linear-gradient(90deg, var(--laranja-principal), var(--laranja-escuro));
  color: white;
}

.btn-warning {
  background-color: var(--laranja-principal);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-warning:hover {
  background-color: var(--laranja-escuro);
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.7);
  color: white;
}

.btn-outline-warning {
  border-color: var(--laranja-principal);
  color: var(--laranja-principal);
}

.btn-outline-warning:hover {
  background-color: var(--laranja-principal);
  color: white;
}

.text-warning {
  color: var(--laranja-principal) !important;
}

/* --- MENU FIXO CORRIGIDO --- */
#mainNav {
  position: relative;
  width: 100%;
  z-index: 1030;
  transition: all 0.3s ease;
}

#mainNav .navbar {
  background-color: white;
  transition: all 0.3s ease;
  box-shadow: none;
}

#mainNav.fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  animation: slideDown 0.3s ease;
}

#mainNav:not(.fixed) {
  animation: slideUp 0.3s ease;
}

#mainNav.fixed .navbar {
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Animação quando fixa (desce) */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animação quando volta ao normal (sobe) */
@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* Esconde o menu quando não está fixo e está saindo */
#mainNav:not(.fixed) {
  transform: translateY(-100%);
  opacity: 0;
}

/* Mostra o menu original apenas quando está no topo */
body:not(.scrolled) #mainNav:not(.fixed) {
  transform: translateY(0);
  opacity: 1;
  animation: none;
}


/* --- HERO --- */
.carousel-item {
  height: 500px;
  background-size: cover;
  background-position: center;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 30px;
}

/* --- PESQUISA DOMÍNIO --- */
.domain-search {
  background-color: var(--cinza-claro);
  padding: 60px 0;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.domain-search-box {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.domain-tlds {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.domain-tld {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 8px 15px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.domain-tld:hover {
  background-color: var(--laranja-principal);
  color: white;
  border-color: var(--laranja-principal);
}

/* --- PLANOS --- */
.pricing-card {
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pricing-header {
  background: linear-gradient(135deg, var(--laranja-principal), var(--laranja-escuro));
  color: white;
  padding: 20px;
  text-align: center;
}

.pricing-featured .pricing-header {
  background: linear-gradient(135deg, var(--laranja-escuro), #cc6600);
}

.pricing-body {
  padding: 30px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--preto);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 25px;
}

.pricing-features li:before {
  content: "✓";
  color: var(--laranja-principal);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* --- RECURSOS --- */
.hero-section {
  background: var(--cinza-claro);
  padding: 80px 0;
}

.feature-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  transition: all 0.3s;
  background: white;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--laranja-principal);
  margin-bottom: 20px;
}

/* --- CONTEÚDO VISUAL (IMAGEM ARREDONDADA) --- */
.rounded-img-section {
    padding: 80px 0;
}

.rounded-img-section img {
    border-radius: 20px;
    object-fit: cover;
    width: 100%;       /* garante que nunca ultrapasse a largura da coluna */
    height: auto;      /* altura automática, evita overflow */
    max-width: 100%;   /* reforça o limite máximo */
    display: block;
}

/* --- DEPOIMENTOS (AJUSTE SOLICITADO) --- */
.testimonials {
  /* Cor de fundo da seção de depoimentos */
  background: linear-gradient(135deg, var(--laranja-principal), var(--laranja-escuro));
  color: white;
  padding: 80px 0;
}

.testimonial-card {
  /* Fundo branco e texto preto para o box do depoimento */
  background: white;
  color: var(--preto);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
  background: #fff;
  transform: translateY(-5px);
}

/* --- PARALLAX (AJUSTE SOLICITADO) --- */
.parallax {
    background-attachment: fixed; /* Efeito Parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px; /* Altura do container */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    margin-top: 0px;
    margin-bottom: 0px;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.5); /* Escurece a imagem para destacar o texto branco */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}


/* --- CTA FINAL --- */
.cta-section {
  background: linear-gradient(90deg, var(--laranja-principal), var(--laranja-escuro));
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--preto);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
  .carousel-item {
    height: 400px;
  }
  
  .carousel-caption {
    padding: 20px;
  }
  
  .domain-tlds {
    justify-content: flex-start;
  }

    .parallax {
        background-attachment: scroll; /* Desliga o efeito Parallax em mobile para melhor performance */
    }
}

.img-thumbnail {
  padding: 0 !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: block;
}

@media (max-width: 991.98px) {
  .position-static {
    display:none;
  }

  .rounded-img-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .rounded-img-section .col-md-6,
  .rounded-img-section .col-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .rounded-img-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

.pagination .page-link {
  color: #555;
  border: 1px solid #ddd;
  padding: 0.4rem 0.8rem; /* menor e mais elegante */
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
  color: #000;
}

.pagination .page-item.active .page-link {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.pagination .page-item.disabled .page-link {
  color: #aaa;
  background-color: #fff;
  border-color: #eee;
}

#page-hero {
    height: 160px;
    min-height: 140px;
    background-size: cover;
    background-position: center;
    background-color:#444;
    position: relative;
    display: flex;
    align-items: center;
}

#page-hero .parallax-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); /* escurece levemente a imagem */
}

#page-hero .parallax-content {
    position: relative; /* para ficar acima do overlay */
    width: 100%;
}

.dropdown-menu .dropdown-item {
  font-size:14px;
  /*font-weight: 500;*/
}

.list-unstyled .dropdown-item {
  font-size:16px;
  font-weight: 400;
}

#submenu .nav-link {
  color: #555;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
}

#submenu .nav-link:hover,
#submenu .nav-link.active {
  color: #f1b500;
  border-bottom: 2px solid #f1b500;
}

@media (max-width: 991px) {
  #submenu .nav-item {
    width: auto;
    text-align: right;
    margin: 5px 0;
  }
  #submenu .navbar-collapse {
    justify-content: flex-end;
    padding-right: 15px;
  }
  #submenu .navbar-toggler {
    margin-left: auto;
  }
}

.dropdown-menu .dropdown-item span + span {
    margin-top: 15px !important;
    display: block; /* garante que o margin-top funcione */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* altura do menu fixo */
}

.img-fundo {
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
}

.card{border-radius:16px;box-shadow:0 3px 15px rgba(0,0,0,0.1);}
.tlds-grid .form-check{margin-bottom:5px;}
.tlds-grid .btn-check+label{cursor:pointer;}
.btn-tld{width:100%;text-align:center;border-radius:8px;margin-bottom:5px;}
.btn-tld.active{background:#28a745;color:#fff;}
.resultado{display:none;margin-top:20px;}
#resultado{margin-top:20px;}
.status-disponivel{color:#28a745;font-weight:bold;}
.status-registrado{color:#dc3545;font-weight:bold;}
.status-indefinido{color:#6c757d;font-weight:bold;}
.status-erro{color:#ffc107;font-weight:bold;}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: #fff;
    background-color: var(--laranja-principal);
    border-color: var(--laranja-principal);
}
.leftinherit {
  left: inherit !important;
}
/* Slide toggle suave */
.hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.show-slide {
  max-height: 500px; /* ajuste conforme o conteúdo */
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
  }

  .card-link .card {
    transition: all 0.3s ease;
    border-radius: 10px;
  }

  .card-link .card i,
  .card-link .card h5,
  .card-link .card p {
    transition: color 0.3s ease;
  }

  .card-link:hover .card {
    background-color: #ff9900; /* laranja */
    transform: translateY(-5px); /* leve "lift" */
  }

  .card-link:hover .card i,
  .card-link:hover .card h5,
  .card-link:hover .card p {
    color: #fff !important;
  }


@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    height: calc(100vh - 70px);
    background-color: white;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1055; /* acima do overlay */
    border-radius: 10px;
    padding: 1rem 0;
    display: none;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-collapse .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  .navbar-brand,
  .navbar-toggler {
    position: relative;
    z-index: 1060; /* sempre acima de tudo */
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255,255,255,0.9);
    z-index: 1050; /* abaixo do menu */
    display: none;
  }
}