/* ============================================
   Retir "Coneix el teu Iceberg" Landing Page
   ============================================ */

/* --- Variables --- */
.retir-landing {
  --retir-navy: #0B1D35;
  --retir-navy2: #132D4F;
  --retir-navy-dark: #071525;
  --retir-gold: #FFB703;
  --retir-gold-hover: #FFC733;
  --retir-light: #F8F6F1;
  --retir-text-light: rgba(255,255,255,0.85);
  --retir-text-dim: rgba(255,255,255,0.45);
  --retir-text-dark: #1a1a1a;
  --retir-container: 900px;
  --retir-container-wide: 1100px;
}

/* --- Base --- */
.retir-landing {
  background: var(--retir-light);
  color: var(--retir-text-dark);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.8;
}

.retir-container {
  width: 100%;
  max-width: var(--retir-container);
  margin: 0 auto;
  padding: 0 32px;
}

.retir-section {
  padding: 100px 0;
}
.retir-section--navy {
  background: var(--retir-navy);
  color: var(--retir-text-light);
}
.retir-section--light {
  background: var(--retir-light);
  color: var(--retir-text-dark);
}

.retir-section__title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 40px;
  color: var(--retir-navy);
}
.retir-section__title--light {
  color: #fff;
}

/* --- Hero --- */
.retir-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--retir-navy);
  overflow: hidden;
}
.retir-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(19,45,79,0.8) 0%, var(--retir-navy) 70%);
  z-index: 0;
}
.retir-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 32px 60px;
  max-width: 800px;
}
.retir-hero__logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
}
.retir-hero__title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(48px, 8vw, 90px);
  color: #fff;
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.retir-hero__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--retir-text-light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.retir-hero__subtitle p { margin: 0; }
.retir-hero__subtitle strong { font-weight: 400; }
.retir-hero__subtitle em { font-style: italic; }

.retir-hero__badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.retir-badge {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--retir-gold);
  border: 1px solid rgba(255,183,3,0.3);
  padding: 8px 20px;
  border-radius: 50px;
}
.retir-badge__icon { margin-right: 6px; }
.retir-badge--link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.retir-maps-link {
  color: var(--retir-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,183,3,0.3);
  transition: all 0.3s;
}
.retir-maps-link:hover {
  color: var(--retir-gold-hover);
  border-bottom-color: var(--retir-gold);
}
.retir-badge--link:hover {
  background: rgba(255,183,3,0.1);
  border-color: var(--retir-gold);
  color: #fff;
}

/* --- CTA Button (shared) --- */
.retir-cta {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--retir-navy);
  background: var(--retir-gold);
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.retir-cta:hover {
  background: var(--retir-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,183,3,0.3);
}

/* --- Corners (reuse from navy-gold) --- */
.retir-hero .corner {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255,183,3,0.2);
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.retir-hero .corner-tl { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.retir-hero .corner-br { bottom: 30px; right: 30px; border-left: none; border-top: none; }

/* --- Side Nav --- */
.retir-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.retir-nav.visible {
  opacity: 1;
  pointer-events: auto;
}
.retir-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 8px;
  background: rgba(11,29,53,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(255,183,3,0.08);
  border-left: none;
}
.retir-nav__pill {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.3s;
}
.retir-nav__pill:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.retir-nav__pill.active {
  color: var(--retir-gold);
}
.retir-nav__pill--cta {
  color: var(--retir-navy);
  background: var(--retir-gold);
  font-weight: 600;
  margin-top: 4px;
}
.retir-nav__pill--cta:hover {
  background: var(--retir-gold-hover);
  color: var(--retir-navy);
}
@media (max-width: 900px) {
  .retir-nav { display: none; }
}

/* --- Pain Points --- */
.retir-pain p {
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.9;
  margin-bottom: 12px;
  color: #444;
}
.retir-pain p em {
  color: var(--retir-navy);
  font-style: italic;
  font-size: 1.1em;
}
.retir-pain p:last-child {
  margin-top: 32px;
  font-weight: 500;
  color: var(--retir-navy);
  border-left: 3px solid var(--retir-gold);
  padding-left: 20px;
}

/* --- Promise --- */
.retir-promise p {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.9;
  margin-bottom: 12px;
  color: var(--retir-text-light);
}
.retir-promise p:last-child {
  margin-top: 24px;
  color: var(--retir-gold);
  font-weight: 500;
  font-size: 1.1em;
}

/* --- Section images (shared) --- */
.retir-section-img {
  width: 100%;
  height: auto;
  display: block;
}
.retir-section-img--rounded {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* --- Iceberg parallax divider --- */
.retir-parallax-divider {
  height: 50vh;
  min-height: 300px;
  max-height: 550px;
  position: relative;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}
.retir-parallax-divider::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Tint stacked in the same painted layer as the photo: a separate overlay
     element snaps to device pixels independently of this fixed layer and lets
     an untinted sliver show at the edges. */
  background-image: linear-gradient(rgba(11,29,53,0.55), rgba(11,29,53,0.55)), var(--retir-parallax-img);
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
@media (max-width: 900px) {
  .retir-parallax-divider {
    height: 40vh;
    min-height: 250px;
  }
}
.retir-iceberg-photo {
  max-width: 800px;
  margin: 0 auto 40px;
}
.retir-iceberg-photo figure {
  margin: 0;
}
.retir-iceberg-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.retir-iceberg p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: #444;
}

/* --- Program grid (text + image 50/50) --- */
.retir-program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.retir-program-grid__text p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 10px;
  color: var(--retir-text-light);
}
.retir-program-grid__img figure {
  margin: 0;
}
.retir-program-grid__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
@media (max-width: 900px) {
  .retir-program-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .retir-program-grid__img img {
    aspect-ratio: auto;
    max-height: none;
  }
}

