/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E RESETS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
}

body {
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 24pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    border-bottom: 2px solid #ffffff;
    display: inline-block;
    padding-bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

/* ==========================================================================
   2. CABEÇALHO E MENU DE NAVEGAÇÃO (HEADER)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #222222;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    position: relative;
    height: 50px;
}

.logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo h2 {
    font-size: 16pt;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo h2 span {
    font-weight: 300;
    color: #888888;
    margin-left: 5px;
}

.nav-menu {
    display: none; 
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #000000;
    border-bottom: 2px solid #ffffff;
    text-align: center;
    padding: 20px 0;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    display: block;
    padding: 15px 0;
    font-size: 12pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-menu a:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-menu {
    border: 2px solid #ffffff;
    margin: 10px auto;
    width: 80%;
    max-width: 200px;
}

.menu-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20pt;
    cursor: pointer;
}

/* ==========================================================================
   3. BANNER PRINCIPAL COM CARROSSEL AUTOMÁTICO
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    text-align: center;
    padding-top: 150px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    top: 25%;
}

.hero h1 {
    font-size: 28pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 12pt;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 16px 35px;
    font-size: 11pt;
    font-weight: 800;
    letter-spacing: 2px;
    border: 2px solid #ffffff;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ==========================================================================
   4. SEÇÃO DE SERVIÇOS E PREÇOS
   ========================================================================== */
.services {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.services-grid {
    display: block;
}

.service-card {
    background-color: #000000;
    border: 1px solid #222222;
    padding: 20px;
    margin-bottom: 10px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: #ffffff;
}

.service-card h3 {
    font-size: 16pt;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.service-card .price {
    font-size: 18pt;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.service-card .description {
    font-size: 10pt;
    color: #aaaaaa;
}

.btn-show-more {
    display: block;
    margin: 30px auto 0;
    background-color: transparent;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 10pt;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid #ffffff;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Estilos da Modal */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Permite rolar a modal se o conteúdo for maior que a tela */
}

.modal-content {
    background-color: #0a0a0a;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #333;
    width: 90%;
    max-width: 1000px; /* Aumentado para comportar 3 colunas */
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.modal .service-card {
    display: block; /* Garante que os cards fiquem um abaixo do outro na modal */
    width: 100%;
}

.modal-service-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #222;
    font-size: 12pt;
}

/* ==========================================================================
   5. SEÇÃO DO INSTAGRAM
   ========================================================================== */
.schedule-section {
    padding: 80px 0;
    background-color: #000000;
}

.schedule-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.db-status {
    max-width: 980px;
    margin: -20px auto 28px;
    color: #aaaaaa;
    font-size: 10pt;
    text-align: center;
}

.db-status.success {
    color: #ffffff;
}

.db-status.error {
    color: #ff8f8f;
}

.schedule-form,
.schedule-times {
    background-color: #0a0a0a;
    border: 1px solid #222222;
    padding: 28px;
}

.schedule-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label,
.schedule-times h3 {
    color: #ffffff;
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-row input,
.form-row select {
    width: 100%;
    min-height: 46px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 10px 12px;
    font: inherit;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #ffffff;
    background-color: #050505;
}

.form-row input[type="date"] {
    color-scheme: dark;
}

.service-picker {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #333333;
    background-color: #000000;
    padding: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid #222222;
    background-color: #050505;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover,
.service-option.selected {
    border-color: #ffffff;
    background-color: #ffffff;
    color: #000000;
}

.service-option input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    padding: 0;
    accent-color: #ffffff;
    cursor: pointer;
}

.service-option.selected input {
    accent-color: #000000;
}

.service-option-content {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.service-option-name {
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-option-meta {
    color: #aaaaaa;
    font-size: 9pt;
}

.service-option.selected .service-option-meta {
    color: #222222;
}

.form-help {
    color: #888888;
    font-size: 9pt;
    line-height: 1.4;
}

.schedule-submit {
    width: 100%;
    margin-top: 4px;
    cursor: pointer;
}

.schedule-message {
    min-height: 22px;
    color: #aaaaaa;
    font-size: 10pt;
    text-align: center;
}

.schedule-message.success {
    color: #ffffff;
}

.schedule-message.error {
    color: #ff8f8f;
}

.schedule-times h3 {
    margin-bottom: 18px;
    font-size: 14pt;
}

.schedule-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 10px;
}

.slot-button {
    min-height: 44px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slot-button:hover,
.slot-button.selected {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.schedule-empty {
    grid-column: 1 / -1;
    color: #aaaaaa;
    font-size: 10pt;
    line-height: 1.6;
}

.instagram-section {
    padding: 80px 0;
    background-color: #000000;
    text-align: center;
}

.section-subtitle {
    font-size: 11pt;
    color: #888888;
    margin-top: -30px;
    margin-bottom: 40px;
}

.section-subtitle a {
    color: #ffffff;
    text-decoration: underline;
}

.instagram-grid {
    display: block;
}

.insta-post {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    padding-top: 100%;
    background-color: #111111;
    border: 1px solid #222222;
}

.post-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24pt;
    color: #333333;
}

.insta-post:hover .post-placeholder {
    color: #ffffff;
}

/* ==========================================================================
   7. RODAPÉ (FOOTER)
   ========================================================================== */

.footer {
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    
}

.contact-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;

    text-align: left;
    position: relative;

    border: 2px solid transparent;
    transition: 0.3s;

}

.contact-box:hover {
    transform: translateY(-8px);

    border: 2px solid var(--primary);
    box-shadow: 0 10px 15px rgba(154, 206, 211, 0.25);
}

.footer-info,
.contact-address,
.footer-hours {
    text-align: left;
    padding: 0 10px;
}

.footer h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.footer p {
    color: #bdbdbd;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: .95rem;
}

.footer i {
    margin-right: 8px;
    color: #c7a46c;
}

.footer a {
    color: #bdbdbd;
    text-decoration: none;
    transition: .3s;
}

.footer a:hover {
    color: #ffffff;
}

.phone-link {
    font-weight: 600;
}

.contact-address iframe {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-top: 20px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: .85rem;
}

/* Tablet */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-info,
    .contact-address,
    .footer-hours {
        max-width: 500px;
        margin: auto;
    }

}

/* ==========================================================================
   8. BOTÃO FLUTUANTE DO WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50px;
    text-align: center;
    font-size: 25pt;
    line-height: 60px;
    z-index: 100;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   9. MEDIA QUERIES (Ajustes para ecrãs grandes / Computadores)
   ========================================================================== */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        background: none;
        border: none;
        padding: 0;
    }
    
    .nav-menu a {
        display: inline-block;
        padding: 0 15px;
        font-size: 10pt;
    }
    
    .nav-menu a:hover {
        background: none;
        color: #888888;
    }
    
    .btn-menu {
        margin: 0 0 0 15px;
        padding: 8px 20px !important;
    }
    
    .btn-menu:hover {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    .hero h1 {
        font-size: 42pt;
    }

    .services-grid {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 20px 0;
    }
    
    .service-card {
        display: table-cell;
        margin-bottom: 0;
        vertical-align: top;
    }

    .instagram-grid {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 15px 0;
    }
    
    .insta-post {
        display: table-cell;
        width: 25%;
        margin-bottom: 0;
    }

    /* Ajuste da Modal para 3 colunas em Desktop */
    .modal-services-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        text-align: left;
    }

    .modal .service-card {
        display: block; /* Sobrescreve o table-cell do grid principal */
        width: 100%;
        margin-bottom: 0;
        height: 100%;
    }

    .schedule-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
        align-items: start;
    }

    .schedule-form,
    .schedule-times {
        min-height: 100%;
    }
}
