/* Paulina Alday — Relocation Services
   Production stylesheet. Palette: Ivory & Ink.
   Fonts: Cormorant Garamond (display/serif) + Montserrat (sans). */

:root {
  --pa-page: #F5F1E8;
  --pa-panel: #FFFFFF;
  --pa-mid: #E7E1D5;
  --pa-ink: #111111;
  --pa-muted: #585249;
  --pa-body: #38352f;
  --pa-body2: #2f2c27;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pa-page);
  color: var(--pa-ink);
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pa-ink); text-decoration: none; }
a:hover { color: var(--pa-muted); }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; }

@keyframes pa-kb { 0% { transform: scale(1) translate3d(0,0,0); } 100% { transform: scale(1.04) translate3d(0,-1%,0); } }
@keyframes pa-marq { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }
@keyframes pa-rise { 0% { opacity: 0; transform: translate3d(0,18px,0); } 100% { opacity: 1; transform: none; } }

[data-reveal] { transition: opacity 0.85s cubic-bezier(.16,.84,.24,1), transform 0.85s cubic-bezier(.16,.84,.24,1); }
[data-reveal][data-pending="1"] { opacity: 0; transform: translate3d(0,18px,0); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--pa-ink); color: var(--pa-page); padding: 12px 18px; z-index: 999; font-size: 13px; letter-spacing: 2.2px; text-transform: uppercase; }
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--pa-ink); outline-offset: 3px;
}

/* Cookie preferences dialog: display:flex must come from a stylesheet rule,
   not an inline style, so it never fights the `hidden` attribute's default
   `[hidden]{display:none}` — an inline display value always wins over that,
   which was leaving the dialog visible (and un-hideable) at all times. */
#pa-cookie-dialog:not([hidden]) { display: flex; }

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee { background: var(--pa-ink); color: var(--pa-page); overflow: hidden; }
/* Pause-on-hover is a mouse/trackpad affordance only. Scoping it to
   (hover: hover) keeps it off touchscreens — otherwise a tap anywhere on the
   band leaves it "stuck" hovered forever, since touch devices have no real
   hover/mouseleave to clear it, which read as the carousel being frozen. */
@media (hover: hover) {
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
}

