
:root{--navy:#0C355A;--teal:#12A3A4;--sky:#E7F3F4;--gold:#E6B800;--ink:#0B1B2B}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink)}
a{color:var(--navy);text-decoration:none}a:hover{opacity:.9}
.container{max-width:1180px;margin:0 auto;padding:0 16px}
.header{position:sticky;top:0;background:#fff;border-bottom:1px solid #eee;z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;padding:10px 0}
.brand{display:flex;gap:10px;align-items:center}.brand img{height:46px;border-radius:8px}.brand span{font-weight:800;color:var(--navy)}
.menu{display:flex;gap:18px;align-items:center}.menu a{padding:10px 12px;border-radius:12px;font-weight:600}.menu a.active,.menu a:hover{background:var(--sky)}
.hamburger{display:none;flex-direction:column;gap:4px;cursor:pointer}.hamburger span{width:26px;height:3px;background:var(--navy);border-radius:4px}
.hero{background:linear-gradient(135deg,var(--sky),#fff);padding:60px 0}
.hero h1{margin:0 0 8px;font-size:34px;color:var(--navy)}
.hero p{font-size:18px;color:#3b4b55;max-width:760px}
.btn{display:inline-block;padding:12px 18px;border-radius:14px;font-weight:800;border:2px solid var(--navy);background:var(--navy);color:#fff}
.btn.alt{background:var(--teal);border-color:var(--teal)}
.btn.ghost{background:transparent;color:var(--navy)}
.section{padding:40px 0}.section h2{font-size:26px;color:var(--navy);margin:0 0 14px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.tile{background:#fff;border-radius:18px;padding:18px;border:1px solid #eef;box-shadow:0 6px 24px rgba(12,53,90,.06);display:flex;flex-direction:column;gap:8px}
.tile .title{font-size:18px;font-weight:900;color:var(--navy)}.tile .summary{color:#3c4b55}.tile .more{margin-top:auto}
.badge-navy{background:var(--navy);color:#fff;padding:4px 8px;border-radius:999px;font-weight:800;font-size:12px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.member{background:#fff;border:1px solid #e8eef3;border-radius:16px;padding:16px;display:flex;gap:14px;align-items:center;box-shadow:0 4px 16px rgba(12,53,90,.06)}
.avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--teal),var(--navy));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900}
.footer{background:#0b1b2b;color:#d6e2ea;padding:24px 0;margin-top:40px}.footer a{color:#d6e2ea}.footer .grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center}
.whatsapp-float{position:fixed;bottom:18px;right:18px;background:var(--teal);color:#fff;border-radius:999px;padding:14px 16px;font-weight:900;box-shadow:0 10px 24px rgba(0,0,0,.18);z-index:60}
@media(max-width:980px){.tiles{grid-template-columns:1fr 1fr}.team-grid{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.menu{display:none;position:absolute;top:66px;right:16px;background:#fff;border:1px solid #eee;border-radius:16px;flex-direction:column;min-width:220px;overflow:hidden}.menu a{border-bottom:1px solid #f1f3f5}.hamburger{display:flex}.tiles{grid-template-columns:1fr}.team-grid{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}.hero{padding:34px 0}.hero h1{font-size:26px}}


/* === Team page enhancements === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.team-card {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 22px rgba(12,53,90,.08);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.team-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(12,53,90,.12); }
.team-head {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
}
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 24px;
}
.team-name { font-size: 18px; font-weight: 900; color: var(--navy); }
.team-role { color: #3b4b55; font-weight: 600; margin-top: 2px; }
.team-actions { margin-top: 14px; }
.team-profile {
  display: none;
  margin-top: 12px;
  color: #34414a;
  line-height: 1.5;
  border-top: 1px dashed #d6e2ea;
  padding-top: 12px;
}
.team-card.open .team-profile { display: block; }

@media (max-width: 980px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-head { grid-template-columns: 64px 1fr; }
  .team-avatar { width: 64px; height: 64px; font-size: 20px; }
}


/* === Tile background images (services + team) === */
.tile.has-bg, .team-card.has-bg { position: relative; overflow: hidden; }
.tile.has-bg::before, .team-card.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: .18;
  transition: opacity .2s ease, transform .2s ease;
  transform: scale(1.02);
}
.tile.has-bg:hover::before, .team-card.has-bg:hover::before { opacity: .26; transform: scale(1.06); }
.tile.has-bg > *, .team-card.has-bg > * { position: relative; z-index: 1; }


/* === Responsive background image helpers === */
.tile.has-bg, .team-card.has-bg { position: relative; overflow: hidden; }
.tile.has-bg::before, .team-card.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Fallback: JPEG */
  background-image: var(--bg-jpg, none);
  background-size: cover;
  background-position: center;
  opacity: .18;
  transition: opacity .2s ease, transform .2s ease;
  transform: scale(1.02);
}
/* Prefer WebP where supported */
@supports (background: image-set(url("x.webp") type("image/webp") 1x)) {
  .tile.has-bg::before, .team-card.has-bg::before {
    background-image: image-set(
      var(--bg-webp, none) type("image/webp") 1x,
      var(--bg-jpg, none) type("image/jpeg") 1x
    );
  }
}
/* Smaller images on small screens */
@media (max-width: 720px) {
  .tile.has-bg::before, .team-card.has-bg::before {
    background-image: var(--bg-jpg-sm, var(--bg-jpg, none));
  }
  @supports (background: image-set(url("x.webp") type("image/webp") 1x)) {
    .tile.has-bg::before, .team-card.has-bg::before {
      background-image: image-set(
        var(--bg-webp-sm, var(--bg-webp, none)) type("image/webp") 1x,
        var(--bg-jpg-sm, var(--bg-jpg, none)) type("image/jpeg") 1x
      );
    }
  }
}
.tile.has-bg:hover::before, .team-card.has-bg:hover::before { opacity: .26; transform: scale(1.06); }
.tile.has-bg > *, .team-card.has-bg > * { position: relative; z-index: 1; }
