/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-right {
    display: flex;
    gap: 20px;
}

.whatsapp {
    color: var(--accent-color);
    font-weight: 500;
}

/* Main Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.logo span {
    color: var(--brown-accent);
}

.logo p {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 0;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
}

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

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

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

/* Search */
.search-toggle {
    display: none;
}

.search-icon {
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background: rgba(0, 39, 54, 0.1);
}

.search-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.search-content h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.search-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary-color);
}

.close-search {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.search-toggle:checked ~ .search-drawer {
    visibility: visible;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu-toggle,
.mobile-menu-icon {
    display: none;
}

.mobile-nav {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--branco);
    padding: 20px;
    width: 100%;
}

.hero-content img {
    max-width: 400px;
    width: auto;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-in-out forwards;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: var(--branco);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.hero-buttons .btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Botão principal (ex.: Fale Conosco) */
.hero-buttons .btn-primary {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--branco);
  transition: all 0.3s ease;
}
.hero-buttons .btn-primary:hover {
  filter: brightness(1.2);
  color: var(--branco);
}

/* Botão secundário (ex.: Saiba Mais) */
.hero-buttons .btn-secondary {
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: var(--preto);
  transition: all 0.3s ease;
}
.hero-buttons .btn-secondary:hover {
  filter: brightness(1.2);
  color: var(--preto);
}

/* Animação para a logo */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Featured Properties */
.featured-properties {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    z-index: 2;
}

.property-badge.casa-em-condominio {
    background: var(--brown-accent);
}

.property-badge.apartamentos {
    background: var(--accent-color);
    color: var(--text-dark);
}

.property-content {
    padding: 25px;
}

.property-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.property-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.property-btn {
  display: inline-block;
  background: #002736;   /* cor de fundo */
  color: #fff;           /* cor do texto */
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none; /* remove sublinhado */
  transition: background 0.3s ease, color 0.3s ease;
}

.property-btn:hover {
  background: #fecc00;   /* amarelo no hover */
  color: #002736;
  text-decoration: none; /* garante que não volta o sublinhado */
}

/* View More Link */
.view-more {
    text-align: center;
}

.view-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.view-more-link:hover {
    color: var(--accent-color);
}

/* Blog News */
.blog-news {
    padding: 80px 0;
    background: white;
}

.blog-carousel {
    position: relative;
    overflow: hidden;
}

.blog-carousel input[type="radio"] {
    display: none;
}

.blog-slides {
    width: 100%;
    overflow: hidden;
}

.blog-slide {
    width: 100%;
    transition: transform 0.5s ease;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
}

.blog-content {
    padding: 25px;
}

.blog-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 14px;
}

.blog-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
}

.blog-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Blog Navigation */
.blog-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.blog-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
}

.blog-nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.footer-col span {
    color: var(--brown-accent);
}

.footer-col p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.footer-text {
    line-height: 1.6;
    margin-bottom: 25px !important;
    color: #FFF;
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #fff;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slide-content h2 {
        font-size: 2.8rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-icon {
        display: block;
        cursor: pointer;
        padding: 10px;
    }
    
    .mobile-menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 5px 0;
        transition: 0.3s;
    }
    
    .mobile-menu-toggle:checked ~ .mobile-menu-icon span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle:checked ~ .mobile-menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle:checked ~ .mobile-menu-icon span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .mobile-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:checked ~ .mobile-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 20px 0;
    }
    
    .mobile-nav ul li {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav ul li a {
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .mobile-nav ul li a:hover {
        background: var(--primary-color);
        color: white;
    }

    /* Hero Mobile */
    .slide-content h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .slide-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    /* Properties Grid Mobile */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Blog Mobile */
    .blog-cards {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
    }

    /* Top Bar Mobile */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-right {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-card {
        margin: 0 10px;
    }
    
    .search-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
}

/* Additional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* Auto Slider Rotation */
.slider input[type="radio"]#slide1:checked ~ input[type="radio"]#slide2 {
    animation: autoNext 4s infinite;
}

@keyframes autoNext {
    0%, 33% { opacity: 0; }
    34%, 66% { opacity: 1; }
    67%, 100% { opacity: 0; }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.property-image {
  position: relative;
}

.property-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9); /* opcional, para dar contraste */
  padding: 5px;
  border-radius: 6px;
}

