/*
 * Legendary Letters – Design System
 * Magical, premium, story-led world for handwritten adventure letters
 * Design tokens, components, and layout
 */

/* ===========================================
   DESIGN TOKENS
   =========================================== */
:root {
  /* Base colours – deep magical tones */
  --ll-midnight: #0b1d2e;
  --ll-navy: #0f2847;
  --ll-twilight: #1a365d;
  --ll-dusk: #243b55;
  --ll-night: #0d1b2a;
  
  /* Accent – warm, premium */
  --ll-gold: #c9a227;
  --ll-gold-light: #e5c76b;
  --ll-gold-dim: rgba(201, 162, 39, 0.15);
  --ll-amber: #d4a574;
  --ll-candlelight: #f5e6c8;
  --ll-parchment: #f8f4eb;
  --ll-parchment-dark: #e8e0d0;
  --ll-wax-seal: #8b2914;
  --ll-wax-seal-light: #a63d2b;
  
  /* Supporting */
  --ll-teal: #5c7c7a;
  --ll-plum: #6b5b73;
  --ll-ink: #1a1a1a;
  
  /* Semantic */
  --ll-bg: var(--ll-night);
  --ll-bg-alt: var(--ll-midnight);
  --ll-bg-card: var(--ll-navy);
  --ll-bg-parchment: var(--ll-parchment);
  --ll-text: #f5f1e8;
  --ll-text-muted: rgba(245, 241, 232, 0.75);
  --ll-text-dark: var(--ll-ink);
  --ll-border: rgba(201, 162, 39, 0.2);
  --ll-border-light: rgba(0, 0, 0, 0.08);
  
  /* Typography */
  --ll-font-head: 'Cormorant Garamond', 'Georgia', serif;
  --ll-font-body: 'Source Serif 4', 'Georgia', serif;
  --ll-font-ui: 'Source Serif 4', system-ui, sans-serif;
  
  /* Spacing */
  --ll-space-xs: 0.25rem;
  --ll-space-sm: 0.5rem;
  --ll-space-md: 1rem;
  --ll-space-lg: 1.5rem;
  --ll-space-xl: 2rem;
  --ll-space-2xl: 3rem;
  --ll-space-3xl: 4rem;
  --ll-space-4xl: 6rem;
  
  /* Radii */
  --ll-radius-sm: 4px;
  --ll-radius-md: 8px;
  --ll-radius-lg: 12px;
  --ll-radius-xl: 20px;
  --ll-radius-seal: 50%;
  
  /* Shadows & glows */
  --ll-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --ll-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --ll-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --ll-glow-gold: 0 0 20px rgba(201, 162, 39, 0.2);
  --ll-glow-amber: 0 0 24px rgba(212, 165, 116, 0.15);
  
  /* Transitions */
  --ll-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ll-duration: 0.2s;
  
  /* Layout */
  --ll-sidebar-width: 16rem;
  --ll-content-max: 72rem;
  --ll-narrow: 42rem;
}

/* ===========================================
   TYPOGRAPHY & BASE
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ll-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ll-text);
  background: var(--ll-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle texture overlay – optional paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a {
  color: var(--ll-gold-light);
  text-decoration: none;
  transition: color var(--ll-duration) var(--ll-ease);
}
a:hover { color: var(--ll-gold); }
a:focus-visible { outline: 2px solid var(--ll-gold); outline-offset: 2px; }

/* ===========================================
   LAYOUT – Sidebar (Letter archive feel)
   =========================================== */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: var(--ll-sidebar-width);
  min-width: var(--ll-sidebar-width);
  background: linear-gradient(180deg, var(--ll-midnight) 0%, var(--ll-navy) 100%);
  border-right: 1px solid var(--ll-border);
  padding: var(--ll-space-lg) 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ll-shadow-md);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 0 var(--ll-space-lg) var(--ll-space-lg);
  border-bottom: 1px solid var(--ll-border);
  margin: 0 var(--ll-space-md);
}
.sidebar-brand a {
  font-family: var(--ll-font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ll-text);
  letter-spacing: 0.02em;
}
.sidebar-brand a:hover { color: var(--ll-gold); }
.sidebar-logo {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.sidebar-nav {
  flex: 1;
  padding: var(--ll-space-md) 0;
}
.sidebar-nav a {
  display: block;
  padding: var(--ll-space-sm) var(--ll-space-lg);
  margin: 0 var(--ll-space-sm);
  color: var(--ll-text-muted);
  font-size: 0.95rem;
  border-radius: var(--ll-radius-md);
  border-left: 3px solid transparent;
  transition: color var(--ll-duration), background var(--ll-duration), border-color var(--ll-duration);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--ll-text);
  background: var(--ll-gold-dim);
  border-left-color: var(--ll-gold);
}
.sidebar-nav a:hover { text-decoration: none; }

