﻿:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #122033;
  --muted: #5b6b7f;
  --accent: #0c4a7f;
  --accent-2: #1780cf;
  --dark: #0b1728;
  --line: #d8e1ea;
  --success: #0f8f52;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }

a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-top: 4px solid #2b9cda;
  border-bottom: 1px solid #d6dfe8;
}

.header-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 14px 0;
}

.brand-logo-large {
  width: min(280px, 92%);
  height: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  flex-direction: column;
}

.topbar-strip {
  min-height: 72px;
  background: #2b9cda;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 16px 0 86px;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.topbar-contact span,
.topbar-contact a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar-contact a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar-social a {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.topbar-social a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-top: 1px solid #dfe6ee;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 20px rgba(7, 25, 45, 0.1);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  border: 1px solid #c5d3e2;
  background: #fff;
  padding: 0.54rem 0.88rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #232f3e;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.22rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  color: #f7fbff;
  background: url("https://images.unsplash.com/photo-1609220136736-443140cffec6?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 22, 40, 0.88), rgba(12, 74, 127, 0.58));
}

.hero-content {
  position: relative;
  padding: 110px 0 100px;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.65rem;
}

.hero .eyebrow,
.hero h1,
.hero p { color: #f3f9ff; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  max-width: 840px;
}

.hero-copy {
  font-size: 1.1rem;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.stats {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(5, 20, 35, 0.07);
}

.stat-card h3 {
  color: var(--accent);
  font-size: 1.45rem;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: #edf2f7;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
}

.about-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.panel:hover .about-photo {
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1.06);
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.sectors-grid span {
  display: inline-block;
  background: rgba(11, 23, 40, 0.85);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
}

.sector-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 140px;
  box-shadow: 0 10px 22px rgba(8, 22, 40, 0.08);
}

.sector-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 31, 0.08) 0%,
    rgba(7, 18, 31, 0.22) 100%
  );
  pointer-events: none;
  transition: background 0.35s ease;
}

.sector-card img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  filter: none;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.sector-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

.sector-card:hover::after {
  background: linear-gradient(
    180deg,
    rgba(7, 18, 31, 0.04) 0%,
    rgba(7, 18, 31, 0.16) 100%
  );
}

.sector-card span {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.team-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff 72%);
  border: 1px solid #d2ddea;
  border-radius: 18px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 6px 20px rgba(10, 30, 50, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0c4a7f, #24a1ea);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(8, 22, 40, 0.14);
  border-color: #bccde0;
}

.team-photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #c8d5e3;
  background: linear-gradient(145deg, #eef4fa, #f8fbff);
  margin-bottom: 0.95rem;
}

.team-photo {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.035);
}

.team-meta h3 {
  margin-bottom: 0.35rem;
  font-size: 1.9rem;
}

.team-role {
  margin-bottom: 0.85rem;
  color: #1f3045;
  font-size: 1.02rem;
}

.team-exp {
  margin: 0;
  color: #4f6075;
  font-size: 0.98rem;
}

.team-exp span {
  display: inline-block;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.45rem;
  font-weight: 700;
  color: #0d4c82;
  background: #e2f1fc;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #c7d5e2;
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(23, 128, 207, 0.25);
  border-color: var(--accent-2);
}

.form-status {
  min-height: 1.35rem;
  color: var(--success);
  font-weight: 600;
}

.footer {
  background: var(--dark);
  color: #d6e3ef;
  padding: 18px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a { color: #d6e3ef; }

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  background: #19a753;
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 960px) {
  .stats-grid,
  .cards,
  .sectors-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }

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

  .team-photo { height: 270px; }
}

@media (max-width: 720px) {
  .header-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-content: center;
    padding: 10px 0;
  }

  .brand-logo-large {
    width: min(240px, 88%);
  }

  .topbar-strip {
    clip-path: none;
    min-height: 56px;
    padding: 0.55rem 0.9rem;
    justify-content: center;
  }

  .topbar-contact {
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.86rem;
  }

  .topbar-contact span,
  .topbar-contact a {
    font-size: 0.86rem;
  }

  .topbar-social {
    display: none;
  }

  .menu-toggle { display: inline-block; }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 4%;
    left: 4%;
    flex-direction: column;
    background: #fff;
    border: 1px solid #cdd8e4;
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 10px 26px rgba(7, 25, 45, 0.12);
    display: none;
  }

  .nav-links.open { display: flex; }

  .stats-grid,
  .cards,
  .sectors-grid,
  .team-grid { grid-template-columns: 1fr; }

  .hero-content { padding: 96px 0 86px; }

  .team-photo { height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
