/* =========================================================================
   ÂMAGO - PREMIUM VANILLA CSS DESIGN SYSTEM
   ========================================================================= */

/* --- Variables & Tokens --- */
:root {
  /* Colors */
  --bg-base: #ffffff;
  --bg-surface: #f4f5f7;
  --bg-surface-glass: rgba(255, 255, 255, 0.7);

  --accent-core: #0f2c59; /* Royal Blue */
  --accent-glow: rgba(15, 44, 89, 0.15);
  --accent-gradient: linear-gradient(135deg, #0f2c59 0%, #1e40af 100%);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --border-color: rgba(15, 44, 89, 0.1);
  --border-glow: rgba(15, 44, 89, 0.2);

  --btn-whatsapp: #25d366;
  --btn-whatsapp-hover: #1eaa52;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --section-pad: 120px 0;
  --container-width: 1200px;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-pulse: 0 0 0 0 rgba(15, 44, 89, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations Core */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 44, 89, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(15, 44, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 44, 89, 0);
  }
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes float-glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* --- Resets & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}
.text-lg {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

span.highlight,
h1 span,
h2 span,
h3 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad);
  position: relative;
  z-index: 1;
}

.dark-section {
  background: linear-gradient(
    180deg,
    var(--bg-surface) 0%,
    var(--bg-base) 100%
  );
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.container-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

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

.col-6 {
  width: calc(50% - 24px);
}
.col-5 {
  width: calc(41.666% - 24px);
}
.col-7 {
  width: calc(58.333% - 24px);
}
.mt-4 {
  margin-top: 2rem;
}

/* --- UI Components --- */
/* CRO - Social Proof Strip */
.social-proof {
  padding: 40px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.social-proof p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.social-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition);
}

.social-logos:hover {
  opacity: 0.8;
}

.social-logos span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent-core);
  color: #fff;
}

.btn-primary:hover {
  background: #0b2245; /* Darker Royal Blue */
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-pulse {
  animation: pulse-glow 2s infinite;
}

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

.btn-whatsapp:hover {
  background: var(--btn-whatsapp-hover);
  transform: translateY(-2px);
}

.btn-pulse-green {
  animation: pulse-green 2s infinite;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-core);
  color: var(--accent-core);
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  color: var(--accent-core);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-center {
  margin: 0 auto 1.5rem auto;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.navbar.scrolled .logo-img {
  height: 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-btn {
  padding: 10px 24px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-base);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-menu-btn {
  position: absolute;
  top: 32px;
  right: 24px;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-nav-link.highlight {
  color: var(--accent-core);
  margin-top: 16px;
}

/* --- Header / Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px; /* Added bottom padding to make room for scroll arrow */
  overflow: hidden;
  color: var(--text-primary); /* Ensure text is dark on light hero */
}

#threads-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#threads-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.9) 80%,
    var(--bg-base) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-title {
  font-size: 4.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
}

.bounce-arrow {
  font-size: 1.5rem;
  color: var(--accent-core);
  animation: bounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 6px;
  background: var(--accent-core);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite ease;
}

@keyframes scroll {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}

@keyframes slowZoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.15);
  }
}

/* --- Sections --- */
.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-text {
  margin-bottom: 2rem;
}

/* Philosophy */
.stats-row {
  display: flex;
  gap: 48px;
  margin-top: 3rem;
}

.stat-item {
  position: relative;
}

.stat-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--accent-gradient);
}

.stat-number {
  font-size: 3rem;
  color: var(--accent-core);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.premium-card {
  padding: 48px;
}

.card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--accent-core);
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
}

.quote-icon {
  font-size: 3rem;
  color: var(--accent-core);
  opacity: 0.5;
  margin-bottom: 24px;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 32px;
}

.quote-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.quote-author span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-core);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: #fff;
  transform: rotate(5deg);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-line {
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.4s ease;
}

.service-card:hover .service-line {
  width: 100%;
}

/* CTA Banner */
.cta-banner {
  padding: 100px 0;
  background: var(--accent-core); /* Pattern Break: Solid Blue */
  position: relative;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 24px;
}

.cta-banner .cta-title span {
  background: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.cta-title span {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner .btn-primary {
  background: #ffffff;
  color: var(--accent-core);
}

.cta-banner .btn-primary:hover {
  background: #f4f5f7;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Contact Module */
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-core);
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-value:hover {
  color: var(--accent-core);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card-title {
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.row {
  flex-direction: row;
  gap: 20px;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-control {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-core);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
  resize: vertical;
}

label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 60px 24px 40px;
  background: var(--bg-surface);
}

.footer-logo {
  justify-content: center;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--btn-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
  text-decoration: none;
}

.floating-whatsapp:hover {
  background-color: var(--btn-whatsapp-hover);
  transform: translateY(-5px) scale(1.05);
  color: white;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-left {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.is-visible,
.fade-up.is-visible,
.fade-right.is-visible,
.fade-left.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .container-grid {
    flex-direction: column;
  }
  .col-6,
  .col-5,
  .col-7 {
    width: 100%;
  }

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

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

  .stats-row {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: auto; /* Allow content to dictate height on mobile to prevent overlapping */
    padding: 150px 24px 100px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
  }

  .section-title {
    font-size: 2.25rem;
  }
  .cta-title {
    font-size: 2.25rem;
  }

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

  .form-group.row {
    flex-direction: column;
  }
  .input-wrap.col-6 {
    width: 100%;
  }

  /* CRO Mobile Fixes */
  .social-logos {
    gap: 20px;
    padding: 0 16px;
  }
  .social-logos span {
    font-size: 1rem;
    text-align: center;
  }

  .cta-bg-glow {
    width: 300px;
    height: 300px;
  }

  .cta-banner {
    padding: 80px 16px;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .section,
  .dark-section {
    padding: 60px 0;
  }
  .contact-card {
    padding: 24px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
