/* ============================================
   EQUALIZA ENGENHARIA - Main Stylesheet
   ============================================ */

/* --------------------------------------------
   FONT-FACE DECLARATIONS
   -------------------------------------------- */

/* Audiowide - latin-ext */
@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/audiowide-l7gdbjpo0cum0ckerwcdma_oixo.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Audiowide - latin */
@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/audiowide-l7gdbjpo0cum0ckerwcdlg_o.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto - italic latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  font-stretch: 100%;
  src: url(../fonts/roboto-kfo5cnqeu92fr1mu53zec9_vu3r1gihoszmkchkawzu.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Roboto - italic latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  font-stretch: 100%;
  src: url(../fonts/roboto-kfo5cnqeu92fr1mu53zec9_vu3r1gihoszmkbnka.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto - normal latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  font-stretch: 100%;
  src: url(../fonts/roboto-kfo7cnqeu92fr1me7ksn66agldtyluama3-ubgee.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Roboto - normal latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  font-stretch: 100%;
  src: url(../fonts/roboto-kfo7cnqeu92fr1me7ksn66agldtyluama3yuba.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------
   CUSTOM PROPERTIES
   -------------------------------------------- */

:root {
  --color-primary: #2B6168;
  --color-accent: #3d8a94;
  --color-mint: #D7F0EB;
  --color-white: #FFFFFF;
  --color-dark: #1D2939;
  --color-text: #475467;
  --color-gray: #5B5B5B;
  --color-overlay-contact: rgba(120, 101, 76, 0.51);
  --font-heading: 'Audiowide', cursive;
  --font-body: 'Roboto', sans-serif;
  --container-max: 1170px;
  --nav-height: 76px;
}

/* --------------------------------------------
   RESET
   -------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------
   BASE
   -------------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --------------------------------------------
   CONTAINER
   -------------------------------------------- */

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

/* --------------------------------------------
   NAVBAR
   -------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  text-decoration: none;
  padding: 8px 0;
  font-family: var(--font-body);
}

.nav-menu a:hover {
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: #fff;
  font-size: 24px;
}

/* --------------------------------------------
   HERO
   -------------------------------------------- */

.hero {
  position: relative;
  min-height: max(100vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 97, 104, 0.82);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text h2 {
  font-size: 50px;
  color: #fff;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

.hero-logo {
  text-align: center;
}

.hero-logo img {
  max-width: 300px;
  margin: 0 auto;
}

/* --------------------------------------------
   SECTION TITLE
   -------------------------------------------- */

.section-title {
  font-size: 36px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
}

/* --------------------------------------------
   ABOUT
   -------------------------------------------- */

.about {
  padding: 80px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: left;
}

.about-text p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.about-text strong {
  color: var(--color-dark);
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 350px;
  margin: 0 auto;
}

/* --------------------------------------------
   MVV SECTION (Missão, Visão, Valores)
   -------------------------------------------- */

.mvv {
  position: relative;
  padding: 140px 0;
  background: url(../images/meeting-2284501_1920.jpg) center/cover no-repeat;
}

.mvv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 97, 104, 0.5);
}

.mvv-content {
  position: relative;
  z-index: 2;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mvv-card {
  background: rgba(255, 255, 255, 0.91);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
}

.mvv-card h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.mvv-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.mvv-card p {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.7;
}

/* --------------------------------------------
   SHAPE DIVIDERS
   -------------------------------------------- */

.shape-divider-top,
.shape-divider-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}

.shape-divider-top {
  top: -1px;
}

.shape-divider-bottom {
  bottom: -1px;
}

.shape-divider-top svg,
.shape-divider-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  position: relative;
}

.shape-divider-bottom svg {
  transform: rotate(180deg);
}

/* MVV bottom divider → into services (mint) */
.mvv .shape-divider-bottom svg {
  fill: #D7F0EB;
}

/* MVV top divider → from about (white) */
.mvv .shape-divider-top svg {
  fill: #fff;
}

/* Clients top divider → from services (mint) */
.clients .shape-divider-top svg {
  fill: #D7F0EB;
}

/* --------------------------------------------
   SERVICES
   -------------------------------------------- */

.services {
  background: var(--color-mint);
  padding: 80px 0;
}

.services-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.services-row-1 {
  grid-template-columns: 2fr 1fr 1fr;
}

.services-row-2 {
  grid-template-columns: 1fr 1fr;
}

.service-card {
  background: #fff;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.service-card h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.service-card ul {
  padding-left: 0;
}

.service-card li {
  font-weight: 700;
  font-size: 14px;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
  color: var(--color-text);
}

.service-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* --------------------------------------------
   CLIENTS
   -------------------------------------------- */

.clients {
  padding: 140px 0 80px;
  position: relative;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.client-logo {
  filter: grayscale(30%);
  opacity: 0.8;
  transition: all 0.3s ease;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* --------------------------------------------
   CONTACT
   -------------------------------------------- */

.contact {
  position: relative;
  padding: 80px 0;
  background: url(../images/fale-conosco-fale-conosco.jpg) center/cover no-repeat;
  color: #fff;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay-contact);
}

.contact-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.contact-info p {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info strong {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 19px;
  padding: 30px;
}

.contact-form h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--color-dark);
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.3s;
  box-sizing: border-box;
  background: #fff;
  color: var(--color-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 97, 104, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: var(--font-body);
}

.btn-submit:hover {
  background: var(--color-accent);
}

/* --------------------------------------------
   MAP
   -------------------------------------------- */

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* --------------------------------------------
   PRE-FOOTER
   -------------------------------------------- */

.pre-footer {
  background: var(--color-gray);
  padding: 30px 0;
  text-align: right;
}

.pre-footer img {
  max-width: 200px;
  margin-left: auto;
}

/* --------------------------------------------
   FOOTER
   -------------------------------------------- */

.footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------
   WHATSAPP BUTTON
   -------------------------------------------- */

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

/* --------------------------------------------
   SCROLL TO TOP
   -------------------------------------------- */

.scroll-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-accent);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* --------------------------------------------
   ANIMATIONS
   -------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------
   MEDIA QUERIES
   -------------------------------------------- */

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    margin-top: 30px;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-image {
    margin-top: 30px;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .services-row-1,
  .services-row-2 {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 20px;
  }

  .hero {
    min-height: 80vh;
  }

  .section-title {
    font-size: 28px;
  }

  .about-text p {
    font-size: 16px;
  }

  .contact-info h2 {
    font-size: 30px;
  }

  .contact-info p,
  .contact-info strong {
    font-size: 18px;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
  }

  .footer .container {
    flex-direction: column;
    gap: 10px;
  }
}
