/* ======== Base Styles & Variables ======== */
:root {
  --primary: #0084FF;
  /* Precinho blue */
  --primary-hover: #006bce;
  --secondary: #FF4A57;
  /* Accent red */
  --dark: #121212;
  --darker: #0a0a0a;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --text-main: #333333;
  --text-muted: #6c757d;
  --border: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ======== Layout & Utilities ======== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 132, 255, 0.1);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

/* ======== Buttons ======== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #006bce 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 132, 255, 0.4);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  border-color: var(--primary);
}

/* ======== Navbar ======== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  margin-right: 60px; /* Offset to visually center perfectly relative to the screen */
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-family: var(--font-heading);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

/* ======== Hero Section ======== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* Offset nav */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 132, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 74, 87, 0.05) 0%, transparent 40%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero-desc {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ======== Featured Posts Grid ======== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.tab-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 132, 255, 0.3);
}

.post-card[data-category] {
  transition: var(--transition);
}

.post-card.hide {
  display: none !important;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--dark);
}

.view-all {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all:hover {
  gap: 0.75rem;
  /* slight arrow animation */
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.post-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--dark);
}

.post-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}

.read-more:hover {
  gap: 0.75rem;
}

/* ======== Newsletter ======== */
.newsletter-inner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 132, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: #adb5bd;
  font-size: 1.125rem;
  max-width: 500px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.form-input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ======== Footer ======== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
  margin-top: 1.5rem;
}

.footer-logo {
  height: 56px;
  border-radius: 12px;
}

.footer h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.25rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 50%;
  color: var(--text-main);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background: var(--light);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ======== Animations ======== */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Hide links on mobile for simplicity, keep CTA */
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ======== VIP Invite Card ======== */
.vip-invite-card {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(255, 255, 255, 1));
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 25px rgba(0, 132, 255, 0.08);
  display: inline-block;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.vip-invite-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.vip-invite-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.vip-invite-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark);
  margin: 0;
  font-weight: 500;
  flex: 1;
  min-width: 280px;
  line-height: 1.4;
}

.vip-invite-text strong {
  color: var(--primary);
  font-weight: 800;
  background: rgba(0, 132, 255, 0.08);
  padding: 0 6px;
  border-radius: 6px;
}

.vip-invite-btn {
  background: linear-gradient(135deg, #161616 0%, #2a2a2a 100%);
  color: var(--white);
  border-radius: 50px;
  padding: 6px 24px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.vip-invite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: var(--white);
  background: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 100%);
}

.vip-btn-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.pulse-glow {
  animation: pulse-glow-anim 2.5s infinite;
}

@keyframes pulse-glow-anim {
  0% { box-shadow: 0 4px 15px rgba(0, 132, 255, 0.15); }
  50% { box-shadow: 0 4px 25px rgba(0, 132, 255, 0.5); }
  100% { box-shadow: 0 4px 15px rgba(0, 132, 255, 0.15); }
}

@media (max-width: 600px) {
  .vip-invite-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .vip-invite-text {
    text-align: center;
    min-width: auto;
    font-size: 1rem;
  }
  .vip-invite-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
  }
  .vip-invite-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ======== Floating WhatsApp Widget ======== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  text-decoration: none;
}

.floating-wa-message {
  background-color: var(--white);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  max-width: 220px;
  line-height: 1.3;
}

.floating-wa-message::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--white);
}

.floating-whatsapp img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0693e3;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.floating-whatsapp:hover .floating-wa-message {
  opacity: 1;
  transform: translateX(0);
}

.floating-whatsapp:hover img {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(6, 147, 227, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(6, 147, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 147, 227, 0); }
}

@media (max-width: 768px) {
  .floating-wa-message {
    /* Always show on mobile but slightly smaller, or rely on active interactions. 
       We will keep it visible but fade it out after 5s using an animation, 
       or just let it show on touch */
    opacity: 1;
    transform: translateX(0);
    font-size: 0.8rem;
    padding: 8px 12px;
    max-width: 180px;
  }
}