/* ==========================================================================
   Resido — estilos próprios (secção de ofertas, seletor de idioma, rodapé)
   Segue os tokens do template: preto, branco, #f94c34, Inter.
   ========================================================================== */

:root {
  --rs-primary: #f94c34;
  --rs-white-20: #ffffff33;
  --rs-white-12: #ffffff1f;
  --rs-white-60: #ffffff99;
}

/* --------------------------------------------------------------------------
   Seletor de idioma (navbar)
   -------------------------------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}

.lang-switch .lang-opt {
  color: inherit;
  text-decoration: none;
  opacity: .5;
  transition: opacity .2s ease;
}

.lang-switch .lang-opt:hover { opacity: 1; }
.lang-switch .lang-opt.is-active { opacity: 1; font-weight: 700; }
.lang-switch .lang-sep { opacity: .3; }

@media screen and (max-width: 767px) {
  .lang-switch { margin-right: 14px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Secção de ofertas
   -------------------------------------------------------------------------- */
.price-section {
  background-color: #000;
  color: #fff;
  padding-top: 150px;
  padding-bottom: 130px;
  overflow-x: clip;
}

.price-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 80px;
}

.price-heading-right { max-width: 780px; }

.price-title {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 40px;
  line-height: 120%;
  letter-spacing: -.03em;
  font-weight: 500;
  margin: 0 0 20px;
}

.price-lead {
  color: var(--rs-white-60);
  font-size: 18px;
  line-height: 150%;
  font-weight: 400;
  margin: 0;
  max-width: 620px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ---- cartão ---- */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rs-white-12);
  border-radius: 16px;
  padding: 34px 28px 28px;
  background-color: #0a0a0a;
  transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}

.price-card:hover {
  border-color: var(--rs-white-20);
  transform: translateY(-4px);
}

.price-card.popular {
  background-color: #fff;
  color: #000;
  border-color: #fff;
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background-color: var(--rs-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-white-60);
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rs-white-12);
}

.price-card.popular .price-num {
  color: #00000080;
  border-bottom-color: #0000001a;
}

.price-name {
  font-family: Inter, sans-serif;
  font-size: 30px;
  line-height: 110%;
  letter-spacing: -.02em;
  font-weight: 500;
  margin: 0 0 10px;
  color: inherit;
}

.price-sub {
  font-size: 15px;
  line-height: 145%;
  color: var(--rs-white-60);
  margin: 0 0 28px;
  min-height: 66px;
}

.price-card.popular .price-sub { color: #00000099; }

/* ---- preço ---- */
.price-amount-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rs-white-12);
}

.price-card.popular .price-amount-wrap { border-bottom-color: #0000001a; }

.price-cur {
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-10px);
}

.price-amount {
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.04em;
}

.price-once {
  font-size: 14px;
  color: var(--rs-white-60);
  margin-left: 8px;
  white-space: nowrap;
}

.price-card.popular .price-once { color: #00000099; }

/* ---- lista ---- */
.price-feats {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.price-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 140%;
}

.price-feat-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--rs-primary);
}

.price-feat-icon svg { display: block; width: 100%; height: 100%; }

/* ---- botão ---- */
.price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #fff;
  background-color: transparent;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  padding: 15px 24px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}

.price-btn:hover { background-color: #fff; color: #000; }

.price-btn.popular {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

.price-btn.popular:hover { background-color: var(--rs-primary); border-color: var(--rs-primary); }

.price-btn[disabled] { opacity: .55; cursor: wait; }

.price-btn-icon { width: 12px; height: 11px; display: inline-flex; }
.price-btn-icon svg { display: block; width: 100%; height: 100%; }

.price-foot {
  margin-top: 50px;
  text-align: center;
}

.price-foot-text {
  color: var(--rs-white-60);
  font-size: 15px;
  margin: 0;
}

.price-error {
  margin-top: 18px;
  text-align: center;
  color: var(--rs-primary);
  font-size: 15px;
}

/* ==========================================================================
   RODAPÉ
   4 colunas em desktop, 2 em tablet, 1 em telemóvel.
   A coluna legal é mais larga porque tem 9 links.
   ========================================================================== */
.ft-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) 1fr 1.2fr 1.1fr;
  gap: 48px 40px;
  align-items: start;
  padding-bottom: 56px;
}

/* ---- coluna da marca ---- */
.ft-brand { max-width: 380px; }

.ft-logo {
  display: inline-block;
  margin-bottom: 22px;
}

.ft-logo img {
  display: block;
  width: 132px;
  height: auto;
}

.ft-brand-text {
  color: var(--rs-white-60);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.ft-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rs-white-20);
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.ft-cta:hover { background-color: #fff; border-color: #fff; color: #000; }

/* ---- colunas de links ---- */
.ft-col-title {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rs-white-12);
}

.ft-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-list a {
  color: var(--rs-white-60);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: color .2s ease;
}

.ft-list a:hover { color: #fff; }

/* a coluna legal tem 9 links: duas colunas quando há espaço */
.ft-col-legal .ft-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 24px;
}

/* ---- coluna de contacto ---- */
.ft-contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  color: var(--rs-white-60);
}

.ft-lbl {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff4d;
}

.ft-hint {
  font-size: 12px;
  color: #ffffff4d;
  line-height: 1.4;
}

.ft-addr { line-height: 1.55; }

/* ---- barra de conformidade ---- */
.ft-compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 0;
  border-top: 1px solid var(--rs-white-12);
}

.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rs-white-12);
  border-radius: 100px;
  padding: 9px 18px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: var(--rs-white-60);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.ft-badge:hover { border-color: var(--rs-white-20); color: #fff; }

.ft-badge-btn { font: inherit; font-size: 13px; }

/* ---- barra legal final ---- */
.ft-legal {
  border-top: 1px solid var(--rs-white-12);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-legal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #ffffff73;
}

.ft-legal-merchant strong { color: var(--rs-white-60); font-weight: 600; }
.ft-legal-copy { color: #ffffff4d; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .price-badge { left: 24px; }

  /* marca em cima a ocupar a linha toda, os 3 blocos de links por baixo */
  .ft-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 32px;
  }
  .ft-brand { grid-column: 1 / -1; max-width: 560px; }
}

@media screen and (max-width: 991px) {
  .price-section { padding-top: 100px; padding-bottom: 90px; }
  .price-heading { flex-direction: column; margin-bottom: 50px; }
  .price-title { font-size: 34px; }
  .price-sub { min-height: 0; }

  .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .ft-col-legal { grid-column: 1 / -1; }
  .ft-col-legal .ft-list { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 767px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-section { padding-top: 80px; padding-bottom: 70px; }
  .price-title { font-size: 28px; }
  .price-lead { font-size: 16px; }
  .price-card { padding: 30px 22px 24px; }
  .price-amount { font-size: 48px; }

  .ft-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .ft-brand { max-width: none; }
  .ft-col-legal .ft-list { grid-template-columns: 1fr; }
  .ft-col-title { margin-bottom: 18px; padding-bottom: 12px; }
  .ft-compliance { padding: 22px 0; gap: 10px; }
  .ft-badge { font-size: 12.5px; padding: 9px 15px; }
  .ft-legal p { font-size: 12.5px; }

  /* banner passa a coluna e os botões ocupam a largura toda */
  .ck-banner { padding: 12px; }
  .ck-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .ck-actions { flex-direction: column-reverse; }
  .ck-btn { width: 100%; padding: 14px 20px; }
}

@media screen and (max-width: 380px) {
  .ft-badge { width: 100%; justify-content: center; }
}

/* respeita quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  .ck-banner { transition: none; }
  .price-card:hover { transform: none; }
}