/* --- Follow-up image --- */
.retir-followup-img {
  max-width: 700px;
  margin: 0 auto 40px;
}
.retir-followup-img figure {
  margin: 0;
}
.retir-followup-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}


/* --- Parallax / Safe Space --- */
.retir-parallax {
  position: relative;
  background-color: var(--retir-navy);
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}
.retir-parallax::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Tint stacked in the same painted layer as the photo: a separate overlay
     element snaps to device pixels independently of this fixed layer and lets
     an untinted sliver show at the edges. */
  background-image: linear-gradient(rgba(11,29,53,0.85), rgba(11,29,53,0.85)), var(--retir-parallax-img);
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.retir-parallax__content {
  position: relative;
  z-index: 1;
}
.retir-safe p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 12px;
  color: var(--retir-text-light);
}

/* --- Follow-up / Timeline --- */
.retir-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(255,183,3,0.05);
  border-radius: 16px;
  border: 1px solid rgba(255,183,3,0.1);
}
.retir-timeline__item {
  flex: 1;
  text-align: center;
}
.retir-timeline__dot {
  width: 16px;
  height: 16px;
  background: var(--retir-gold);
  border-radius: 50%;
  margin: 0 auto 12px;
}
.retir-timeline__line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--retir-gold), rgba(255,183,3,0.2));
  flex-shrink: 0;
}
.retir-timeline__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--retir-navy);
}
.retir-timeline__desc {
  font-size: 13px;
  color: #888;
}
.retir-followup p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #444;
}

/* --- Qualification --- */
.retir-qualification {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--retir-container-wide) !important;
}
.retir-qual {
  padding: 40px;
  border-radius: 16px;
}
.retir-qual--yes {
  background: rgba(255,183,3,0.08);
  border: 1px solid rgba(255,183,3,0.15);
}
.retir-qual--yes .retir-section__title {
  color: var(--retir-gold);
}
.retir-qual--yes ul {
  list-style: none;
  padding: 0;
}
.retir-qual--yes li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 16px;
  line-height: 1.7;
  color: var(--retir-text-light);
}
.retir-qual--yes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--retir-gold);
  font-weight: 700;
  font-size: 18px;
}
.retir-qual--no {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.retir-qual--no p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--retir-text-dim);
}
.retir-qual--no p:last-of-type,
.retir-qual--no p:nth-last-child(-n+3) {
  color: var(--retir-text-light);
}

/* --- Results --- */
.retir-results p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: #444;
}
.retir-results p em {
  display: block;
  font-size: 19px;
  color: var(--retir-navy);
  border-left: 3px solid var(--retir-gold);
  padding: 12px 0 12px 20px;
  margin: 20px 0;
  background: rgba(255,183,3,0.04);
  border-radius: 0 8px 8px 0;
}
.retir-results p strong {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--retir-gold);
  display: inline-block;
  margin-top: 24px;
  background: rgba(255,183,3,0.08);
  padding: 4px 12px;
  border-radius: 4px;
}

