/* ==========================================================================
   ESTILOS — DEIXA COMIGO (v2: Casa Inteligente, tema escuro futurista)
   --------------------------------------------------------------------------
   FÁBIO: a parte mais útil para ti são as CORES, logo aqui em baixo (:root).
   Muda num sítio e muda em todo o site. O resto podes ignorar.
   ========================================================================== */

/* ====== 1. CORES E DEFINIÇÕES ========================================== */
:root {
  --bg: #0B0E14;            /* fundo principal (quase preto) */
  --bg-painel: #0F131C;     /* fundo de algumas secções */
  --vidro: rgba(255, 255, 255, 0.04);   /* cartões "de vidro" */
  --vidro-forte: rgba(255, 255, 255, 0.07);
  --borda: rgba(255, 255, 255, 0.09);

  --texto: #EAEEF6;         /* texto principal (claro) */
  --texto-suave: #98A2B3;   /* texto secundário */

  --laranja: #FF6B35;       /* cor da marca (botões, destaques) */
  --laranja-claro: #FF9347;
  --violeta: #8B5CF6;       /* cor de apoio (gradientes, brilhos) */
  --rosa: #FF3D81;

  --raio: 18px;             /* cantos arredondados */
  --largura: 1120px;        /* largura máxima do conteúdo */
  --glow-laranja: 0 12px 40px rgba(255, 107, 53, 0.35);
}

/* ====== 2. BASE ======================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--texto);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-texto { font-family: "Sora", "Inter", sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 22px; }
.container-estreito { max-width: 640px; }

/* ====== 3. BRILHOS DE FUNDO (decorativos, animados) ==================== */
.fundo-brilhos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.brilho {
  position: absolute;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
}
.brilho-laranja { background: var(--laranja); top: -12%; left: -10%; animation: flutua-a 20s ease-in-out infinite; }
.brilho-violeta { background: var(--violeta); bottom: -18%; right: -12%; animation: flutua-b 26s ease-in-out infinite; }

@keyframes flutua-a { 50% { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes flutua-b { 50% { transform: translate(-6vw, -4vh) scale(1.15); } }

/* ====== 4. BOTÕES ====================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-principal {
  background: linear-gradient(135deg, var(--laranja), var(--laranja-claro));
  color: #fff; box-shadow: var(--glow-laranja);
}
.btn-principal:hover { box-shadow: 0 16px 50px rgba(255, 107, 53, 0.5); transform: translateY(-2px); }

.btn-fantasma {
  background: var(--vidro); color: var(--texto);
  border-color: var(--borda); backdrop-filter: blur(8px);
}
.btn-fantasma:hover { border-color: var(--laranja); color: var(--laranja-claro); }

.btn-grande { padding: 16px 30px; font-size: 1.05rem; }
.btn-pequeno { padding: 10px 18px; font-size: 0.9rem; }
.btn-bloco { width: 100%; }

/* ====== 5. CABEÇALHO =================================================== */
.cabecalho {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borda);
}
.cabecalho-conteudo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-ponto {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--laranja); box-shadow: 0 0 14px var(--laranja);
}
.logo-texto { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.3px; }
.logo-texto strong { color: var(--laranja); }

/* Logótipo "VOLUX" com o "O" = lanterna do farol (SVG inline) */
.wordmark { display: inline-flex; align-items: center; gap: .04em; letter-spacing: .01em; }
.wordmark .o { width: 1.05em; height: 1.05em; }

