/* public/css/hub.css — Verscal Build Landing Page */

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* =============================================
   HEADER
   ============================================= */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hub-header.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo-link:hover { opacity: 0.75; text-decoration: none; }

.logo-icon-wrap {
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.logo-accent { color: var(--color-primary); }

/* Nav */
.hub-nav {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .hub-nav { display: flex; } }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-secondary); text-decoration: none; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger:hover { background: var(--bg-secondary); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(255,255,255,0.97);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-nav-link:hover { background: var(--bg-secondary); text-decoration: none; }
.mobile-nav-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 12px 12px 4px;
  display: block;
}
.mobile-nav-sub {
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Nav Dropdown — Desktop */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown-toggle svg {
  transition: transform 0.25s ease;
}
.nav-dropdown.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 400;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
}
.nav-dropdown-item:hover { background: var(--bg-secondary); text-decoration: none; }
.nav-dropdown-item svg { color: var(--color-primary); flex-shrink: 0; }
.nav-dropdown-item strong { display: block; font-size: 14px; font-weight: 600; }
.nav-dropdown-item small { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* Btn sizes */
.btn-sm { font-size: 13px; padding: 7px 16px; }
.btn-lg { font-size: 16px; padding: 14px 28px; border-radius: 10px; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text-primary); border-color: #c5c5ca; }
.btn-white {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}
.btn-white:hover { background: #f0f0f5; color: var(--color-primary-hover); }

/* Buttons base (moved here from old hub.css) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background-color: var(--color-primary); color: #fff; }
.btn-primary:hover { background-color: var(--color-primary-hover); color: #fff; box-shadow: 0 4px 14px rgba(0,102,204,0.3); }
.btn-secondary { background-color: var(--border-color); color: var(--text-primary); }
.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

/* =============================================
   AD LABELS
   ============================================= */
.ad-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
}
.ad-wrapper-full { padding: 8px 0; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,102,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,204,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,102,204,0.08);
  border: 1px solid rgba(0,102,204,0.18);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-highlight {
  color: var(--color-primary);
  position: relative;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}
@media (max-width: 480px) { .stat-divider { display: none; } }

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.section-features {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(0,102,204,0.09);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   TOOLS SECTION
   ============================================= */
.section-tools {
  padding: 80px 0;
  background: var(--bg-primary);
}
.tools-with-sidebar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.tools-main { flex: 1; min-width: 0; }

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }

.tool-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tool-card--active {
  background: var(--bg-primary);
  border-color: rgba(0,102,204,0.25);
  box-shadow: 0 0 0 1px rgba(0,102,204,0.12), var(--shadow-sm);
}
.tool-card--active:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.tool-card--soon { opacity: 0.6; }

.tool-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,102,204,0.1);
  color: var(--color-primary);
  letter-spacing: 0.04em;
}
.tool-card-badge--soon {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0,102,204,0.09);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.tool-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  padding-right: 56px;
}
.tool-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}
.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tool-features span {
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(0,102,204,0.07);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.section-testimonials {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-stars { color: #F5A623; font-size: 16px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
  flex-grow: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #0044aa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; font-weight: 700; }
.testimonial-author span { font-size: 13px; color: var(--text-secondary); }

/* =============================================
   CTA SECTION
   ============================================= */
.section-cta { padding: 80px 0; background: var(--bg-primary); }
.cta-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0044aa 100%);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) { .cta-card { padding: 48px 24px; } }

/* =============================================
   FAQ
   ============================================= */
.section-faq { padding: 80px 0; background: var(--bg-secondary); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--color-primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
.hub-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 56px 0 32px;
  margin-bottom: 60px;
}
@media (min-width: 1200px) { .hub-footer { margin-bottom: 0; } }

.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}
.footer-brand { flex: 1 1 200px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.6;
}
.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}
.footer-col strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-made { font-size: 13px; }

/* =============================================
   SIDEBAR ADS
   ============================================= */
.sidebar-ads { display: none; }
@media (min-width: 1100px) {
  .sidebar-ads {
    display: block;
    flex-shrink: 0;
  }
  .ad-slot-skyscraper {
    display: flex;
    width: 300px;
    height: 600px;
    position: sticky;
    top: 80px;
  }
}

/* =============================================
   UNITS TOGGLE — Apple Segmented Control
   Usado na calculadora de pisos
   ============================================= */
.units-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(120, 120, 128, 0.12);
  border-radius: 9px;
  padding: 2px;
  gap: 0;
}

.toggle-option {
  position: relative;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.toggle-option.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.toggle-option:hover:not(.active) {
  color: var(--text-primary);
}
