/* ============================================
   Atelier Amarte — Website em desenvolvimento
   Identidade: rosa principal, formas orgânicas
   ============================================ */

:root {
  --rosa: #e71d68;
  --verde: #39aa35;
  --amarelo: #fdc432;
  --azul: #54a9df;
  --preto: #2b2b2b;
  --branco: #ffffff;

  --font-texto: "Montserrat", sans-serif;
  --font-titulo: "Cormorant Garamond", serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

/* ============================================
   Reset e base
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--branco);
  color: var(--preto);
  font-family: var(--font-texto);
  font-weight: 400;
  line-height: 1.6;
  overflow: hidden;
  overflow-x: hidden;
}

/* ============================================
   Formas orgânicas — fundo
   ============================================ */

.organic-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  animation: blob-float 20s ease-in-out infinite;
  will-change: transform, border-radius;
}

.blob--1 {
  width: min(480px, 90vw);
  height: min(480px, 90vw);
  background: var(--rosa);
  top: -12%;
  right: -18%;
  animation: blob-float 24s ease-in-out infinite;
  animation-delay: 0s;
  opacity: 0.16;
  border-radius: 62% 38% 48% 52% / 45% 58% 42% 55%;
}

.blob--2 {
  width: min(420px, 82vw);
  height: min(420px, 82vw);
  background: var(--verde);
  bottom: -8%;
  left: -12%;
  animation: blob-float-alt 26s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.14;
  border-radius: 38% 62% 58% 42% / 58% 42% 58% 42%;
}

.blob--3 {
  width: min(320px, 62vw);
  height: min(320px, 62vw);
  background: var(--amarelo);
  top: 30%;
  left: 2%;
  animation: blob-float 22s ease-in-out infinite reverse;
  animation-delay: -8s;
  opacity: 0.18;
  border-radius: 48% 52% 62% 38% / 52% 48% 52% 48%;
}

.blob--4 {
  width: min(360px, 68vw);
  height: min(360px, 68vw);
  background: var(--azul);
  bottom: 18%;
  right: 8%;
  animation: blob-float-alt 28s ease-in-out infinite;
  animation-delay: -12s;
  opacity: 0.13;
  border-radius: 55% 45% 38% 62% / 48% 62% 38% 52%;
}

.blob--5 {
  width: min(220px, 45vw);
  height: min(220px, 45vw);
  background: var(--rosa);
  top: 55%;
  right: 20%;
  animation: blob-float 18s ease-in-out infinite reverse;
  animation-delay: -6s;
  opacity: 0.12;
  border-radius: 42% 58% 55% 45% / 55% 42% 58% 45%;
}

.blob--6 {
  width: min(180px, 38vw);
  height: min(180px, 38vw);
  background: var(--verde);
  top: 8%;
  left: 15%;
  animation: blob-float-alt 20s ease-in-out infinite;
  animation-delay: -14s;
  opacity: 0.1;
  border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
}

.blob-svg {
  position: absolute;
  width: min(320px, 65vw);
  height: auto;
  color: var(--rosa);
  opacity: 0.1;
  animation: blob-float 28s ease-in-out infinite;
  will-change: transform;
}

.blob-svg--1 {
  top: 15%;
  left: -5%;
  animation-delay: -2s;
  animation-direction: reverse;
  aspect-ratio: 1;
}

.blob-svg--1 circle {
  transform-origin: center;
}

.blob-svg--2 {
  bottom: 10%;
  right: -5%;
  color: var(--azul);
  animation: blob-float-alt 30s ease-in-out infinite;
  animation-delay: -10s;
}

.blob-svg--3 {
  top: 50%;
  left: -8%;
  color: var(--amarelo);
  width: min(260px, 52vw);
  animation: blob-float 25s ease-in-out infinite reverse;
  animation-delay: -18s;
  opacity: 0.08;
}

@keyframes blob-float {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  }
  25% {
    transform: translate(5%, -8%) scale(1.08) rotate(3deg);
    border-radius: 48% 52% 42% 58% / 58% 42% 58% 42%;
  }
  50% {
    transform: translate(-6%, 6%) scale(0.95) rotate(-2deg);
    border-radius: 52% 48% 58% 42% / 42% 58% 42% 58%;
  }
  75% {
    transform: translate(4%, 5%) scale(1.03) rotate(1deg);
    border-radius: 42% 58% 48% 52% / 52% 48% 52% 48%;
  }
}

