/* ============================================
   PROFIT ENGENHARIA — Complete Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --dark-blue: #001749;
  --orange: #FF5D00;
  --white: #FFFFFF;
  --medium-blue: #0070F5;
  --light-gray: #D9E4EE;
  --dark-gray: #9BA6B5;
  --font: 'Poppins', sans-serif;
  --container-max: 1200px;
  --section-padding: 96px 0;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0,23,73,0.06);
  --shadow-md: 0 8px 24px rgba(0,23,73,0.10);
  --shadow-lg: 0 16px 48px rgba(0,23,73,0.12);
  --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--dark-blue); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* --- Utilities --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 2.25rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 16px; line-height: 1.2; }
.section-title--center { text-align: center; }
.section-title--white { color: var(--white); }
.section-subtitle { font-size: 1rem; font-weight: 400; color: var(--dark-gray); margin-bottom: 48px; max-width: 640px; line-height: 1.7; }
.section-subtitle--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-subtitle--white { color: rgba(255,255,255,0.8); }

/* --- Animation --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav--scrolled {
  background: rgba(0,23,73,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 0.875rem; font-weight: 500; color: var(--white);
  opacity: 0.75; transition: opacity var(--transition); position: relative;
}
.nav__link:hover, .nav__link--active { opacity: 1; }
.nav__link::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--orange); transition: width var(--transition);
}
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__cta {
  display: inline-block; padding: 10px 24px;
  background: var(--orange); color: var(--white);
  font-size: 0.875rem; font-weight: 600; border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,93,0,0.4); }

/* Hamburger */
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 1001; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform var(--transition), opacity var(--transition); }
.nav__hamburger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger--open span:nth-child(2) { opacity: 0; }
.nav__hamburger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block; padding: 14px 36px; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition); letter-spacing: 0.01em;
}
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,93,0,0.35); }
.btn--outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--dark-blue); }
.btn--outline-blue { border: 2px solid var(--dark-blue); color: var(--dark-blue); background: transparent; }
.btn--outline-blue:hover { background: var(--dark-blue); color: var(--white); }

/* ============================================
   HOME — Hero
   ============================================ */
.hero {
  position: relative; padding: 160px 0 100px; color: var(--white); overflow: hidden;
  background: var(--dark-blue);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__vector {
  position: absolute; top: 15%; right: 5%; z-index: 1; opacity: 0.06;
}
.hero__vector img { width: 320px; height: auto; }
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero__title { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero__subtitle { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 32px; }
.hero__buttons { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__media { position: relative; z-index: 3; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.hero__media iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 12px;
}
.hero__media-cover {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; cursor: pointer;
}
.hero__media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; cursor: pointer;
  background: none; border: none; padding: 0; transition: transform 0.3s ease;
}
.hero__media-play:hover { transform: translate(-50%, -50%) scale(1.1); }
.hero__media img {
  width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg);
}

/* ============================================
   HOME — Client Logos Marquee
   ============================================ */
.clients { padding: var(--section-padding); overflow: hidden; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee { overflow: hidden; padding: 8px 0; }
.marquee__track {
  display: flex; align-items: center; gap: 48px;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}
.marquee__track img {
  width: 147px; height: 147px; object-fit: contain; flex-shrink: 0;
  transition: transform 0.25s ease;
}
.marquee__track img:hover {
  transform: scale(1.12);
}

/* ============================================
   HOME — Services
   ============================================ */
.services {
  position: relative; padding: var(--section-padding); overflow: hidden;
}
.services__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/home/services/Background.png') center/cover no-repeat;
}
.services__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,23,73,0.75);
}
.services__content { position: relative; z-index: 2; }
.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.services__card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.services__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.services__card img { width: 100%; height: 180px; object-fit: cover; }
.services__card-title {
  font-size: 1rem; font-weight: 700; padding: 20px 20px 8px; color: var(--dark-blue);
}
.services__card-text {
  font-size: 0.8125rem; color: var(--dark-gray); padding: 0 20px 24px; line-height: 1.7;
}
.services__cta { text-align: center; margin-top: 48px; }

/* ============================================
   HOME — Carousel
   ============================================ */
