/* ==========================================================================
   RIOflow — Design System
   Azul principal:   #0077C1
   Azul-marinho:     #182759
   Laranja (destaque): #EF4123
   Turquesa (apoio): #00B2D2
   ========================================================================== */

:root {
  --blue: #0077C1;
  --blue-dark: #005A94;
  --navy: #182759;
  --orange: #EF4123;
  --teal: #00B2D2;
  --ink: #1B2430;
  --gray-700: #495364;
  --gray-400: #8B93A1;
  --gray-100: #F4F6F9;
  --white: #FFFFFF;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(11, 39, 74, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--gray-700); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--gray { background: var(--gray-100); }
.section--navy {
  background: linear-gradient(135deg, var(--navy) 0%, #0F1B3D 100%);
  color: var(--white);
}
.section--navy p { color: rgba(255,255,255,0.78); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2.h-orange { color: var(--orange); font-size: clamp(1.8rem, 3vw, 2.4rem); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { box-shadow: 0 10px 24px rgba(239,65,35,0.35); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-blue { border-color: var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(11,39,74,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand img { height: 20px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  border-color: var(--orange);
}
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.06);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { display: inline-block; }
}

/* ---------------- Hero (diagonal split, cover page) ---------------- */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero .container {
  max-width: none;
  margin: 0;
}
.hero__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 56%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  background-size: cover;
  background-position: center;
}
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,119,193,0.55) 0%, rgba(0,119,193,0) 34%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: calc(44% - 40px);
  padding: 90px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero__content .brand-mark { height: 46px; margin-bottom: 34px; }
.hero__content h1 { color: var(--white); font-size: clamp(1.7rem, 2.9vw, 2.5rem); }
.hero__content .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin-top: 18px;
}
.hero__actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .hero { min-height: unset; }
  .hero__photo { width: 100%; clip-path: none; opacity: 0.18; }
  .hero__photo::after { display: none; }
  .hero__content { padding: 64px 14% 56px 0; max-width: 100%; }
}

@media (max-width: 560px) {
  .hero__content { padding-right: 6%; }
}

/* ---------------- Page header (inner pages) ---------------- */
.page-header {
  background: var(--blue);
  color: var(--white);
  padding: 64px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.page-header .kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 640px; margin-bottom: 0; }

/* ---------------- Cards / grids ---------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,39,74,0.05);
}

.icon-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-circle svg { width: 28px; height: 28px; stroke: var(--white); }

.scope-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.scope-card h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.scope-card ul { margin: 0; padding-left: 20px; color: var(--gray-700); }
.scope-card li { margin-bottom: 6px; }

/* Photo + text split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split__media { order: 0; }
}
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Service block with numbered steps (real sequence -> ok to number) */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(11,39,74,0.08);
}
.steps li:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.steps strong { color: var(--navy); font-family: var(--font-display); }

/* Photo trio grid */
.photo-trio {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.photo-trio img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-trio .tall { grid-row: span 2; }
@media (max-width: 700px) {
  .photo-trio { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-trio .tall { grid-row: auto; }
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--orange);
}
.stats .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Certification badge row */
.badge-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.badge-row img { height: 46px; width: auto; }

/* Table (scope) */
.table-wrap { overflow-x: auto; }
table.scope-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.scope-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  text-align: left;
}
table.scope-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(11,39,74,0.07);
  color: var(--gray-700);
}
table.scope-table tr:last-child td { border-bottom: none; }

/* CTA banner */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 46px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-banner .btn { background: var(--white); color: var(--orange); }
.cta-banner .btn:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding-top: 56px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-top img.brand-mark { height: 30px; margin-bottom: 16px; }
.footer-top p { color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-col h5 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px 0 30px;
}
.footer-bottom .iso-strip img { height: 34px; }
.iso-strip--footer { margin-top: 20px; }
.iso-strip--footer img { height: 54px; }
.footer-bottom small { color: rgba(255,255,255,0.5); }

/* ---------------- Contact form ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info-item .icon-circle { margin-bottom: 0; width: 46px; height: 46px; }
.contact-info-item .icon-circle svg { width: 22px; height: 22px; }
.contact-info-item strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 0.95rem; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid #DCE3EC;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,119,193,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #E4F6EC; color: #1C7C43; }
.form-status.err { background: #FBE7E4; color: var(--orange); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
