/* CleAngola - layout institucional normal */
:root {
  --navy: #083b6f;
  --navy-2: #052849;
  --gold: #c88411;
  --text: #172033;
  --muted: #667085;
  --soft: #f4f6f8;
  --soft-2: #eef2f6;
  --white: #ffffff;
  --line: #dde3ea;
  --line-strong: #c8d2dc;
  --shadow: 0 18px 44px rgba(16, 24, 40, .10);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: 0;
  line-height: 1.12;
  color: var(--navy-2);
  overflow-wrap: break-word;
}

.hero-copy, .hero-copy > div, .hero-grid > *, .split-layout > *, .contact-grid > * { min-width: 0; }

p { margin: 0; color: var(--muted); }

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  height: 3px;
  width: 0;
  background: var(--gold);
}

.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

/* Header normal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(100% - 48px, var(--maxw));
  min-height: 84px;
  margin-inline: auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav__brand-text {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-2);
  line-height: 1;
}

.nav__brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: .58rem;
  letter-spacing: .14em;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0;
  margin: 0 0 0 auto;
  list-style: none;
}

.nav__links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  color: #48566a;
  font-size: .94rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--navy);
  background: var(--soft);
}

.nav__cta { margin-left: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); background: var(--navy-2); border-color: var(--navy-2); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--gold:hover { background: #a96f0e; border-color: #a96f0e; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--soft); color: var(--navy-2); border-color: var(--line-strong); }
.btn--block { width: 100%; }

.nav__toggle { display: none; }

main, .site-footer { margin-left: 0; }

.section { padding: clamp(56px, 7vw, 92px) 0; }
.section--tight { padding: clamp(38px, 5vw, 64px) 0; }
.band { background: var(--soft); border-block: 1px solid var(--line); }

/* Hero normal */
.hero {
  min-height: auto;
  padding: clamp(52px, 7vw, 92px) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #ead7ba;
  color: var(--gold);
  background: #fff8ed;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(2.4rem, 5.8vw, 5rem);
}

.hero-copy p {
  max-width: 680px;
  margin-top: 20px;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.photo-box,
.content-panel,
.metric-panel,
.feature,
.form-card,
.contact-item,
.partner,
.timeline {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-box {
  min-height: 290px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e8edf2;
}

.photo-box::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed #b4c0cc;
  border-radius: 16px;
  z-index: 1;
}

.photo-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 49%, rgba(255,255,255,.52) 50%, transparent 51%);
  background-size: 34px 34px;
  opacity: .45;
}

.photo-text {
  position: relative;
  z-index: 1;
  max-width: 78%;
  color: #59677a;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.42;
  text-align: center;
  text-transform: uppercase;
}

/* ---- Text over image (media) ---- */
.photo-box.media {
  min-height: 340px;
  background:
    linear-gradient(150deg, #0a4478 0%, var(--navy) 46%, var(--navy-2) 100%);
}
.photo-box.media::before { border-color: rgba(255, 255, 255, .22); }
.photo-box.media::after {
  background: linear-gradient(135deg, transparent 49%, rgba(255,255,255,.10) 50%, transparent 51%);
  background-size: 34px 34px;
  opacity: 1;
}
.photo-box.media .photo-text {
  align-self: start;
  margin-top: 30px;
  color: rgba(255, 255, 255, .42);
}

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(20px, 3vw, 30px);
  text-align: left;
  background: linear-gradient(to top,
    rgba(4, 27, 51, .96) 0%,
    rgba(4, 27, 51, .82) 42%,
    rgba(4, 27, 51, 0) 100%);
}
.photo-caption__kicker {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.photo-caption h2,
.photo-caption h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.16;
}
.photo-caption p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}
/* compact caption for small thumbnails */
.photo-box.media.compact { min-height: 170px; }
.photo-box.media.compact .photo-caption { padding: 16px 18px; }
.photo-box.media.compact .photo-caption h3 { font-size: 1.05rem; }
.photo-box.media.compact .photo-text { margin-top: 18px; font-size: .9rem; }

.metric-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  overflow: hidden;
  box-shadow: none;
}

