/* ==========================================================================
   Trans Gili — Packages (STAGE 9D)
   Editorial package presentation. Header from premium-shared.css (9A locked).
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1200;
  padding: 0.65rem 1rem;
  background: var(--navy, #061833);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--gold, #c9a227);
  outline-offset: 2px;
}

.packages-page {
  overflow-x: hidden;
  background: var(--paper, #f7f4ee);
  color: var(--ink, #12233f);
  font-family: var(--font-body, Manrope, sans-serif);
}

/* —— Hero —— */
.pkg-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.pkg-hero-media { position: absolute; inset: 0; }
.pkg-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.pkg-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 38, 0.84) 0%, rgba(4, 18, 38, 0.48) 52%, rgba(4, 18, 38, 0.3) 100%),
    linear-gradient(0deg, rgba(4, 18, 38, 0.74) 0%, transparent 58%);
}
.pkg-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.25rem;
}
.pkg-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft, #e8d59a);
}
.pkg-eyebrow-dark { color: var(--gold, #c9a227); }

.pkg-hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.pkg-hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: #c5d6ea;
}
.pkg-hero-desc {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

/* —— Intro + tabs —— */
.pkg-intro {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4rem 0 1.5rem;
}
.pkg-intro h2 {
  margin: 0.65rem 0 0.85rem;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy, #061833);
  letter-spacing: -0.02em;
}
.pkg-intro > p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted, #5a6b7d);
  line-height: 1.65;
  font-size: 1.02rem;
}

.pkg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin: 2.25rem 0 0;
  border-bottom: 1px solid rgba(18, 35, 63, 0.12);
}
.pkg-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #5a6b7d);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 0;
  margin-bottom: -1px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pkg-tab:hover { color: var(--navy, #061833); }
.pkg-tab.is-active {
  color: var(--navy, #061833);
  border-bottom-color: var(--gold, #c9a227);
}
.pkg-tab:focus-visible {
  outline: 2px solid var(--blue, #0d6fae);
  outline-offset: 3px;
}

/* —— Package panels —— */
.pkg-list {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pkg-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  background: #fff;
  border: 1px solid rgba(18, 35, 63, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.pkg-card-media {
  position: relative;
  min-height: 240px;
  background: #0a2744;
}
.pkg-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pkg-card-body {
  padding: 1.75rem 1.85rem 1.65rem;
  display: flex;
  flex-direction: column;
}
.pkg-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #c9a227);
  margin-bottom: 0.75rem;
}
.pkg-badge-blue { color: var(--blue, #0d6fae); }
.pkg-badge-navy { color: var(--navy, #061833); }

.pkg-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy, #061833);
}
.pkg-desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #5a6b7d);
}

.pkg-breakdown {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pkg-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  color: #4a5d73;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(18, 35, 63, 0.08);
}
.pkg-breakdown li span { flex: 1; }
.pkg-breakdown li b {
  white-space: nowrap;
  color: var(--ink, #12233f);
  font-weight: 700;
}
.pkg-breakdown li b i {
  font-style: normal;
  font-weight: 500;
  color: var(--muted, #5a6b7d);
  font-size: 0.75rem;
  margin-left: 0.15rem;
}

.pkg-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: auto;
  margin-bottom: 1.15rem;
  padding-top: 0.35rem;
}
.pkg-total span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #5a6b7d);
}
.pkg-total-amount {
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  color: var(--navy, #061833);
  white-space: nowrap;
}
.pkg-total-amount i {
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-body, Manrope, sans-serif);
  color: var(--muted, #5a6b7d);
  font-size: 0.8rem;
  margin-left: 0.2rem;
}

.pkg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pkg-cta:focus-visible {
  outline: 2px solid var(--blue, #0d6fae);
  outline-offset: 3px;
}
.btn-outline.pkg-cta {
  border: 1.5px solid var(--navy, #061833);
  color: var(--navy, #061833);
  background: transparent;
}
.btn-outline.pkg-cta:hover {
  background: var(--navy, #061833);
  color: #fff;
}
.btn-gold.pkg-cta {
  border: 1.5px solid var(--gold, #c9a227);
  background: var(--gold, #c9a227);
  color: #092044;
}
.btn-gold.pkg-cta:hover {
  background: #d4ab1f;
  border-color: #d4ab1f;
}

.pkg-card-popular { border-color: rgba(201, 162, 39, 0.45); }
.pkg-card-popular .pkg-card-body {
  background: linear-gradient(180deg, #fffef9 0%, #fff 55%);
}

.pkg-note {
  width: min(720px, calc(100% - 2.5rem));
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted, #5a6b7d);
  line-height: 1.65;
}

/* —— Strip / closing —— */
.pkg-strip {
  margin-top: 4rem;
  background: linear-gradient(115deg, #061833 0%, #0a4a73 100%);
  color: #fff;
  padding: 3.25rem max(1.25rem, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.pkg-strip .pkg-eyebrow { color: var(--gold-soft, #e8d59a); }
.pkg-strip h2 {
  margin: 0.5rem 0 0.65rem;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
}
.pkg-strip p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}
.pkg-strip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  background: var(--gold, #c9a227);
  color: #092044;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 2px;
}
.pkg-strip-btn:hover { background: #d4ab1f; }

.pkg-closing {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  text-align: center;
  padding: 4.5rem 0 5rem;
}
.pkg-closing h2 {
  margin: 0.65rem 0 1rem;
  font-family: var(--font-display, Fraunces, serif);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy, #061833);
}
.pkg-closing h2 em {
  font-style: italic;
  color: #6a7f9a;
  font-weight: 500;
}
.pkg-closing p {
  margin: 0 auto 1.35rem;
  color: var(--muted, #5a6b7d);
  line-height: 1.7;
  max-width: 36rem;
}
.pkg-text-link {
  font-weight: 800;
  color: var(--blue, #0d6fae);
  text-decoration: none;
}
.pkg-text-link:hover { text-decoration: underline; }

/* —— Footer —— */
.pkg-footer {
  background: #061833;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem max(1.25rem, calc((100% - 1120px) / 2));
}
.pkg-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.pkg-footer-logo {
  width: auto;
  max-width: 160px;
  max-height: 52px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
  background: #fff;
  padding: 0.35rem 0.5rem;
}
.pkg-footer p {
  margin: 0.35rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
}
.pkg-footer-nib { opacity: 0.7; font-size: 11.5px !important; }
.pkg-footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}
.pkg-footlinks a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.pkg-footlinks a:hover {
  color: #fff;
  text-decoration: underline;
}
.pkg-footer-meta {
  text-align: right;
  font-size: 0.8rem;
}
.pkg-footer-meta a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .pkg-tab, .pkg-cta, .pkg-strip-btn { transition: none; }
}

@media (max-width: 900px) {
  .pkg-card { grid-template-columns: 1fr; }
  .pkg-card-media {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
  .pkg-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.75rem 1.25rem;
  }
  .pkg-footer-inner { grid-template-columns: 1fr; }
  .pkg-footer-meta { text-align: left; }
}

@media (max-width: 700px) {
  .pkg-hero { min-height: min(68vh, 520px); }
  .pkg-hero-copy { padding: 3.25rem 0 2.5rem; }
  .pkg-intro,
  .pkg-list { width: calc(100% - 2rem); }
  .pkg-card-body { padding: 1.35rem 1.2rem 1.25rem; }
  .pkg-tabs { gap: 0.25rem 1.1rem; }
  .pkg-tab { font-size: 0.88rem; }
  .pkg-closing { padding: 3.25rem 0 3.75rem; }
}
