/* Executive Nails - style.css (Versão Final com Responsividade Melhorada) */

:root {
    --rosa-salmao: #E09E8F;
    --siena-queimada: #C37D6D;
    --branco-neutro: #FFFFFF;
    --texto-corpo: #C37D6D;
    --fundo-suave: #FAF3F1;
    --font-titulo: 'Playfair Display', serif;
    --font-corpo: 'Poppins', sans-serif;
}

/* Reset e Base */
* { margin:0; padding:0; box-sizing:border-box; scroll-behavior:smooth; }
html { font-size: 100%; }
body {
  font-family:var(--font-corpo);
  color:var(--texto-corpo);
  background:var(--branco-neutro);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

/* Layout */
.container { max-width:1200px; margin:0 auto; padding:5rem 2rem; }

/* Tipografia */
h1,h2,h3 { font-family:var(--font-titulo); color:var(--siena-queimada); font-weight:700; }
h1 { font-size:clamp(2.2rem, 5vw, 3.5rem); line-height:1.1; }
h2 { font-size:clamp(1.8rem, 4vw, 2.5rem); margin-bottom:1rem; }
p { font-size:1rem; margin-bottom:1.5rem; }

/* Header */
header {
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 2rem; background:rgba(255,255,255,0.95); backdrop-filter:blur(10px);
  transition:all .3s ease;
}
header.scrolled { box-shadow:0 6px 24px rgba(195,125,109,0.09); padding:0.8rem 2rem; }
.logo img { height:60px; display:block; transition: transform .3s ease; }
.logo:hover img { transform: scale(1.05); }

/* Navegação */
nav ul { list-style:none; display:flex; gap:2rem; align-items:center; }
nav a { color:var(--texto-corpo); text-decoration:none; position:relative; padding-bottom:6px; font-weight:600; }
nav a::after { content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--rosa-salmao); transition:width .3s ease; }
nav a:hover::after, nav a.active::after { width:100%; }
.menu-toggle { display:none; background:none; border:none; font-size:1.5rem; color:var(--siena-queimada); cursor:pointer; }

/* Botão de Agendamento no Menu */
.cta-button-nav {
    background-color: var(--rosa-salmao);
    color: var(--branco-neutro);
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.cta-button-nav:hover {
    background-color: var(--siena-queimada);
    transform: translateY(-2px);
}
.cta-button-nav::after {
    display: none;
}

/* Hero Section */
.hero {
  height:95vh; min-height:680px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
  background-image:url('imagens/hero.webp');
  background-size:cover; background-position:center center;
}
.hero-overlay { position:absolute; inset:0; background:rgba(195,125,109,0.25); }
.home-content { z-index:2; color:var(--branco-neutro); text-align:center; max-width:820px; padding:0 1rem; }
.home-content h1 { font-size:clamp(2.5rem, 6vw, 4rem); text-shadow:0 8px 30px rgba(0,0,0,0.2); margin-bottom:1rem; }
.hero-ctas { display:flex; gap:1rem; justify-content:center; margin-top:1.5rem; }
.cta-button {
    display:inline-block; background:var(--rosa-salmao); color:var(--branco-neutro); padding:12px 32px;
    border-radius:50px; text-decoration:none; font-weight:600; transition:all .25s ease; border:2px solid transparent;
}
.cta-button:hover { transform:translateY(-4px); background:var(--siena-queimada); }
.cta-ghost { background:transparent; border-color:rgba(255,255,255,0.8); }
.cta-ghost:hover { background:rgba(255,255,255,0.1); }

/* Secções Gerais */
.sobre-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
}
.sobre-content img { width:100%; border-radius:10px; display:block; }
.page-header { background-color:var(--fundo-suave); text-align:center; padding:8rem 2rem 4rem 2rem; }
.page-header h1 { font-size:3rem; }

/* Serviços Grid */
.servicos-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:2rem; margin-top:2rem; }
.servico-card {
    background:var(--branco-neutro); border-radius:12px; overflow:hidden;
    box-shadow:0 6px 28px rgba(195,125,109,0.06); transition:transform .3s ease, box-shadow .3s ease;
}
.servico-card:hover { transform:translateY(-8px); box-shadow:0 12px 40px rgba(224,158,143,0.14); }
.servico-card img { 
    width:100%; height:220px; object-fit:cover;
    transition: transform 0.4s ease;
}
.servico-card:hover img {
    transform: scale(1.05);
}
.servico-card-content { padding:1.5rem; }

/* Boxes Horizontais (Usado em várias páginas) */
.container-horizontal-boxes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 10px;
}
.box {
    background-color: var(--branco-neutro);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(195, 125, 109, 0.08);
    padding: 1.5rem;
    text-align: center;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(195, 125, 109, 0.15);
}
.box.highlight {
    background-color: var(--rosa-salmao);
}
.box.highlight h3,
.box.highlight p {
    color: var(--branco-neutro);
}
.box img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--branco-neutro);
    box-shadow: 0 0 0 3px var(--rosa-salmao);
}
.box.highlight img {
    box-shadow: 0 0 0 3px var(--siena-queimada);
}
.box h3 {
    font-family: var(--font-titulo);
    font-size: 1.2rem;
    color: var(--siena-queimada);
    margin-bottom: 0.5rem;
}
.box p {
    font-size: 0.9rem;
    color: var(--texto-corpo);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Página de Serviços */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}
