/* ===== DESIGN SYSTEM - EXATO DO REACT ===== */
:root {
  --background: 0 0% 100%;
  --foreground: 215 25% 15%;
  --primary: 210 90% 18%;
  --primary-foreground: 0 0% 100%;
  --primary-light: 210 90% 25%;
  --accent-gold: 40 95% 65%;
  --accent-red: 0 100% 30%;
  --whatsapp: 142 70% 49%;
  --secondary: 215 20% 25%;
  --secondary-foreground: 0 0% 100%;
  --muted: 215 15% 95%;
  --muted-foreground: 215 15% 45%;
  --accent: 210 80% 30%;
  --accent-foreground: 0 0% 100%;
  --border: 215 15% 88%;
  --hero-overlay: 0 0% 0%;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-elegant: 0 10px 40px -10px hsl(215 40% 10% / 0.3);
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  font-size: 0.9rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Global heading sizes for proportional typography */
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.25; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  cursor: pointer;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
/* Fallback para navegadores sem suporte a gap em flex */
.desktop-nav .nav-link + .nav-link { margin-left: 2rem; }
.desktop-nav .lang-switcher { margin-left: 2rem; }

.nav-link {
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.nav-link:hover {
  color: hsl(var(--accent-gold));
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: hsl(var(--primary-foreground));
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  color: hsl(var(--accent-gold));
}

.lang-btn.active {
  background: transparent;
  border: none;
  color: hsl(var(--accent-gold));
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  background: hsl(var(--primary));
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav.active {
  display: flex;
  max-height: 500px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('../assets/hero-nyc.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 82px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  color: hsl(var(--primary-foreground));
  margin-top: -3rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-top: 2rem;
  opacity: 0.95;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background: hsl(var(--primary-light));
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}

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

.btn-outline:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
  color: hsl(var(--primary-foreground));
}

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

.btn-red-outline:hover {
  background: transparent;
  border-color: hsl(var(--accent-red));
  color: hsl(var(--primary-foreground));
}

.btn-whatsapp {
  background: hsl(var(--whatsapp));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-whatsapp:hover {
  background: hsl(var(--whatsapp) / 0.9);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== VISAS INTRO SECTION ===== */
.visas-intro {
  position: relative;
  background-image: url('../assets/office-consultation.jpg');
  background-size: cover;
  background-position: center;
  color: hsl(var(--primary-foreground));
}

.visas-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.visas-intro-content {
  position: relative;
  z-index: 1;
}

.visas-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.visas-intro-left {
  padding-right: 2rem;
}

.visas-label {
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-left: 3px solid hsl(var(--accent-red));
  padding-left: 1rem;
}

.visas-intro-left h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.visas-intro-right h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.visas-intro-right > p {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* ===== ACCORDION ===== */
.accordion {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  color: hsl(var(--primary-foreground));
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.accordion-header:hover {
  opacity: 0.8;
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.accordion-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: hsl(var(--background));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
}

.about-label {
  color: hsl(var(--primary));
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  font-weight: 700;
}

.about-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  line-height: 1.8;
  opacity: 0.85;
}

/* ===== ASSOCIATIONS SECTION ===== */
.associations {
  text-align: center;
  background: hsl(var(--background));
  padding: 4rem 2rem;
}

.associations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.association-logo {
  height: 100px;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.association-logo:hover {
  transform: scale(1.05);
}

.associations p {
  font-size: 1.125rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  color: hsl(var(--foreground));
  line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-light)) 100%);
  color: hsl(var(--primary-foreground));
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: hsl(var(--accent-gold) / 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(80px);
}

.contact .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.contact-label {
  color: hsl(var(--accent-gold));
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-align: center;
}

.contact h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3rem;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.mb-8 {
  margin-bottom: 3rem;
}

.social-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: hsl(var(--accent-gold));
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-link {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-link:hover {
  background: hsl(var(--accent-gold));
  color: hsl(var(--primary));
  transform: scale(1.25) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link i {
  width: 1.75rem;
  height: 1.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.contact-item p {
  font-size: 1.125rem;
  line-height: 1.6;
}

.contact-item a {
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-item a:hover {
  color: hsl(var(--accent-gold));
}

/* ===== FOOTER ===== */
.footer {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  text-align: center;
  padding: 2rem;
}

/* ===== VISTOS PAGE STYLING ===== */
.vistos-page {
  background: #000;
  color: #fff;
}

.vistos-page-main {
  padding-top: 82px;
  min-height: 100vh;
  background: #000;
}

.vistos-section {
  padding: 6rem 2rem;
  background: #000;
}

.vistos-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.vistos-narrow-container {
  max-width: 800px;
}

.vistos-page-intro {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 1000px;
}

.vistos-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.red-line-marker {
  width: 48px;
  height: 2px;
  background: hsl(var(--accent-red));
}

.vistos-section-header h2 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.vistos-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.vistos-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vistos-subsection-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.red-line-small {
  width: 32px;
  height: 2px;
  background: hsl(var(--accent-red));
}

.vistos-subsection-header h2,
.vistos-subsection-header h3 {
  color: hsl(var(--accent-red));
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.vistos-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vistos-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.vistos-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.vistos-accordion-header:hover {
  opacity: 0.8;
}

.accordion-icon-plus,
.accordion-icon-minus {
  width: 20px;
  height: 20px;
  color: #fff;
  flex-shrink: 0;
}

.accordion-icon-minus {
  display: none;
}

.vistos-accordion-item.active .accordion-icon-plus {
  display: none;
}

.vistos-accordion-item.active .accordion-icon-minus {
  display: block;
}

.vistos-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.vistos-accordion-item.active .vistos-accordion-content {
  max-height: 500px;
  padding-bottom: 1rem;
}

.vistos-accordion-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 0;
}

.vistos-cta-container {
  text-align: center;
  margin-top: 4rem;
}

.vistos-cta-btn {
  background: transparent !important;
  border: 2px solid hsl(var(--accent-red));
  color: hsl(var(--accent-red));
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  display: inline-block;
  text-decoration: none;
}

.vistos-cta-btn:hover {
  background: hsl(var(--accent-red)) !important;
  color: #fff;
}

/* ===== VISTOS PAGE: map current HTML classes to design system ===== */
.vistos-main {
  background: #000;
  color: #fff;
  padding-top: 82px;
  min-height: 100vh;
}

.vistos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.vistos-intro-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 1000px;
}

/* Category header with red marker */
.visa-category {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.visa-category .category-title {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.visa-category .category-title::before {
  content: '';
  width: 48px;
  height: 2px;
  background: hsl(var(--accent-red));
}

.visa-category .category-subtitle {
  color: hsl(var(--accent-red));
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.visa-category .category-subtitle::before {
  content: '';
  width: 32px;
  height: 2px;
  background: hsl(var(--accent-red));
}

/* Place blocks into two columns without changing HTML */
.visa-category > .category-subtitle:nth-of-type(1),
.visa-category > .accordion:nth-of-type(1) {
  grid-column: 1;
}

.visa-category > .category-subtitle:nth-of-type(2),
.visa-category > .accordion:nth-of-type(2) {
  grid-column: 2;
}

/* Prevent breaks inside accordions when using columns */
.visa-category .accordion {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

@media (max-width: 768px) {
  .vistos-section {
    padding: 3rem 1rem;
  }

  .vistos-two-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vistos-page-intro {
    font-size: 0.875rem;
  }

  .vistos-accordion-header {
    font-size: 0.875rem;
  }

  .vistos-accordion-content p {
    font-size: 0.75rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .hero {
    min-height: 100vh;
  }
  
  .hero-content {
    margin-top: -2rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .visas-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .visas-intro-left {
    padding-right: 0;
  }

  .associations-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .association-logo {
    height: 80px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ICONS ===== */
.lucide {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.lucide-map-pin,
.lucide-phone,
.lucide-mail {
  width: 20px;
  height: 20px;
}

svg.lucide-plus,
svg.lucide-minus {
    width: 20px;
    height: 20px;
}