:root {
  /* Colors */
  --c-black: #000000;
  --c-black-surface: #0a0a0c;
  --c-glass-bg: rgba(25, 25, 25, 0.4);
  --c-glass-border: rgba(212, 175, 55, 0.15);
  
  --c-gold-light: #f5d76e;
  --c-gold-main: #d4af37;
  --c-gold-dark: #b5952f;
  
  --c-text-primary: #ffffff;
  --c-text-secondary: #a0a0a0;
  --c-text-muted: #666666;
  
  /* Typography */
  --font-serif: 'Cormorant', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--c-black);
}

body {
  background-color: transparent; /* Changed to let container backgrounds show if any or let html background be the root */
  color: var(--c-text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subte background glow */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 60vh;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Sections */
section {
  padding: 6rem 1.5rem;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 3rem;
  color: var(--c-text-primary);
  text-align: center;
}

/* Header & Logo */
.site-header {
  padding: 3rem 1.5rem;
  text-align: center;
}

.site-logo {
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Hero Section */
.hero {
  padding: 2rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; 
  height: 90vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--c-black) 90%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero .headline {
  font-size: clamp(3rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--c-text-primary);
  letter-spacing: -0.02em;
}

.hero .subheadline {
  font-size: 1.15rem;
  color: var(--c-text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold-main) 100%);
  color: var(--c-black);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.25rem 2.5rem;
  text-decoration: none;
  font-size: 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #fff2c8 0%, var(--c-gold-light) 100%);
}

.cta-note {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-align: center;
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

/* Wrapper Glass (Used across components) */
.glass-panel {
  background: var(--c-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Stats Section */
.stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top left, rgba(212,175,55,0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(212, 175, 55, 0.05);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 2.75rem;
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 480px) {
  .stats {
    flex-direction: row;
  }
  .stat-item {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Target Audience: Modern Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.bento-full {
  grid-column: 1 / -1;
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  border: 1px solid var(--c-glass-border);
}

.bento-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.bento-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.2) 100%);
  z-index: 1;
}

.bento-title {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--c-text-primary);
  margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.bento-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  border: 1px solid var(--c-glass-border);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(212, 175, 55, 0.05);
}

.bento-wide {
  grid-column: 1 / -1; /* Spans full width even on desktop */
}

.icon-wrapper {
  background: rgba(212, 175, 55, 0.08);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.bento-card p {
  color: var(--c-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.bento-card strong {
  color: var(--c-text-primary);
  font-weight: 500;
}

.icon-gold {
  color: var(--c-gold-main);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.service-card {
  padding: 2rem 1.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--c-glass-border);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top left, rgba(212,175,55,0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--c-gold-light);
  margin-bottom: 0.75rem;
  position: relative;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  position: relative;
}

/* How It Works */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.step-number {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  color: rgba(212, 175, 55, 0.2);
  font-weight: 700;
  letter-spacing: -0.05em;
  transform: scale(1.5);
  transform-origin: center right;
  min-width: 4rem;
  text-align: right;
}

.step-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--c-text-primary);
  font-family: var(--font-serif);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--c-text-secondary);
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-md);
  background: rgba(10, 10, 12, 0.5);
  overflow: hidden;
  transition: background 0.3s ease;
}

.accordion-item:hover {
  background: rgba(20, 20, 22, 0.6);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-text-primary);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
}

.accordion-header i {
  color: var(--c-gold-main);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content p {
  padding: 0 1.5rem 1.5rem;
  color: var(--c-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}
.accordion-item.active {
  border-color: rgba(212, 175, 55, 0.3);
}

/* Intl-Tel-Input Overrides */
.iti {
  display: block;
  width: 100%;
}
.iti__country-list {
  background-color: var(--c-black-surface);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-sm);
  color: var(--c-text-primary);
  margin-top: 5px;
}
.iti__country {
  padding: 10px 12px;
}
.iti__country-name {
  color: var(--c-text-primary);
}
.iti__dial-code {
  color: var(--c-text-secondary);
}
.iti__country.iti__highlight {
  background-color: rgba(212, 175, 55, 0.15);
}
.iti__selected-dial-code {
  color: var(--c-text-primary);
}
.iti__arrow {
  border-top-color: var(--c-text-secondary);
}
.iti__arrow.iti__arrow--up {
  border-bottom-color: var(--c-text-secondary);
}
.iti__flag-container {
  padding: 0 5px;
}

/* Form Section */
.application-form {
  margin-top: 4rem;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Glow behind form */
.application-form::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-subtitle {
  color: var(--c-text-secondary);
  font-size: 1rem;
  margin: 0;
}

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

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

@media (min-width: 600px) {
  .form-row {
    flex-direction: row;
  }
  .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
  }
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.6rem;
  color: var(--c-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.form-group:focus-within label {
  color: var(--c-gold-main);
}

input[type="text"],
input[type="tel"],
select,
textarea,
input[type="file"] {
  width: 100%;
  background-color: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--c-text-primary);
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
}

input[type="file"] {
  padding: 0.75rem 1rem;
}

input[type="file"]::file-selector-button {
  background: rgba(212, 175, 55, 0.15);
  color: var(--c-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin-right: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-weight: 500;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(212, 175, 55, 0.3);
}

select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23d4af37" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 3rem;
  cursor: pointer;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 2px solid var(--c-gold-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

input::placeholder,
textarea::placeholder {
  color: #555;
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold-main) 100%);
  color: var(--c-black);
  border: none;
  padding: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: 0.5rem;
}

.form-success-box {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.site-logo-small {
  max-width: 120px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.site-logo-small:hover {
  opacity: 1;
}

.footer-desc {
  color: var(--c-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--c-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--c-gold-main);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold-main) 100%);
  color: var(--c-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulse-gold 2.5s infinite;
}

.whatsapp-float svg {
  margin-top: -1px; /* Visual optical alignment */
  margin-left: 1px;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.7);
  color: var(--c-black);
  animation: none; /* Pause pulse on hover for clear UI state */
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}