/* --- Logistics --- */
.retir-logistics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}
.retir-logistics__card {
  text-align: center;
  padding: 40px 32px;
  background: var(--retir-navy2);
  border-radius: 16px;
  border: 1px solid rgba(255,183,3,0.08);
}
.retir-logistics__icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.retir-flag {
  display: block;
  width: 48px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.retir-logistics__label {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--retir-gold);
  margin-bottom: 12px;
}
.retir-logistics__text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--retir-text-light);
  margin-bottom: 4px;
}

/* --- Pricing --- */
.retir-pricing-main {
  text-align: center;
  padding: 60px 40px;
  background: var(--retir-navy);
  border-radius: 20px;
  border: 2px solid rgba(255,183,3,0.15);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.retir-pricing-main__title {
  font-family: 'Bebas Neue', cursive;
  font-size: 80px;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.retir-pricing-main__title span {
  font-size: 40px;
  vertical-align: super;
  color: var(--retir-gold);
}
.retir-pricing-main__vat {
  font-size: 14px;
  color: var(--retir-text-dim);
  margin-bottom: 24px;
}
.retir-pricing-main__includes {
  text-align: left;
  margin-bottom: 32px;
  color: var(--retir-text-light);
}
.retir-pricing-main__includes p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Accommodation cards */
.retir-accom {
  text-align: center;
}
.retir-accom__text {
  text-align: left;
  margin-top: 32px;
}
.retir-accom__text > p {
  max-width: 700px;
  margin: 0 auto 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--retir-text-dark);
}

/* Accommodation cards. Driven by a Gutenberg columns block carrying the
   "retir-accom-cards" class, so room types and prices stay editable.
   Uses h4 on purpose: retir_parse_content() splits sections on h3. */
.retir-accom-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
  text-align: center;
}
.retir-accom-cards .wp-block-column {
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0ddd6;
  transition: all 0.3s;
}
.retir-accom-cards .wp-block-column:hover {
  border-color: var(--retir-gold);
  box-shadow: 0 8px 30px rgba(255,183,3,0.1);
}
.retir-accom-cards h4 {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--retir-gold);
  margin-bottom: 12px;
}
.retir-accom-cards p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
.retir-accom-cards .accom-price {
  font-family: 'Bebas Neue', cursive;
  font-size: 48px;
  color: var(--retir-navy);
  line-height: 1;
  margin-bottom: 12px;
}

/* --- Reservation / Form --- */
.retir-deadline {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: var(--retir-gold);
  max-width: 700px;
  margin: 0 auto 48px;
  padding: 16px 32px;
  background: rgba(255,183,3,0.08);
  border-radius: 12px;
  border: 1px solid rgba(255,183,3,0.15);
}
.retir-deadline__icon { margin-right: 8px; }
.retir-deadline strong { color: #fff; }

.retir-form {
  max-width: 500px;
  margin: 0 auto 48px;
}
.retir-form__group {
  margin-bottom: 20px;
}
.retir-form__group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--retir-text-light);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.retir-form__group input,
.retir-form__group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s;
}
.retir-form__group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FFB703' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
@media (max-width: 900px) {
  .retir-form__group select {
    appearance: auto;
    -webkit-appearance: menulist;
    background-image: none;
    padding-right: 40px;
  }
}
.retir-form__group input:focus,
.retir-form__group select:focus {
  outline: none;
  border-color: var(--retir-gold);
}
.retir-form__group select option {
  background: var(--retir-navy);
  color: #fff;
  font-size: 16px;
  padding: 12px;
}
.retir-form__hint {
  font-weight: 300;
  font-size: 12px;
  color: var(--retir-text-dim);
  font-style: italic;
}
.retir-form__group--check {
  margin-bottom: 14px;
}
.retir-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--retir-text-dim);
}
.retir-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--retir-gold);
  cursor: pointer;
}
.retir-checkbox a {
  color: var(--retir-gold);
  text-decoration: underline;
  text-decoration-color: rgba(255,183,3,0.3);
}
.retir-checkbox a:hover {
  text-decoration-color: var(--retir-gold);
}
.retir-form__submit {
  width: 100%;
  margin-top: 12px;
  font-size: 16px;
  padding: 18px;
}
.retir-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.retir-form__note {
  text-align: center;
  font-size: 13px;
  color: var(--retir-text-dim);
  margin-top: 12px;
}

/* Collapsible terms, sitting right above the pay button */
.retir-terms-toggle {
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}
.retir-terms-toggle__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--retir-gold);
}
.retir-terms-toggle__summary::-webkit-details-marker {
  display: none;
}
.retir-terms-toggle__summary::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.retir-terms-toggle[open] .retir-terms-toggle__summary::before {
  transform: rotate(45deg);
}
.retir-terms-toggle__summary:hover {
  color: var(--retir-gold-hover, #FFC733);
}
.retir-terms-toggle__body {
  margin-top: 14px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 12px;
}
.retir-terms-toggle__body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--retir-text-dim);
  margin-bottom: 8px;
}

