/* CS Home Services - header v2, isolado do restante do site */
.cs-header-v2{position:relative;z-index:100;padding:10px 16px;background:transparent;color:#fff;font-family:'Instrument Sans',Arial,sans-serif}
.cs-header-v2 .cs-bar{max-width:1160px;margin:auto;min-height:76px;padding:10px 20px;border-radius:100px;background:linear-gradient(110deg,#003f35,#005145 55%,#003a32);border:1px solid rgba(240,198,93,.22);display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 8px 24px rgba(0,30,25,.14)}
.cs-header-v2 .cs-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:white;flex-shrink:0;min-width:0}
.cs-header-v2 .cs-mark{display:grid;place-items:center;width:54px;height:54px;flex:none;background:transparent;border-radius:12px}
.cs-header-v2 .cs-mark svg{display:block;width:100%;height:100%}
.cs-header-v2 .cs-brand-copy{display:flex;flex-direction:column;gap:3px;line-height:1.15}
.cs-header-v2 .cs-brand-copy b{font-size:clamp(17px,1.65vw,24px);font-weight:800;letter-spacing:-.04em;white-space:nowrap}
.cs-header-v2 .cs-brand-copy em{color:#f0c65d;font-style:normal}
.cs-header-v2 .cs-brand-copy small{font-size:12px;letter-spacing:.01em;color:#e0eee8}
.cs-header-v2 .cs-desktop{display:flex;align-items:center;gap:3px}
.cs-header-v2 .cs-desktop>a{color:#fff;text-decoration:none;padding:11px 12px;border-radius:30px;font-size:15px;font-weight:600;white-space:nowrap;transition:background .2s}
.cs-header-v2 .cs-desktop>a:hover{background:rgba(255,255,255,.12)}
.cs-header-v2 .cs-desktop>a[aria-current=page]{position:relative}
.cs-header-v2 .cs-desktop>a[aria-current=page]:after{content:'';position:absolute;bottom:4px;left:12px;right:12px;height:3px;background:#f0c65d;border-radius:3px}
.cs-header-v2 .cs-desktop>a.cs-quote,.cs-header-v2 .cs-menu .cs-quote{display:flex;align-items:center;justify-content:center;gap:9px;background:#f0c65d;color:#12382c;font-weight:800;padding:13px 20px;margin-left:8px;border-radius:40px}
.cs-header-v2 .cs-quote svg{width:19px;height:19px}
.cs-header-v2 .cs-menu{display:none;position:relative}
.cs-header-v2 .cs-menu summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;color:#fff;font-weight:700;padding:9px 12px;border:1px solid rgba(255,255,255,.25);border-radius:18px}
.cs-header-v2 .cs-menu summary::-webkit-details-marker{display:none}
.cs-header-v2 .cs-menu nav{position:absolute;top:calc(100% + 14px);right:0;width:min(310px,calc(100vw - 32px));display:flex;flex-direction:column;background:#003f35;border:1px solid rgba(240,198,93,.45);border-radius:22px;padding:12px;box-shadow:0 18px 36px rgba(0,0,0,.3);max-height:75vh;overflow-y:auto}
.cs-header-v2 .cs-menu nav a{color:#fff;text-decoration:none;padding:11px 13px;border-radius:10px;font-size:15px}
.cs-header-v2 .cs-menu nav a:hover{background:rgba(255,255,255,.1)}
.cs-header-v2 .cs-menu nav a.cs-quote{color:#12382c;margin:10px 0 0}
@media(max-width:1000px){.cs-header-v2 .cs-desktop{display:none}.cs-header-v2 .cs-menu{display:block}}
@media(max-width:560px){.cs-header-v2{padding:8px}.cs-header-v2 .cs-bar{min-height:64px;padding:7px 12px;gap:8px}.cs-header-v2 .cs-mark{width:43px;height:43px}.cs-header-v2 .cs-brand{gap:6px}.cs-header-v2 .cs-brand-copy b{font-size:16px}.cs-header-v2 .cs-brand-copy small{font-size:10px}.cs-header-v2 .cs-menu summary span{display:none}.cs-header-v2 .cs-menu summary{padding:9px}}

/* Correção de compatibilidade com cs-unificado.css */

body > .cs-header.cs-header-v2 {
    position: relative !important;
    top: auto !important;
    z-index: 9999 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    background: #f2f8f6 !important;
    overflow: visible !important;
    isolation: auto !important;
}

body > .cs-header.cs-header-v2 .cs-bar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1160px !important;
    min-height: 76px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
    background: linear-gradient(
        110deg,
        #003f35,
        #005145 55%,
        #003a32
    ) !important;
    border: 1px solid rgba(240,198,93,.35) !important;
    border-radius: 100px !important;
    overflow: visible !important;
}

body > .cs-header.cs-header-v2 .cs-brand {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
}

body > .cs-header.cs-header-v2 .cs-desktop {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
}

body > .cs-header.cs-header-v2 .cs-menu {
    display: none !important;
}

@media (max-width: 1000px) {
    body > .cs-header.cs-header-v2 .cs-desktop {
        display: none !important;
    }

    body > .cs-header.cs-header-v2 .cs-menu {
        display: block !important;
    }
}

@media (max-width: 560px) {
    body > .cs-header.cs-header-v2 {
        padding: 8px !important;
    }

    body > .cs-header.cs-header-v2 .cs-bar {
        min-height: 64px !important;
        padding: 7px 12px !important;
    }
}

/* Correção mobile - menu dentro da tela */
@media (max-width: 1000px) {
  body .cs-header.cs-header-v2 {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body .cs-header.cs-header-v2 .cs-bar {
    position: relative !important;
    max-width: 100% !important;
  }

  body .cs-header.cs-header-v2 .cs-menu {
    position: static !important;
  }

  body .cs-header.cs-header-v2 .cs-menu[open] {
    display: block !important;
  }

  body .cs-header.cs-header-v2 .cs-menu .cs-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 10050 !important;
  }
}

/* CS Home Services - menu mobile corrigido */
@media (max-width: 1000px) {

  body .cs-header.cs-header-v2 .cs-bar {
    position: relative !important;
    overflow: visible !important;
  }

  body .cs-header.cs-header-v2 .cs-menu {
    position: static !important;
  }

  body .cs-header.cs-header-v2 .cs-menu > nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 75vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    margin: 0 !important;
    border-radius: 22px !important;
    background: #004638 !important;
    z-index: 10050 !important;
  }

  body .cs-header.cs-header-v2 .cs-menu:not([open]) > nav {
    display: none !important;
  }

  body .cs-header.cs-header-v2 .cs-menu > nav > a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: left !important;
    padding: 13px 16px !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
  }

  body .cs-header.cs-header-v2 .cs-menu > nav > a.cs-quote {
    background: #D9B44A !important;
    color: #17352c !important;
    text-align: center !important;
    border-radius: 14px !important;
    margin-top: 8px !important;
  }
}
