/* css/index.css */

/* --- Hero Section (ATUALIZADO PARA GLIDE.JS) --- */
.hero {
    padding: 0;
    height: 60vh;
    position: relative;
    color: white;
    background-color: #333; /* Cor de fundo para o caso de não haver slides */
}

.glide__slide {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.glide__slides {
    height: 60vh;
  
}

.glide__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
}

/* Estilização customizada para as setas e bolinhas do Glide.js */
.glide__arrow {
    color: white;
    border: 2px solid white;
    box-shadow: none;
}
.glide__arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.glide__arrow--left { left: 2em; }
.glide__arrow--right { right: 2em; }

.glide__bullet {
    background-color: rgba(255, 255, 255, 0.5);
}
.glide__bullet--active {
    background-color: white;
}

/* Oculta as bolinhas de navegação */
.glide__bullets {
    display: none;
}


/* --- Grid de Serviços --- */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.servico-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

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

.servico-card {
    background: var(--cor-surface);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    box-shadow: var(--sombra-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.servico-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
}

.servico-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servico-card-image-wrapper h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px 20px 15px;
    color: white;
    font-size: 1.3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.servico-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.servico-card-content p {
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-secondary {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-top: 8px;
    /*align-self: flex-start;*/
}


/* --- GALERIA SHOWCASE --- */
.galeria-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.gallery-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto auto;
    gap: 10px 40px;
    background-color: var(--cor-surface);
    border: 1px solid var(--cor-borda);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--sombra-card);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.showcase-description {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cor-borda);
    margin-bottom: 0;
}

.showcase-description h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
}

.showcase-description p {
    margin: 0;
    color: #6c757d;
    font-style: italic;
}

.showcase-side-link {
    grid-row: 2 / 3;
    text-decoration: none;
    color: inherit;
    display: contents;
    cursor: pointer;
}

.showcase-side {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.showcase-side:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.showcase-main {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.showcase-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--cor-primaria);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: bold;
}

.showcase-thumbs {
    grid-column: 4 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showcase-thumbs img {
    width: 100%;
    height: calc((300px - 20px) / 3);
    object-fit: cover;
    border-radius: 4px;
}

/* --- Contato --- */
#contato-info-wrapper {
    text-align: center;
}

.contato-info p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.contato-info i {
    color: var(--cor-primaria);
    margin-right: 10px;
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .showcase-side {
        grid-template-columns: 1fr 60px;
    }
    .showcase-main img { height: 220px; }
    .showcase-thumbs img { height: calc((220px - 20px) / 3); }
}

@media (max-width: 768px) {
    .gallery-showcase-item {
        grid-template-columns: 1fr;
    }
    .showcase-side-link {
        grid-row: auto;
    }
}
