/* Curso Gestor de Infra-estrutura — Rede Eiffel Angola */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-accent: #c2410c;
  --color-accent-soft: #fff7ed;
  --color-navy: #0c1929;
  --color-border: #e2e8f0;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-navy);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--color-accent);
}

.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #9a3412;
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--color-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.section-alt .card {
  background: var(--color-surface);
}

.card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  color: var(--color-navy);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--color-accent);
}

.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1e3a5f 100%);
  color: #e2e8f0;
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 48ch;
  color: #cbd5e1;
}

.cta-band .btn-primary {
  background: #f59e0b;
  color: var(--color-navy);
}

.cta-band .btn-primary:hover {
  background: #fbbf24;
  color: var(--color-navy);
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.site-footer strong {
  color: var(--color-navy);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .nav-list a:hover {
    background: var(--color-bg);
  }
}

/* Página de contactos */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--color-navy);
  margin: 0 0 0.75rem;
}

.page-hero-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  color: var(--color-muted);
}

.page-hero-lead strong {
  color: var(--color-text);
  font-weight: 600;
}

.nav-list a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.section-alt .contact-card {
  background: var(--color-bg);
}

.contact-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--color-navy);
}

.contact-card-text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.contact-card-value {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
}

.contact-card-value a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-card-value a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.contact-map-wrap .section-intro {
  margin-bottom: 1.25rem;
}

.contact-map-placeholder {
  min-height: 200px;
  border-radius: var(--radius);
  border: 2px dashed var(--color-border);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  max-width: 720px;
}
