/* =========================================
   Watermark (Home specific parts) — PER SECTION
   ========================================= */

/* base: o ::before usa variáveis que cada secção define */
.hero-section::before,
.section-about::before,
.testimonials-grid::before {
    content: "";
    position: absolute;
    inset: var(--wm-inset, -80px);
    background-image: var(--wm-img, url("img/floral-watermark.png"));
    background-repeat: no-repeat;
    background-position: var(--wm-pos, left center);
    background-size: var(--wm-size, 900px auto);
    opacity: var(--wm-opacity, 0.18);
    /* começa mais forte */
    pointer-events: none;
    z-index: 0;
}

/* garante conteúdo acima do watermark */
.hero-section,
.section-about,
.testimonials-grid {
    position: relative;
}

.hero-section>*,
.section-about>*,
.testimonials-grid>* {
    position: relative;
    z-index: 1;
}

/* ----- HERO watermark (maior e mais forte) ----- */
.hero-section {
    --wm-img: url("img/floral-watermark.png");
    /* depois trocas por outro se quiser */
    --wm-size: 1200px auto;
    --wm-opacity: 0.90;
    --wm-pos: left center;
    --wm-inset: -140px;
}

/* ----- ABOUT watermark (troca o ficheiro quando tiveres) ----- */
.section-about {
    --wm-img: url("img/floral-watermark-about.PNG");
    --wm-size: 900px auto;
    --wm-opacity: 0.16;
    --wm-pos: left center;
    --wm-inset: -110px;
}

/* ----- TESTIMONIALS watermark (troca o ficheiro quando tiveres) ----- */
.testimonials-grid {
    --wm-img: url("img/floral-watermark-testimonials.png");
    --wm-size: 500px auto;
    --wm-opacity: 0.14;
    --wm-pos: left center;
    --wm-inset: -110px;
}

/* garante conteúdo acima do watermark */
.hero-section,
.section-about,
.testimonials-grid {
    position: relative;
}

.hero-section>*,
.section-about>*,
.testimonials-grid>* {
    position: relative;
    z-index: 1;
}

/* =========================================
   Hero
   ========================================= */
.hero-section {
    position: relative;
    padding: 140px 0 100px;
    background-color: var(--white);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob {
    position: absolute;
    inset: -8% -12% -18% -12%;
    /* corta mais em baixo */
    background: var(--nude);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    opacity: 0.65;
}

/* AQUI: remove “caixa” — a imagem fica livre */
.hero-img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    /* remove sombra do wrapper */
}

/* a sombra fica só na foto, leve */
.hero-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
    transform: translateY(14px);
}

/* =========================================
   About
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 22px;
}

/* logo2 ao lado do título */
.about-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.about-title-row .section-title {
    margin-bottom: 0;
}

.about-logo2 {
    height: 46px;
    width: auto;
    opacity: 0.95;
}

.hours-info {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: var(--nude);
    border-radius: 12px;
    align-items: center;
}

.about-image {
    height: 360px;
    /* menos alto (testa 320–420) */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* corta para ficar mais “larga” */
    object-position: center;
    /* podes mudar p/ top */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
}

.about-title-icon {
    width: 80px;
    /* 32–48 */
    height: auto;
    margin-top: -8px;
    /* ajusta: -4 a -14 */
    opacity: .95;
    flex: 0 0 auto;
}

/* =========================================
   Services
   ========================================= */
/* Slider Wrapper */
.services-slider-wrapper {
    position: relative;
    margin-top: 50px;
    margin-left: 20px;
    margin-right: 20px;
}

.services-slider-container {
    overflow: hidden;
    /* Garante limpeza visual nas bordas */
}

.services-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    /* Padrão: 1 card por "ecrã" (Mobile) */
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 30px;
    scrollbar-width: none;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