/* ── 44x44 minimum hit area — padding only, type size untouched ────────── */
header nav a { min-height: 44px; display: inline-flex; align-items: center; }
header button { min-height: 44px; min-width: 44px; padding-left: 10px; padding-right: 10px; }
a[href^="tel:"], a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
a[href="#quote"], a[href="#services"], button[type="submit"] { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
form input, form select { min-height: 44px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Interactive components (hover/focus states — kept out of inline style
   so pseudo-classes can win over authored inline colours) ─────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none; text-decoration: none; }
.btn-dark { background: var(--pa-ink); color: var(--pa-page); }
.btn-dark:hover { background: #3a3a38; color: var(--pa-page); }
.btn-light { background: var(--pa-page); color: var(--pa-ink); }
.btn-light:hover { background: #FFFFFF; }
.btn-outline { border: 1px solid rgba(17,17,17,0.35); background: transparent; color: var(--pa-ink); }
.btn-outline:hover { border-color: var(--pa-ink); background: rgba(17,17,17,0.04); }
.btn-outline-light { border: 1px solid rgba(245,241,232,0.4); background: transparent; color: var(--pa-page); }
.btn-outline-light:hover { background: var(--pa-page); color: var(--pa-ink); border-color: var(--pa-page); }

.nav-link { border-bottom: 1px solid transparent; color: inherit; }
.nav-link:hover { border-bottom-color: var(--pa-ink); }
.nav-link[aria-current="true"] { border-bottom-color: var(--pa-ink); color: var(--pa-ink); }

.lang-btn { background: none; border: none; cursor: pointer; border-bottom: 1px solid transparent; color: var(--pa-muted); }
.lang-btn:hover { color: var(--pa-ink); }
.lang-btn[aria-pressed="true"] { border-bottom-color: var(--pa-ink); color: var(--pa-ink); }

.fork-card { background: var(--pa-page); color: var(--pa-ink); }
.fork-card:hover { background: #FFFFFF; }

.tier-card { background: var(--pa-page); }
.tier-card:hover { background: #FFFFFF; }

.field-dark { background: none; border: none; border-bottom: 1px solid rgba(245,241,232,0.35); color: var(--pa-page); outline: none; }
.field-dark:focus { border-bottom-color: var(--pa-page); }

.footer-legal-btn { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; min-height: 44px; display: inline-flex; align-items: center; }

/* ── Header / nav layout ─────────────────────────────────────────────── */
header[data-past="1"] { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* Five nav items fit the content band; below ~1120px the menu takes over */
@media (max-width: 1120px) {
  header > div { padding-top: 10px !important; padding-bottom: 10px !important; flex-wrap: nowrap !important; }
  .pa-burger { display: flex !important; }
  .pa-nav {
    display: none !important; position: fixed; left: 0; right: 0; top: var(--pa-hdr, 76px); bottom: 0;
    height: calc(100vh - var(--pa-hdr, 76px)) !important; flex-direction: column !important; flex-wrap: nowrap !important;
    flex: 0 1 auto !important; justify-content: flex-start !important; min-width: 0 !important; align-items: stretch;
    gap: 0 !important; padding: 12px clamp(20px,5vw,40px) 40px; background: var(--pa-page);
    border-top: 1px solid rgba(17,17,17,0.10); overflow-y: auto; z-index: 60; white-space: normal !important;
  }
  .pa-nav[data-open="1"] { display: flex !important; }
  .pa-nav a { font-size: 15px !important; letter-spacing: 2.4px !important; width: 100%; padding: 18px 0 !important; border-bottom: 1px solid rgba(17,17,17,0.10) !important; justify-content: flex-start; }
  section { scroll-margin-top: calc(var(--pa-hdr, 76px) + 8px); }
}
@media (max-width: 1100px) {
  [data-sm] { font-size: 13px !important; }
}
@media (max-width: 768px) {
  [data-lock="tag"] { font-size: 10px !important; letter-spacing: 2.6px !important; text-indent: 2.6px !important; }
  [data-lock="name"] { font-size: 10px !important; letter-spacing: 5px !important; text-indent: 5px !important; }
  [data-lock="mark"] { font-size: 22px !important; letter-spacing: 6px !important; text-indent: 6px !important; }
  p { font-size: 16px !important; line-height: 1.8 !important; }
  h1 { font-size: clamp(32px,9vw,52px) !important; }
  h2 { font-size: clamp(24px,6.6vw,38px) !important; }
  h3 { font-size: clamp(18px,5vw,26px) !important; }
}
/* Below 600px the lockup, toggle and CTA cannot all fit one row at full size:
   the lockup drops to the wordmark and everything gains min-width:0 so the row
   compresses instead of pushing the CTA and burger outside the clipped header. */
@media (max-width: 600px) {
  header > div { gap: 8px !important; }
  header > div > a { min-width: 0 !important; }
  header > div > div { min-width: 0 !important; gap: 12px !important; }
  [data-lock="tag"], [data-lock="name"] { display: none !important; }
  [data-lock="mark"] { font-size: 20px !important; letter-spacing: 4px !important; text-indent: 4px !important; }
  .pa-langs { gap: 4px !important; }
  .pa-langs span { display: none !important; }
  .pa-cta { padding: 12px 12px !important; letter-spacing: 1.2px !important; }
}
@media (max-width: 480px) {
  header > div { gap: 6px !important; }
  header > div > div { gap: 9px !important; }
  [data-lock="mark"] { font-size: 20px !important; }
  .pa-cta { padding: 12px 9px !important; letter-spacing: 1px !important; }
  h1 { font-size: clamp(32px,10vw,40px) !important; }
}
/* 360px phones: the row's last reserve is the horizontal padding */
@media (max-width: 400px) {
  .pa-langs { display: none !important; }
  .pa-nav[data-open="1"] .pa-langs-panel { display: flex !important; }
}
@media (max-width: 380px) {
  header > div { padding-left: 12px !important; padding-right: 12px !important; gap: 5px !important; }
  [data-lock="mark"] { font-size: 18px !important; letter-spacing: 3px !important; text-indent: 3px !important; }
  .pa-cta { padding: 12px 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  /* The marquee tickers are excluded here on purpose: continuous horizontal
     scrolling text/logos is mild, decorative motion, unlike the hero's
     Ken Burns zoom or the section-reveal slide-ins — those still fully
     respect Reduce Motion below; the tickers keep their authored speed. */
  *:not(.marquee__track), *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Legibility floor: captions, labels and fine print never below 11px */
div[style*="font-size:9px"], span[style*="font-size:9px"], label[style*="font-size:9px"],
div[style*="font-size:9.5px"], span[style*="font-size:9.5px"],
div[style*="font-size:10px"], p[style*="font-size:10px"], span[style*="font-size:10px"] {
  font-size: 11px !important;
}

/* ── Legal pages (Privacy / Terms) ──────────────────────────────────── */
.legal-body h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; margin: 48px 0 16px; }
.legal-body h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; margin: 32px 0 12px; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.85; color: var(--pa-body); }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-table-wrap { overflow-x: auto; margin: 20px 0; }
.legal-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13.5px; }
.legal-table th, .legal-table td { border: 1px solid rgba(17,17,17,0.15); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--pa-mid); font-weight: 500; }
