/* ═══════════════════════════════════════════
   TURN – CSS COMPARTILHADO (todas as páginas)
   ═══════════════════════════════════════════ */

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

:root {
  --green:       #509C91;
  --green-light: #5DB3A7;
  --gold:        #DBB84D;
  --orange:      #BD5436;
  --dark:        #1A1A1A;
  --mid:         #666666;
  --light:       #F5F4F0;
  --white:       #FFFFFF;
  --font-body:   'DM Sans', sans-serif;
  /* Grid */
  --col:    110px;
  --gut:    30px;
  --pad:    clamp(20px, 6vw, 110px);   /* outer margin responsivo */
  --content:1650px;
}

body { font-family: var(--font-body); color: var(--dark); background: var(--white); overflow-x: hidden; }
a    { text-decoration: none; color: inherit; }
img  { display: block; width: 100%; }

/* ── INNER CONTAINER — centraliza conteúdo em todas as seções ── */
.inner {
  max-width: var(--content);   /* 1650px */
  margin: 0 auto;
  width: 100%;
}

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #E4E4E4;
  padding: 0 var(--pad);
}
nav > .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  max-width: var(--content);
  margin: 0 auto;
}
/* linha colorida sob a navbar */
nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: #DBB84D;
}

.logo {
  display: flex; align-items: center;
}
.logo img {
  height: 20px;
  width: auto;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-dropdown { position: relative; }
.nav-dropdown > button {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--dark); background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px; padding: 4px 0;
}
.nav-dropdown > button svg { width: 10px; height: 10px; fill: currentColor; transition: transform .2s; position: relative; top: 1px; }
.nav-dropdown.open > button { color: var(--green); }
.nav-dropdown.open > button svg { transform: rotate(180deg); }

.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 2px); left: 0;
  background: var(--white); border: 1px solid #E4E4E4; border-radius: 6px;
  min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.09);
  padding: 8px 0;
  margin-top: 4px;
  z-index: 300;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 18px;
  font-size: 13px; color: var(--mid); transition: all .15s;
}
.dropdown-menu a:hover { color: var(--green); background: var(--light); }