/* Responsividade Matemática: Garante N cards inteiros sem cortes */
@media (min-width: 600px) {
    .services-grid {
        grid-auto-columns: calc((100% - 30px) / 2);
        /* 2 cards */
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-auto-columns: calc((100% - 60px) / 3);
        /* 3 cards */
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-auto-columns: calc((100% - 90px) / 4);
        /* 4 cards */
    }
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    scroll-snap-align: start;
    width: 100%;
    /* Ocupa a coluna da grelha */
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Slider Arrows (Desktop only) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: var(--gold);
    display: none;
    /* hidden on mobile/touch */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: -22px;
}

.slider-arrow.next {
    right: -22px;
}

@media (min-width: 1400px) {
    .services-slider-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .slider-arrow.prev {
        left: -60px;
    }

    .slider-arrow.next {
        right: -60px;
    }
}

@media (min-width: 1024px) {
    .slider-arrow {
        display: flex;
    }
}

.courses-title {
    color: var(--gold);
}

/* Dots de Navegação (Mobile only) */
.courses-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.courses-dots .dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.courses-dots .dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 10px;
}

@media (max-width: 1023px) {
    .courses-dots {
        display: flex;
    }

    .services-slider-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .services-grid {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

.service-image {
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 25px;
}

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

.service-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
}

.btn-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.testimonial-slider {
    position: relative;
    padding: 40px;
    background: var(--nude);
    border-radius: var(--radius-lg);
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quote-icon {
    font-size: 60px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-name {
    font-weight: 700;
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--gold);
    width: 30px;
    border-radius: 10px;
}

/* =========================================
   CTA Banner
   ========================================= */
.cta-banner {
    background: var(--nude);
    color: var(--text);
    padding: 80px 0;
    text-align: center;
}

@media (max-width: 992px) {

    .hero-container,
    .about-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle,
    .hours-info,
    .slider-dots {
        margin: 0 auto 40px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px 0;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image-wrapper {
        width: 100%;
        margin-top: 30px;
    }

    .hero-blob {
        width: 100%;
        height: 100%;
        opacity: .55;
    }
}


.hero-blob {
    width: 110%;
    height: 110%;
    max-width: 100vw;
}

/* CTA banner com imagem esticada (igual exemplo) */
.cta-banner {
    background: url("img/cta-banner.PNG") center/cover no-repeat;
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    /* altura do banner */
}

/* overlay para dar contraste no texto */
.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    /* ajusta 0.15–0.35 */
    z-index: 0;
}

/* garante conteúdo acima do overlay */
.cta-banner .container {
    position: relative;
    z-index: 1;
}

/* texto branco por cima */
.cta-banner h2 {
    color: #fff;
    margin-bottom: 18px;
}

/* garante que o X/hambúrguer fica SEMPRE por cima do painel */
@media (max-width: 900px) {
    .menu-toggle {
        position: fixed !important;
        top: 22px;
        right: 18px;
        z-index: 10050 !important;
    }

    .nav-mobile {
        z-index: 10040 !important;
        /* abaixo do botão */
    }
}

/* MOBILE ONLY: ajustar watermarks (sem mexer no About) */
@media (max-width: 900px) {

    /* HERO: diminuir o floral-watermark no mobile */
    .hero-section {
        --wm-size: 680px auto;
        /* ↓ menor (testa 600–750) */
        --wm-inset: -60px;
        /* menos “espalhado” */
        --wm-opacity: 0.30;
        /* opcional: mais suave */
        --wm-pos: left top;
        /* opcional: mais “cantinho” */
    }

    /* TESTIMONIALS: corrigir posição (sem mudar o tamanho) */
    .testimonials-grid {
        --wm-pos: center top;
        /* atrás do título */
        /* se precisar subir mais: center -80px */
    }
}

.about-text {
    max-width: 760px;
}

.about-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9 rem;
    line-height: 1.95;
    color: #3a342f;
    margin-bottom: 24px;
    font-weight: 300;
}

.courses-title {
    text-align: center;
    width: 100%;
    display: block;
}