/* ===== DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --c-dark:    #0a0d14;
  --c-dark2:   #111520;
  --c-dark3:   #182035;
  --c-gold:    #4a7fd4;   /* logo navy blue (renamed but keep var name for compat) */
  --c-gold2:   #6a9fe8;   /* lighter navy blue */
  --c-sand:    #dce8ff;
  --c-white:   #ffffff;
  --c-muted:   #8a96b0;
  --c-border:  rgba(74,127,212,0.2);
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,0.5);
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  /* Brand-specific extras */
  --c-navy:    #1B3F9E;   /* dark logo navy */
  --c-silver:  #a8b8d0;  /* logo silver/steel */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--c-dark);
  color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-dark2); }
::-webkit-scrollbar-thumb { background: var(--c-gold); border-radius: 3px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 5%;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: var(--transition);
}
.nav.scrolled { padding: 0.6rem 5%; background: rgba(13,15,20,0.98); }

/* LOGO — bigger */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 80px;          /* big & visible */
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;   /* removes white bg on dark surface */
  filter: brightness(1.2) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
  filter: brightness(1.3) drop-shadow(0 4px 16px rgba(74,127,212,0.6));
}
.nav.scrolled .nav-logo-img { height: 66px; }
.footer-brand .nav-logo-img { height: 80px; mix-blend-mode: screen; filter: brightness(1.2); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--c-muted);
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--c-gold);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--c-white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold2));
  color: var(--c-white) !important; font-weight: 700 !important;
  padding: 0.6rem 1.4rem; border-radius: 50px;
  transition: var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,127,212,0.4); }

/* Burger */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { width: 26px; height: 2px; background: var(--c-white); border-radius: 2px; transition: var(--transition); display: block; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SVG ICON CONTAINERS ===== */
.service-icon svg, .why-check svg, .hero-img-badge-icon svg,
.value-icon svg, .contact-info-icon svg { display: block; }
.service-icon { color: var(--c-gold); }
.why-check { color: var(--c-gold); }
.hero-img-badge-icon { color: var(--c-dark); }
.value-icon { color: var(--c-gold); }
.contact-info-icon { color: var(--c-gold); }
.service-card:hover .service-icon { color: var(--c-dark); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold2));
  color: var(--c-white);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(74,127,212,0.45); }
.btn-outline {
  background: transparent; border: 2px solid var(--c-gold); color: var(--c-gold);
}
.btn-outline:hover { background: var(--c-gold); color: var(--c-white); transform: translateY(-3px); }
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,211,102,0.4); }

/* ===== SECTION BASE ===== */
section { padding: 6rem 5%; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--c-gold); margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--c-gold); border-radius: 1px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.section-title span { color: var(--c-gold); }
.section-sub { color: var(--c-muted); max-width: 560px; font-size: 1.05rem; }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-sub { margin: 0 auto; }

/* ===== CARDS ===== */
.card {
  background: var(--c-dark2); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.card:hover { transform: translateY(-6px); border-color: var(--c-gold); box-shadow: var(--shadow); }

/* ===== GALLERY GRID ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,15,20,0.8) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-gold);
  background: rgba(13,15,20,0.7); padding: 0.3rem 0.75rem; border-radius: 20px;
}

/* ===== STATS ===== */
.stats-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.5rem; color: var(--c-gold); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--c-muted); margin-top: 0.25rem; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(74,127,212,0.12); border: 1px solid var(--c-border);
  color: var(--c-gold); font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 50px;
}