.projects { padding: var(--section-padding); background: var(--white); }
.carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.carousel__viewport { overflow: hidden; flex: 1; border-radius: 12px; }
.carousel__track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel__slide { flex-shrink: 0; }
.carousel__slide img {
  width: 100%; border-radius: 12px; aspect-ratio: 16/10; object-fit: cover;
}
.carousel__prev, .carousel__next {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark-blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.carousel__prev:hover, .carousel__next:hover {
  background: var(--orange); transform: scale(1.08);
}
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.carousel__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--light-gray); border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel__dot--active { background: var(--orange); transform: scale(1.2); }
.carousel__dot:hover { background: var(--dark-gray); }

/* ============================================
   HOME — Why Choose Us
   ============================================ */
.why-us { padding: var(--section-padding); background: var(--light-gray); }
.why-us .section-title { margin-bottom: 48px; }
.why-us__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.why-us__item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 0.9375rem; font-weight: 500;
  background: var(--white); padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.why-us__item:hover { box-shadow: var(--shadow-md); }
.why-us__item p { line-height: 1.5; }
.why-us__icon {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--white); font-size: 0.8rem; flex-shrink: 0;
}

/* ============================================
   HOME — About Teaser
   ============================================ */
.about-teaser {
  position: relative; padding: var(--section-padding); overflow: hidden; color: var(--white);
}
.about-teaser__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/home/services/Background.png') center/cover no-repeat;
}
.about-teaser__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,23,73,0.75);
}
.about-teaser__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-teaser__label { font-size: 0.875rem; font-weight: 500; opacity: 0.7; margin-bottom: 4px; }
.about-teaser__title { font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.about-teaser__text { font-size: 0.9375rem; line-height: 1.8; opacity: 0.85; margin-bottom: 28px; }
.about-teaser__image img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }

/* ============================================
   QUOTE FORM SECTION (shared)
   ============================================ */
.quote-section { padding: var(--section-padding); background: var(--white); }
.quote-section__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.quote-section__title { font-size: 2.25rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 16px; }
.quote-section__text { font-size: 0.9375rem; color: var(--dark-gray); line-height: 1.7; max-width: 440px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form__input, .quote-form__textarea {
  width: 100%; padding: 16px 18px; font-size: 0.875rem;
  border: 1px solid var(--light-gray); border-radius: var(--radius);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--dark-blue); background: var(--white);
}
.quote-form__input::placeholder, .quote-form__textarea::placeholder { color: var(--dark-gray); }
.quote-form__input:focus, .quote-form__textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,93,0,0.1);
}
.quote-form__textarea { grid-column: 1 / -1; min-height: 120px; resize: vertical; }
.quote-form__submit { grid-column: 1 / -1; justify-self: end; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark-blue); padding: 56px 0 32px; color: var(--white); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px;
}
.footer__logo img { height: 52px; width: auto; margin-bottom: 20px; }
.footer__socials { display: flex; gap: 16px; }
.footer__socials a { transition: transform var(--transition), opacity var(--transition); }
.footer__socials a:hover { transform: translateY(-2px); opacity: 0.8; }
.footer__socials a img { width: 32px; height: 32px; }
.footer__info { text-align: right; }
.footer__info-title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 14px; }
.footer__info p { font-size: 0.8125rem; font-weight: 400; line-height: 1.9; opacity: 0.75; }
.footer__bottom {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.75rem; opacity: 0.5;
}

/* ============================================
   SHARED — Page Hero (Sobre / Serviços)
   ============================================ */
