/* ================= RESET E BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= HEADER ================= */
.header {
    --background-color: rgba(255, 255, 255, 0.98);
    color: #363f40;
    background-color: var(--background-color);
    padding: 0;
    transition: all 0.5s;
    z-index: 997;
    min-height: 80px;
    border-bottom: none !important;
    box-shadow: none !important;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 80px;
}

.header .logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.header .logo img {
    height: 98px;
    width: auto;
    margin-left: 0;
    object-fit: contain;
    transform: scale(1.3);
}

.header .navmenu-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: -800px;
    justify-content: flex-start;
}

/* ================= NAVIGATION MENU - DESKTOP ================= */
@media (min-width: 1200px) {
    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navmenu li {
        position: relative;
    }

    .navmenu a,
    .navmenu a:focus {
        color: #000000;
        padding: 18px 15px;
        font-size: 16px;
        font-family: 'Poppins', sans-serif;
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
        text-decoration: none;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: 0.3s;
    }

    .navmenu li:hover > a,
    .navmenu .active {
        color: #099aa7;
    }

    /* Dropdown Desktop */
    .navmenu .dropdown ul {
        margin: 0;
        padding: 10px 0;
        background: #ffffff;
        display: block;
        position: absolute;
        visibility: hidden;
        left: 14px;
        top: 130%;
        opacity: 0;
        transition: 0.3s;
        border-radius: 4px;
        z-index: 99;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
        max-height: 400px;
        overflow-y: auto;
    }

    .navmenu .dropdown ul li {
        min-width: 200px;
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        color: #363f40;
    }

    .navmenu .dropdown ul a:hover {
        color: #099aa7;
    }

    .navmenu .dropdown:hover > ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    .mobile-nav-toggle {
        display: none !important;
    }
}

