/* Estilos Gerais */
:root {
    --primary-color: #1a5276; /* Azul da logo */
    --secondary-color: #e74c3c; /* Vermelho para CTAs */
    --text-color: #333333;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --dark-gray: #7f8c8d;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    min-height: 48px;
    box-shadow: var(--box-shadow);
}

.btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: #154360;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-service {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 100%;
    margin-top: 15px;
    font-size: 0.85rem;
    padding: 10px 15px;
}

.btn-service:hover {
    background-color: #154360;
    transform: translateY(-2px);
}

.btn-emergency {
    background-color: var(--secondary-color);
    color: var(--light-color);
    font-size: 1rem;
    padding: 15px 20px;
    width: 100%;
    font-weight: 700;
}

.btn-emergency:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

.cta-center {
    text-align: center;
    margin-top: 30px;
}

/* Botão de WhatsApp Fixo */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-button i {
    font-size: 1.5rem;
    margin-right: 8px;
}

.whatsapp-button span {
    font-weight: bold;
}

.whatsapp-button:hover {
    background-color: #1da851;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Header */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo img {
    max-height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta .phone-button {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.header-cta .phone-button i {
    margin-right: 8px;
}

.header-cta .phone-button:hover {
    background-color: #c0392b;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    background-image: url('https://via.placeholder.com/1920x1080');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 82, 118, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-color);
}

.hero h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    font-family: var(--font-secondary);
    color: rgba(255, 255, 255, 0.9);
}

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

.emergency {
    display: flex;
    align-items: center;
    margin-top: 20px;
    font-weight: 500;
}

.emergency i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    background-color: var(--gray-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card.highlight {
    border: 2px solid var(--primary-color);
    position: relative;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-width: 100%;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.testimonials .section-header h2 {
    color: var(--light-color);
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials .section-header h2::after {
    background-color: var(--light-color);
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
}

.testimonial-content p::before {
    left: 0;
    top: -10px;
}

.testimonial-content p::after {
    right: 0;
    bottom: -20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-author .name {
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author .case {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact {
    background-color: var(--gray-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 30px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-content p {
    color: var(--text-color);
    font-size: 1rem;
}

.cta-emergency {
    margin: 30px 0 15px;
}

.emergency-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: var(--secondary-color);
}

.map {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
}

.footer-logo img {
    margin-bottom: 15px;
    max-width: 150px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-contact {
    flex: 1;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--light-color);
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--light-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Botão de emergência mobile */
.emergency-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    display: none;
}

/* Media Queries - Responsividade */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .about-content,
    .hero-content {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .about-image {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .about-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px; /* Aumenta para melhor legibilidade em mobile */
    }
    
    section {
        padding: 50px 0;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 200;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .main-nav a {
        color: var(--light-color);
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 201;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .header-cta {
        display: none;
    }
    
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .whatsapp-button {
        bottom: 80px;
    }
    
    .whatsapp-button span {
        display: none;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .whatsapp-button i {
        margin-right: 0;
        font-size: 1.8rem;
    }
    
    .emergency-mobile-cta {
        display: block;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}

/* Animações e melhorias de usabilidade */
.btn-primary,
.btn-emergency {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Melhorias de acessibilidade */
.btn, 
a, 
input, 
button {
    min-height: 44px;
    min-width: 44px;
}

/* Otimizações para carregamento */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.bot-consulta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 360px;
  background: linear-gradient(90deg, #25D366, #1ebe5d);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  padding: 14px 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  margin: 16px auto;
}

.bot-consulta:hover {
  background: linear-gradient(90deg, #2fe377, #23c06a);
  transform: scale(1.03);
}

@media screen and (max-width: 767px) {
  .bot-consulta {
    width: 100%;
    font-size: 18px;
    padding: 16px 20px;
  }
}

/* Botão final — destaque sobre fundo escuro */
.bot-final {
  background: linear-gradient(90deg, #d4af37, #a37a00); /* dourado elegante */
  color: #fff !important;
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.35),   /* brilho suave dourado */
    0 4px 15px rgba(0, 0, 0, 0.4);       /* sombra de profundidade */
  transition: all 0.3s ease;
}

.bot-final:hover {
  background: linear-gradient(90deg, #e2b94b, #b48b09);
  box-shadow:
    0 0 30px rgba(226, 185, 75, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.bot-final:active {
  transform: translateY(0);
  box-shadow:
    0 0 18px rgba(226, 185, 75, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Versão mobile — reforça o brilho dourado */
@media screen and (max-width: 767px) {
  .bot-final {
    width: 90%;
    font-size: 16px;
    padding: 16px 22px;
    box-shadow:
      0 0 28px rgba(212, 175, 55, 0.45),
      0 6px 18px rgba(0, 0, 0, 0.45);
  }
}