.sidebar-account {
  margin-top: auto;
  padding: var(--ll-space-lg);
  border-top: 1px solid var(--ll-border);
  display: flex;
  flex-direction: column;
  gap: var(--ll-space-sm);
}
.sidebar-account-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ll-text);
  margin-bottom: var(--ll-space-xs);
}
.sidebar-account a {
  font-size: 0.9rem;
  padding: var(--ll-space-xs) 0;
}

.main {
  flex: 1;
  padding: var(--ll-space-xl);
  max-width: 100%;
}

/* ===========================================
   SKIP LINK
   =========================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--ll-space-md);
  z-index: 10000;
  padding: var(--ll-space-sm) var(--ll-space-md);
  background: var(--ll-gold);
  color: var(--ll-ink);
  font-weight: 600;
  border-radius: var(--ll-radius-sm);
  transition: top var(--ll-duration);
}
.skip-link:focus { top: var(--ll-space-md); outline: 2px solid var(--ll-parchment); outline-offset: 2px; }

/* ===========================================
   HERO SECTION
   =========================================== */
.ll-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--ll-space-3xl) var(--ll-space-xl);
  margin: calc(-1 * var(--ll-space-xl)) calc(-1 * var(--ll-space-xl)) 0;
  width: calc(100% + 2 * var(--ll-space-xl));
  position: relative;
  background: linear-gradient(180deg, var(--ll-midnight) 0%, var(--ll-navy) 50%, var(--ll-bg) 100%);
  overflow: hidden;
}

.ll-hero.ll-hero--has-bg {
  background-image: linear-gradient(180deg, rgba(11, 29, 46, 0.6) 0%, rgba(11, 29, 46, 0.85) 100%), var(--ll-hero-bg);
  background-size: cover;
  background-position: center;
}

.ll-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.ll-hero .ll-container { position: relative; z-index: 1; }

.ll-hero .ll-hero-cascade {
  margin: var(--ll-space-lg) 0 var(--ll-space-xl);
  font-family: var(--ll-font-head);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--ll-text-muted);
  line-height: 1.6;
}
.ll-hero .ll-hero-cascade span { display: block; }

.ll-hero h1 {
  font-family: var(--ll-font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 var(--ll-space-lg);
  color: var(--ll-text);
}

.ll-hero .ll-hero-tagline {
  font-size: 1.25rem;
  color: var(--ll-text-muted);
  max-width: var(--ll-narrow);
  margin: 0 0 var(--ll-space-xl);
}

.ll-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ll-space-md);
  margin-top: var(--ll-space-lg);
}

/* ===========================================
   SECTION BLOCKS
   =========================================== */
.ll-section {
  padding: var(--ll-space-4xl) 0;
}

.ll-section--parchment {
  background: var(--ll-parchment);
  color: var(--ll-ink);
}
.ll-section--parchment .ll-section-title,
.ll-section--parchment h2 { color: var(--ll-ink); }
.ll-section--parchment .ll-text-muted { color: var(--ll-plum); }

.ll-section-title {
  font-family: var(--ll-font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 var(--ll-space-md);
  letter-spacing: 0.02em;
}

.ll-home-content { max-width: var(--ll-narrow); }
.ll-home-content .ll-intro { font-size: 1.25rem; font-weight: 500; margin-bottom: var(--ll-space-lg); color: var(--ll-text); }
.ll-home-content .ll-sign-off { font-style: italic; color: var(--ll-gold); margin-top: var(--ll-space-xl); }
.ll-why-list { list-style: none; padding: 0; margin: var(--ll-space-lg) 0; }
.ll-why-list li { padding: var(--ll-space-sm) 0; padding-left: 1.5rem; position: relative; }
.ll-why-list li::before { content: '✦'; position: absolute; left: 0; color: var(--ll-gold); }

.ll-section-subtitle {
  font-size: 1.125rem;
  color: var(--ll-text-muted);
  max-width: 36rem;
  margin: 0 0 var(--ll-space-2xl);
}

.ll-section--parchment .ll-section-subtitle { color: var(--ll-plum); }

/* ===========================================
   BUTTONS
   =========================================== */
.ll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ll-space-sm);
  padding: var(--ll-space-md) var(--ll-space-xl);
  font-family: var(--ll-font-ui);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--ll-radius-md);
  cursor: pointer;
  transition: transform var(--ll-duration), box-shadow var(--ll-duration), filter var(--ll-duration);
  text-decoration: none;
  min-height: 48px;
}