@keyframes blob-float-alt {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 42% 58% 48% 52% / 48% 52% 48% 52%;
  }
  33% {
    transform: translate(-7%, 4%) scale(1.05) rotate(-3deg);
    border-radius: 55% 45% 62% 38% / 45% 55% 45% 55%;
  }
  66% {
    transform: translate(5%, -5%) scale(0.98) rotate(2deg);
    border-radius: 48% 52% 45% 55% / 58% 42% 58% 42%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .blob-svg {
    animation: none;
    will-change: auto;
  }
}

/* ============================================
   Barra de cores (identidade)
   ============================================ */

.color-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  z-index: 2;
  pointer-events: none;
}

.color-bar__line {
  flex: 1;
  display: block;
}

.color-bar__line--rosa { background: var(--rosa); }
.color-bar__line--amarelo { background: var(--amarelo); }
.color-bar__line--azul { background: var(--azul); }
.color-bar__line--verde { background: var(--verde); }

.color-bar--reveal {
  animation: color-bar-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s backwards;
}

@keyframes color-bar-reveal {
  from {
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: bottom;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .color-bar--reveal {
    animation: none;
  }
}

/* ============================================
   Layout principal
   ============================================ */

.main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-md) var(--space-md) 0;
  text-align: center;
  overflow: hidden;
}

/* ============================================
   Entrada (reveal) — página inicial
   ============================================ */

.header--reveal,
.message--reveal,
.footer--reveal {
  opacity: 0;
  animation: reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.header--reveal { animation-delay: 0.08s; }
.message--reveal { animation-delay: 0.18s; }
.footer--reveal { animation-delay: 0.5s; }

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Conteúdo da mensagem: entrada em escada */
.message--reveal .message__kicker,
.message--reveal .message__title,
.message--reveal .message__text,
.message--reveal .message__cta {
  opacity: 0;
  animation: message-item-reveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.message--reveal .message__kicker { animation-delay: 0.32s; }
.message--reveal .message__title { animation-delay: 0.42s; }
.message--reveal .message__text  { animation-delay: 0.52s; }
.message--reveal .message__cta   { animation-delay: 0.64s; }

@keyframes message-item-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header--reveal,
  .message--reveal,
  .footer--reveal {
    animation: none;
    opacity: 1;
  }
  .message--reveal .message__kicker,
  .message--reveal .message__title,
  .message--reveal .message__text,
  .message--reveal .message__cta {
    animation: none;
    opacity: 1;
  }
}

/* ============================================
   Cabeçalho
   ============================================ */

.header {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: var(--space-lg);
}

/* Desktop / tablet: uma única barra branca — nav | logo | countdown */
.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 24px rgba(43, 43, 43, 0.06);
}

.header__bar {
  display: contents;
}

.header__nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-start;
}

.logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__countdown {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.header__link {
  font-family: var(--font-texto);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--preto);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.header__link:hover {
  opacity: 1;
  color: var(--rosa);
  background: rgba(231, 29, 104, 0.06);
}

.header__link:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.countdown__number {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--preto);
}

.countdown__label {
  font-family: var(--font-texto);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--preto);
  opacity: 0.75;
}

.header__countdown--launch-day .countdown__number {
  display: none;
}

.header__countdown--launch-day .countdown__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 1;
}

/* Barra Voltar atrás */
.back-bar {
  width: 100%;
  flex-shrink: 0;
  padding: var(--space-xs) var(--space-lg);
  margin-bottom: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.view-sobre .back-bar,
body.view-contacto .back-bar {
  opacity: 1;
  visibility: visible;
}

.back-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-texto);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--preto);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
  padding: 0.5rem 0;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.back-bar__link:hover {
  opacity: 1;
  color: var(--rosa);
}

.back-bar__link:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.back-bar__arrow {
  flex-shrink: 0;
}

/* ============================================
   Logo
   ============================================ */

.logo__img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(43, 43, 43, 0.08));
}

/* ============================================
   Mensagem principal
   ============================================ */

.message {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 12vh;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.message__kicker {
  font-family: var(--font-texto);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rosa);
  margin: 0 0 var(--space-xs);
}

.message__title {
  font-family: var(--font-texto);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 600;
  color: var(--preto);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
}

.message__text {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--preto);
  margin: 0;
  opacity: 0.85;
  line-height: 1.55;
}
.message__text p {
  margin: 0 0 0.5rem;
}
.message__text p:last-child {
  margin-bottom: 0;
}