.property-icon img {
  max-width: 40px;
  height: auto;
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
}

.pagination .page-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #002736;   /* azul escuro */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease;
}

.pagination .page-link:hover {
  background-color: #fecc00;   /* amarelo no hover */
  color: #002736;
}

.pagination .page-link.active {
  background-color: #fecc00;   /* amarelo ativo */
  color: #002736;
}

.pagination .page-link.prev,
.pagination .page-link.next {
  font-size: 18px; /* setas maiores */
  font-weight: bold;
}

/* Grade fixa em 3 colunas no desktop */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  justify-items: stretch;   /* impede centralizar um único card */
  justify-content: stretch; /* idem */
}

/* Cartão ocupa apenas 1 coluna sempre */
.properties-grid .property-card {
  grid-column: auto;        /* garante que não expanda para 3 colunas */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* FOTO do imóvel (apenas o IMG direto dentro de .property-image) */
.property-image {
  position: relative;
}
.property-image > img {
  width: 100%;
  height: 220px;         /* ajuste se quiser */
  object-fit: cover;
  display: block;
}

/* CONTÊINER do ícone sobre a foto */
.property-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 44px;           /* tamanho fixo da “bolinha” */
  height: 44px;
  border-radius: 10px;   /* ou 50% p/ ficar círculo */
  background: rgba(255,255,255,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 0;            /* zera padding pra não inflar */
}

/* IMG do ícone (garante que não herda width:100% de nenhum global) */
.property-icon img {
  width: 26px;
  height: 26px;
  max-width: none;
  object-fit: contain;
  display: block;
  pointer-events: none;  /* opcional: clique passa pela imagem */
}

.property-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-btn {
  margin-top: auto;         /* botão desce pro rodapé do card */
}

/* Mensagem de vazio continua ocupando a linha inteira */
.properties-grid > p {
  grid-column: 1 / -1;
  margin: 12px 0;
  text-align: center;
}

/* Responsivo */
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Ícone de localização (Font Awesome) */
.property-location i {
  color: #fecc00;      /* amarelo do layout */
  margin-right: 6px;
  font-size: 14px;     /* tamanho controlado */
  vertical-align: middle;
}

/* Botão VER MAIS */
.property-btn {
  display: inline-block;
  background: #002736;   /* azul escuro */
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  margin-top: 12px;
  align-self: flex-start; /* impede ocupar toda a largura do card */
}

.property-btn:hover {
  background: #fecc00;   /* amarelo no hover */
  color: #002736;
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none; /* remove sublinhado */
  color: inherit;        /* usa mesma cor do texto */
}

.contact-whatsapp img {
  display: block;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px; /* espaçamento entre UL, separador, lupa e logo */
}

.desktop-nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-separator {
  font-weight: bold;
  color: #ccc;         /* cor da barra */
  font-size: 18px;
}

.search-container {
  position: relative;
}

.search-icon {
  cursor: pointer;
  font-size: 18px;
  color: #002736;      /* cor da lupa */
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: #fecc00;      /* hover amarelo */
}

.nav-small-logo img {
  display: block;
}

/* ====== Desktop padrão ====== */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-separator { font-weight: 700; color: #cfd6da; font-size: 18px; line-height: 1; }

.search-icon { cursor: pointer; font-size: 18px; color: #002736; transition: color .2s; display: inline-flex; align-items: center; }
.search-icon:hover { color: #fecc00; }

.nav-small-logo img { display: block; }

/* por padrão, a lupa mobile fica oculta no desktop */
.search-icon-mobile { display: none; }

/* ====== Drawer de busca: garantir overlay no mobile ====== */
.search-drawer {
  position: fixed;           /* vira overlay */
  inset: 0;                  /* top/right/bottom/left: 0 */
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}
.search-toggle:checked ~ .search-drawer {
  opacity: 1;
  pointer-events: auto;
}
.search-content {
  max-width: 560px;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}
.close-search { position: absolute; top: 8px; right: 12px; cursor: pointer; font-size: 20px; }

/* ====== MOBILE (≤1024px) ====== */
@media (max-width: 1024px) {
  /* some a lista do desktop e os extras */
  .desktop-nav ul,
  .desktop-nav .nav-separator,
  .desktop-nav .nav-small-logo {
    display: none;
  }

  /* mantém a .search-container ativa (para a drawer),
     mas esconde o ÍCONE do desktop pra não duplicar com o mobile */
  .desktop-nav .search-icon { display: none; }

  /* mostra a lupa mobile ao lado do hambúrguer */
  .search-icon-mobile {
    display: inline-flex;
    font-size: 22px;
    margin-left: 12px;
    color: #002736;
  }
  .search-icon-mobile:hover { color: #fecc00; }

  /* se o header usar layout flex, garanta que o ícone mobile não quebre a linha */
  .main-header .header-content { display: flex; align-items: center; justify-content: space-between; }
}

/* ====== Ajuste fino para telas bem pequenas ====== */
@media (max-width: 640px) {
  .search-content { margin: 8vh 16px 0; }
}


/* Altura responsiva do hero */
@media (max-width: 768px) { .hero { height: 60vh; } }

/* Destaque do título no slide */
.slide-content h2 {
  font-size: clamp(2.2rem, 4vw, 3rem); /* maior que antes */
  font-weight: 700;
  color: var(--accent-color);          /* amarelo */
  text-shadow: 0 2px 6px rgba(0,0,0,.6); /* melhora contraste na foto */
}

.social-icons a {
  font-size: 22px;
  color: #ffffff;          /* cor inicial (azul escuro do site) */
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #FECC00;          /* amarelo no hover */
}

/* Tab Navigation (estilo igual ao menu desktop) */
.tab-nav {
  background: var(--surface-alt);
  padding: 24px 0;
}

.tab-nav .container {
  display: flex;
  justify-content: center;
  gap: 30px; /* espaço entre os links */
  flex-wrap: wrap;
}

.tab-link {
  position: relative;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px; /* igual ao menu */
  transition: all 0.3s ease;
}

/* Cor no hover/ativo */
.tab-link:hover,
.tab-link.active {
  color: var(--primary-color);
}

/* Sublinhado animado */
.tab-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.tab-link:hover::after,
.tab-link.active::after {
  width: 100%;
}

/* Separador | entre os links */
.tab-link:not(:last-child)::before {
  content: '|';
  position: absolute;
  right: -18px; /* ajusta a distância */
  color: #cfd6da; /* cor do separador */
  font-weight: 700;
  font-size: 16px;
}

/* About Section */
.about {
    padding-top: 30px;
    padding-bottom: 30px;
    background: var(--branco);
}

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

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
}

.about-text ul {
    list-style: none;
    margin: 32px 0;
}

.about-text li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-muted);
}

.about-text li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 600;
    font-size: 20px;
    margin-top: 2px;
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Diferenciais ===== */
.section.diferenciais {
  background: var(--surface-alt, #f5f7f8); /* cinza claro */
  padding: 22px 0;
}

/* Título central com traço */
.section.diferenciais .section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 36px;
}
.section.diferenciais .section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Grid */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* Card branco */
.diferenciais .diferencial-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.diferenciais .diferencial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

/* Ícone em bolha */
.diferenciais .diferencial-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 39, 54, 0.08); /* cinza suave */
  color: var(--primary-color);
  font-size: 30px;
}

