:root {
  --navy: #213b7c;
  --navy-dark: #183372;
  --navy-section: #203a7c;
  --yellow: #fccd2c;
  --yellow-hover: #efc01f;
  --gray-text: #626262;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --font-main: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-slider: "Roboto Condensed", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 28px;
  color: var(--gray-text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; transition: color .3s; }

ul { list-style: none; }

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: 48px; line-height: 1.15; font-weight: 400; }
h2 { font-size: 70px; line-height: 1.05; }
h4 { font-size: 20px; font-weight: 500; }
h5 { font-size: 16px; font-weight: 700; color: var(--navy); }
h6 { font-size: 14px; font-weight: 700; letter-spacing: 3px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 760px; }

.accent { color: var(--yellow); }
.dark-accent { color: #183372; }
.accent-i { color: var(--yellow); font-size: 28px; margin-bottom: 8px; display: block; }

.section { padding: 90px 0; }
.section.bg-light { background: var(--bg-light); }

.section-head.center { text-align: center; margin-bottom: 55px; }
.section-head h6 { color: var(--navy); opacity: .75; margin-bottom: 5px; }
.section-head .lead { margin-top: 15px; color: var(--white); font-size: 17px; }
.section-head .lead strong { color: var(--white); }
.nospam { color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: 1px; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  font-family: var(--font-main);
}
.btn:hover { background: #142e6f; transform: translateY(-2px); }
.btn.yellow { background: var(--yellow); color: var(--navy); }
.btn.yellow:hover { background: var(--yellow-hover); }
.btn.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn.btn-yellow:hover { background: var(--yellow-hover); }
.btn.big { font-size: 14px; padding: 18px 42px; }
.btn.full { width: 100%; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition: background .35s, padding .35s, box-shadow .35s;
}
#header.scrolled {
  background: var(--navy-dark);
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 60px;
  width: auto;
  transition: height .35s ease;
}
#header.scrolled .logo img { height: 38px; }

#menu ul { display: flex; gap: 26px; }
#menu a {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
#menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .3s;
}
#menu a:hover::after, #menu a.active::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.btn-phone, .btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 10px 18px;
  border-radius: 30px;
  white-space: nowrap;
  transition: background .3s, transform .3s;
}
.btn-phone, .btn-whats:hover { transform: translateY(-2px); }
.btn-phone { background: var(--yellow); color: var(--navy); }
.btn-phone:hover { background: var(--yellow-hover); }
.btn-whats { background: #25d366; color: var(--white); }
.btn-whats:hover { background: #1fb457; }

#menu-toggle, #side-close {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

#side-menu {
  position: fixed;
  top: 0; right: -260px;
  width: 250px; height: 100vh;
  background: #12264f;
  z-index: 2000;
  padding: 40px 25px;
  transition: right .35s ease;
  overflow-y: auto;
}
#side-menu.open { right: 0; }
#side-menu ul { margin-bottom: 30px; }
#side-menu a {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#side-menu a:hover { color: var(--yellow); }
#side-close { display: block; margin-left: auto; margin-bottom: 20px; }

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  display: flex;
  align-items: center;
}
.hero .slide.active { opacity: 1; visibility: visible; }
.slide-content { position: relative; z-index: 2; color: var(--white); max-width: none; padding: 0 120px; }
.slide-content.left { text-align: left; }
.slide-content h1 { color: var(--white); font-family: var(--font-slider); font-weight: 700; font-size: 58px; line-height: 1.1; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.slide-content h1 span { color: #ffcc00; }
.slide-content p {
  font-family: var(--font-slider);
  font-size: 34px;
  line-height: 1.25;
  max-width: 720px;
  margin: 18px 0 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.slide-content .btn.yellow { background: rgb(255,204,0); color: #007aff; }
.slide-content .btn.yellow:hover { background: var(--yellow-hover); }

.slider-dots {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.slider-dots .dot.active { background: var(--yellow); transform: scale(1.15); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card { text-align: left; }
.thumb {
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card h5 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.service-card h5 i {
  color: var(--yellow);
  font-size: 15px;
  flex-shrink: 0;
}
.service-card p { font-size: 14px; line-height: 23px; }

.cta-box {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 25px;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}
.about-text .section-head { margin-bottom: 25px; }
.mvv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 35px;
}
.mvv-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mvv-heading .accent-i { margin-bottom: 0; font-size: 22px; }
.mvv-item h5 { margin-bottom: 0; letter-spacing: 1px; }
.mvv-item p { font-size: 14px; line-height: 23px; }

.founders-photo img { width: 100%; height: auto; object-fit: contain; }
.about-photo { position: relative; text-align: center; }
.about-photo h4,
.about-photo > p {
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  z-index: 1;
  color: var(--white);
  text-shadow: 0 2px 5px rgba(0,0,0,.7);
  background: rgba(32,58,124,.86);
}
.about-photo h4 { bottom: 70px; margin: 0; padding: 7px 12px 2px; }
.about-photo > p { bottom: 18px; margin: 0; padding: 2px 12px 7px; font-size: 14px; line-height: 22px; }

.instagram-section { background: var(--bg-light); }
.instagram-embed { max-width: 1000px; margin: 0 auto; }
.instagram-embed .instagram-media {
  width: 100% !important;
  max-width: 1200px !important;
  min-width: 0 !important;
  height: 460px !important;
  max-height: 460px !important;
  overflow: hidden !important;
  margin: 0 auto !important;
}
.instagram-action { text-align: center; margin-top: 24px; }
.instagram-button { background: #d62976; color: var(--white); }
.instagram-button:hover { background: #b91f63; }

.portfolio {
  background: url('../imagens/rv-bg-portfolio.jpg') center / cover no-repeat;
}
.portfolio h2 { color: var(--white); }
.portfolio .section-head h6 { color: rgba(255,255,255,.75); }
.portfolio-lead { color: var(--white); margin: 18px auto 0; max-width: 750px; }

.portfolio-slider {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pf-arrow {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 17px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.pf-arrow:hover { background: var(--yellow); color: var(--navy); }
.pf-track-wrap { overflow: hidden; flex: 1; }
.pf-track {
  display: flex;
  gap: 0;
  transition: transform .5s ease;
}
.pf-item {
  flex: 0 0 100%;
  aspect-ratio: 784 / 436;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-item img { width: 100%; height: 100%; object-fit: cover; }
.ph-1 { background: linear-gradient(135deg,#3b63c4,#182f66); }
.ph-2 { background: linear-gradient(135deg,#fccd2c,#b98f00); color: var(--navy); }
.ph-3 { background: linear-gradient(135deg,#274b9f,#101d40); }
.ph-4 { background: linear-gradient(135deg,#4472ca,#1b356f); }
.ph-5 { background: linear-gradient(135deg,#e0b71f,#967400); color: var(--navy); }
.ph-6 { background: linear-gradient(135deg,#31549f,#0e1b3c); }

.clients-carousel {
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  gap: 5px;
  animation: clients-scroll 50s linear infinite;
}
.client {
  width: calc((100vw - 60px) / 6);
  height: 130px;
  flex: 0 0 auto;
  padding: 18px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.client img { width: 100%; height: 100%; object-fit: contain; }
.clients-carousel:hover .clients-track { animation-play-state: paused; }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 11px)); }
}

.contact {
  background: #203a7c url('../imagens/bg-form.png') center / cover no-repeat;
  background-position: center top;
}
.contact h2 { color: var(--white); }
.contact .section-head h6 { color: rgba(255,255,255,.75); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.97);
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 14px;
  padding: 13px 16px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(252,205,44,.25);
}
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 18px;
  color: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.form-status.is-loading { color: var(--yellow); }
.form-status.is-success {
  color: #b9f6cf;
  background: rgba(20, 130, 72, .35);
  border: 1px solid rgba(185, 246, 207, .45);
  border-radius: 6px;
  padding: 10px 14px;
}
.form-status.is-error {
  color: #ffd0d0;
  background: rgba(150, 35, 35, .35);
  border: 1px solid rgba(255, 208, 208, .45);
  border-radius: 6px;
  padding: 10px 14px;
}
.form-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  color: #164d2e;
  background: #e8fff0;
  border: 1px solid #9de2b5;
  border-left: 5px solid #25a95a;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  animation: form-toast-in .3s ease-out;
}
.form-toast[hidden] { display: none; }
.form-toast > i { color: #25a95a; font-size: 20px; }
.form-toast-close {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 2px;
  color: #164d2e;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.form-toast-close:hover { color: #0d2d1b; }
@keyframes form-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row.two .contact-form-input { margin-bottom: 16px; }
.contact-form .row:last-child { text-align: center; }
.contact .btn-yellow { background: var(--yellow); color: var(--navy); }
.contact .btn-yellow:hover { background: var(--yellow-hover); }

.contact-email {
  text-align: center;
  color: var(--white);
  margin-top: 35px;
  font-size: 16px;
  font-weight: 500;
}
.contact-email i { color: var(--yellow); margin-right: 8px; }

.address {
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  background: rgba(252,205,44,.35);
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  margin-top: 12px;
}
.map-wrap { line-height: 0; }
.map-wrap iframe { width: 100%; height: 600px; border: 0; display: block; }
#onde-estamos { padding-bottom: 0; }

#footer {
  background: var(--navy-section);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 26px 0 56px;
  position: relative;
  font-size: 14px;
}
#back-to-top {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .3s;
}
#back-to-top:hover { background: var(--yellow-hover); }

.whatsapp-float {
  position: fixed;
  bottom: 22px; left: 22px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(14, 72, 42, .28), 0 2px 6px rgba(0, 0, 0, .16);
  transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14, 72, 42, .34), 0 3px 8px rgba(0, 0, 0, .18);
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.whatsapp-float i { font-size: 42px; line-height: 1; }
.whatsapp-float svg { display: none; }
.whatsapp-float span {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  h2 { font-size: 52px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  #menu { display: none; }
  #menu-toggle { display: block; }
}

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 38px; }
  .hero {
    height: min(78svh, 700px);
    min-height: 540px;
  }
  .hero .slide {
    background-position: 62% center;
  }
  .hero .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .34);
  }
  .slide-content,
  .slide-content.left {
    width: 100%;
    max-width: 390px;
    padding: 72px 24px 48px;
    text-align: left;
  }
  .slide-content h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1.08;
    text-wrap: balance;
  }
  .slide-content h1 br { display: none; }
  .slide-content p {
    max-width: 330px;
    margin: 14px 0 24px;
    font-size: 21px;
    line-height: 1.25;
  }
  .slide-content .btn {
    max-width: 100%;
    padding: 13px 18px;
    font-size: 11px;
    letter-spacing: .6px;
  }
  .slider-dots { bottom: 22px; }
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .mvv { grid-template-columns: 1fr; }
  .pf-item { flex: 0 0 100%; }
  .client { width: calc((100vw - 60px) / 3); height: 110px; }
  .row.two { grid-template-columns: 1fr; gap: 0; }
  .map-wrap iframe { height: 420px; }
  .whatsapp-float { bottom: 16px; left: 16px; padding: 5px; }
  .whatsapp-float span { display: none; }
}

@media (max-width: 1023px) {
  .btn-phone span, .btn-whats span { display: none; }
  .btn-phone, .btn-whats { padding: 10px 13px; font-size: 15px; }
}