/* BOTÃO configure seu office */
.btn-nav {
  padding: 9px 18px;
  border: 2px solid #509C91; border-radius: 4px;
  font-size: 13px; font-weight: 600; color: #509C91;
  transition: all .2s; white-space: nowrap;
}
.btn-nav:hover { background: #509C91; color: var(--white); }

/* ── PAGE HERO (banner cinza padrão) ── */
.page-hero {
  background: #E8E6E0;
  padding: 52px var(--pad);
}
.page-hero-card {
  background: var(--white);
  display: inline-block; padding: 32px 44px;
  border-radius: 2px; max-width: 480px;
}
.page-hero-card h1 { font-weight: 700; font-size: 26px; margin-bottom: 6px; }
.page-hero-card h1 em { font-style: normal; color: var(--green); }
.page-hero-card p  { font-size: 14px; color: var(--mid); }

/* ── BOTÕES ── */
.btn-green {
  display: inline-block; padding: 12px 26px;
  background: var(--green); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 3px; border: none; cursor: pointer; transition: background .2s;
}
.btn-green:hover { background: var(--green-light); }

.btn-veja {
  display: block; width: 100%; padding: 11px;
  background: var(--green); color: var(--white);
  text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 3px; transition: background .2s;
}
.btn-veja:hover { background: var(--green-light); }

.link-saiba {
  font-size: 13px; font-weight: 600; color: #509C91;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.link-saiba:hover { color: var(--green-light); }
.link-saiba::after { content: '›'; font-size: 18px; line-height: 1; }

/* ── PLACEHOLDERS DE IMAGEM ── */
.img-ph {
  background: #D8D4CC; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.img-ph svg { width: 40px; height: 40px; fill: #B0AAA0; }
.img-ph.tall  { height: 460px; }
.img-ph.short { height: 300px; }
.img-ph.hero  { height: 420px; }

/* ── GRID 2 COLUNAS ── */
.two-col {
  padding: 88px var(--pad);
}
.two-col .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  align-items: center;
}
.two-col .inner .col-text { grid-column: auto; }
.two-col .inner .img-ph   { grid-column: auto; }
.two-col.bg-light { background: var(--light); }

.col-text h2 {
  font-weight: 700; font-size: 22px; line-height: 1.35;
  margin-bottom: 20px;
}
.col-text h2 em { font-style: normal; color: var(--green); }
.col-text p {
  font-size: 14px; color: var(--mid); line-height: 1.78;
  margin-bottom: 14px;
}
.col-text p:last-child { margin-bottom: 0; }
.col-text p strong { color: var(--dark); font-weight: 600; }

/* ── QUOTE ── */
.section-quote { padding: 72px var(--pad); text-align: center; }.section-quote blockquote {
  font-weight: 700; font-size: 26px; line-height: 1.4;
  max-width: 760px; margin: 0 auto;
}
.section-quote blockquote em { font-style: normal; color: var(--green); }

/* ── CTA CENTRAL ── */
.section-cta { padding: 88px var(--pad); text-align: center; }.section-cta h2 {
  font-weight: 700; font-size: 30px; line-height: 1.3; margin-bottom: 12px;
}
.section-cta h2 em { font-style: normal; color: var(--green); }
.section-cta p { font-size: 15px; color: var(--mid); }
.section-cta p a { color: var(--green); font-weight: 600; }

/* ── PORTFÓLIO CARROSSEL ── */
.section-portfolio { padding: 80px var(--pad); }
.section-portfolio.bg-light { background: var(--light); }
.section-portfolio > .inner > h2,
.section-portfolio h2 { font-weight: 700; font-size: 24px; margin-bottom: 36px; }
.section-portfolio > .inner > h2 em,
.section-portfolio h2 em { font-style: normal; color: var(--green); }

.carousel-wrapper { position: relative; padding: 0 28px; }
.carousel { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

.office-card {}
.office-img {
  width: 100%; height: 195px; border-radius: 4px 4px 0 0;
  background: #D0CCC4;
  display: flex; align-items: center; justify-content: center;
}
.office-img svg { width: 36px; height: 36px; fill: #B0AAA0; }
.office-info { padding: 12px 15px 0; }
.office-region {
  font-size: 10px; font-weight: 700; color: var(--green);
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 3px;
}
.office-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.office-name em { font-style: normal; color: var(--green); }
.office-details { font-size: 13px; color: var(--mid); line-height: 1.55; margin-bottom: 12px; }
.office-details strong { font-weight: 600; color: var(--dark); }
/* btn-veja sangra o padding do office-info para alinhar com a foto */
.office-info .btn-veja {
  margin-left:  -15px;
  margin-right: -15px;
  width: calc(100% + 30px);
}

.carousel-arrow {
  position: absolute; top: 90px;
  background: var(--white); border: 1px solid #D8D8D8; border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--mid);
  box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: all .2s;
  user-select: none;
}
.carousel-arrow:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.arrow-left  { left: -6px; }
.arrow-right { right: -6px; }

/* ── FORMULÁRIOS ── */
.form-outer {
  background: #EBEBEB; border-radius: 6px; padding: 24px;
}
.form-card {
  background: var(--white); border-radius: 4px; padding: 20px;
}
.form-field {
  display: flex; align-items: center; justify-content: space-between;
  background: #F0EEEA; border-radius: 3px;
  padding: 11px 14px; margin-bottom: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: #999; text-transform: uppercase;
}
.form-field.textarea { align-items: flex-start; min-height: 90px; }
.form-field select, .form-field input {
  background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: #999; text-transform: uppercase; letter-spacing: .5px;
  width: 100%; cursor: pointer;
}
.icon-check { color: #5BAD6F; font-size: 16px; }
.icon-x     { color: var(--orange); font-size: 16px; }

.form-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }

/* ── FOOTER ── */
footer {
  background: #222222; color: #AAA;
  padding: 56px var(--pad) 36px;
}
footer > .inner { width: 100%; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 13px; color: #AAA;
  margin-bottom: 11px; transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-logo {
  display: flex; align-items: center;
  margin-bottom: 18px;
}
.footer-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* Redes sociais com SVG reais */
.footer-social { display: flex; gap: 10px; margin-bottom: 22px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #484848;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.social-btn:hover { border-color: var(--green); background: rgba(45,110,110,.15); }
.social-btn svg { width: 15px; height: 15px; fill: #AAA; transition: fill .2s; }
.social-btn:hover svg { fill: var(--green); }

.footer-legal { font-size: 12px; color: #666; line-height: 1.7; }
.footer-legal a { color: var(--green); display: inline; }

.footer-divider { border: none; border-top: 1px solid #333; margin-bottom: 18px; }
.footer-bottom { font-size: 12px; color: #555; text-align: center; }

/* ── UTILITÁRIOS ── */
.text-green { color: var(--green); }
.fw-bold    { font-weight: 700; }

/* ═══════════════════════════════════════════
   RESPONSIVO – Mobile & Tablet
   ═══════════════════════════════════════════ */

/* ── HAMBURGUER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--dark); transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  nav > .inner { height: 64px; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid #E4E4E4;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 0 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 200;
  }
  .nav-links.open { display: flex; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown > button {
    width: 100%; justify-content: space-between;
    padding: 13px 24px; font-size: 15px;
  }
  .dropdown-menu {
    position: static; box-shadow: none; border: none;
    border-radius: 0; background: var(--light);
    padding: 4px 0 4px 16px; margin: 0;
  }
  .dropdown-menu a { padding: 11px 24px; font-size: 14px; }

  .btn-nav {
    margin: 12px 24px 0; display: block; text-align: center;
    padding: 13px; font-size: 14px;
  }

  /* HERO banner */
  .page-hero { padding: 32px 20px; }
  .page-hero-card { padding: 24px 20px; max-width: 100%; display: block; }
  .page-hero-card h1 { font-size: 22px; }

  /* Two-col vira uma coluna */
  .two-col { padding: 48px 24px; }
  .two-col .inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    gap: 32px;
  }
  /* Reset explicit grid-column placements */
  .two-col .inner .col-text { grid-column: auto; order: 1; }
  .two-col .inner .img-ph   { grid-column: auto; order: 2; }

  .col-text h2 { font-size: 20px; }

  /* Quote */
  .section-quote { padding: 48px 24px; }
  .section-quote blockquote { font-size: 20px; }

  /* CTA */
  .section-cta { padding: 52px 24px; }
  .section-cta h2 { font-size: 22px; }

  /* Portfolio */
  .section-portfolio { padding: 48px 24px; }
  .carousel { grid-template-columns: repeat(2, 1fr); }
  .carousel-wrapper { padding: 0 20px; }

  /* Footer */
  footer { padding: 40px 24px 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  /* Img placeholder altura menor */
  .img-ph.tall  { height: 240px; }
  .img-ph.short { height: 200px; }
}

/* ── MOBILE (≤ 560px) ── */
@media (max-width: 560px) {
  nav { padding: 0 16px; }

  .logo { font-size: 18px; letter-spacing: 4px; }

  /* Portfolio 1 coluna */
  .carousel { grid-template-columns: 1fr; }

  /* Footer 1 coluna */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .section-quote blockquote { font-size: 18px; }
  .section-cta h2 { font-size: 20px; }

  .page-hero-card h1 { font-size: 20px; }

  /* Formulários */
  .form-row2 { grid-template-columns: 1fr; }
  .form-row2 .btn-green { width: 100%; text-align: center; margin-top: 4px; }

  /* Config grid */
  .config-cards-area { grid-template-columns: 1fr !important; }
  .config-grid { grid-template-columns: 1fr !important; padding: 16px !important; }

  /* Auditoria form */
  .auditoria-form-section { grid-template-columns: 1fr !important; padding: 32px 16px !important; }
  .contact-section { grid-template-columns: 1fr !important; padding: 32px 16px !important; }
  .carreiras-section { grid-template-columns: 1fr !important; padding: 32px 16px !important; }
  .help-layout { grid-template-columns: 1fr !important; padding: 32px 16px !important; }
}

/* ══════════════════════════════════════════
   BOTÃO FLUTUANTE WHATSAPP
══════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  animation: wa-pop-in .5s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes wa-pop-in {
  from { opacity:0; transform:scale(.4) translateY(20px); }
  to   { opacity:1; transform:scale(1)  translateY(0); }
}

/* Ícone circular */
.wa-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
}
.wa-float:hover .wa-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
.wa-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Tooltip (aparece no hover) */
.wa-tooltip {
  background: #111;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #111;
}
.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulsação suave no ícone */
.wa-pulse {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37,211,102,.35);
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 600px) {
  .wa-float { bottom: 18px; right: 18px; }
  .wa-tooltip { display: none; }
}