/* Título e texto */
.diferenciais .diferencial-card h3 {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.diferenciais .diferencial-card p {
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- Carrossel --- */
.galeria { padding: 56px 0 32px; }

.gallery-carousel {
  border-radius: 16px;
  overflow: hidden;                 /* cantos arredondados cortam a imagem */
  box-shadow: 0 20px 45px rgba(0,0,0,.15);
  background: #fff;
}

.gallery-carousel .swiper-slide {
  height: 460px;                    /* ajuste a altura do carrossel */
}

.gallery-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* bolinhas (pagination) */
.gallery-carousel .swiper-pagination-bullets .swiper-pagination-bullet {
  background: rgba(255,255,255,.7);
  opacity: 1;
}
.gallery-carousel .swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/* setas */
.gallery-carousel .swiper-button-prev,
.gallery-carousel .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(2px);
  color: #fff;
}
.gallery-carousel .swiper-button-prev:after,
.gallery-carousel .swiper-button-next:after {
  font-size: 18px;
  font-weight: 700;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;                    /* inicia oculta */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.lightbox.is-open { display: flex; }

#lightbox-img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* ===== Localização / Mapa ===== */
.section.localizacao {
  background: var(--surface-alt, #f5f7f8); /* mesmo cinza da outra seção */
  padding: 72px 0;
}

/* título com traço central (mesmo padrão) */
.section.localizacao .section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 36px;
}
.section.localizacao .section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* grid 2 colunas */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

/* lista com ícones em “bolha” */
.loc-list {
  list-style: none;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.loc-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1.05rem;
}
.loc-list .icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-color);   /* amarelo */
  color: var(--primary-color);       /* ícone escuro */
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.loc-list .icon i { font-size: 16px; line-height: 1; }

/* card do mapa */
.loc-map.card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  overflow: hidden;
}

