/* ==========================================================
   247-365 Recovery — Global stylesheet
   NON-CRITICAL: loaded deferred via media="print" trick in BaseLayout.
   Tokens are also inlined in BaseLayout critical CSS for above-fold.
   ========================================================== */

/* --- Tokens (duplicated here for CSS cascade completeness) --- */
:root {
  --brand:        #1A3A2A;
  --brand-mid:    #2D6648;
  --brand-light:  #3D8A62;
  --brand-pale:   #EAF3EE;
  --brand-border: #B8D8C4;
  --accent:       #E8B422;
  --accent-deep:  #B88A0A;
  --accent-pale:  #FEF8E6;
  --accent-border:#F5D878;
  --ink:   #141410;
  --ink-2: #2C2C28;
  --ink-3: #5A5A54;
  --ink-4: #8A8A80;
  --paper:   #FDFCF5;
  --paper-2: #F4F2E8;
  --paper-3: #EBE9DC;
  --rule:    #E2DFD0;
  --confirm:      #1A5C2A;
  --confirm-pale: #E8F5EC;
  --font-d: 'Fraunces', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
}

/* --- Base reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Section base --- */
.sec {
  padding: 40px 24px;
  border-bottom: 1px solid var(--rule);
}
.sec.tinted { background: var(--paper-2); }
.sec.dark   { background: var(--brand); border-bottom: none; }
.sec-inner  { max-width: 1280px; margin: 0 auto; }

/* --- Typography helpers --- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 8px;
}
.eyebrow.light { color: var(--accent); }

.sec-h2 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.8px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 10px;
}
.sec-h2.light { color: var(--paper); }

.sec-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 620px;
}
.sec-body.light { color: rgba(253,252,245,0.58); }

/* --- Chips (used on auctions page) --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  color: var(--ink-3);
}

/* --- Response table (contact page) --- */
.resp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 20px;
}
.resp-table th {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.resp-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  vertical-align: top;
}
.resp-table tr:last-child td { border-bottom: none; }
.resp-table .highlight { color: var(--confirm); font-weight: 600; }

/* --- Contact info cards (contact page) --- */
.contact-method-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-method-icon {
  width: 38px; height: 38px;
  background: var(--brand-pale);
  border: 1px solid var(--brand-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method-label {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-method-detail {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.contact-method-detail a { color: var(--brand); font-family: var(--font-b); font-weight: 700; letter-spacing: 0.5px; }

/* --- Note text (small body copy below checklist) --- */
.row-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
}
.row-note a { color: var(--brand); font-weight: 600; }

@media (min-width: 900px) {
  .sec { padding: 64px 48px; }
}

/* --- Scroll animations --- */
/* Default: fully visible — no JS, no flash */
.fade-up {
  opacity: 1;
  transform: none;
}
/* Only animate once JS confirms it's running */
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready .fade-up {
    opacity: 1;
    transform: none;
  }
}
