/* ==========================================================================
   Solvio — Landing Page Styles
   Paleta: Navy #0B2D5B | Orange #FF6A00 | White | Light Gray #F8FAFC
   ========================================================================== */

:root {
  --navy: #0B2D5B;
  --navy-dark: #071d3d;
  --navy-soft: #12386f;
  --orange: #FF6A00;
  --orange-light: #FF8A3D;
  --bg-light: #F8FAFC;
  --gray-500: #64748B;
  --gray-300: #E2E8F0;
}

* {
  scroll-behavior: smooth;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.container-x {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.gradient-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.gradient-orange-text {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.9rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.38);
  background: #ff7912;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  padding: 0.9rem 1.9rem;
  border-radius: 9999px;
  border: 1.5px solid #dbe4f0;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--bg-light);
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.9rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.card-soft {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 20px rgba(15, 40, 90, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 40, 90, 0.12);
  border-color: #f0d9c8;
}

.icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Reveal on scroll — progressive enhancement:
   Elements are visible by default (no-JS / slow-JS safe).
   JS adds .js-reveal (hidden state) only for elements below the fold,
   then adds .in-view once they intersect the viewport. */
.reveal.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.js-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Blobs / background decoration */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

#site-header {
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,0.85);
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(15, 40, 90, 0.08);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark .dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid #fff;
}

.nav-link {
  position: relative;
  color: var(--navy);
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ==========================================================================
   Chat mockup (Hero + Simulation)
   ========================================================================== */

.phone-frame {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 30px 70px -20px rgba(11, 45, 91, 0.35), 0 0 0 1px rgba(11,45,91,0.04);
  overflow: hidden;
  position: relative;
}

.chat-header {
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-body {
  background: #ECE9E2;
  background-image:
    radial-gradient(rgba(11,45,91,0.035) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 1.25rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  opacity: 0;
  animation: bubbleIn 0.5s ease forwards;
}
.bubble.bot {
  align-self: flex-start;
  background: #fff;
  color: #1e293b;
  border-bottom-left-radius: 0.25rem;
}
.bubble.user {
  align-self: flex-end;
  background: var(--orange);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.bubble .time {
  display: block;
  font-size: 0.65rem;
  opacity: 0.55;
  margin-top: 0.2rem;
  text-align: right;
}
.bubble.bot .time { color: #64748b; }
.bubble.user .time { color: rgba(255,255,255,0.8); }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bubble.delay-1 { animation-delay: 0.2s; }
.bubble.delay-2 { animation-delay: 0.8s; }
.bubble.delay-3 { animation-delay: 1.5s; }
.bubble.delay-4 { animation-delay: 2.2s; }
.bubble.delay-5 { animation-delay: 3.0s; }
.bubble.delay-6 { animation-delay: 3.8s; }
.bubble.delay-7 { animation-delay: 4.5s; }

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.2rem 0;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.price-card {
  background: linear-gradient(135deg, #fff 0%, #fff7f0 100%);
  border: 1.5px solid #ffd9b8;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  align-self: flex-start;
  max-width: 88%;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.12);
  opacity: 0;
  animation: bubbleIn 0.5s ease forwards;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(11,45,91,0.08);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.chat-photo {
  width: 130px;
  height: 96px;
  border-radius: 0.85rem;
  object-fit: cover;
  display: block;
}

/* Pulse animation for WhatsApp float button */
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: pulseRing 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Floating decorative badges on hero */
.float-badge {
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* FAQ accordion */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-item .chevron {
  transition: transform 0.3s ease;
}
.faq-item.open .chevron {
  transform: rotate(180deg);
}
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open {
  border-color: var(--orange) !important;
  box-shadow: 0 8px 24px rgba(255,106,0,0.08);
}

/* Service card button hover shift */
.service-cta {
  transition: gap 0.25s ease, color 0.25s ease;
}
.service-cta:hover { gap: 0.6rem; }

/* Mobile nav */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* Marquee-ish trust bar */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .phone-frame { max-width: 340px; margin: 0 auto; }
}