.ll-btn:focus-visible { outline: 2px solid var(--ll-gold); outline-offset: 2px; }

.ll-btn--primary {
  background: linear-gradient(135deg, var(--ll-gold) 0%, var(--ll-amber) 100%);
  color: var(--ll-ink);
  box-shadow: var(--ll-shadow-sm), var(--ll-glow-gold);
}
.ll-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-md), var(--ll-glow-amber);
  filter: brightness(1.05);
}

.ll-btn--secondary {
  background: transparent;
  color: var(--ll-gold);
  border: 2px solid var(--ll-gold);
}
.ll-btn--secondary:hover {
  background: var(--ll-gold-dim);
  transform: translateY(-1px);
}
.ll-btn.ll-active { background: var(--ll-gold-dim); border-color: var(--ll-gold); }

.ll-btn--wax {
  background: var(--ll-wax-seal);
  color: var(--ll-parchment);
  border-radius: 50px;
  padding: var(--ll-space-md) var(--ll-space-2xl);
}
.ll-btn--wax:hover {
  background: var(--ll-wax-seal-light);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-md);
}

/* ===========================================
   CARDS – Parchment / envelope feel
   =========================================== */
.ll-card {
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-lg);
  padding: var(--ll-space-xl);
  box-shadow: var(--ll-shadow-md);
  transition: transform var(--ll-duration), box-shadow var(--ll-duration), border-color var(--ll-duration);
}

.ll-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: var(--ll-shadow-lg), var(--ll-glow-gold);
  transform: translateY(-2px);
}

.ll-card--parchment {
  background: var(--ll-parchment);
  color: var(--ll-ink);
  border-color: var(--ll-border-light);
  box-shadow: var(--ll-shadow-sm);
}
.ll-card--parchment:hover {
  border-color: var(--ll-amber);
  box-shadow: var(--ll-shadow-md);
}

.ll-card-title {
  font-family: var(--ll-font-head);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--ll-space-sm);
}

.ll-card-text {
  color: var(--ll-text-muted);
  margin: 0;
  font-size: 0.95rem;
}
.ll-card--parchment .ll-card-text { color: var(--ll-plum); }
.ll-card--parchment .ll-text-muted { color: var(--ll-plum); }

/* ===========================================
   FEATURE GRID
   =========================================== */
.ll-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--ll-space-xl);
}

.ll-book-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--ll-radius-md);
  margin-bottom: var(--ll-space-md);
}

.ll-feature {
  text-align: center;
}
.ll-feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--ll-space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--ll-gold);
  /* Placeholder – swap for SVG icon */
}
.ll-feature h3 {
  font-family: var(--ll-font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--ll-space-sm);
}

/* ===========================================
   TESTIMONIAL
   =========================================== */
.ll-testimonial {
  padding: var(--ll-space-xl);
  background: var(--ll-bg-card);
  border-left: 4px solid var(--ll-gold);
  border-radius: var(--ll-radius-md);
  font-style: italic;
  color: var(--ll-text-muted);
}
.ll-testimonial--parchment {
  background: var(--ll-parchment-dark);
  color: var(--ll-ink);
  border-left-color: var(--ll-wax-seal);
}

.ll-testimonial-attribution {
  margin-top: var(--ll-space-md);
  font-style: normal;
  font-weight: 600;
  color: var(--ll-gold);
  font-size: 0.9rem;
}

/* ===========================================
   FAQ ACCORDION
   =========================================== */
.ll-faq-item {
  border-bottom: 1px solid var(--ll-border);
}
.ll-faq-item:last-child { border-bottom: none; }

.ll-faq-question {
  width: 100%;
  padding: var(--ll-space-lg);
  background: transparent;
  border: none;
  color: var(--ll-text);
  font-family: var(--ll-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--ll-duration);
}
.ll-faq-question:hover { background: var(--ll-gold-dim); }
.ll-faq-question:focus-visible { outline: 2px solid var(--ll-gold); outline-offset: -2px; }

.ll-faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--ll-gold);
  flex-shrink: 0;
  margin-left: var(--ll-space-md);
}
.ll-faq-item[open] .ll-faq-question::after { content: '−'; }

.ll-faq-answer {
  padding: 0 var(--ll-space-lg) var(--ll-space-lg);
  color: var(--ll-text-muted);
}

