/* ===== VARIABLES ===== */
:root{
  --navy:#1c3b69;
  --blue:#3e6aab;
  --teal:#0898b3;
  --lightblue:#cde4ea;
  --gold:#fae23b;
  --white:#ffffff;
  
  --nav-bg:rgba(255,255,255,.95);

  /* toggle icon color */
  --toggle-color: var(--navy); /* light mode */
}

/* ===== BASE ===== */
*{box-sizing:border-box}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--lightblue);
  color:var(--navy);
  transition: background .3s ease,color .3s ease;
}
a{text-decoration:none;color:inherit}

/* ===== NAV ===== */
.nav{
  position:fixed;
  top:0;left:0;right:0;
  background: var(--nav-bg); /* ✅ FIXED */
  border-bottom:1px solid var(--lightblue);
  backdrop-filter:blur(12px);
  z-index:999;
  transition:.3s;
}
.nav.scrolled{box-shadow:0 10px 30px rgba(0,0,0,.08)}

.nav-inner{
  max-width:1200px;
  margin:auto;
  padding:1rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo img{height:42px}

.nav-links{
  display:flex;
  align-items:center;
  gap:1.5rem;
}
.nav-links a{
  font-weight:600;
  position:relative;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--gold);
  transition:.3s;
}
.nav-links a:hover::after{width:100%}

/* ===== HAMBURGER ===== */
.hamburger{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}
.hamburger span{
  width:28px;
  height:3px;
  background:var(--navy);
  transition:.4s;
}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(6px,6px);}
.hamburger.active span:nth-child(2){opacity:0;}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(7px,-7px);}

@media (max-width:900px){
  .hamburger{display:flex}
  .nav-links{
    position:absolute;
    top:100%;
    left:0;right:0;
    background:white;
    flex-direction:column;
    padding:1.5rem;
    display:none;
  }
  .nav-links.active{display:flex}
}

/* ===== DARK MODE TOGGLE ===== */
#darkToggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--toggle-color);
  transition: transform .3s ease, color .3s ease;
}

#darkToggle:hover {
  transform: scale(1.1);
}

#darkToggle i,
#darkToggle svg {
  color: var(--toggle-color);
  fill: currentColor;
}


/* ===== HERO ===== */
.hero{
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(120deg,rgba(30,58,138,.9),rgba(15,23,42,.95)),
    url("../../../tools/img/assets/hero-slide3.jpg") center/cover;
  color:white;
  text-align:center;
  padding:6rem 1.5rem 3rem;
}
.hero h1{font-size:3rem}

/* ===== CONTENT ===== */
section{padding:5rem 1.5rem}
.container{max-width:1200px;margin:auto}

.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:3rem;
}

.card{
  background:white;
  padding:2.5rem;
  border-radius:1.5rem;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
  transition:.3s;
  text-align:center;
}
.card:hover{transform:translateY(-6px)}

.service-icon{
  font-size:3rem;
  color:var(--blue);
  margin-bottom:1rem;
}

/* ===== CTA SECTION ===== */
.cta-section{
  background:linear-gradient(120deg,var(--navy),var(--blue));
  color:white;
  text-align:center;
  padding:4rem 1.5rem;
  margin-top:4rem;
}
.cta-section h2{font-size:2.2rem;margin-bottom:.8rem;}
.cta-section p{max-width:520px;margin:0 auto 2rem;opacity:.9;}
.cta-btn{
  font-size:1.05rem;
  padding:1.1rem 2.8rem;
  background:var(--gold);
  color:var(--navy);
}

/* ===== FORM ELEMENTS ===== */
input,textarea,select{
  width:100%;
  padding:.9rem;
  border-radius:10px;
  border:1px solid #ddd;
  font-family:inherit;
}
input:focus,textarea:focus,select:focus{
  outline:none;
  border-color:var(--teal)
}

/* ===== BUTTONS ===== */
.btn{
  background:var(--gold);
  color:var(--navy);
  padding:1rem 2rem;
  border:none;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  transition:.3s;
}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn:hover{transform:translateY(-3px)}

/* ===== MODAL ===== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10000;
}
.modal.active{display:flex}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
}
.modal-content{
  position:relative;
  background:white;
  width:100%;
  max-width:460px;
  padding:2.5rem;
  border-radius:1.8rem;
  z-index:2;
  box-shadow:0 40px 80px rgba(0,0,0,.35);
  animation:modalPop .35s ease;
}
@keyframes modalPop{from{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}
.modal-close{position:absolute;top:16px;right:18px;font-size:1.6rem;background:none;border:none;cursor:pointer}
.modal-content h2{margin-top:0}
.modal-subtitle{font-size:.95rem;opacity:.75;margin-bottom:1.5rem}
.modal-content input,
.modal-content textarea,
.modal-content select{margin-bottom:1rem}
.modal-btn{width:100%;margin-top:.5rem}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-btn{
  position:fixed;
  bottom:25px;right:25px;
  width:60px;height:60px;
  border-radius:50%;
  background:#25D366;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  z-index:9999;
}
#topBtn{
  position:fixed;
  bottom:100px;right:25px;
  width:45px;height:45px;
  border-radius:50%;
  background:var(--blue);
  color:white;
  border:none;
  display:none;
  cursor:pointer;
}

/* ===== FOOTER ===== */
footer{
  background:var(--navy);
  color:var(--lightblue);
  text-align:center;
  padding:3rem 1rem;
}
.socials{
  display:flex;
  justify-content:center;
  gap:1rem;
  margin-top:1.2rem;
}
.socials a{
  width:42px;height:42px;
  border-radius:50%;
  border:1px solid var(--blue);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.3s;
}
.socials a:hover{
  background:var(--gold);
  color:var(--navy);
  transform:translateY(-4px);
}

/* ===== DARK MODE ===== */
body.dark{
  background:#0b1f3a;
  color:#cde4ea;

  --toggle-color: var(--gold); /* ✅ gold in dark mode */
}


body.dark .nav-links a::after{
  background: var(--gold);
}

body.dark .btn:not(.cta-btn){
  background: var(--gold);
  color: var(--navy);
}


body.dark .card{
  background:#112a4f;
  color:#cde4ea;
}

body.dark .service-icon{
  color:var(--gold);
}

body.dark #darkToggle{
  background:none;
  transform: rotate(180deg);
}


/* ===== DARK MODE NAV HEADER (SOLID NAVY) ===== */
body.dark{
  background:#0b1f3a;
  color:#cde4ea;

  --nav-bg: var(--navy);     /* ✅ NAVY HEADER */
  --toggle-color: var(--gold);
}

body.dark .nav{
  background: var(--navy);
  border-bottom: 1px solid #112a4f;
  backdrop-filter: none;
}

body.dark .nav.scrolled{
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* Mobile menu */
body.dark .nav-links{
  background: var(--navy);
}

body.dark .hamburger span{
  background:var(--gold);
}

body.dark .nav-links a::after,
body.dark .btn{
  color:var(--gold);
  background:var(--gold);
}

body.dark .modal-content{
  background:#112a4f;
}
body.dark .cta-btn{
  background: var(--gold);
  color: var(--navy);
}

