/* ===== SHARED CSS FOR ALL PAGES ===== */
/* This file contains all common styles used across the 5 core pages */
/* Import this in <style> tags with @import url('shared.css'); */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #ffffff;
  overflow-x: hidden;
}

/* ===== CSS CUSTOM PROPERTIES (Design Tokens) ===== */
:root {
  --navy: #0D1B2A;
  --navy-mid: #162232;
  --navy-card: #1A2E44;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --cyan: #06B6D4;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --blue-dim: rgba(37, 99, 235, 0.12);
  --white: #FFFFFF;
  --off-white: #F1F5F9;
  --gray-100: #F8FAFC;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ===== ACCESSIBILITY ===== */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: white;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0D1B2A;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  padding: 0 2rem;
}

nav.scrolled {
  background: #0D1B2A;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.24);
}

.nav-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a.active {
  color: var(--cyan);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue-light);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--navy);
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  z-index: 999;
}

.nav-drawer.active {
  display: flex;
}

.nav-drawer a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer a:hover {
  color: var(--cyan);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  animation: fade-up 0.6s ease-out forwards;
}

.reveal-left.visible {
  animation: reveal-from-left 0.6s ease-out forwards;
}

.reveal-right.visible {
  animation: reveal-from-right 0.6s ease-out forwards;
}

.reveal-scale.visible {
  animation: reveal-scale 0.6s ease-out forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-from-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-from-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-scale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger delays for reveal variants */
.reveal-left:nth-child(2).visible,
.reveal-right:nth-child(2).visible,
.reveal-scale:nth-child(2).visible {
  animation-delay: 0.1s;
}

.reveal-left:nth-child(3).visible,
.reveal-right:nth-child(3).visible,
.reveal-scale:nth-child(3).visible {
  animation-delay: 0.2s;
}

.reveal-left:nth-child(4).visible,
.reveal-right:nth-child(4).visible,
.reveal-scale:nth-child(4).visible {
  animation-delay: 0.3s;
}

/* Section heading clip-path reveal */
@keyframes clip-reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

.section-title-reveal {
  opacity: 0;
}

.section-title-reveal.visible {
  animation: clip-reveal 0.6s ease-out forwards;
  opacity: 1;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  perspective: 1000px;
  transition: transform 0.3s ease;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:nth-child(1):hover {
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15), inset 0 0 20px rgba(37, 99, 235, 0.1);
  border-color: var(--blue);
}

.testimonial-card:nth-child(2):hover {
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.15), inset 0 0 20px rgba(6, 182, 212, 0.1);
  border-color: var(--cyan);
}

.testimonial-card:nth-child(3):hover {
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.1);
  border-color: #10B981;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: #0D1B2A;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .nav-links.mobile-open {
    display: flex !important;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  nav {
    padding: 0 1rem;
  }

  .nav-wrapper {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  nav {
    padding: 0 1rem;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 2rem;
}

footer h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: var(--cyan);
}

.footer-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  border-radius: var(--radius-md);
}

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

@media (max-width: 768px) {
  .footer-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }
}

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