/* ==========================================================================
   OgerKnits.info — Buyer Learning & Sourcing Guide
   Aesthetic: Human, Editorial, Warm Light Paper Palette
   Inspired by independent trade publishing & workshop field guides
   ========================================================================== */

:root {
  /* Warm, natural paper & textile tones */
  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  --bg-subtle: #f4f0eb;
  --bg-warm: #eeeae3;
  --bg-tint-olive: #edf2ee;
  --bg-tint-terracotta: #faede6;
  --bg-tint-indigo: #edf2f7;

  /* Ink & Typography */
  --ink-primary: #211f1c;       /* Deep warm espresso ink */
  --ink-body: #47433e;          /* Readable warm charcoal */
  --ink-muted: #756f67;         /* Soft secondary text */
  --ink-faint: #a69f95;         /* Hairline and caption text */

  /* Natural textile accents (earth, plant, stone) */
  --c-indigo: #2c4a6f;          /* Washed cotton indigo */
  --c-indigo-hover: #1e3652;
  --c-terracotta: #9a482b;      /* Warm brick / terracotta */
  --c-olive: #3d5e49;           /* Natural sage / olive */
  --c-ochre: #8c6328;           /* Muted mustard ochre */

  /* Borders */
  --border-light: #e8e3dc;
  --border-medium: #d6cfc4;
  --border-strong: #b8aea0;

  /* Typography */
  --font-serif: 'Source Serif 4', 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-body);
  background-color: var(--bg-page);
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Editorial Serif Headings */
h1, h2, h3, .heading-serif {
  font-family: var(--font-serif);
  color: var(--ink-primary);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink-primary);
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--c-indigo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44, 74, 111, 0.35);
  transition: all 0.15s ease;
}

a:hover {
  color: var(--c-indigo-hover);
  text-decoration-color: var(--c-indigo-hover);
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   TOPBAR (Warm Light Ribbon)
   ========================================================================== */
.site-topbar {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}

.site-topbar a {
  text-decoration: none;
  color: var(--ink-body);
  font-weight: 600;
}

.site-topbar a:hover {
  color: var(--c-indigo);
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  color: var(--ink-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   NAVBAR (Clean, Airy & Human)
   ========================================================================== */
.site-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-primary) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: -2px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-body) !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink-primary) !important;
  background-color: var(--bg-subtle);
}

.nav-link.active {
  color: var(--c-indigo) !important;
  background-color: var(--bg-tint-indigo);
  font-weight: 700;
}

.btn-enquiry {
  background-color: #ffffff;
  color: var(--ink-primary) !important;
  border: 1px solid var(--border-medium);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.btn-enquiry:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--ink-primary) !important;
}

/* ==========================================================================
   PAGE HEADERS (Light, Warm, Editorial)
   ========================================================================== */
.page-header {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 3.25rem 0 2.75rem;
}

.page-header h1 {
  font-size: 2.35rem;
  color: var(--ink-primary);
  margin-bottom: 0.65rem;
}

.page-header .lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 780px;
  line-height: 1.6;
}

.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.breadcrumb-item a {
  text-decoration: none;
  color: var(--ink-muted);
}

.breadcrumb-item a:hover {
  color: var(--ink-primary);
}

.breadcrumb-item.active {
  color: var(--ink-primary);
  font-weight: 600;
}

/* ==========================================================================
   HOMEPAGE HERO (Light & Human Workshop Feel)
   ========================================================================== */
.hero-light {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 4.5rem 0 4rem;
  position: relative;
}

.hero-light h1 {
  font-size: 2.85rem;
  line-height: 1.18;
  color: var(--ink-primary);
  margin-bottom: 1.25rem;
}

.hero-lead-text {
  font-size: 1.2rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 680px;
}

.workshop-note-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--c-terracotta);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.workshop-note-card .title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-terracotta);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   EDITORIAL CARDS & TILES
   ========================================================================== */
.guide-tile {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease-in-out;
}

.guide-tile:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px rgba(33, 31, 28, 0.04);
  transform: translateY(-2px);
}

.guide-tile .chapter-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  display: block;
}

.guide-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.guide-tile p {
  font-size: 0.925rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.guide-tile .read-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-indigo);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.guide-tile .read-link:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

/* ==========================================================================
   TABLES (Clean Workshop & Spec Style)
   ========================================================================== */
.table-spec {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.table-spec thead th {
  background-color: var(--bg-subtle);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-medium);
}

.table-spec tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-spec tbody tr:last-child td {
  border-bottom: none;
}