/* ===========================================
   FORMS
   =========================================== */
.ll-input,
.ll-textarea,
.ll-select {
  width: 100%;
  padding: var(--ll-space-md);
  font-family: var(--ll-font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  color: var(--ll-text);
  transition: border-color var(--ll-duration), box-shadow var(--ll-duration);
}
.ll-input::placeholder,
.ll-textarea::placeholder { color: var(--ll-text-muted); opacity: 0.7; }

.ll-input:focus,
.ll-textarea:focus,
.ll-select:focus {
  outline: none;
  border-color: var(--ll-gold);
  box-shadow: 0 0 0 3px var(--ll-gold-dim);
}

.ll-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--ll-space-xs);
  font-size: 0.9rem;
}

.ll-form-group { margin-bottom: var(--ll-space-lg); }

/* Parchment form variant (section or card) */
.ll-section--parchment .ll-input,
.ll-section--parchment .ll-textarea,
.ll-section--parchment .ll-select,
.ll-card--parchment .ll-input,
.ll-card--parchment .ll-textarea,
.ll-card--parchment .ll-select {
  background: #fff;
  border-color: var(--ll-border-light);
  color: var(--ll-ink);
}
.ll-card--parchment .ll-input::placeholder,
.ll-card--parchment .ll-textarea::placeholder {
  color: var(--ll-text-muted);
}

/* ===========================================
   BADGES / TAGS
   =========================================== */
.ll-badge {
  display: inline-block;
  padding: var(--ll-space-xs) var(--ll-space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-gold-dim);
  color: var(--ll-gold);
}

/* ===========================================
   ARTICLE LIST & POST CARDS
   =========================================== */
.ll-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ll-article-item {
  padding: var(--ll-space-xl) 0;
  border-bottom: 1px solid var(--ll-border);
}
.ll-article-item:last-child { border-bottom: none; }

.ll-article-item h2 {
  font-family: var(--ll-font-head);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--ll-space-sm);
}
.ll-article-item h2 a { color: var(--ll-text); }
.ll-article-item h2 a:hover { color: var(--ll-gold); text-decoration: none; }

.ll-article-meta {
  color: var(--ll-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--ll-space-sm);
}

.ll-article-excerpt { color: var(--ll-text-muted); margin: 0 0 var(--ll-space-sm); }

.ll-story-list { display: grid; gap: var(--ll-space-xl); }
.ll-story-card { display: flex; flex-direction: column; }
.ll-story-image-link { display: block; overflow: hidden; border-radius: var(--ll-radius-md); margin-bottom: var(--ll-space-md); }
.ll-story-image { width: 100%; height: 200px; object-fit: cover; }
.ll-story-content { flex: 1; }
.ll-story-price { display: flex; align-items: center; gap: var(--ll-space-md); margin-top: var(--ll-space-md); flex-wrap: wrap; }
.ll-price { font-family: var(--ll-font-head); font-size: 1.25rem; font-weight: 600; color: var(--ll-gold); }
.ll-price-large { font-size: 1.5rem; }
.ll-story-purchase { display: flex; align-items: center; gap: var(--ll-space-lg); margin-top: var(--ll-space-xl); padding-top: var(--ll-space-lg); border-top: 1px solid var(--ll-border); }
.ll-btn-sm { padding: var(--ll-space-sm) var(--ll-space-md); font-size: 0.9rem; min-height: auto; }

.ll-article-item .ll-featured-img {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: var(--ll-radius-md);
  margin-top: var(--ll-space-sm);
  border: 1px solid var(--ll-border);
}

/* ===========================================
   ARTICLE SINGLE (Post / page content)
   =========================================== */
.ll-article-single h1 {
  font-family: var(--ll-font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 var(--ll-space-sm);
  letter-spacing: 0.02em;
}

.ll-article-single .ll-article-meta { margin-bottom: var(--ll-space-lg); }

.ll-article-single .ll-body {
  max-width: var(--ll-narrow);
  font-size: 1.05rem;
}
.ll-article-single .ll-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ll-radius-md);
  border: 1px solid var(--ll-border);
}
.ll-article-single .ll-body h2,
.ll-article-single .ll-body h3 {
  font-family: var(--ll-font-head);
  margin-top: var(--ll-space-2xl);
  margin-bottom: var(--ll-space-md);
}
.ll-article-single .ll-body p { margin-bottom: var(--ll-space-lg); }