.message__cta {
  margin-top: var(--space-sm);
  width: fit-content;
  align-self: center;
}

/* ============================================
   Conteúdo das vistas (Home / Sobre / Contacto)
   ============================================ */

.view-content {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Páginas inativas: esconder sempre (sobrepõe animação .message--reveal) */
body.view-sobre .page--home,
body.view-contacto .page--home {
  opacity: 0 !important;
  pointer-events: none;
  z-index: 0;
}

body.view-home .page--sobre,
body.view-contacto .page--sobre {
  opacity: 0 !important;
  pointer-events: none;
  z-index: 0;
}

body.view-home .page--contacto,
body.view-sobre .page--contacto {
  opacity: 0 !important;
  pointer-events: none;
  z-index: 0;
}

/* Página ativa: por cima para não sobrepor ao voltar */
body.view-home .page--home,
body.view-sobre .page--sobre,
body.view-contacto .page--contacto {
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 1;
}

/* Ao voltar atrás: "Em breve" entra ligeiramente depois para evitar sobreposição */
body.view-home .page--home {
  transition: opacity 0.2s ease 0.06s;
}

/* Todas as páginas: conteúdo ao mesmo nível (mais acima) */
body.view-home .page--home.message,
body.view-sobre .page--sobre,
body.view-contacto .page--contacto {
  justify-content: flex-start;
  padding-top: 4vh;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Sobre: scroll se necessário */
body.view-sobre .page--sobre {
  padding-top: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
}

/* Contactos: mesma dimensão e posição que Sobre (consistência) */
body.view-contacto .page--contacto {
  padding-top: 1.5rem;
  overflow: visible;
  justify-content: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .page { transition: none; }
  .back-bar { transition: none; }
}

/* Sobre e Contacto — tipografia limpa, sem caixas */
.page--home {
  text-align: center;
}

.page__title {
  font-family: var(--font-texto);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preto);
  margin: 0 0 var(--space-md);
}

.page__lead {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  color: var(--preto);
  opacity: 0.88;
  margin: 0 0 var(--space-sm);
}

.page__body {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--preto);
  opacity: 0.9;
}

.page__body p {
  margin: 0 0 0.5rem;
}

.page__body p:last-child {
  margin-bottom: 0;
}

/* Sobre: mesmo tamanho de texto que a página inicial */
.page--sobre .page__title {
  font-size: 1.375rem;
  margin-bottom: var(--space-md);
}

.page--sobre .page__body {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.page--sobre .page__body p {
  margin-bottom: 0.5rem;
}

.page--sobre .page__body p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Contactos — layout compacto, sem scroll
   ============================================ */

/* Mesma largura que a página Sobre (.page tem max-width: 480px) */
.contact {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Título e lead iguais ao Sobre (page__title, page__lead) */
.contact__title {
  font-family: var(--font-texto);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preto);
  margin: 0 0 var(--space-md);
}

.contact__lead {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  color: var(--preto);
  opacity: 0.88;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.contact__box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 12px;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  box-shadow: 0 2px 12px rgba(43, 43, 43, 0.05);
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  flex-wrap: wrap;
}

.contact__row:last-child {
  border-bottom: none;
}

.contact__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rosa);
}

.contact__icon--email { color: var(--azul); }
.contact__icon--social { color: var(--verde); }

.contact__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--preto);
  opacity: 0.7;
  min-width: 3.5rem;
}

.contact__value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rosa);
  text-decoration: none;
  word-break: break-all;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin-left: auto;
  text-align: right;
}

.contact__value:hover {
  color: #c91858;
}

.contact__value:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

/* Telemóvel: botão que abre menu (menu com position:fixed via JS) */
.contact__phone {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

/* Estilo igual ao email (link), mas com dropdown */
.contact__phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-texto);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rosa);
  background: none;
  border: none;
  padding: 0;
  min-height: auto;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact__phone-btn:hover {
  color: #c91858;
}

.contact__phone-btn[aria-expanded="true"] {
  color: #c91858;
}

.contact__phone-btn:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.contact__phone-chevron {
  transition: transform 0.2s ease;
  opacity: 0.85;
  color: inherit;
}

.contact__phone-btn[aria-expanded="true"] .contact__phone-chevron {
  transform: rotate(180deg);
}