.menu { display: flex; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.menu a { color: var(--texto-suave); transition: color .2s ease; }
.menu a:hover { color: var(--texto); }

/* ações à direita do cabeçalho: bandeirinha + botão "Pedir orçamento" */
.cabecalho-acoes { display: flex; align-items: center; gap: 12px; }

/* ====== 5b. BANDEIRINHA DE IDIOMA (PT / EN) ========================== */
.lang-switch {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--vidro); border: 1px solid var(--borda); border-radius: 999px;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.8rem;
  color: var(--texto-suave); background: transparent; border: 0; border-radius: 999px;
  padding: 6px 11px; cursor: pointer; line-height: 1;
  transition: color .2s ease, background .25s ease, box-shadow .25s ease;
}
.lang-btn .flag { font-size: 1rem; line-height: 1; }
.lang-btn:hover { color: var(--texto); }
.lang-btn[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--laranja), var(--laranja-claro));
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.lang-btn[aria-pressed="true"]:hover { color: #fff; }

/* ====== 6. HERO ======================================================= */
.hero { padding: 90px 0 70px; text-align: center; }
.hero-conteudo { max-width: 760px; margin: 0 auto; }

.etiqueta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--vidro); border: 1px solid var(--borda);
  color: var(--texto-suave); font-size: 0.85rem; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.ponto-pisca {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--laranja); box-shadow: 0 0 10px var(--laranja);
  animation: pisca 1.8s ease-in-out infinite;
}
@keyframes pisca { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-titulo { font-size: clamp(2.3rem, 6.5vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; }
.gradiente {
  background: linear-gradient(100deg, var(--laranja), var(--rosa) 50%, var(--violeta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitulo { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--texto-suave); max-width: 580px; margin: 22px auto 34px; }

.hero-botoes { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-confianca {
  list-style: none; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 38px; color: var(--texto-suave); font-size: 0.92rem; font-weight: 500;
}
.hero-confianca li::before { content: "✓"; color: var(--laranja); font-weight: 800; margin-right: 8px; }

/* ====== 6b. IMAGEM DE DESTAQUE (showcase) ============================ */
.showcase { padding: 24px 0 0; }
.showcase-img {
  position: relative; max-width: 960px; margin: 0 auto;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--borda);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.showcase-img img { width: 100%; height: auto; display: block; }
/* leve sombreado nos topos para a foto se fundir no tema escuro */
.showcase-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.35) 0%, rgba(11, 14, 20, 0) 22%, rgba(11, 14, 20, 0) 68%, rgba(11, 14, 20, 0.6) 100%);
}

/* ====== 6c. DESTAQUE SPLIT (imagem + texto) ========================= */
.destaque-split { padding: 80px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--borda); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.split-img img { width: 100%; height: auto; display: block; }
.split-texto .seccao-titulo { text-align: left; }
.split-texto p { color: var(--texto-suave); font-size: 1.05rem; margin: 14px 0 24px; }

/* ====== 7. SECÇÕES (comum) ============================================ */
.seccao { padding: 80px 0; position: relative; }
.seccao-painel { background: var(--bg-painel); border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.seccao-cabecalho { text-align: center; max-width: 620px; margin: 0 auto 48px; }

.seccao-tag {
  display: inline-block; font-family: "Sora", sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--laranja);
  background: rgba(255, 107, 53, 0.1); border: 1px solid rgba(255, 107, 53, 0.25);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.seccao-titulo { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.8px; }
.seccao-intro { color: var(--texto-suave); font-size: 1.08rem; margin-top: 12px; }

/* ====== 8. CARTÕES DE SERVIÇO (vidro) ================================= */
.cards-grelha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 28px; backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 53, 0.45); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.card-icone {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; margin-bottom: 18px; color: var(--laranja);
  background: rgba(255, 107, 53, 0.12); border: 1px solid rgba(255, 107, 53, 0.25);
}
.card-titulo { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.card-texto { color: var(--texto-suave); font-size: 0.95rem; margin-bottom: 16px; }

.lista-check { list-style: none; display: grid; gap: 9px; }
.lista-check li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--texto); }
.lista-check li::before { content: "✓"; position: absolute; left: 0; color: var(--laranja); font-weight: 800; }

/* ====== 9. O QUE É POSSÍVEL (mini-funcionalidades) ==================== */
.features-grelha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio); padding: 26px;
  transition: transform .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.45); }
.feature-bolha {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem; margin-bottom: 14px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25);
}
.feature h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--texto-suave); font-size: 0.93rem; }

/* ====== 10. COMO FUNCIONA (timeline ligada, estilo futurista) ======== */
.timeline { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
/* a linha em gradiente que liga os nós (horizontal, no computador) */
.timeline::before {
  content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--laranja), var(--violeta)); opacity: 0.55;
}
.t-passo { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* o "nó" (círculo com número) — tapa a linha por baixo e brilha */
.t-no {
  position: relative; z-index: 1; width: 56px; height: 56px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--laranja);
  background: var(--bg); border: 2px solid var(--laranja); border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 107, 53, 0.45);
}
.t-card {
  background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio); padding: 22px;
  transition: transform .3s ease, border-color .3s ease;
}
.t-passo:hover .t-card { transform: translateY(-5px); border-color: rgba(255, 107, 53, 0.45); }
.t-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.t-card p { color: var(--texto-suave); font-size: 0.93rem; }
/* entram em cascata ao deslizar */
.timeline .t-passo:nth-child(2) { transition-delay: .1s; }
.timeline .t-passo:nth-child(3) { transition-delay: .2s; }
.timeline .t-passo:nth-child(4) { transition-delay: .3s; }

/* ====== 11. VANTAGENS ================================================= */
.vantagens-grelha { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.vantagem { background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio); padding: 26px; }
.vantagem h3 { font-size: 1.1rem; margin-bottom: 8px; }
.vantagem h3::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--laranja), var(--rosa)); margin-bottom: 12px; }
.vantagem p { color: var(--texto-suave); font-size: 0.95rem; }

/* ====== 11b. SECÇÃO ALOJAMENTO LOCAL ================================= */
/* link destacado no menu (cor laranja para chamar a atenção do nicho) */
.menu-al { color: var(--laranja-claro); font-weight: 700; }
.menu-al:hover { color: var(--laranja); }

/* espaçamento uniforme entre os blocos internos da secção */
#alojamento-local .seccao-cabecalho { margin-bottom: 10px; }
#alojamento-local .split-grid,
#alojamento-local .cards-al { margin-top: 56px; }

/* 4 cartões de soluções numa linha (em ecrã grande); o ID garante prioridade */
#alojamento-local .cards-al { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { #alojamento-local .cards-al { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { #alojamento-local .cards-al { grid-template-columns: 1fr; } }