.metric-panel > div {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-panel > div:nth-child(even) { border-right: 0; }
.metric-panel b {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  color: var(--navy);
  line-height: 1;
}
.metric-panel span { color: var(--muted); font-size: .9rem; }

.section-head {
  display: grid;
  grid-template-columns: .34fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head h2 {
  max-width: 820px;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
}

.section-head p { max-width: 620px; margin-top: 12px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16, 24, 40, .11); }
.feature__index { color: var(--gold); font-family: var(--font-head); font-weight: 700; }
.feature h3 { font-size: 1.3rem; }
.feature p { margin-top: 12px; }

.content-panel { padding: clamp(24px, 4vw, 42px); border-radius: var(--radius-lg); }

.split-layout {
  display: grid;
  grid-template-columns: .86fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.split-layout.reverse { grid-template-columns: 1fr .86fr; }
.split-layout.reverse .photo-box { order: 2; }
.stack { display: grid; gap: 16px; }

.list-lines {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.list-lines span {
  display: block;
  padding: 13px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--soft);
  color: var(--muted);
}

.page-hero {
  padding: clamp(52px, 7vw, 86px) 0 clamp(34px, 5vw, 58px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero .content-panel {
  display: grid;
  grid-template-columns: .32fr 1fr;
  gap: 30px;
  align-items: end;
  box-shadow: none;
}

.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 4.2rem); }

.breadcrumb {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

.partner {
  min-height: 172px;
  padding: 22px;
  display: grid;
  align-content: space-between;
}

.partner__logo {
  width: 54px;
  height: 54px;
  border: 1px solid #ead7ba;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: #fff8ed;
}

.partner__logo svg { width: 26px; height: 26px; }
.partner b { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-2); }
.partner span { color: var(--muted); }

.timeline {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.timeline__item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline__item .year { color: var(--gold); font-family: var(--font-head); font-weight: 700; }
.timeline__item h3 { font-size: 1.2rem; margin-bottom: 8px; }

.contact-grid {
  display: grid;
  grid-template-columns: .74fr 1fr;
  gap: 24px;
}

.contact-info { display: grid; gap: 12px; }

.contact-item {
  padding: 18px;
  display: grid;
  gap: 6px;
  box-shadow: none;
}

.contact-item .k {
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-item .v { color: var(--navy-2); font-weight: 700; }

.form-card { padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: #344054; font-weight: 700; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  padding: 13px 14px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(8, 59, 111, .12);
}
.field .error { display: none; color: #b42318; font-size: .82rem; margin-top: 6px; }
.field.invalid .error { display: block; }
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: #d92d20; }
.form-note { margin-top: 12px; font-size: .86rem; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #9bd6ad;
  border-radius: var(--radius-sm);
  color: #087443;
  background: #ecfdf3;
}
.form-success.show { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  background: var(--soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 24px;
}

.footer-brand img { width: 120px; margin-bottom: 18px; }
.footer-col h4 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; padding: 0; margin: 0; }
.footer-col a, .footer-brand p, .footer-bottom { color: var(--muted); }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-social, .legal { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .05s; }
.reveal[data-delay="2"] { transition-delay: .1s; }
.reveal[data-delay="3"] { transition-delay: .15s; }
.reveal[data-delay="4"] { transition-delay: .2s; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
  }
  .nav__toggle span,
  .nav__toggle span::before,
  .nav__toggle span::after {
    content: "";
    display: block;
    width: 21px;
    height: 2px;
    background: var(--navy-2);
    position: relative;
    transition: transform .2s ease;
  }
  .nav__toggle span::before { position: absolute; top: -7px; left: 0; }
  .nav__toggle span::after { position: absolute; top: 7px; left: 0; }
  .nav__toggle.open span { background: transparent; }
  .nav__toggle.open span::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav__links.mobile-open {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    top: 84px;
    padding: 16px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .hero-grid, .split-layout, .split-layout.reverse, .contact-grid { grid-template-columns: 1fr; }
  .split-layout.reverse .photo-box { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .page-hero .content-panel, .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container, .nav { width: min(100% - 32px, var(--maxw)); }

  /* tighter vertical rhythm on phones */
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .hero { padding: 40px 0 36px; }
  .page-hero { padding: 36px 0 28px; }

  /* everything single column */
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-grid { gap: 22px; }
  .split-layout, .split-layout.reverse, .contact-grid { gap: 18px; }

  .hero h1, .page-hero h1 { font-size: clamp(1.8rem, 8.2vw, 2.9rem); }
  .hero-copy p { font-size: 1rem; }
  .section-head h2 { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }

  /* compact panels */
  .content-panel { padding: 22px; }
  .form-card { padding: 22px; }

  /* feature cards: no more big empty gap, number sits above title */
  .feature { min-height: auto; justify-content: flex-start; gap: 12px; padding: 24px; }

  /* keep the stats grid as a tidy 2×2 (not 4 tall rows) */
  .metric-panel > div { min-height: 88px; padding: 15px 16px; gap: 8px; }
  .metric-panel b { font-size: clamp(1.5rem, 7vw, 2rem); }
  .metric-panel span { font-size: .82rem; }

  /* media captions a touch smaller */
  .photo-box.media { min-height: 300px; }
  .photo-caption { padding: 18px; }
}

@media (max-width: 520px) {
  .nav__brand-text small { letter-spacing: .08em; }
  .timeline__item { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