.page-hero {
  position: relative; padding: 180px 0 100px; color: var(--white); text-align: center;
  background: var(--dark-blue); overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title {
  font-size: 2.75rem; font-weight: 800; line-height: 1.15;
  max-width: 720px; margin: 0 auto 20px;
}
.page-hero__subtitle { font-size: 1.0625rem; font-weight: 400; opacity: 0.75; }

/* ============================================
   SOBRE — About Company
   ============================================ */
.about-company { padding: var(--section-padding); }
.about-company__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.about-company__label { font-size: 0.875rem; font-weight: 500; color: var(--dark-gray); margin-bottom: 4px; }
.about-company__title { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.about-company__text p { font-size: 0.9375rem; color: #2d2d4e; line-height: 1.8; margin-bottom: 16px; }
.about-company__images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-company__images img {
  border-radius: var(--radius); width: 100%; height: 180px; object-fit: cover;
  transition: transform var(--transition);
}
.about-company__images img:hover { transform: scale(1.03); }
.about-company__images img:last-child { grid-column: 1 / -1; height: 220px; }

/* ============================================
   SOBRE — Mission, Vision & Values
   ============================================ */
.mvv { padding: var(--section-padding); background: var(--light-gray); }
.mvv__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.mvv__title { font-size: 2.25rem; font-weight: 800; line-height: 1.15; }
.mvv__item { margin-bottom: 28px; }
.mvv__item h3 {
  font-size: 1.0625rem; font-weight: 700; color: var(--orange);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,93,0,0.2);
}
.mvv__item p { font-size: 0.9375rem; color: #2d2d4e; line-height: 1.7; }
.mvv__values-list { display: flex; flex-direction: column; gap: 10px; }
.mvv__values-list li { font-size: 0.9375rem; color: #2d2d4e; line-height: 1.7; padding-left: 16px; position: relative; }
.mvv__values-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.mvv__values-list li strong { color: var(--dark-blue); }

/* ============================================
   SOBRE — What We Deliver (Card Grid)
   ============================================ */
.deliver { padding: var(--section-padding); }
.deliver .section-title { margin-bottom: 48px; }
.deliver__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.deliver__card {
  background: var(--white); border: 1px solid var(--light-gray);
  border-radius: 12px; padding: 32px 28px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.deliver__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.deliver__card-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.deliver__card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 12px; color: var(--dark-blue); }
.deliver__card-text { font-size: 0.875rem; line-height: 1.7; color: var(--dark-gray); }

/* ============================================
   SERVIÇOS — Service Blocks
   ============================================ */
.service-block { padding: var(--section-padding); }
.service-block--dark { background: var(--dark-blue); color: var(--white); }
.service-block--light { background: var(--white); color: var(--dark-blue); }
.service-block__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.service-block__title { font-size: 2.25rem; font-weight: 800; margin-bottom: 20px; line-height: 1.15; }
.service-block__desc { font-size: 0.9375rem; line-height: 1.8; margin-bottom: 28px; opacity: 0.85; }
.service-block--light .service-block__desc { color: #2d2d4e; }
.service-block__list-group { margin-bottom: 28px; }
.service-block__list-group h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--orange);
}
.service-block__list-group ul { display: flex; flex-direction: column; gap: 8px; }
.service-block__list-group li {
  font-size: 0.875rem; line-height: 1.7; padding-left: 20px; position: relative; opacity: 0.85;
}
.service-block__list-group li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  :root { --section-padding: 72px 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 2rem; }
  .page-hero__title { font-size: 2.25rem; }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  :root { --section-padding: 56px 0; }
  .section-title { font-size: 1.75rem; }

  /* Nav mobile */
  .nav__links {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--dark-blue); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 24px;
    transition: right var(--transition); box-shadow: -4px 0 30px rgba(0,0,0,0.4);
  }
  .nav__links--open { right: 0; }
  .nav__hamburger { display: flex; }

  /* Hero mobile */
  .hero { padding: 140px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero__title { font-size: 1.75rem; }
  .hero__buttons { justify-content: center; }
  .hero__media { order: -1; }

  /* Services mobile */
  .services__grid { grid-template-columns: 1fr; }

  /* Carousel mobile */
  .carousel__prev, .carousel__next { width: 40px; height: 40px; }

  /* Why Us mobile */
  .why-us__grid { grid-template-columns: 1fr; }

  /* About teaser mobile */
  .about-teaser__inner { grid-template-columns: 1fr; }

  /* Quote form mobile */
  .quote-section__inner { grid-template-columns: 1fr; gap: 36px; }
  .quote-form { grid-template-columns: 1fr; }
  .quote-form__submit { justify-self: stretch; }

  /* Footer mobile */
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .footer__info { text-align: center; }
  .footer__socials { justify-content: center; }

  /* Page hero mobile */
  .page-hero { padding: 140px 0 72px; }
  .page-hero__title { font-size: 1.875rem; }

  /* About company mobile */
  .about-company__inner { grid-template-columns: 1fr; }
  .about-company__images { grid-template-columns: 1fr; }
  .about-company__images img, .about-company__images img:last-child { height: 200px; }

  /* MVV mobile */
  .mvv__inner { grid-template-columns: 1fr; }

  /* Deliver mobile */
  .deliver__grid { grid-template-columns: 1fr; }

  /* Service blocks mobile */
  .service-block__inner { grid-template-columns: 1fr; }
  .service-block__title { font-size: 1.625rem; }
}
