/* ============================================================
   LOPBaTI Solutions — Main Stylesheet
   Color palette derived from logo:
     Navy:   #0D1B5E
     Cyan:   #29B4D8
     Red:    #CC2929
     Light:  #EAF6FB
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1B5E;
  --navy-mid:   #162273;
  --navy-light: #1E2F99;
  --cyan:       #29B4D8;
  --cyan-light: #6DD5ED;
  --cyan-pale:  #EAF6FB;
  --red:        #CC2929;
  --white:      #FFFFFF;
  --off-white:  #F7FAFE;
  --gray-100:   #F0F4F8;
  --gray-300:   #CBD5E0;
  --gray-500:   #718096;
  --gray-700:   #2D3748;
  --text:       #1A202C;

  --font-head:  'Georgia', 'Times New Roman', serif;
  --font-body:  'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --nav-h:      80px;
  --section-px: clamp(1.5rem, 6vw, 6rem);
  --section-py: clamp(4rem, 8vw, 7rem);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(13,27,94,.10);
  --shadow-lg:  0 12px 48px rgba(13,27,94,.16);
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }


/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,94,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(41,180,216,.25);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--section-px);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  border-color: rgba(41,180,216,.4);
  background: rgba(41,180,216,.08);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}


/* ============================================================
   PAGE SYSTEM
   ============================================================ */
.page {
  display: none;
  padding-top: var(--nav-h);
  min-height: 100vh;
  position: relative;
}
.page.active { display: block; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #0a2e55 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Particle dots overlay */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-particles span {
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .18;
  animation: float-dot linear infinite;
}

@keyframes float-dot {
  0%   { transform: translateY(0) scale(1); opacity: .18; }
  50%  { opacity: .32; }
  100% { transform: translateY(-120px) scale(.7); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem var(--section-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-brand { color: var(--cyan); }

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.80);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: .85rem 2rem;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 2px solid var(--cyan);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--cyan-light);
  border-color: var(--cyan-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41,180,216,.35);
}

.btn-outline {
  display: inline-block;
  padding: .85rem 2rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.5);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

/* AAV hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.aav-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,180,216,.22) 0%, transparent 70%);
  animation: pulse-glow 3.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%       { transform: scale(1.12); opacity: 1; }
}

.aav-spin {
  width: clamp(280px, 38vw, 460px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(41,180,216,.4));
  animation: aav-float 6s ease-in-out infinite, aav-rotate 25s linear infinite;
  position: relative;
  z-index: 1;
}
@keyframes aav-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(3deg); }
}
@keyframes aav-rotate {
  from { filter: drop-shadow(0 0 40px rgba(41,180,216,.40)) hue-rotate(0deg); }
  to   { filter: drop-shadow(0 0 40px rgba(41,180,216,.40)) hue-rotate(360deg); }
}


/* ============================================================
   HOME SECTIONS
   ============================================================ */
.home-section {
  padding: var(--section-py) var(--section-px);
  background: var(--white);
}
.home-section--alt { background: var(--cyan-pale); }
.home-section--dark {
  background: var(--navy);
  color: var(--white);
}

.home-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
}
.home-section--dark .section-label { color: var(--cyan-light); }

.home-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.home-section--dark h2 { color: var(--white); }

.home-section p {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 700px;
  margin-bottom: 1rem;
}
.home-section--dark p { color: rgba(255,255,255,.80); }

.section-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.accent-bar {
  width: 60px;
  height: 4px;
  background: var(--cyan);
  border-radius: 2px;
  margin-top: 1.5rem;
}

.mt-lg { margin-top: 2rem; }

/* Icon grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.icon-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--cyan);
  transition: transform var(--transition), box-shadow var(--transition);
}
.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.icon-card-icon { font-size: 2rem; margin-bottom: .75rem; }
.icon-card h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: .5rem; font-weight: 700; }
.icon-card p { font-size: .92rem; color: var(--gray-500); margin: 0; }

/* Partnership chips */
.partner-chips { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.chip {
  display: inline-block;
  padding: .5rem 1.2rem;
  background: var(--cyan-pale);
  border: 1.5px solid var(--cyan);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.chip:hover { background: var(--cyan); color: var(--white); }

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(41,180,216,.2);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}
.why-card:hover {
  background: rgba(41,180,216,.12);
  border-color: rgba(41,180,216,.5);
}
.why-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  opacity: .6;
  line-height: 1;
  margin-bottom: .75rem;
}
.why-card h4 { font-size: 1.05rem; color: var(--white); margin-bottom: .5rem; font-weight: 700; }
.why-card p { font-size: .92rem; color: rgba(255,255,255,.70); margin: 0; }


