@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-bg: white;
  --secondary-bg: #f1f5f9;
  --secondary: #1fa2ae;
  --secondary-text: #6d7682;
  --font-family: Poppins, Arial, Helvetica, sans-serif;
  --black: #000;
  --accent-blue: #2227bb;
  --white: white;
  --primary: #353972;
  --font-body-size: 16px;
  --font-height: 30px;
  --font-body-letter-spacing: .4px;
  --border: rgba(53, 57, 114, .12);
  --shadow: 0 22px 60px rgba(29, 45, 84, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: #333;
  background: var(--primary-bg);
  font-size: 14px;
  line-height: 20px;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

.w-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.w-button {
  display: inline-block;
  color: white;
  border: 0;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.body.portal-body {
  background-color: var(--primary-bg);
  border-radius: 50px 50px 0 0;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  overflow: visible;
}

.header {
  object-fit: fill;
  background-image: linear-gradient(#1fa2aecc 62%, #2227bb 93%), url('https://crmetais.com.br/images/patio-cr-1.jpg');
  background-position: 0 0, 50%;
  background-size: auto, cover;
  flex-flow: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  margin-bottom: 0;
  display: flex;
  position: relative;
  overflow: visible;
}

.portal-header {
  position: absolute;
  z-index: 20;
  min-height: auto;
  height: auto;
  background: transparent;
}

.navbar {
  background-color: #ddd0;
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  display: flex;
  position: relative;
}

.container {
  box-sizing: border-box;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 20px;
  display: flex;
  position: relative;
}

.nav-container {
  width: min(1180px, calc(100% - 34px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 10px 12px;
}

.image,
.portal-logo {
  width: 180px;
  height: auto;
}

.nav-menu {
  text-align: right;
  flex: 1;
  order: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.nav-link,
.nav-link-mobile {
  font-family: var(--font-family);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.16);
}

.nav-link:hover,
.nav-link-mobile:hover {
  color: #eaffff;
}

#block-traducao.portal-flags {
  position: absolute;
  top: 0;
  right: 100px;
  background-color: #fff;
  padding: 3px;
  border-radius: 0 0 10px 10px;
  list-style: none;
  display: flex;
  margin: 0;
  gap: 3px;
}

.icon-traducao {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.icon-traducao-active {
  border: solid 2px #8bbb19;
}

.footer-social-block {
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.portal-social {
  margin-left: 8px;
}

.icon-svg-social {
  width: 18px;
  height: 20px;
}

.portal-hero {
  background-image: linear-gradient(#1fa2aecc 62%, #2227bb 93%), url('https://crmetais.com.br/images/patio-cr-1.jpg');
  background-position: 0 0, 50%;
  background-size: auto, cover;
  flex-flow: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  margin-bottom: 0;
  display: flex;
  position: relative;
}

.portal-hero-container {
  max-width: 1000px;
  margin-top: auto;
  margin-bottom: 132px;
  padding-left: 20px;
  padding-right: 20px;
}

.div-block-8 {
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 1000px;
  display: flex;
}

.heading {
  font-family: var(--font-family);
  color: var(--primary-bg);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 37px;
  font-weight: 700;
  line-height: 1.15;
  display: block;
}

.portal-title {
  max-width: 980px;
  font-size: clamp(34px, 4.2vw, 58px);
}

.heading-2 {
  font-family: var(--font-family);
  color: var(--primary-bg);
  text-align: center;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.45;
}

.portal-subtitle {
  max-width: 900px;
}

.tag-section-white {
  font-family: var(--font-family);
  color: var(--white);
  letter-spacing: 1.6px;
  font-weight: 600;
  text-transform: uppercase;
}

.portal-tag {
  margin-bottom: 12px;
}

.flex-block,
.portal-hero-actions {
  text-align: center;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  display: flex;
}

.button-cta-2,
.button-cta-2-white {
  border: 1px solid var(--white);
  font-family: var(--font-family);
  color: var(--white);
  background-color: #1fa2ae00;
  border-radius: 100px;
  margin: 10px;
  padding: 18px 34px;
  font-size: 15px;
  font-weight: 700;
  display: block;
  transition: .2s ease;
}

.button-cta-2:hover,
.button-cta-2-white:hover {
  border-color: var(--accent-blue);
  background-color: var(--accent-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.button-cta-2-white {
  border-color: var(--secondary);
  color: var(--black);
}

.section-diferencial {
  background-color: var(--primary);
  background-image: radial-gradient(circle farthest-corner at 50% 0%, var(--secondary) 54%, #2227bb4d);
  flex-flow: column;
  justify-content: center;
  align-self: flex-start;
  align-items: center;
  width: 100%;
  padding: 80px 60px 110px;
  display: flex;
}

.h2-white {
  font-family: var(--font-family);
  color: var(--primary-bg);
  text-align: center;
  margin: 15px 0 34px;
  font-size: 34px;
  line-height: 1.2;
}

.div-itens-difirencial {
  background-color: #ffffff1a;
  border-radius: 20px;
  flex-flow: wrap;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1100px;
  display: flex;
}

.div-item-diferencial {
  flex-flow: column;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 525px;
  padding: 40px;
  display: flex;
}

.titulo-item-diferencial {
  font-family: var(--font-family);
  color: var(--white);
  margin: 0 0 20px;
  font-size: 24px;
}

.text-block {
  font-family: var(--font-family);
  color: var(--primary-bg);
  font-size: var(--font-body-size);
  line-height: var(--font-height);
  letter-spacing: var(--font-body-letter-spacing);
}

.portal-main,
.portal-section,
.portal-form-section {
  width: 100%;
}

.container-portal {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-servi-os,
.portal-section {
  background-color: var(--primary-bg);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 90px 0 45px;
  display: flex;
}

.portal-section-heading {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.portal-kicker {
  color: var(--secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}

.h2 {
  font-family: var(--font-family);
  color: var(--secondary);
  text-align: center;
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
}

.portal-section-heading p,
.portal-white-card p,
.campaign-text-box p {
  color: var(--secondary-text);
  font-size: 16px;
  line-height: 1.75;
}

.portal-card-grid,
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portal-card,
.portal-white-card,
.campaign-card,
.portal-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.portal-card h3,
.portal-white-card h2,
.campaign-card h3,
.portal-form-card h2 {
  font-family: var(--font-family);
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.2;
}

.portal-card p,
.campaign-card p {
  color: var(--secondary-text);
  font-size: 15px;
  line-height: 1.7;
}

.portal-card-number {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e8f9fb;
  color: var(--accent-blue);
  font-weight: 800;
  margin-bottom: 18px;
}

.portal-two-columns {
  padding-top: 40px;
}

.portal-two-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: start;
}

.portal-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.portal-list div {
  border-radius: 18px;
  background: #f5f8fb;
  border: 1px solid #edf1f4;
  padding: 16px;
}

.portal-list strong {
  display: block;
  color: var(--primary);
  margin-bottom: 5px;
}

.portal-list span {
  color: var(--secondary-text);
}

.campaign-section {
  background: #f8fbff;
}

.campaign-highlight {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 26px;
}

.campaign-video-wrap {
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.campaign-video-frame {
  width: 100%;
  max-width: 260px;
  height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 18px 40px rgba(10, 24, 48, 0.18);
}

.campaign-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.campaign-text-box {
  background: linear-gradient(180deg, #f8fbff 0%, #eef8fb 100%);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.campaign-badge {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 162, 174, .14);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.campaign-text-box h3 {
  color: var(--primary);
  font-size: 28px;
  line-height: 1.18;
  margin: 18px 0 10px;
}

.footer-dark {
  background-color: var(--secondary-bg);
  width: 100%;
  padding: 28px 30px;
}

.footer-copyright-center {
  color: var(--secondary-text);
  text-align: center;
  font-size: 14px;
  line-height: 16px;
}

/* Subpages and forms */
.portal-subpage-hero {
  width: 100%;
  padding: 170px 20px 85px;
  color: #fff;
  text-align: center;
  background-image: linear-gradient(151deg, #1fa2aead 16%, #2227bbe0), url('https://crmetais.com.br/images/patio-cr-1.jpg');
  background-position: 0 0, 50%;
  background-size: auto, cover;
}

.portal-subpage-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  margin: 12px 0;
}

.portal-subpage-hero p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.94);
}

.portal-form-section {
  padding: 70px 0 90px;
  background: #f6f8fb;
}

.portal-form-card {
  max-width: 980px;
  margin: 0 auto;
}

.notice {
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 22px;
  background: #f0fbfc;
  border: 1px solid rgba(31, 162, 174, .20);
  color: var(--primary);
  line-height: 1.6;
}

.notice.warn {
  background: #fff8eb;
  border-color: #f0cf80;
  color: #9b5600;
}

.notice.error,
.result-box.error {
  background: #fff1f1;
  border-color: #ffc7c7;
  color: #b00000;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--primary);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(53,57,114,.16);
  border-radius: 14px;
  padding: 13px 15px;
  font-family: var(--font-family);
  outline: none;
  background: #fff;
  color: #26364d;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(31, 162, 174, .12);
}

.hint {
  color: var(--secondary-text);
  font-size: 13px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

.button-submit {
  border: 0;
  border-radius: 100px;
  padding: 18px 34px;
  font-family: var(--font-family);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--secondary) 100%);
  cursor: pointer;
}

.button-light {
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 18px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.result-box {
  display: none;
  margin-top: 20px;
}

.protocol {
  font-weight: 900;
  color: var(--accent-blue);
  font-size: 18px;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.admin-actions select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0 12px;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 900px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--primary);
  background: #f3f7fb;
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
}

.badge.high {
  background: #fff1f2;
  color: #be123c;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .54);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
}

@media (max-width: 980px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  #block-traducao.portal-flags {
    position: static;
    order: 4;
  }

  .nav-menu {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 14px;
  }

  .portal-social {
    order: 2;
  }

  .portal-logo {
    width: 160px;
  }

  .portal-hero-container {
    margin-bottom: 80px;
  }

  .section-diferencial {
    padding: 70px 22px;
  }

  .portal-card-grid,
  .portal-two-grid,
  .campaign-highlight,
  .campaign-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .campaign-video-frame {
    max-width: 240px;
    height: 420px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-logo {
    width: 145px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-link,
  .nav-link-mobile {
    font-size: 12px;
  }

  .portal-social,
  #block-traducao.portal-flags {
    display: none;
  }

  .portal-title {
    font-size: 32px;
  }

  .heading-2 {
    font-size: 17px;
  }

  .button-cta-2,
  .button-cta-2-white {
    width: 100%;
    text-align: center;
    margin: 7px 0;
  }

  .portal-subpage-hero {
    padding-top: 145px;
  }

  .campaign-video-frame {
    max-width: 220px;
    height: 360px;
  }
}

/* CORREÇÃO MOBILE - MENU CR METAIS */

@media (max-width: 768px) {
  .portal-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: auto;
    z-index: 50;
  }

  .nav-container,
  .container.nav-container {
    width: 100%;
    max-width: 100%;
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .portal-logo,
  .image.portal-logo {
    width: 170px;
    max-width: 170px;
    height: auto;
    margin: 0 auto;
  }

  .nav-menu {
    display: none !important;
  }

  .portal-social,
  #block-traducao,
  .portal-flags {
    display: none !important;
  }

  .portal-hero {
    min-height: 100vh;
    padding-top: 115px;
  }

  .portal-hero-container {
    margin-top: 0;
    margin-bottom: 70px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .portal-hero-text {
    max-width: 100%;
    width: 100%;
  }

  .portal-tag {
    font-size: 11px;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    text-align: center;
  }

  .portal-title,
  .heading.portal-title {
    font-size: 31px;
    line-height: 1.12;
    text-align: center;
    margin-bottom: 16px;
  }

  .portal-subtitle,
  .heading-2.portal-subtitle {
    font-size: 17px;
    line-height: 1.45;
    text-align: center;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .portal-hero-actions {
    width: 100%;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .portal-hero-actions .button-cta-2 {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 18px 22px;
    text-align: center;
    border-radius: 999px;
    font-size: 15px;
  }
}