/* mantém proporção do iframe (16:9) */
.map-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.map-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Contato ===== */
.contact {
  padding: 56px 0;
  background: var(--cinza-1);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ===== Card genérico ===== */
.contact .card {
  background: var(--branco);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

/* ===== Títulos ===== */
.contact-form h3,
.contact-info h4 {
  color: var(--primary-color);
  margin-bottom: 18px;
  font-weight: 700;
}

/* ===== Inputs ===== */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--cinza-5);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--surface-alt);   /* cinza médio, mais visível */
  border-radius: 12px;
  background: #fff;
  color: var(--cinza-5);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

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

/* Foco */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
  outline: none;
}

/* Estado de erro opcional */
.form-group .is-invalid {
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229,57,53,.1);
}

/* ===== Botão ===== */
.btn.btn-primary.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--branco);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.btn.btn-primary.btn-contact:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.btn.btn-primary.btn-contact i { font-size: 1rem; }

/* ===== Lado direito ===== */
.contact-info img {
  max-width: 260px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.contact-info h4 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin-bottom: 12px;
}

.contact-item i,
.contact-item svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-color);
  color: #fff;
  flex: 0 0 40px;
  font-size: 16px;
}

.contact-item span {
  color: var(--cinza-5);
  line-height: 1.5;
}

/* Estilos do botão flutuante do WhatsApp */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    z-index: 1000;
    border: none;
    outline: none;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-whatsapp 2s infinite;
    overflow: hidden;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    animation: none; /* Para a animação ao passar o mouse */
}

/* Imagem do WhatsApp */
.whatsapp-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1); /* Torna o ícone branco */
    transition: transform 0.3s;
}

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

/* Efeito de piscar com cores do WhatsApp */
@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: #128C7E;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    width: 180px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    font-weight: 500;
}

.tooltip:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #128C7E transparent transparent;
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Versão alternativa com SVG incorporado */
.floating-btn.alternative {
    background: #25D366;
}

.whatsapp-svg {
    width: 40px;
    height: 40px;
    fill: white;
}

/* Para dispositivos móveis */
@media (max-width: 768px) {
    .floating-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }

    .tooltip {
        bottom: 75px;
        width: 160px;
        font-size: 13px;
    }
}