/* ============================================================
   PAGE CTA FOOTER
   ============================================================ */
.page-cta-footer {
  text-align: center;
  padding: 5rem var(--section-px);
  background: linear-gradient(135deg, var(--navy) 0%, #0a2e55 100%);
  color: var(--white);
}
.page-cta-footer p {
  font-size: 1.15rem;
  opacity: .85;
  margin-bottom: 1.5rem;
}
.btn-cta {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-cta:hover {
  background: #e53535;
  border-color: #e53535;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(204,41,41,.4);
}


/* ============================================================
   SERVICES PAGE
   ============================================================ */
#page-services {
  background: #f4f8fc;
  overflow: hidden;
}

.page-bg-aav {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-aav-img {
  position: absolute;
  opacity: .06;
  filter: blur(1px) grayscale(20%);
}
.bg-aav-left  { width: 520px; bottom: -80px; left: -120px; transform: rotate(-15deg); }
.bg-aav-right { width: 480px; top: 60px; right: -100px; transform: rotate(20deg); }

.services-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem var(--section-px) 3rem;
}
.services-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.services-intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--gray-500);
  font-size: 1.1rem;
}

.services-list {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 2rem auto 0;
  padding: 0 var(--section-px) 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--cyan);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: start;
  gap: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}

.service-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  opacity: .5;
  line-height: 1;
}
.service-card:hover .service-number { opacity: 1; color: var(--navy); }

.service-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.service-content p {
  font-size: .97rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin: 0;
}

.service-icon { font-size: 2rem; text-align: right; padding-top: .25rem; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
#page-contact {
  background: #f4f8fc;
  overflow: hidden;
}

.contact-wrapper {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem var(--section-px) 5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto .75rem;
}
.email-link { color: var(--cyan); font-weight: 600; }
.email-link:hover { text-decoration: underline; }

/* Form */
.contact-form-wrap {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-row { margin-bottom: 1.25rem; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: .85rem 1rem;
  color: var(--white);
  font-size: .98rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(41,180,216,.08);
  box-shadow: 0 0 0 3px rgba(41,180,216,.2);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit { text-align: center; margin-top: 1.5rem; }
.btn-submit { padding: .95rem 2.5rem; font-size: 1rem; min-width: 200px; }

.form-success {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--cyan-light);
  font-weight: 600;
  font-size: 1rem;
}

/* Contact info */
.contact-info { margin-top: 3rem; }
.contact-info-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .97rem;
  color: var(--gray-700);
}
.ci-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-info-item a { color: var(--cyan); }
.contact-info-item a:hover { text-decoration: underline; }


/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.70);
  padding: 4rem var(--section-px) 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-logo { height: 48px; width: auto; margin-bottom: 1rem; object-fit: contain; }
.footer-tagline { font-size: .9rem; line-height: 1.6; max-width: 320px; }

.footer-col h5 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col li a, .footer-col p a {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  transition: color var(--transition);
}
.footer-col li a:hover, .footer-col p a:hover { color: var(--cyan); }
.footer-col p { font-size: .92rem; line-height: 1.6; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 0;
  text-align: center;
  font-size: .82rem;
  opacity: .5;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.footer-credit a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-credit a:hover { color: var(--cyan); }


/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered service cards */
.service-card.reveal { transition-delay: var(--delay, 0ms); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-visual { justify-content: center; }
  .aav-spin { width: clamp(200px, 60vw, 320px); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-col:first-child { grid-column: 1 / -1; }

  .service-card { grid-template-columns: 50px 1fr; }
  .service-icon { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: .25rem; border-bottom: 1px solid rgba(41,180,216,.2); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .form-row--split { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .home-section { padding: 3.5rem 1.5rem; }

  .icon-grid { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 2rem 1.25rem; }
  .contact-wrapper { padding: 3rem 1.25rem; }
}