.ll-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ll-space-sm);
  margin-top: var(--ll-space-2xl);
  padding-top: var(--ll-space-xl);
  border-top: 1px solid var(--ll-border);
}
.ll-share-label {
  font-size: 0.9rem;
  color: var(--ll-text-muted);
  margin-right: var(--ll-space-sm);
}
.ll-share-btn {
  display: inline-block;
  padding: var(--ll-space-xs) var(--ll-space-md);
  font-size: 0.9rem;
  background: var(--ll-bg-card);
  color: var(--ll-gold-light);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-sm);
  text-decoration: none;
  transition: background var(--ll-duration), border-color var(--ll-duration);
}
.ll-share-btn:hover {
  background: var(--ll-gold-dim);
  border-color: var(--ll-gold);
}
.ll-share-copy {
  cursor: pointer;
  font-family: inherit;
}

.ll-article-single .ll-featured-img {
  max-width: 100%;
  width: 800px;
  height: auto;
  border-radius: var(--ll-radius-lg);
  margin-bottom: var(--ll-space-xl);
  border: 1px solid var(--ll-border);
}

/* ===========================================
   PAGINATION
   =========================================== */
.ll-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ll-space-sm);
  margin-top: var(--ll-space-2xl);
  align-items: center;
}

.ll-pagination a,
.ll-pagination span {
  padding: var(--ll-space-sm) var(--ll-space-md);
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  color: var(--ll-text);
  text-decoration: none;
  transition: background var(--ll-duration), border-color var(--ll-duration);
}

.ll-pagination a:hover {
  background: var(--ll-gold-dim);
  border-color: var(--ll-gold);
  text-decoration: none;
}

.ll-pagination .ll-current {
  background: var(--ll-gold-dim);
  border-color: var(--ll-gold);
  color: var(--ll-gold);
}

/* ===========================================
   DIVIDER – Map line / quill stroke
   =========================================== */
.ll-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ll-border), transparent);
  margin: var(--ll-space-2xl) 0;
  border: none;
}

.ll-divider--decorative {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ll-gold), transparent);
  opacity: 0.5;
}

/* ===========================================
   FOOTER
   =========================================== */
.ll-footer {
  background: var(--ll-midnight);
  border-top: 1px solid var(--ll-border);
  padding: var(--ll-space-3xl) var(--ll-space-xl);
  margin-top: var(--ll-space-4xl);
}

.ll-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ll-space-2xl);
  max-width: var(--ll-content-max);
  margin: 0 auto;
}

.ll-footer-logo {
  display: inline-block;
  margin-bottom: var(--ll-space-sm);
}
.ll-footer-logo img {
  max-width: 140px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.ll-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ll-footer-nav a {
  color: var(--ll-text-muted);
  font-size: 0.9rem;
}
.ll-footer-nav a:hover { color: var(--ll-gold); }

.ll-footer-bottom {
  margin-top: var(--ll-space-2xl);
  padding-top: var(--ll-space-lg);
  border-top: 1px solid var(--ll-border);
  color: var(--ll-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ===========================================
   MOBILE – Sidebar off-canvas
   =========================================== */
.menu-toggle {
  display: none;
  position: fixed;
  top: var(--ll-space-md);
  left: var(--ll-space-md);
  z-index: 1060;
  padding: var(--ll-space-sm) var(--ll-space-md);
  background: var(--ll-bg-card);
  border: 1px solid var(--ll-border);
  color: var(--ll-text);
  font-family: var(--ll-font-ui);
  font-size: 0.95rem;
  border-radius: var(--ll-radius-md);
  cursor: pointer;
  align-items: center;
  gap: var(--ll-space-sm);
  transition: background var(--ll-duration), border-color var(--ll-duration);
}
.menu-toggle:hover { border-color: var(--ll-gold); }

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s var(--ll-ease);
  }
  .sidebar.show { left: 0; }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
  }
  .sidebar-overlay.show { display: block; }
  
  .main { padding: var(--ll-space-lg); }
  
  .menu-toggle { display: inline-flex; }
  
  .ll-hero {
    min-height: 60vh;
    padding: var(--ll-space-2xl) var(--ll-space-lg);
    margin: calc(-1 * var(--ll-space-lg)) calc(-1 * var(--ll-space-lg)) 0;
    width: calc(100% + 2 * var(--ll-space-lg));
  }
  .ll-hero-cta { flex-direction: column; }
  .ll-btn { width: 100%; justify-content: center; }
}

/* ===========================================
   UTILITIES
   =========================================== */
.ll-text-muted { color: var(--ll-text-muted); }
.ll-container { max-width: var(--ll-content-max); margin: 0 auto; }
.ll-text-center { text-align: center; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