/* nota honesta no fim da secção */
.al-nota { text-align: center; color: var(--texto-suave); font-size: 0.9rem; max-width: 660px; margin: 40px auto 0; }

/* respiro entre a lista e o botão dentro dos blocos da secção AL (botão não cola ao texto) */
#alojamento-local .split-texto .lista-check { margin-bottom: 28px; }

/* cartão-resumo do AL na página inicial (liga à página dedicada) */
.al-resumo { text-align: center; max-width: 720px; margin: 0 auto; }
.al-resumo .seccao-intro { max-width: 620px; margin-left: auto; margin-right: auto; }
.al-resumo-btn { margin-top: 26px; }

/* ====== 12. ZONA ===================================================== */
.seccao-zona { text-align: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.chips li { background: var(--vidro); border: 1px solid var(--borda); border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.92rem; }

/* ====== 13. FORMULÁRIO =============================================== */
.formulario {
  background: var(--vidro-forte); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 32px; display: grid; gap: 18px; backdrop-filter: blur(10px); margin-top: 8px;
}
.campo { display: grid; gap: 7px; }
.campo label { font-weight: 600; font-size: 0.92rem; }
.opcional { color: var(--texto-suave); font-weight: 400; }
.campo input, .campo select, .campo textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--borda); color: var(--texto);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: #5d6678; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}
.campo select option { background: var(--bg-painel); color: var(--texto); }
.campo textarea { resize: vertical; }
.form-sucesso {
  background: rgba(46, 204, 113, 0.12); color: #4ade80; border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 12px; padding: 14px; font-weight: 600; text-align: center;
}

/* ====== 14. CONTACTOS =============================================== */
.contactos-grelha { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contacto-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px;
  background: var(--vidro); border: 1px solid var(--borda); border-radius: var(--raio);
  transition: transform .2s ease, border-color .2s ease;
}
a.contacto-card:hover { transform: translateY(-4px); border-color: var(--laranja); }
.contacto-rotulo { color: var(--texto-suave); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.contacto-valor { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; }

/* ====== 15. RODAPÉ ================================================== */
.rodape { border-top: 1px solid var(--borda); padding: 40px 0; }
.rodape-conteudo { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rodape-sub { color: var(--texto-suave); font-size: 0.92rem; margin-top: 6px; }
.rodape-legal { color: var(--texto-suave); font-size: 0.88rem; }

/* ====== 15b. BOTÃO FLUTUANTE DE WHATSAPP ============================ */
.whatsapp-flutuante {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  display: flex; align-items: center; gap: 0;
  background: #25D366; color: #fff;
  padding: 15px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, gap .25s ease, padding .25s ease;
}
.whatsapp-flutuante:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37, 211, 102, 0.6); gap: 10px; padding-right: 22px; }
.whatsapp-label {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s ease, opacity .25s ease;
}
.whatsapp-flutuante:hover .whatsapp-label { max-width: 170px; opacity: 1; }
/* halo a pulsar, para chamar a atenção */
.whatsapp-flutuante::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px; background: #25D366;
  z-index: -1; animation: zap-pulse 2.4s ease-out infinite;
}
@keyframes zap-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }

/* ====== 16. ANIMAÇÃO "APARECER AO DESLIZAR" ======================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
/* pequeno desfasamento nos cartões em grelha, para entrarem em "cascata" */
.cards-grelha .card:nth-child(2), .features-grelha .feature:nth-child(2) { transition-delay: .08s; }
.cards-grelha .card:nth-child(3), .features-grelha .feature:nth-child(3) { transition-delay: .16s; }
.cards-grelha .card:nth-child(4) { transition-delay: .24s; }
.features-grelha .feature:nth-child(4) { transition-delay: .08s; }
.features-grelha .feature:nth-child(5) { transition-delay: .16s; }
.features-grelha .feature:nth-child(6) { transition-delay: .24s; }

/* ====== 17. RESPONSIVO (ecrãs pequenos) ============================ */
@media (max-width: 900px) {
  .cards-grelha { grid-template-columns: repeat(2, 1fr); }
  .features-grelha { grid-template-columns: repeat(2, 1fr); }
  .vantagens-grelha { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* timeline passa a vertical no telemóvel/tablet pequeno */
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { display: none; }
  .t-passo { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; padding-bottom: 28px; }
  .t-passo:last-child { padding-bottom: 0; }
  .t-no { margin-bottom: 0; flex-shrink: 0; }
  /* conector vertical entre os nós */
  .t-passo:not(:last-child)::after {
    content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--laranja), var(--violeta)); opacity: 0.5;
  }
}
@media (max-width: 620px) {
  .menu { display: none; }                 /* esconde links no telemóvel; fica o botão "Pedir orçamento" */
  .cards-grelha, .features-grelha { grid-template-columns: 1fr; }
  .seccao { padding: 60px 0; }
  .hero { padding: 64px 0 50px; }
  .hero-botoes .btn { width: 100%; }
}

/* ====== 18. ACESSIBILIDADE: respeitar quem prefere menos movimento == */
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
