/* CDS Modem Angola - CSS Principal */
:root {
  --white: #ffffff;
  --bg: #f7f9fc;
  --primary: #0A4B8C;
  --secondary: #0099FF;
  --accent: #00C853;
  --text: #222222;
  --muted: #5c6a7a;
  --soft: #e9eef6;
  --shadow: 0 24px 80px rgba(10, 75, 140, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 75, 140, 0.09);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 18px 0 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.logo {
    height: 80px;
    overflow: hidden;
}

.logo img {
    width: 220px;    
    height: auto;
    margin-top: -10px;
}

.logo span {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  background: rgba(10, 75, 140, 0.06);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.nav-list a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: rgba(10, 75, 140, 0.12);
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 20px 40px rgba(10, 75, 140, 0.18);
  margin-top: 0.5rem;
}

.nav-cta {
  order: 3;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(10, 75, 140, 0.08);
  border-radius: 16px;
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding: 80px 0 60px;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.04;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero p {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button-primary,
.button-secondary {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border: 1px solid rgba(10, 75, 140, 0.14);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(0, 153, 255, 0.14), rgba(10, 75, 140, 0.12));
  padding: 24px;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(0, 200, 83, 0.28), transparent 36%);
}

.hero-visual img {
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section {
  padding: 72px 0;
}

.section-header {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 3rem);
}

.section-header p.lead {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

.card,
.partner-card,
.testimonial-card,
.contact-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 75, 140, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.service-card,
.product-card,
.solution-card {
  border: 1px solid rgba(10, 75, 140, 0.08);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem;
}

.service-card h3,
.product-card h3,
.solution-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-card p,
.product-card p,
.solution-card p {
  margin: 0;
  color: var(--muted);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-item {
  border-radius: 24px;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(0, 153, 255, 0.12), rgba(255, 255, 255, 0.95));
  text-align: center;
}

.stats-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

.stats-item span {
  color: var(--muted);
}

.partner-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.testimonial-card {
  padding: 1.8rem;
}

.testimonial-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
}

.author-info strong {
  display: block;
}

.author-info span {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-banner {
  background: linear-gradient(135deg, #0a4b8c, #0099ff);
  border-radius: 32px;
  padding: 2rem 2.4rem;
  color: var(--white);
  display: grid;
  gap: 1rem;
}

.cta-banner h2,
.cta-banner p {
  margin: 0;
}

.cta-banner .button-primary {
  background: var(--white);
  color: var(--primary);
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-card strong {
  display: block;
  font-size: 1.2rem;
}

.contact-card a {
  color: var(--primary);
}

.form-group {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 75, 140, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, 220px);
  gap: 2rem;
}

.footer h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

.footer a {
  display: block;
  margin-bottom: 0.75rem;
}

.footer small {
  display: block;
  margin-top: 1.5rem;
}

.grid-scroll {
  overflow: hidden;
}

.hero-visual, .testimonial-card, .service-card, .product-card, .solution-card, .partner-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-visual:hover,
.service-card:hover,
.product-card:hover,
.solution-card:hover,
.partner-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .hero-visual {
    min-height: 460px;
  }
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-list {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .section {
    padding: 56px 0;
  }
  .stats-grid,
  .contact-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }
  .hero h1 {
    font-size: clamp(2.4rem, 7vw, 3.4rem);
  }
  .button-primary,
  .button-secondary {
    width: 100%;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
  }
  .footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(9, 34, 66, 0.82);
  display: none;
  padding: 5rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 1.6rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a,
.mobile-menu .nav-cta {
  color: #ffffff;
}

.mobile-menu .nav-cta {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