.contact__phone-menu {
  z-index: 9999;
  min-width: 140px;
  background: var(--branco);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(43, 43, 43, 0.15);
  border: 1px solid rgba(43, 43, 43, 0.08);
  padding: 0.35rem;
}

.contact__phone-menu[hidden] {
  display: none !important;
}

.contact__phone-option {
  display: block;
  font-family: var(--font-texto);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--preto);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.contact__phone-option:hover {
  background: rgba(43, 43, 43, 0.06);
  color: var(--rosa);
}

.contact__phone-option--wa:hover {
  background: rgba(37, 211, 102, 0.12);
  color: #20bd5a;
}

.contact__phone-option:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: -2px;
}

.contact__note {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--preto);
  opacity: 0.9;
  margin: 0;
  padding-top: 0.5rem;
  line-height: 1.65;
}

/* Botão "Avisa-me" (na página e no modal) */
.newsletter__trigger,
.message__cta {
  font-family: "Montserrat", var(--font-texto);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  min-height: 40px;
  border: none;
  border-radius: 0;
  background: var(--rosa);
  color: var(--branco);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: inline-block;
  width: fit-content;
  box-sizing: border-box;
}

.newsletter__trigger:hover,
.message__cta:hover {
  background: #c91858;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(231, 29, 104, 0.35);
}

.newsletter__trigger:focus-visible,
.message__cta:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.newsletter__trigger,
.message__cta {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.newsletter__title {
  font-family: var(--font-texto);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preto);
  margin: 0 0 0.15rem;
}

