/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

:root {
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #d4eef7;
  --secondary-foreground: #2d4456;
  --background: #ffffff;
  --foreground: #2d4456;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #f099bc;
  --shadow-card: 0 4px 20px -4px rgba(59, 130, 246, 0.1);
  --shadow-hover: 0 8px 30px -6px rgba(59, 130, 246, 0.2);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Parágrafos com fonte Poppins (Google Fonts) para aparência mais moderna e amigável */
p {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 300;
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 1.05rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 80px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-image {
  width: 150px;
  height: auto;

}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nav {
  display: flex;
  /* default show as flex for accessibility; layout adjusted via media queries */
  gap: 1.5rem;
  align-items: center;
}

/* Mobile menu: hidden off-canvas by default */
/* Mobile menu: styles applied for small screens only */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    transition: right 0.28s ease;
    flex-direction: column;
    padding: 4rem 1.5rem;
    gap: 1.25rem;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.06);
    z-index: 1200;
    /* must be above overlay */
    pointer-events: auto;
    /* ensure nav itself is always clickable */
    overflow-y: auto;
  }

  .nav a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
    padding: 0.5rem 0;
    pointer-events: auto;
    /* ensure links are always clickable */
    display: block;
  }

  .nav.open {
    right: 0;
  }

  /* Nav toggle (hamburger) visible on small screens */
  .nav-toggle {
    display: inline-flex;
    /* show hamburger on small screens */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    margin-left: 0.5rem;
  }

  .nav-toggle .hamburger {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--foreground);
    position: relative;
  }

  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--foreground);
  }

  .nav-toggle .hamburger::before {
    top: -6px;
  }

  .nav-toggle .hamburger::after {
    top: 6px;
  }

  /* Overlay shown when menu open - positioned to NOT cover the nav panel */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 1050;
    pointer-events: none;
    /* don't block clicks when hidden */
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    /* allow clicks only on overlay itself to close menu */
  }

  /* show phone-text on mobile only if desired (optional) */
  .phone-text {
    display: none;
  }
}

/* Desktop behavior: show nav inline in header and hide toggle */
@media (min-width: 900px) {
  .nav {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
  }

  .nav a {
    font-weight: 500;
    padding: 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  .phone-text {
    display: inline-block;
  }
}

.nav a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.phone-link:hover {
  opacity: 0.8;
}

.phone-text {
  display: none;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--primary-foreground);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-foreground);
  transition: background 0.3s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 999;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  padding: 5rem 0 8rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(212, 238, 247, 0.15));
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* Hero layout: texto + mídia (vídeo) side-by-side on desktop, stacked on mobile */
.hero-grid {
  grid-template-columns: 1fr;
  /* mobile: stack */
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  position: relative;
  /* needed so the decorative image can be positioned behind */
}

/* make the decorative svg sit behind the text */
.hero-text>* {
  position: relative;
  z-index: 1;
}

.hero-image {
  position: absolute;
  right: 10px;
  top: 60px;
  width: 150%;
  /*max-width: 600px;*/
  opacity: 0.06;
  /* pouca opacidade, sutil atrás do texto */
  pointer-events: none;
  /* não atrapalha cliques */
  transform: translate(8%, -8%);
  z-index: 0;
}

@media (max-width: 899px) {

  /* esconder a arte decorativa em telas pequenas para evitar sobreposição */
  .hero-image {
    position: absolute;
    top: 350px;
  }
}

@media (max-width: 768px) {

  /* esconder a arte decorativa em telas pequenas para evitar sobreposição */
  .hero-image {
    display: none;
  }
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  max-height: 500px;
  border-radius: 3.90rem;
  object-fit: fill;
  background: #000;
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    /* two columns on larger screens */
  }

  .hero-text {
    padding-right: 1rem;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero .text-primary {
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background: white;
  color: var(--primary);
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* make cards fill available height */
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 2rem;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.card p {
  color: var(--muted-foreground);
  text-align: center;
  font-size: 0.875rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
  /* mobile: single column */
  align-items: stretch;
}

.grid-3 {
  grid-template-columns: 1fr;
  /* mobile: single column */
  align-items: stretch;
}

.grid-4 {
  grid-template-columns: 1fr;
  /* mobile: single column */
  align-items: stretch;
}

/* Make grid children fill available height */
.grid>* {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.grid>*>* {
  flex: 1;
}

/* Mobile: force single column and maintain proper order */
@media (max-width: 799px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    /* Force single column */
    display: flex !important;
    /* Use flexbox for better order control */
    flex-direction: column !important;
  }

  /* Remove manual grid positioning on mobile */
  .grid>* {
    grid-column: auto !important;
    grid-row: auto !important;
    order: 0 !important;
    /* Reset order to maintain HTML sequence */
  }
}

/* Desktop layouts: multiple columns for grids */
@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on desktop */
  }

  /* Alternate layout: odd grids have text-image, even grids have image-text */
  .grid-2:nth-of-type(odd)>*:first-child {
    order: 1;
    /* Text first */
  }

  .grid-2:nth-of-type(odd)>*:last-child {
    order: 2;
    /* Image second */
  }

  .grid-2:nth-of-type(even)>*:first-child {
    order: 2;
    /* Text second (appears on right) */
  }

  .grid-2:nth-of-type(even)>*:last-child {
    order: 1;
    /* Image first (appears on left) */
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop */
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablet */
  }
}

/* Larger screens: 4 columns for grid-4 */
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on large desktop */
  }
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--muted);
}

.section-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Error Messages */
.error-message {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
}

.form-input.success,
.form-textarea.success {
  border-color: #22c55e;
}

/* Blog Card */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
}

.blog-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Icon */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Responsive */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .phone-text {
    display: inline;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}