.table-spec tbody tr:hover {
  background-color: var(--bg-page);
}

/* ==========================================================================
   FIELD NOTES / CALLOUT BOXES
   ========================================================================== */
.field-note {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--ink-primary);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-size: 0.925rem;
}

.field-note-title {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--ink-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field-note p:last-child {
  margin-bottom: 0;
}

.field-note.note-terracotta {
  background-color: var(--bg-tint-terracotta);
  border-color: rgba(154, 72, 43, 0.25);
  border-left-color: var(--c-terracotta);
}

.field-note.note-olive {
  background-color: var(--bg-tint-olive);
  border-color: rgba(61, 94, 73, 0.25);
  border-left-color: var(--c-olive);
}

/* ==========================================================================
   INTERACTIVE TOOLS (Checklist, Recommender, Glossary)
   ========================================================================== */
.tool-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.checklist-group {
  margin-bottom: 2rem;
}

.checklist-group-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checklist-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.checklist-item:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
}

.checklist-item.checked {
  background-color: #f7faf7;
  border-color: #a8cfb4;
}

.checklist-item input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--c-olive);
  cursor: pointer;
}

.checklist-label strong {
  display: block;
  font-size: 0.925rem;
  color: var(--ink-primary);
}

.checklist-label small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.825rem;
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* ==========================================================================
   GLOSSARY (Clean A-Z Cards)
   ========================================================================== */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.alphabet-nav .btn-letter {
  width: 32px;
  height: 32px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--ink-body);
  border-radius: var(--radius-sm);
  transition: all 0.12s ease;
}

.alphabet-nav .btn-letter:hover,
.alphabet-nav .btn-letter.active {
  background: var(--ink-primary);
  color: #ffffff;
  border-color: var(--ink-primary);
}

.glossary-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  height: 100%;
  transition: all 0.15s ease;
}

.glossary-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.glossary-term {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.glossary-category-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   ORDER PROCESS TIMELINE
   ========================================================================== */
.timeline-process {
  position: relative;
  padding-left: 2.25rem;
}

.timeline-process::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 15px;
  bottom: 25px;
  width: 2px;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: -2.25rem;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--ink-primary);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg-page);
  z-index: 2;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* ==========================================================================
   CONVERSION CARD (Warm Linen / Workshop Style)
   ========================================================================== */
.cta-banner-warm {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
}

.cta-banner-warm h2 {
  font-size: 1.85rem;
  color: var(--ink-primary);
  margin-bottom: 0.65rem;
}

.cta-banner-warm p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 680px;
}

.btn-warm-primary {
  background-color: var(--ink-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--ink-primary);
  transition: all 0.15s ease;
}

.btn-warm-primary:hover {
  background-color: #38342e;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-warm-outline {
  background-color: #ffffff;
  color: var(--ink-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border-medium);
}

.btn-warm-outline:hover {
  background-color: var(--bg-warm);
}

/* ==========================================================================
   FOOTER (Light & Editorial)
   ========================================================================== */
.site-footer-light {
  background-color: #ffffff;
  color: var(--ink-muted);
  font-size: 0.875rem;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border-light);
}

.footer-heading {
  font-family: var(--font-sans);
  color: var(--ink-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   SIDEBAR NAV
   ========================================================================== */
.sticky-nav-card {
  position: sticky;
  top: 85px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.sticky-nav-card .nav-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem !important;
  color: var(--ink-muted) !important;
  border-radius: 4px;
}

.sticky-nav-card .nav-link.active,
.sticky-nav-card .nav-link:hover {
  color: var(--ink-primary) !important;
  background: var(--bg-subtle);
  font-weight: 600;
}

/* ==========================================================================
   FLOATING MERCHANDISER ACTION PILL
   ========================================================================== */
.floating-merchandiser-pill {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-card);
  color: var(--ink-primary);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.floating-merchandiser-pill:hover {
  background-color: #ffffff;
  border-color: #25D366;
  color: var(--ink-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.floating-merchandiser-pill .pill-dot {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 576px) {
  .floating-merchandiser-pill {
    bottom: 15px;
    left: 15px;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   PRINT SPECIFICATION STYLES
   ========================================================================== */
@media print {
  .site-topbar,
  .site-navbar,
  .site-footer-light,
  .cta-banner-warm,
  .floating-merchandiser-pill,
  .no-print {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
    color: #111111 !important;
    font-size: 10.5pt;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .card, .checklist-item, .table-spec {
    border: 1px solid #777 !important;
    box-shadow: none !important;
  }
}