.intro-content img {
    width: 100%;
    border-radius: 12px;
}
.servico-categoria {
    margin-bottom: 4rem;
}
.servico-categoria:last-child {
    margin-bottom: 0;
}
.servico-categoria h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Grelha de Missão/Visão */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: center;
}
#missao-visao .container {
    padding-top: 15px;
    padding-bottom: 5rem;
}

/* Formulários */
.contactos-wrapper { display:grid; grid-template-columns:1fr 1fr; gap:3rem; }
form input, form textarea, form select {
    width:100%; padding:14px; border-radius:8px; border:1px solid #ddd;
    font-family:var(--font-corpo); font-size:16px; margin-bottom:1rem;
}
form button { width:100%; }
.form-message { padding:1rem; margin-top:1rem; border-radius:8px; display:none; }
.form-message.success { background-color:#e6f9f0; color:#1f8e58; }
.form-message.error { background-color:#fde8e8; color:#c73434; }

/* Slider de Depoimentos */
.testimonial-slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 850px;
  margin: 0 auto;
}
.testimonial-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
}
.testimonial-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--branco-neutro);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(122, 74, 65, 0.08);
    padding: 2.5rem;
    width: 100%;
}
.testimonial-avatar {
    background-color: var(--rosa-salmao);
    color: var(--branco-neutro);
    font-family: var(--font-titulo);
    font-size: 2rem;
    font-weight: 700;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-box {
    text-align: left;
}
.testimonial-box p {
    color: var(--siena-queimada);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-item h4 {
    font-weight: 600;
    font-family: var(--font-corpo);
    color: var(--siena-queimada);
    margin-bottom: 0.1rem;
    font-style: normal;
}
.author-location {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.3rem;
}
.stars {
    color: #f39c12;
}
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--branco-neutro);
    color: var(--rosa-salmao);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.slider-nav-btn:hover {
    background: var(--rosa-salmao);
    color: var(--branco-neutro);
    transform: translateY(-50%) scale(1.1);
}
.slider-nav-btn.prev { left: -15px; }
.slider-nav-btn.next { right: -15px; }
.slider-dots {
    text-align: center;
    margin-top: 1.5rem;
}
.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e0d0cb;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-dot.active {
    background-color: var(--siena-queimada);
}

/* Parceiros */
#parceiros h2 {
    margin-bottom: 2.5rem;
}
.parceiros-logos { display:flex; align-items:center; justify-content:space-around; gap:2rem; flex-wrap:wrap; filter:grayscale(100%); opacity:.7; transition:all .3s ease; }
.parceiros-logos:hover { filter:grayscale(0); opacity:1; }
.parceiros-logos img { height:45px; }

/* Página de Contactos */
.contactos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.localizacao-card {
    background: var(--branco-neutro);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(195, 125, 109, 0.08);
}
.localizacao-card h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.info-item i {
    font-size: 1.2rem;
    color: var(--rosa-salmao);
    width: 25px;
    text-align: center;
}
.info-item a {
    text-decoration: none;
    color: var(--texto-corpo);
    transition: color 0.3s ease;
}
.info-item a:hover {
    color: var(--siena-queimada);
}
.map-container { border-radius:10px; overflow:hidden; margin-top:1rem; }
.map-container iframe { width:100%; height:250px; border:0; }
.horario-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
}
.horario-card {
    background: var(--branco-neutro);
    padding: 2.5rem;
    border-radius: 12px;
}
.horario-linha {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0e9e7;
}
.horario-linha:last-of-type {
    border-bottom: none;
}
.horario-card .nota {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    opacity: 0.8;
}