/* ================= NAVIGATION MENU - MOBILE ================= */
@media (max-width: 1199px) {
    .header {
        min-height: 70px !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .header .container {
        min-height: 70px !important;
        height: 70px !important;
        padding: 0 15px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header .logo {
        z-index: 10002;
    }

    .header .logo img {
        height: 50px !important;
        max-height: 50px !important;
    }

    .header .navmenu-wrapper {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Ícone dos 3 pontinhos */
    .mobile-nav-toggle {
        display: block !important;
        color: #363f40 !important;
        font-size: 28px !important;
        cursor: pointer !important;
        z-index: 10002 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 8px !important;
    }

    .mobile-nav-toggle:hover {
        background: #f0f0f0;
    }

    /* X quando menu aberto */
    body.mobile-nav-active .mobile-nav-toggle {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        color: #000000 !important;
        font-size: 32px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Menu escondido */
    .navmenu {
        padding: 0;
        z-index: 9997;
    }

    .navmenu ul {
        display: none;
        list-style: none;
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: 75%;
        max-width: 280px;
        background-color: #ffffff;
        padding: 25px 20px;
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        overflow-y: auto;
        z-index: 9998;
        transition: all 0.3s ease;
    }

body.mobile-nav-active .navmenu ul {
  display: block !important;
  position: fixed;
  top: 70px !important;
  right: 15px !important;
  left: auto !important;
  background: #fff;
  width: 280px;
  padding: 20px 15px !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}


    /* Itens do menu */
    .navmenu ul li {
        width: 100%;
        margin-bottom: 5px;
    }
    


/* Bloco branco do menu mobile quando ativo */
body.mobile-nav-active .navmenu ul {
  display: block !important;
  position: fixed;
  top: 70px !important;
  right: 15px !important;
  left: auto !important;
  background: #fff;
  width: 280px;
  padding: 20px 15px !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

.navmenu .dropdown.dropdown-active > ul {
  display: block !important;
  max-height: 500px;
  padding: 12px 10px !important;

  /* AINDA MAIS PARA A DIREITA 🔥 */
  margin: 8px -160px 0 120px !important; 
   width: 220px !important; 

  background: #fff;
  border-radius: 12px;
      overflow-y: visible !important;   /* remove o scroll interno */
    max-height: none !important;      /* permite expandir completo */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}



}
    .navmenu ul li a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-radius: 10px;
        color: #363f40;
        font-size: 16px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .navmenu ul li a:hover {
        background: #f0f4f8;
        color: #2e7bbf;
    }

@media (max-width: 1199px) {
  .navmenu ul {
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
  }
}
 
/* ========== DROPDOWN MOBILE – VERSÃO CORRETA e SEM CONFLITOS ========== */
@media (max-width: 1199px) {

  /* Submenu fechado por padrão */
  .navmenu .dropdown ul {
    display: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    position: static;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

.navmenu .dropdown.dropdown-active > ul {
  display: block !important;
  max-height: 500px;
  padding: 12px 10px !important;

  /* AINDA MAIS PARA A DIREITA 🔥 */
  margin: 8px -160px 0 120px !important; 
  width: 220px !important; 

  background: #fff;
  border-radius: 12px;
      overflow-y: visible !important;   /* remove o scroll interno */
    max-height: none !important;      /* permite expandir completo */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}




  /* Itens do submenu */
  .navmenu .dropdown ul li a {
    padding: 12px 16px !important;
    font-size: 14px;
    border-radius: 8px;
    white-space: normal;
  }

  /* Seta */
  .navmenu .dropdown > a .toggle-dropdown {
    width: 28px;
    height: 28px;
    margin-left: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(46,123,191,0.12);
    transition: 0.3s;
  }

  /* Seta girada */
  .navmenu .dropdown.dropdown-active > a .toggle-dropdown {
    transform: rotate(180deg);
    background: rgba(46,123,191,0.25);
  }
}

@media (max-width: 768px) {
    .navmenu ul {
        width: 90%;
        padding: 25px 15px;
    }
    
    .header .logo img {
        height: 45px !important;
    }
}

/* Botão Agendar Consulta */
.header .btn-getstarted {
    color: #ffffff;
    background: #2e7bbf;
    font-size: 14px;
    padding: 8px 26px;
    margin: 0;
    border-radius: 4px;
    transition: 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.header .btn-getstarted:hover {
    background: #1a5a8f;
}

/* ================= HERO SERVO ================= */
.hero-servo {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(50,108,178,0.8) 50%, rgba(74,144,226,0.9) 100%), 
                linear-gradient(45deg, #4a90e2, #667eea, #326cb2);
    margin-top: 80px;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px, 30px 30px, 40px 40px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, -10px) rotate(1deg); }
    66% { transform: translate(10px, -5px) rotate(-1deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-title span {
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ================= SERVO CONTENT ================= */
.servo-content {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f5f9 100%);
}

.servo-main-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.servo-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ================= GRID DE SERVIÇOS ================= */
.servo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: rgba(102,126,234,0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #326cb2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c5f8a;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.service-details {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-details li {
    padding: 0.4rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.service-details li::before {
    content: '•';
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.service-btn-link {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.service-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #326cb2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(74,144,226,0.3);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74,144,226,0.4);
    background: linear-gradient(135deg, #326cb2 0%, #2c5f8a 100%);
}

.service-btn:active {
    transform: translateY(0);
}

/* ================= FLOATING BUTTONS ================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg,#667eea 0%,#326cb2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(135deg, #2e7bbf 0%, #1a5a8f 50%, #3f97d3 100%);
    color: #ffffff;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 900px;
    height: 900px;
    background: rgba(26, 60, 100, 0.4);
    border-radius: 45% 55% 60% 40%;
    z-index: 0;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: rgba(35, 80, 130, 0.35);
    border-radius: 60% 40% 50% 50%;
    z-index: 0;
    pointer-events: none;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 25%;
    width: 700px;
    height: 700px;
    background: rgba(45, 100, 150, 0.25);
    border-radius: 50% 50% 45% 55%;
    z-index: 0;
    pointer-events: none;
}

.footer-top::after {
    content: '';
    position: absolute;
    top: -30%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: rgba(30, 75, 120, 0.3);
    border-radius: 40% 60% 55% 45%;
    z-index: 0;
    pointer-events: none;
}

.footer .footer-top {
  padding: 60px 0 40px;
  position: relative;
  z-index: 10;
}

/* Garante que TODO conteúdo fique acima das bolhas */
.footer .footer-top * {
  position: relative;
  z-index: 10;
}

.footer .logo-section,
.footer .footer-links,
.footer .footer-contact-section,
.footer .social-links,
.footer .contact-info,
.footer h4,
.footer ul,
.footer li,
.footer a,
.footer p {
  position: relative;
  z-index: 10;
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 25px 0;
  position: relative;
  z-index: 10;
}

.footer .logo-section {
    margin-bottom: 10px;
    margin-top: 0;
    margin-left: 10px;
}

.footer .logo-rodape {
  max-width: 280px;
  width: auto;
  height: auto;
  display: block;
  margin: -70px 30px 10px 0; /* 20px puxa levemente para a esquerda */
}




.footer .tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-style: italic;
  margin-top: -40px;
  margin-bottom: 0;
    margin-left: 28px;

}

.footer h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer .footer-links ul li {
    padding: 8px 0;
    transition: all 0.3s ease;
}

.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer .footer-links ul a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer .social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .social-links a:hover {
    background: #ffffff;
    color: #2e7bbf;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer .contact-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer .contact-info i {
    color: #ffffff;
    font-size: 16px;
    margin-top: 2px;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 0;
    position: relative;
    z-index: 5;
    text-align: center;
}

.footer .copyright p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-size: 13px;
    text-align: center;
}

.footer .company-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.footer .privacy-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer .privacy-link:hover {
    color: #ffffff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .servo-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .footer .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer .social-links {
        justify-content: center;
    }
    
    .footer .footer-about,
    .footer .footer-links,
    .footer .footer-contact-section {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer .logo-rodape {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer .contact-info p {
        justify-content: center;
    }
}


/* OCULTAR AGENDAR CONSULTA NO TABLET E MOBILE */
@media (max-width: 1199px) {
  .header .btn-getstarted {
    display: none !important;
  }
}


/* FORÇA O MENU MOBILE A FICAR 100% ENCOSTADO NA DIREITA */
@media (max-width: 1199px) {
  body.mobile-nav-active .navmenu ul {
    position: fixed !important;
    top: 70px !important;

    /* ENCOSTA NO CANTO DIREITO DE VERDADE */
    right: 0 !important;
    left: auto !important;

    /* REMOVE QUALQUER CENTRALIZAÇÃO QUE ESTÁ NO SEU CSS ORIGINAL */
    transform: none !important;

    /* REMOVE O AJUSTE DE CENTRALIZAÇÃO POR MARGEM */
    margin: 0 !important;

    /* AJUSTE OPCIONAL */
    border-radius: 0 0 0 12px !important;
  }
}


/* =======================================================
   MOVER SOMENTE O BLOCO BRANCO PRINCIPAL PARA A DIREITA
   (SEM ALTERAR SUBMENUS)
   ======================================================= */
@media (max-width: 1199px) {

  /* SÓ o bloco principal */
  #navmenu > ul {
      left: auto !important;
      right: 20px !important;
      transform: none !important;
      margin: 0 !important;
  }

  /* Quando o menu está aberto */
  body.mobile-nav-active #navmenu > ul {
      left: auto !important;
      right: 0 !important;
      transform: none !important;

      width: 280px !important;  /* ajuste opcional */
      max-width: 90% !important;
  }

}