/* Booking info, details */
.retir-booking-info {
  max-width: 700px;
  margin: 0 auto 32px;
}
.retir-details,
.retir-extra {
  max-width: 700px;
  margin: 0 auto 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Scoped to paragraphs so Gutenberg button blocks keep their own styling. */
.retir-booking-info p a,
.retir-details p a,
.retir-extra p a,
.retir-terms-toggle__body p a {
  color: var(--retir-gold);
  text-decoration: underline;
  text-decoration-color: rgba(255,183,3,0.35);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.retir-booking-info p a:hover,
.retir-details p a:hover,
.retir-extra p a:hover,
.retir-terms-toggle__body p a:hover {
  color: var(--retir-gold-hover);
  text-decoration-color: var(--retir-gold-hover);
}
.retir-booking-info p,
.retir-details p,
.retir-extra p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--retir-text-dim);
  margin-bottom: 8px;
}

/* Final logo */
.retir-final-logo {
  text-align: center;
  padding: 60px 32px;
  background: var(--retir-navy);
}
.retir-final-logo__img {
  max-width: 180px;
  height: auto;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.retir-final-logo:hover .retir-final-logo__img {
  opacity: 0.7;
}

/* --- Back to top --- */
.retir-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 96;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,183,3,0.2);
  background: rgba(11,29,53,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--retir-gold);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
}
.retir-back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.retir-back-top:hover {
  background: var(--retir-gold);
  color: var(--retir-navy);
  border-color: var(--retir-gold);
}
.retir-back-top:focus {
  outline: none;
  background: rgba(11,29,53,0.9);
  color: var(--retir-gold);
  border-color: rgba(255,183,3,0.2);
}
@media (max-width: 900px) {
  .retir-back-top--desktop {
    display: none;
  }
}

/* --- Mobile sticky CTA --- */
.retir-mobile-cta {
  display: none;
}
@media (max-width: 900px) {
  .retir-mobile-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 96;
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(0deg, rgba(11,29,53,0.98) 60%, rgba(11,29,53,0) 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: all 0.35s ease;
  }
  .retir-mobile-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .retir-mobile-cta__btn {
    display: inline-block;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--retir-navy);
    background: var(--retir-gold);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255,183,3,0.3);
  }
  .retir-mobile-cta__btn:active {
    transform: scale(0.98);
  }
  .retir-mobile-cta__top {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,183,3,0.25);
    background: rgba(255,183,3,0.1);
    color: var(--retir-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .retir-mobile-cta__top:active {
    background: var(--retir-gold);
    color: var(--retir-navy);
  }
  /* .retir-landing es el <main> i el footer n'es GERMA, no descendent: amb el
     selector descendent aquesta reserva d'espai no s'aplicava mai i la barra fixa
     tapava els enllacos legals. env() cobreix la barra d'inici de l'iPhone. */
  .retir-landing ~ .page-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .retir-section { padding: 72px 0; }
  .retir-container { padding: 0 24px; }
  .retir-hero__logo { max-width: 140px; }

  .retir-qualification {
    grid-template-columns: 1fr;
  }
  .retir-logistics {
    grid-template-columns: 1fr;
  }
  .retir-accom-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto 24px;
  }
  .retir-timeline {
    flex-direction: column;
    gap: 0;
  }
  .retir-timeline__line {
    width: 2px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .retir-section { padding: 56px 0; }
  .retir-hero__badges { flex-direction: column; align-items: center; }
  .retir-pricing-main { padding: 40px 24px; }
  .retir-pricing-main__title { font-size: 60px; }
  .retir-qual { padding: 28px 24px; }
}

/* --- Confirmation page --- */
.retir-confirm-steps {
  max-width: 480px;
  margin: 40px auto 0;
  text-align: left;
}
.retir-confirm-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.retir-confirm-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--retir-gold);
  color: var(--retir-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.retir-confirm-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--retir-text-light);
  margin: 0;
}

/* Override WP block buttons on retir page */
.retir-landing .wp-block-button__link {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--retir-navy);
  background: var(--retir-gold);
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition: all 0.3s;
}
.retir-landing .wp-block-button__link:hover {
  background: var(--retir-gold-hover);
  transform: translateY(-2px);
}
.retir-landing .wp-block-buttons {
  display: none;
}