/* Footer */
footer { background:var(--fundo-suave); padding:3rem 1rem; text-align:center; }
.social-links a { 
    color:var(--siena-queimada); margin:0 .8rem; font-size:1.4rem;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover { 
    color: var(--rosa-salmao);
    transform: translateY(-3px);
}
footer p { color: #bba29b; margin-top: 1.5rem; font-size: 0.9rem; }

/* Botão Voltar ao Topo */
#btn-topo {
    display:none; position:fixed; bottom:20px; right:20px; width:48px; height:48px;
    border-radius:50%; background:var(--rosa-salmao); color:var(--branco-neutro);
    border:none; cursor:pointer; font-size:1.2rem;
    box-shadow:0 8px 24px rgba(0,0,0,0.15); transition:all .25s ease;
}
#btn-topo:hover { transform:translateY(-4px); background:var(--siena-queimada); }

/* Animações */
[data-animate] { opacity:0; transform:translateY(30px); transition:all .8s cubic-bezier(.2,.9,.2,1); }
[data-animate].visible { opacity:1; transform:translateY(0); }


/* =======================================
   MEDIA QUERIES - MELHORIAS DE RESPONSIVIDADE
   ======================================= */

/* TABLETS E DISPOSITIVOS MENORES (ATÉ 900PX) */
@media (max-width: 900px) {
    .container { padding:4rem 1.5rem; } /* Espaçamento geral reduzido */

    h1 { font-size:2.8rem; } /* Ajuste de título */
    h2 { font-size:2.2rem; } /* Ajuste de subtítulo */
    
    header { padding:1rem 1.5rem; }
    nav ul { display:none; }
    .menu-toggle { display:block; }
    nav ul.nav-active {
        display:flex; position:fixed; top:0; right:0; height:100vh;
        width:85%; max-width:320px; background:var(--branco-neutro);
        flex-direction:column; gap:0; justify-content:center; align-items:center;
        box-shadow:-10px 0 40px rgba(195,125,109,0.1);
    }
    nav ul.nav-active a { padding:1rem 2rem; font-size:1.2rem; }
    .cta-button-nav {
        background-color: transparent;
        color: var(--texto-corpo);
        padding: 1rem 2rem;
        border-radius: 0;
    }
    .cta-button-nav:hover {
        background-color: var(--fundo-suave);
        transform: none;
    }

    .sobre-content, .contactos-wrapper, .intro-content, .contactos-grid, .horario-form-grid { 
        grid-template-columns:1fr; text-align:center; 
    }
    .sobre-content img, .intro-content img { margin-top:2rem; order:-1; }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    /* As boxes agora ficam 2 a 2 em tablets */
    .container-horizontal-boxes {
        gap: 1.5rem;
    }
    .box {
        width: calc(50% - 1rem); /* Cálculo para 2 colunas */
    }

    .testimonial-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .testimonial-box { text-align: center; }
    .slider-nav-btn { display: none; }
}


/* TELEMÓVEIS (ATÉ 600PX) */
@media (max-width: 600px) {
    .container { padding: 3.5rem 1.2rem; } /* Espaçamento ainda mais reduzido */
    h1 { font-size:2.5rem; }
    h2 { font-size:2rem; }
    
    .hero { min-height:80vh; }
    .hero-ctas { flex-direction:column; gap:0.8rem; }
    
    /* As boxes agora ficam 1 por linha */
    .box {
        width: 100%; 
        max-width: 350px; /* Limite para não ficar demasiado largo em telemóveis grandes */
    }

    /* =======================================
   ESTILOS PARA A PÁGINA DE DEPOIMENTOS (GRID)
   ======================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--branco-neutro);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(195, 125, 109, 0.08);
    display: flex;
    flex-direction: column;
}

.testimonial-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card .author-info h4 {
    font-family: var(--font-corpo);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--siena-queimada);
    margin: 0;
}

.testimonial-card .author-info .author-location {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial-card p {
    font-style: italic;
    color: var(--texto-corpo);
    line-height: 1.7;
    margin-bottom: 0;
    flex-grow: 1;
}
/* =======================================
   SECÇÃO DE DESTAQUE DA FRANCHISE
   ======================================= */

#franchise-destaque {
    background-color: var(--fundo-suave);
}

#franchise-destaque .container {
    padding: 2.5rem 2rem;
    text-align: center;
}

#franchise-destaque p {
    font-family: var(--font-titulo);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--siena-queimada);
    margin: 0;
    line-height: 1.4;
}

#franchise-destaque p strong {
    font-weight: 700;
}

/* =======================================
   SECÇÃO DE FILOSOFIA (SOBRE-NÓS)
   ======================================= */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
}

.philosophy-item i {
    font-size: 2.5rem;
    color: var(--rosa-salmao);
    margin-bottom: 1.5rem;
}

.philosophy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.philosophy-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 500px;
        margin: 0 auto;
    }
}
}

/* =======================================
   ESTILOS DO SELETOR DE IDIOMAS
   ======================================= */

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem; /* Espaço entre a navegação e o seletor */
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    opacity: 1;
    background-color: var(--fundo-suave);
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--rosa-salmao);
    box-shadow: 0 0 10px rgba(224,158,143,0.3);
}

.lang-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-btn span {
    font-family: var(--font-corpo);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--texto-corpo);
}

/* Responsividade para o Seletor de Idiomas */
@media (max-width: 900px) {
    .language-selector {
        margin-left: 0;
        position: absolute;
        top: 100%; /* Coloca abaixo do header no mobile */
        right: 1.5rem;
        background: var(--branco-neutro);
        padding: 0.5rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        display: none; /* Escondido por defeito */
    }
    
    nav ul.nav-active + .language-selector {
        display: flex; /* Mostra quando o menu está ativo */
    }

    .menu-toggle {
        margin-left: 1rem; /* Adiciona espaço para o botão de menu não ficar colado */
    }
}

@media (max-width: 600px) {
    .lang-btn span {
        display: none; /* Esconde o "PT", "EN" em telemóveis, deixa só a bandeira */
    }
    .lang-btn {
        padding: 0.4rem;
    }
}