/* ==========================================================================
   RETURNS — AmberNord
   Scope: .returns-page-container and children.
   Tokens: --color-gold --color-bg --color-text --color-border-gold
   --color-surface --nav-height --font-serif --font-sans
   --container-pad --t-fast --t-slow
   ========================================================================== */

/* --------------------------------------------------------------------------
   ROOT — page wrapper with nav offset, entrance animation trigger.
   -------------------------------------------------------------------------- */

.returns-page-container {
  padding: calc(var(--nav-height) + 60px) 0 120px;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   ENTRANCE — single fade-up reveal on page load.
   -------------------------------------------------------------------------- */

@keyframes returnsReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.returns-page-container {
  animation: returnsReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL — elements animate in as they enter the viewport.
   -------------------------------------------------------------------------- */

.page-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   REDUCED MOTION — disable all animation for users who prefer it.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .page-reveal,
  .returns-page-container {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   SUBPAGE HEADER — centred eyebrow + h1, constrained width.
   -------------------------------------------------------------------------- */

.subpage-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 0 var(--container-pad);
}

.subpage-subtitle {
  display: inline-block;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(237, 163, 35, 0.4);
  padding-bottom: 10px;
}

.subpage-header h1 {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.subpage-header h1 span {
  font-style: italic;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   SKIP LINK — visible only on keyboard focus for accessibility.
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-gold);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   FOCUS — gold ring on all keyboard-focusable elements for accessibility.
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   SECTIONS CONTAINER — single-column legal layout, centred.
   -------------------------------------------------------------------------- */

.returns-sections {
  max-width: 800px;
  padding: 0 var(--container-pad);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   INDIVIDUAL SECTION — vertical rhythm between legal blocks.
   -------------------------------------------------------------------------- */

.returns-section {
  margin-bottom: 56px;
}

/* --------------------------------------------------------------------------
   SECTION HEADING — gold accent, serif tone matching brand.
   -------------------------------------------------------------------------- */

.returns-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--color-gold);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   SECTION BODY — paragraph container; inherits from .returns-section.
   -------------------------------------------------------------------------- */

.returns-section__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   BODY TEXT — lightweight, generous leading for legal readability.
   -------------------------------------------------------------------------- */

.returns-section__body p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #d0d0d0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   ADDRESS BLOCK — address paragraph with strong company name.
   -------------------------------------------------------------------------- */

.returns-section__body p strong {
  color: var(--color-text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   INLINE LINKS — gold tint, no underline, soft hover fade.
   -------------------------------------------------------------------------- */

.returns-section__body a {
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity var(--t-fast);
}

.returns-section__body a:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   FOOTER NOTE — last-updated timestamp, muted and separated by rule.
   -------------------------------------------------------------------------- */

.returns-footer {
  max-width: 800px;
  padding: 0 var(--container-pad);
  margin: 56px auto 0;
}

.returns-footer__note {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: #888;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   WILL-CHANGE — scoped to active animation only; removed after by JS.
   -------------------------------------------------------------------------- */

.returns-page-container.animating {
  will-change: opacity, transform;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — tablet 991px: minor spacing reductions.
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .returns-section {
    margin-bottom: 44px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — mobile 768px: tighten vertical rhythm.
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .returns-page-container {
    padding-bottom: 80px;
  }

  .subpage-header {
    margin-bottom: 56px;
  }

  .returns-section {
    margin-bottom: 36px;
  }

  .returns-footer {
    margin-top: 40px;
  }
}