/* ===== FLOATING WHATSAPP ===== */
.float-wa {
  position: fixed; bottom: 6rem; right: 1.5rem; z-index: 999;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.float-wa:hover { transform: scale(1.12); }
.float-wa svg { width: 32px; height: 32px; fill: #fff; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,0.8); }
}

/* ===== STICKY MOBILE CTA BAR ===== */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 0.85rem 1rem;
  gap: 0.75rem;
}
.mobile-cta-bar a {
  flex: 1; text-align: center;
  padding: 0.8rem 0.5rem; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.mobile-cta-bar .mob-wa {
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
}
.mobile-cta-bar .mob-call {
  background: rgba(74,127,212,0.15); border: 1.5px solid var(--c-gold); color: var(--c-gold);
}

/* ===== FOOTER ===== */
footer { background: var(--c-dark2); border-top: 1px solid var(--c-border); padding: 3rem 5% 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--c-muted); margin-top: 1rem; font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { font-family: 'Outfit', sans-serif; font-weight: 700; margin-bottom: 1rem; color: var(--c-gold); }
.footer-col a { display: block; color: var(--c-muted); font-size: 0.9rem; margin-bottom: 0.5rem; transition: var(--transition); }
.footer-col a:hover { color: var(--c-white); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--c-border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--c-muted); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
/* Stagger delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.95); display: none; place-items: center; }
.lightbox.open { display: grid; animation: fadeIn 0.25s ease; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-close:hover { background: var(--c-gold); color: var(--c-dark); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  color: #fff; font-size: 2rem; padding: 1rem 1.5rem;
  transition: var(--transition); border-radius: var(--radius);
  z-index: 10;
}
.lb-nav:hover { background: var(--c-gold); color: var(--c-dark); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-dots {
  position: absolute; bottom: 2rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.lb-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3);
  transition: var(--transition);
}
.lb-dot.active { background: var(--c-gold); transform: scale(1.3); }
#lbImg { transition: opacity 0.2s ease; opacity: 1; }
#lbImg.lb-fading { opacity: 0; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 10rem 5% 5rem;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark3) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,212,0.1) 0%, transparent 70%);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--c-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--c-dark3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  color: var(--c-white); font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(74,127,212,0.18); }
.form-group textarea { min-height: 130px; resize: vertical; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== RESPONSIVE — MOBILE FIRST ===== */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 0.75rem 4%; }
  .nav-logo-img { height: 68px; mix-blend-mode: screen; filter: brightness(1.2); }   /* reduced from 110px */
  .nav.scrolled .nav-logo-img { height: 56px; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-dark2);
    padding: 1.25rem 5%; gap: 0.75rem;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: slideDown 0.3s ease;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }

  /* Sections */
  section { padding: 3.5rem 4%; }
  .page-hero { padding: 8rem 4% 3rem; }

  /* Typography */
  .section-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding-bottom: 7rem; }

  /* Floating WA — hide it, sticky bar replaces it */
  .float-wa { display: none; }

  /* Show sticky CTA */
  .mobile-cta-bar { display: flex; }

  /* CTA banner */
  .cta-banner { padding: 2rem 1.5rem; margin: 0 4% 3rem; text-align: left; flex-direction: column; align-items: flex-start; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Stats row */
  .stats-row { gap: 1.5rem; justify-content: center; text-align: center; }
  .stat-number { font-size: 2rem; }
  .stat-item { align-items: center; }

  /* Badges */
  .page-hero .badge { font-size: 0.72rem; padding: 0.3rem 0.7rem; }

  /* ===== MOBILE ALIGNMENT — CENTER ===== */
  .text-center { text-align: center; }
  .text-center .section-label { justify-content: center; }
  .text-center .section-sub { margin: 0 auto; }

  /* ===== MOBILE HERO — full-bleed background image with overlay ===== */
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically instead of pushing to bottom */
    text-align: center;
  }
  .hero-visual {
    position: absolute !important;
    inset: 0; z-index: 0;
  }
  .hero-visual .hero-img-main {
    width: 100%; height: 100%;
    aspect-ratio: unset; border-radius: 0;
    object-fit: cover; object-position: center;
  }
  .hero-visual::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(13,15,20,0.75) 0%,
      rgba(13,15,20,0.85) 55%,
      rgba(13,15,20,0.98) 100%
    );
  }
  .hero-img-secondary, .hero-img-badge { display: none; }
  .hero-content {
    position: relative; z-index: 2;
    padding: 6rem 1.5rem 6.5rem; /* Space for nav and sticky CTA */
    margin-top: 0; /* Remove auto to stop pushing it to bottom */
    text-align: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-trust { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
  .hero-desc { text-align: center; color: rgba(255,255,255,0.95); text-shadow: 0 1px 5px rgba(0,0,0,0.5); font-weight: 400; margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; gap: 0.75rem; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; }

  /* CTA banner — center on mobile */
  .cta-banner { text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 46px; mix-blend-mode: screen; filter: brightness(1.2); }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .section-title { font-size: 1.6rem; }
  section { padding: 3rem 4%; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