.newsletter__text {
  font-family: var(--font-texto);
  font-size: 0.8rem;
  color: var(--preto);
  opacity: 0.85;
  margin: 0 0 var(--space-sm);
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.newsletter__input {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(43, 43, 43, 0.2);
  border-radius: 0;
  background: var(--branco);
  color: var(--preto);
  min-width: 200px;
  max-width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter__input::placeholder {
  color: rgba(43, 43, 43, 0.5);
}

.newsletter__input:hover,
.newsletter__input:focus {
  border-color: var(--rosa);
  outline: none;
  box-shadow: 0 0 0 2px rgba(231, 29, 104, 0.15);
}

.newsletter__btn {
  font-family: "Montserrat", var(--font-texto);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  min-height: 40px;
  border: none;
  border-radius: 0;
  background: var(--rosa);
  color: var(--branco);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.newsletter__btn:hover {
  background: #c91858;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(231, 29, 104, 0.35);
}

.newsletter__btn:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.newsletter__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter__feedback {
  font-family: var(--font-texto);
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
  min-height: 1.25em;
}

.newsletter__feedback[data-success="true"] {
  color: var(--verde);
}

.newsletter__feedback[data-success="false"] {
  color: var(--rosa);
}

/* ============================================
   Modal (newsletter)
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.modal[aria-hidden="false"] .modal__box {
  transform: scale(1);
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--branco);
  border-radius: 20px;
  padding: var(--space-lg);
  box-shadow: 0 24px 48px rgba(43, 43, 43, 0.18);
  text-align: center;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--preto);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 9999px;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  opacity: 1;
  background: rgba(43, 43, 43, 0.08);
}

.modal__close:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.modal .newsletter__title {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.35;
}

.modal .newsletter__text {
  margin-bottom: var(--space-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.modal .newsletter__note {
  font-size: 0.625rem;
  line-height: 1.4;
  color: rgba(43, 43, 43, 0.55);
  margin: var(--space-md) 0 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(43, 43, 43, 0.08);
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.modal .newsletter__feedback {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 500;
}

.modal .newsletter__form {
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
}

.modal .newsletter__input {
  width: 100%;
  min-width: 0;
}

.modal .newsletter__btn {
  width: fit-content;
  align-self: center;
  min-width: 0;
}

.modal__box--text {
  max-width: 480px;
  text-align: left;
}

.modal__title {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--preto);
  margin: 0 0 var(--space-md);
  padding-right: 2rem;
}

.modal__body {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--preto);
}

.modal__body p {
  margin: 0 0 var(--space-sm);
}

.modal__body p:last-child {
  margin-bottom: 0;
}

.contact__item {
  margin: 0 0 var(--space-md) !important;
}

.contact__item strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--preto);
  opacity: 0.85;
}

.contact__link {
  color: var(--rosa);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact__link:hover {
  color: #c91858;
}

.contact__link:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

/* Nota dos contactos: mesmo tamanho que o resto da página (lead e body = 0.9375rem) */
.page--contacto .contact__note {
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.9;
}

body.modal-open {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Rodapé
   ============================================ */

/* ============================================
   Rodapé
   ============================================ */

.footer {
  margin-top: auto;
  padding-top: var(--space-xs);
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid rgba(43, 43, 43, 0.06);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xs) var(--space-lg) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__name {
  font-family: var(--font-texto);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preto);
  margin: 0;
  letter-spacing: 0.02em;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--preto);
  opacity: 0.7;
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.footer__link:hover {
  color: var(--rosa);
  opacity: 1;
  background: rgba(231, 29, 104, 0.08);
}

.footer__link:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
  opacity: 1;
}

.footer__icon {
  display: block;
  flex-shrink: 0;
}

.footer__legal {
  font-family: var(--font-texto);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--preto);
  opacity: 0.5;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.footer__legal-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer__legal-link:hover {
  opacity: 1;
  color: var(--rosa);
}

.footer__legal-link:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

/* Header em telemóvel e tablet vertical estreito: evita sobreposição (600–800px) */
@media (max-width: 800px) {
  .header {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .header__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }

  .header__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: 0.35rem;
    row-gap: 0;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(43, 43, 43, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 24px rgba(43, 43, 43, 0.06);
  }

  .header__bar .header__nav {
    display: contents;
  }

  .header__bar .header__link:first-child {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    text-align: center;
  }

  .header__bar .header__link:last-child {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    text-align: center;
  }

  .header__bar .header__link {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.5rem;
    min-height: 44px;
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header__bar .logo-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    min-width: 0;
  }

  .header__inner .header__countdown {
    flex: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    padding: 0.05rem 0.65rem 0;
    margin: 0;
    text-align: center;
  }

  .header__inner .header__countdown .countdown__number {
    font-size: 0.8125rem;
  }

  .header__inner .header__countdown .countdown__label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
  }

  .header__bar .logo__img {
    max-width: min(124px, 26vw);
    width: auto;
    height: auto;
  }
}

/* ============================================
   Smartphone — bolas e animações equilibradas
   Fundo vivo, mas blobs nas bordas para não tapar o conteúdo
   ============================================ */

@media (max-width: 599px) {
  html {
    font-size: 16px;
  }

  /* — Fundo: 5 bolas + 1 SVG, tamanhos contidos e animação suave — */
  .blob--6,
  .blob-svg--2,
  .blob-svg--3 {
    display: none !important;
  }

  .blob {
    width: min(160px, 38vw);
    height: min(160px, 38vw);
    min-width: 100px;
    min-height: 100px;
    opacity: 0.11;
    animation: blob-float 32s ease-in-out infinite;
    will-change: transform;
  }

  .blob--1 {
    width: min(200px, 48vw);
    height: min(200px, 48vw);
    top: -5%;
    right: -8%;
    opacity: 0.12;
    animation-delay: 0s;
  }

  .blob--2 {
    width: min(180px, 44vw);
    height: min(180px, 44vw);
    bottom: -5%;
    left: -10%;
    opacity: 0.1;
    animation-delay: -8s;
  }

  .blob--3 {
    width: min(130px, 32vw);
    height: min(130px, 32vw);
    top: 25%;
    left: -5%;
    opacity: 0.1;
    animation: blob-float-alt 36s ease-in-out infinite;
    animation-delay: -12s;
  }

  .blob--4 {
    width: min(140px, 34vw);
    height: min(140px, 34vw);
    bottom: 28%;
    right: -6%;
    opacity: 0.09;
    animation: blob-float-alt 34s ease-in-out infinite;
    animation-delay: -18s;
  }

  .blob--5 {
    width: min(100px, 26vw);
    height: min(100px, 26vw);
    top: 55%;
    right: 8%;
    opacity: 0.08;
    animation: blob-float 28s ease-in-out infinite reverse;
    animation-delay: -6s;
  }

  .blob-svg--1 {
    display: block;
    width: min(180px, 42vw);
    opacity: 0.07;
    animation: blob-float 38s ease-in-out infinite reverse;
    animation-delay: -4s;
    top: 12%;
    left: -8%;
  }

  /* — Um ecrã só: conteúdo em cima, rodapé colado ao fundo — */
  .main {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-bottom: 0;
    padding-left: max(1.1rem, env(safe-area-inset-left));
    padding-right: max(1.1rem, env(safe-area-inset-right));
    justify-content: flex-start;
    gap: 0;
  }

  .header {
    margin-bottom: 0.4rem;
    flex-shrink: 0;
  }

  .logo__img {
    max-width: 120px;
    width: 38vw;
    height: auto;
  }

  /* — Mensagem: centrada mas um pouco mais para cima — */
  .message {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -4vh;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.35rem;
  }

  .message__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.3rem;
  }

  .message__title {
    font-size: 2.25rem;
    letter-spacing: 0.1em;
    line-height: 1.12;
    margin-bottom: 0.4rem;
  }

  .message__text {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  .message__cta {
    margin-top: var(--space-md);
  }

  .footer {
    margin-top: 0;
    padding-top: 0.4rem;
    flex-shrink: 0;
  }

  .footer__inner {
    padding: 0.35rem var(--space-md) max(var(--space-xs), env(safe-area-inset-bottom));
    gap: 0.25rem;
  }

  .footer__name {
    font-size: 0.9375rem;
  }

  .footer__link {
    width: 40px;
    height: 40px;
    -webkit-tap-highlight-color: rgba(231, 29, 104, 0.1);
  }

  .footer__icon {
    width: 20px;
    height: 20px;
  }

  .footer__legal {
    font-size: 0.625rem;
    max-width: 20rem;
  }

  .contact__phone-option {
    font-size: 0.8125rem;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
  }

  /* Mobile: esconder texto "Telemóvel", "E-mail" — ficam só os ícones */
  .contact__label {
    display: none;
  }

  /* Sobre e Contactos — ligeiramente mais compacto que desktop, legível em telemóvel */
  .page__title,
  .page--sobre .page__title,
  .contact__title {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
  }

  .page__lead,
  .page__body,
  .page--sobre .page__body {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .contact__lead {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
  }

  .contact__box {
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
  }

  .contact__icon {
    width: 26px;
    height: 26px;
  }

  .contact__icon svg {
    width: 18px;
    height: 18px;
  }

  .contact__value,
  .contact__phone-btn {
    font-size: 0.8125rem;
  }

  .contact__note {
    font-size: 0.875rem;
    line-height: 1.6;
    padding-top: 0.45rem;
  }

  body.view-sobre .page--sobre {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  }

  /* — Barra de cores: visível e com entrada — */
  .color-bar {
    height: 8px;
  }

  .color-bar--reveal {
    animation-duration: 0.8s;
    animation-delay: 0.55s;
  }

  /* — Entrada: suave, com ligeiro scale — */
  .header--reveal { animation-delay: 0.06s; }
  .message--reveal { animation-delay: 0.14s; }
  .footer--reveal { animation-delay: 0.45s; }

  .header--reveal,
  .message--reveal,
  .footer--reveal {
    animation-duration: 0.5s;
  }

  .message--reveal .message__kicker { animation-delay: 0.26s; }
  .message--reveal .message__title { animation-delay: 0.34s; }
  .message--reveal .message__text  { animation-delay: 0.42s; }
  .message--reveal .message__cta   { animation-delay: 0.52s; }

  .message--reveal .message__kicker,
  .message--reveal .message__title,
  .message--reveal .message__text,
  .message--reveal .message__cta {
    animation-duration: 0.4s;
  }

  .modal .newsletter__title {
    font-size: 1.1rem;
  }

  .newsletter__text {
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
  }

  .newsletter__form {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
  }

  .newsletter__input {
    width: 100%;
    min-width: 0;
    max-width: 280px;
    padding: 0.55rem 1rem;
    font-size: 0.9375rem;
    border-radius: 0;
  }

  .newsletter__btn {
    width: fit-content;
    align-self: center;
    min-width: 0;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.9375rem;
    border-radius: 0;
  }

  .newsletter__feedback {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ============================================
   Tablet e desktop
   ============================================ */

@media (min-width: 600px) {
  .logo__img {
    max-width: 180px;
  }

  .message__title {
    font-size: clamp(3rem, 9vw, 4.5rem);
  }

  .message__text {
    font-size: 1rem;
  }

  .color-bar {
    height: 10px;
  }

  .main {
    padding-bottom: calc(var(--space-lg) + 10px);
  }
}

@media (min-width: 900px) {
  .logo__img {
    max-width: 200px;
  }

  .blob--1 {
    width: 520px;
    height: 520px;
  }

  .blob--2 {
    width: 460px;
    height: 460px;
  }

  .message {
    max-width: 540px;
  }
}
