/* ===== VARIABLES ===== */
:root{
  --navy:#1c3b69;
  --blue:#3e6aab;
  --teal:#0898b3;
  --lightblue:#cde4ea;
  --gold:#fae23b;
  --white:#ffffff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--lightblue);
  color:var(--navy);
}
a{text-decoration:none;color:inherit}

/* ================= NAV ================= */
.nav{
  position:fixed;
  top:0;left:0;right:0;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid var(--lightblue);
  backdrop-filter:blur(12px);
  z-index:999;
}
.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}
}

/* ===== 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;
}

/* ===== 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}

/* ===== TEAM ===== */
.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:3rem;
}

.team-card{
  background:white;
  padding:2.5rem 2rem;
  border-radius:1.8rem;
  text-align:center;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
  transition:.35s;
}

.team-card:hover{
  transform:translateY(-8px);
}

.team-photo{
  width:130px;
  height:130px;
  margin:0 auto 1.2rem;
  border-radius:50%;
  overflow:hidden;
  border:4px solid var(--lightblue);
}

.team-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .45s ease;
  will-change: transform;
}

.team-photo:hover img{
  transform: scale(1.18);
}


.team-role{
  display:block;
  font-size:.95rem;
  font-weight:600;
  color:var(--blue);
  margin:.3rem 0 .8rem;
}

.team-bio{
  font-size:.95rem;
  opacity:.85;
  margin-bottom:1.2rem;
}

.team-socials{
  display:flex;
  justify-content:center;
  gap:.8rem;
}

.team-socials a{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--blue);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.3s;
}

.team-socials a:hover{
  background:var(--gold);
  color:var(--navy);
  transform:translateY(-3px);
}

/* Dark mode */
body.dark .team-card{
  background:#112a4f;
}
body.dark .team-photo{
  border-color:#1c3b69;
}


/* ================= DARK MODE ================= */
body.dark{
  background:#0b1f3a;
  color:#cde4ea;
}
body.dark .nav,
body.dark .nav-links{
  background:#0b1f3a;
}
body.dark .card{
  background:#112a4f;
}
body.dark .hamburger span{background:#cde4ea}

#darkToggle{
  background:none;
  border:none;
  cursor:pointer;
  font-size:1.1rem;
}

/* ================= 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);
}

/* ================= FLOATING ================= */
.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;
}

/* ===== 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);
}


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)
}

.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;
}

/* Dark mode */
body.dark .modal-content{
  background:#112a4f;
}