:root {
  --primary-color: #0066cc;
  --secondary-color: #0052a3;
  --bg-dark: #f8f9fa;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --accent: #0066cc;
  --glass-border: #eaeaea;
  --glass-bg: #ffffff;
  --gradient-primary: var(--primary-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Solid/Flat Utilities */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.05);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  color: var(--primary-color);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 6px 15px rgba(0, 82, 163, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

/* Header & Nav */
.top-bar {
  background-color: #f8f9fa;
  border-top: 4px solid var(--primary-color);
  color: #333;
  padding: 8px max(5%, calc(50% - 640px));
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1001;
}
.top-bar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn-top-bar {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.btn-top-bar:hover {
  background-color: var(--secondary-color);
}

.navbar {
  position: relative; 
  width: 100%;
  border-top: 4px solid var(--primary-color);
  padding: 1rem max(5%, calc(50% - 640px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: #fff;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: padding 0.3s ease;
}

.navbar.sticky {
  position: fixed;
  top: 0;
  border-top: 4px solid var(--primary-color);
  animation: slideDown 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  align-self: stretch;   /* estica até a altura total da navbar */
}

.nav-links li {
  position: relative;
  /* li ocupa toda a altura da nav-links (= altura da navbar)
     eliminando o gap entre o link e o dropdown */
  height: 100%;
  display: flex;
  align-items: center;
}

/* Mega menu e hosting dropdown devem posicionar
   relativo à NAVBAR (position:relative), não ao li.
   Especificidade 0,2,1 > 0,1,1 de ".nav-links li" para ganhar a cascata. */
.nav-links li.mega-menu-item,
.nav-links li.hosting-menu-item {
  position: static;
}

.nav-links li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0.25rem;  /* padding horizontal apenas; vertical eliminado pois o li ocupa a altura */
  height: 100%;         /* preenche toda a altura do li = sem gap vertical */
}

.nav-arrow {
  font-size: 0.7rem;
  color: #888;
  transform: none !important;
  transition: none !important;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

/* Mega Menu — posicionado relativo à .navbar, não ao li */
.mega-menu {
  position: absolute;
  top: 100%;
  /* alinha com o padding da navbar (mesmo cálculo do padding do .navbar) */
  left: max(5%, calc(50% - 640px));
  right: auto;
  width: 900px;
  min-height: 380px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  /* SEM translateY: o menu fica sempre em top:100% sem criar gap invisível.
     O translateY(20px) causava um vão de 20px onde o hover era perdido. */
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid #eaeaea;
}

.mega-menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Classe controlada por JS com delay de 300ms.
   !important garante que supera o CSS :hover que some
   instantaneamente ao cruzar o gap do padding da navbar. */
.mega-menu.nav-open,
.hosting-dropdown.nav-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mega-menu-content {
  display: flex;
  padding: 2.5rem;
}

.mega-menu-left {
  flex: 2;
  padding-right: 2rem;
  border-right: 1px solid #f0f0f0;
}

.mega-menu-right {
  flex: 1;
  padding-left: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mega-menu-title {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mega-menu-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s;
  text-decoration: none;
}

.mega-menu-card:hover {
  background: rgba(0, 102, 204, 0.08); /* Beautiful soft blue color */
}

.mega-icon {
  width: 44px;
  height: 44px;
  background: #f0f7ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.mega-icon img {
  width: 20px;
}
.mega-icon-purple  { background: #8B5CF6; color: #fff; }
.mega-icon-blue    { background: #3B82F6; color: #fff; }
.mega-icon-cyan    { background: #06B6D4; color: #fff; }
.mega-icon-violet  { background: #7C3AED; color: #fff; }
.mega-icon-yellow  { background: #F59E0B; color: #fff; }
.mega-icon-orange  { background: #F97316; color: #fff; }
.mega-icon-green   { background: #10B981; color: #fff; }

.mega-text h5 {
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: color 0.25s ease;
}

.mega-menu-card:hover .mega-text h5 {
  color: var(--secondary-color);
}

.mega-text {
  min-width: 0;
  flex: 1;
}

.mega-text p {
  font-size: 0.75rem;
  color: #777;
  line-height: 1.3;
  word-break: break-word;
}

.mega-promo-text {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-top: 1.5rem;
}

.mega-right-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-top: 1.2rem;
  text-align: center;
  line-height: 1.4;
}

.mega-right-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
  text-align: center;
}

.btn-green {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-green:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 6rem max(5%, calc(50% - 640px)) 4rem;
  position: relative;
  background-image: 
    linear-gradient(to right, rgba(5, 16, 36, 0.95) 0%, rgba(5, 16, 36, 0.5) 100%), 
    url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: absolute;
  right: max(5%, calc(50% - 640px));
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Features/Services Section */
.section {
  padding: 6rem max(5%, calc(50% - 640px));
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  background: rgba(0, 210, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  gap: 0.8rem;
}

/* Footer */
footer {
  background: #010E28;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem max(5%, calc(50% - 640px)) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

/* Sub-page Banner */
.sub-banner {
  background-color: var(--primary-color);
  background-image: radial-gradient(circle at right center, rgba(255,255,255,0.08) 0%, transparent 60%);
  padding: 0.8rem max(5%, calc(50% - 640px));
  color: #fff;
}
.sub-banner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.sub-banner-text {
  flex: 1;
  max-width: 650px;
  align-self: flex-start;
  margin-top: 1rem;
}
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 5rem;
  color: rgba(255,255,255,0.8);
}
.breadcrumb a {
  color: #fff;
}
.sub-banner-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}
.sub-banner-desc {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
}
.sub-banner-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 380px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.sub-banner-image {
  width: 400px;
  max-width: 45%;
  position: relative;
  z-index: 1;
}
.sub-banner-image img {
  width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}
.sbc-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}
.sbc-price-area {
  margin-bottom: 1.5rem;
}
.sbc-old-price {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: line-through;
  margin-bottom: 5px;
}
.sbc-old-price .badge {
  background: #ffcc00;
  color: #333;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  margin-left: 5px;
}
.sbc-price {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 5px 0;
  color: #fff;
}
.sbc-price .value {
  font-size: 3.5rem;
  line-height: 1;
}
.sbc-price .period {
  font-size: 1.1rem;
  font-weight: normal;
}
.sbc-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.sbc-select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: #fff;
  color: #333;
}
.btn-warning {
  background: #ffcc00;
  color: #333;
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 6px;
  display: block;
  text-align: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-warning:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}
.sbc-specs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 10rem;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 80%;
    margin: 3rem auto 0;
  }
  .hero-buttons {
    justify-content: center;
  }
}

/* Custom VPS Plan Cards styling to match San Internet clean mode */
.vps-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vps-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-color);
}

.vps-card.card-purple::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.vps-card.card-blue::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.vps-card.card-green::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.vps-card-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.vps-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.vps-card-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}

.vps-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.vps-card-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.vps-card-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.vps-card-period {
  font-size: 0.9rem;
  color: #64748b;
}

.vps-card-discount-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.vps-card-discount-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.btn-config {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border: 2px solid #0f172a;
  color: #0f172a;
  background: transparent;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.btn-config:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.vps-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.vps-card-features li {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.vps-card-features li i.fa-check {
  color: #22c55e;
  margin-right: 10px;
  font-size: 0.95rem;
}

.vps-more-features {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s;
}

.vps-more-features:hover {
  background: #f1f5f9;
}

/* Bento Grid Layout */
.vps-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 991px) {
  .vps-bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-large {
  grid-column: span 2;
}

@media (max-width: 991px) {
  .bento-large {
    grid-column: span 1;
  }
}

/* Ping Simulator Widget */
.ping-simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.ping-bar-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ping-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-dark);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.ping-location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.ping-location img {
  width: 20px;
  height: auto;
}

.ping-value-badge {
  font-family: monospace;
  font-size: 1rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px;
}

.ping-fast {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ping-slow {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Sleek Details FAQ */
.faq-details {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-details[open] {
  background: var(--bg-card);
  border-color: var(--primary-color);
}

.faq-summary {
  padding: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-details[open] .faq-summary::after {
  content: "-";
  color: var(--primary-color);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* OS OS Grid */
.os-selector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .os-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.os-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.os-item:hover {
  background: var(--bg-dark);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.os-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.os-item:hover .os-icon {
  transform: scale(1.15);
}

.os-icon-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.os-item:hover .os-icon-img {
  transform: scale(1.15);
}

.os-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Hosting Dropdown Styles */
.hosting-menu-item {
  position: relative;
}

.hosting-dropdown {
  position: absolute;
  top: 100%;
  /* alinha com o padding da navbar (mesmo cálculo do padding do .navbar) */
  left: max(5%, calc(50% - 640px));
  right: auto;
  width: 580px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  /* SEM translateY: evita gap invisível que apagava o hover */
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid #eaeaea;
  padding: 1.5rem;
}

.hosting-menu-item:hover .hosting-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hosting-dropdown-content {
  display: flex;
  flex-direction: column;
}

.hosting-dropdown-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888888;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 0.5rem;
}

.hosting-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hosting-dropdown-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 14px 18px;
  border-radius: 10px;
  transition: all 0.25s ease;
  text-decoration: none;
  text-align: left;
}

.hosting-dropdown-card:hover {
  background: rgba(0, 102, 204, 0.08); /* Beautiful soft blue color */
}

/* Let's make active state or hover state color green inside navbar for Hospedagem */
.nav-links li.has-dropdown.hosting-menu-item:hover > a {
  color: var(--primary-color) !important;
}

.hosting-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #666666;
  transition: all 0.25s ease;
}

.hosting-dropdown-card:hover .hosting-icon {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #ffffff;
}

.hosting-text h5 {
  font-size: 0.95rem;
  color: #111111;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: color 0.25s ease;
  text-align: left;
}

.hosting-dropdown-card:hover .hosting-text h5 {
  color: var(--secondary-color); /* darker blue for beautiful contrast */
}

.hosting-text p {
  font-size: 0.78rem;
  color: #777777;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* Support Menu inside Nav Actions */
.support-menu-wrapper:hover .support-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.support-dropdown {
    position: absolute;
    top: 100%;
    right: -100px;
    width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #eaeaea;
    padding: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-top: 15px;
    text-align: left;
    cursor: default;
}

.support-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
}

.support-menu-wrapper:hover .support-toggle {
    color: var(--primary-color) !important;
}

.support-menu-wrapper:hover .support-toggle i {
    transform: rotate(180deg);
}

.support-toggle i {
    transition: transform 0.3s;
}

.btn-whatsapp {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 30px;
    transition: background 0.3s, transform 0.3s;
}

.btn-whatsapp:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.social-icon:hover {
    color: var(--primary-color) !important;
}

.btn-client-area {
    padding: 0 6px;
    height: 38px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-client-area:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-whatsapp-nav {
    padding: 0 8px;
    height: 38px;
    background-color: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-nav:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   RESPONSIVE NAVBAR — breakpoints hierárquicos
   ≥ 1281px  → navbar completa (top-links + WhatsApp + botão)
   1100–1280px → sem top-links / sem WhatsApp, nav horizontal
   < 1100px  → hamburger menu
   ============================================================ */

/* Passo 1 — esconde top-links e WhatsApp em telas menores (≤1280px) */
@media (max-width: 1280px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .nav-top-links {
    display: none !important;
  }
  .btn-whatsapp-nav {
    display: none !important;
  }
  .nav-links {
    gap: 1.2rem;
  }
  /* Dropdown alinha com o novo padding da navbar (1.5rem) */
  .mega-menu,
  .hosting-dropdown {
    left: 1.5rem;
    width: min(900px, calc(100% - 3rem));
  }
  .hosting-dropdown {
    width: min(580px, calc(100% - 3rem));
  }
}

/* Passo 2 — hamburger ativa a partir de 1100px */
@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: left 0.3s ease;
    padding: 2rem 1.5rem;
    gap: 0;
    overflow-y: auto;
    z-index: 999;
    align-self: auto;  /* reset do align-self: stretch do desktop */
  }

  .nav-links li {
    width: 100%;
    height: auto;      /* reset: no mobile não deve esticar */
    display: block;    /* volta ao comportamento padrão de lista */
  }

  .nav-links li a {
    color: #333;
    font-size: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
    display: block;
    height: auto;    /* reset do height: 100% do desktop */
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    color: var(--primary-color);
  }

  .nav-links .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .support-menu-wrapper {
    display: none !important;
  }

  .mega-menu,
  .hosting-dropdown {
    display: none;
  }

  .mega-menu-right {
    display: none !important;
  }

  .mega-menu-content {
    flex-direction: column;
  }

  .mega-menu-left {
    border-right: none;
    padding-right: 0;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .mega-menu-card {
    padding: 1rem !important;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    flex-direction: row !important;
  }

  .mega-menu-card:hover {
    background: #f8f9fa;
  }

  .mega-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  .mega-text {
    flex: 1;
  }

  .mega-text h5 {
    font-size: 0.95rem !important;
    margin-bottom: 0.3rem !important;
  }

  .mega-text p {
    font-size: 0.8rem !important;
    line-height: 1.4;
    margin: 0;
  }

  .hosting-dropdown-list {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .hosting-dropdown-card {
    padding: 1.5rem !important;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 0 !important;
  }

  .hosting-dropdown-card:hover {
    background: #f8f9fa;
  }

  .hosting-dropdown-title {
    font-size: 0.8rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Keep submenu visible when opened via JavaScript */
  .mega-menu[style*="display: block"],
  .hosting-dropdown[style*="display: block"] {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ── Sub-banner responsivo ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sub-banner {
    padding: 2rem 1.5rem 2.5rem;
  }
  .sub-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  .sub-banner-text {
    max-width: 100%;
    align-self: auto;
    margin-top: 0;
  }
  .sub-banner-title {
    font-size: 2.2rem;
  }
  .sub-banner-desc {
    font-size: 1rem;
  }
  .breadcrumb {
    margin-bottom: 1.5rem;
  }
  .sub-banner-card {
    width: 100%;
    box-sizing: border-box;
  }
  .sub-banner-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sub-banner-title {
    font-size: 1.8rem;
  }
  .sub-banner-desc {
    font-size: 0.95rem;
  }
  .sbc-price .value {
    font-size: 2.6rem;
  }
}

