/* ═══════════════════════════════════════════════════════════════
   UPLAND BLOG — Shared Stylesheet
   Matches the SPA design system (navy/gold, Cormorant + Montserrat)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy: #0D1829;
  --navy-mid: #1B2A4A;
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --white: #F8F6F1;
  --grey: #8A8A8A;
  --light-bg: #F2F0EB;
  --light-bg2: #E8E5DD;
  --text: #1F2937;
  --text-soft: #4B5563;
  --border: #E5E1D6;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --px: clamp(18px, 5vw, 60px);
  --content-max: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════ TOP NAV ═══════════════════════ */

.blog-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  padding: 18px var(--px);
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.blog-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.blog-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.blog-logo-mark {
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}
.blog-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.blog-logo-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gold);
}
.blog-logo-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--white);
  opacity: .6;
}

.blog-nav-links {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
}
.blog-nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: .75;
  transition: opacity .25s, color .25s;
}
.blog-nav-links a:hover { opacity: 1; color: var(--gold); }
.blog-nav-links a.active { opacity: 1; color: var(--gold); }

@media (max-width: 768px) {
  .blog-nav { padding: 14px var(--px); }
  .blog-nav-inner { gap: 14px; }
  .blog-nav-links a { font-size: 11px; letter-spacing: 1px; }
  .blog-logo-sub { display: none; }
  .blog-logo-mark { width: 28px; height: 28px; font-size: 16px; }
  .blog-logo-name { font-size: 12px; letter-spacing: 2px; }
}
@media (max-width: 600px) {
  .blog-nav-inner {
    flex-wrap: nowrap;
  }
  .blog-nav-links {
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-right: 4px;
    mask-image: linear-gradient(to right, black calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 16px), transparent);
  }
  .blog-nav-links::-webkit-scrollbar { display: none; }
  .blog-nav-links a {
    font-size: 10.5px;
    letter-spacing: 1.2px;
    flex-shrink: 0;
  }
  .blog-logo-text { display: none; }
}

/* ═══════════════════════ BREADCRUMB ═══════════════════════ */

.breadcrumb {
  padding: 18px var(--px) 0;
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 12px;
  letter-spacing: .8px;
  color: var(--grey);
}
.breadcrumb a {
  color: var(--grey);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { margin: 0 8px; opacity: .5; }

/* ═══════════════════════ ARTICLE ═══════════════════════ */

.article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--px) clamp(48px, 6vw, 80px);
}

.article-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.article-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.article-lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--text-soft);
  font-weight: 400;
  margin-bottom: 32px;
  font-style: italic;
}

.article-meta {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.article-meta-author {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  color: var(--navy);
}
.article-meta-mark {
  width: 26px; height: 26px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  border-radius: 50%;
}
.article-meta-sep { opacity: .4; }

/* Article body typography */
.article-body { font-size: 17px; line-height: 1.8; color: var(--text); }

.article-body p { margin-bottom: 22px; }
.article-body p strong { color: var(--navy); font-weight: 600; }
.article-body em { font-style: italic; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--navy);
  margin: 48px 0 18px;
  letter-spacing: -.3px;
}
.article-body h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
  letter-spacing: -.2px;
}

.article-body ul, .article-body ol {
  margin: 0 0 22px 0;
  padding-left: 22px;
}
.article-body li {
  margin-bottom: 8px;
  padding-left: 6px;
}
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); font-weight: 600; }

.article-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color .2s;
}
.article-body a:hover { color: var(--gold); }

.article-body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--gold);
  background: var(--light-bg);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
  font-style: italic;
  color: var(--navy);
}

/* Callout boxes */
.callout {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--light-bg);
  border-left: 3px solid var(--gold);
}
.callout-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.callout-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.callout-body p { margin-bottom: 10px; }
.callout-body p:last-child { margin-bottom: 0; }

/* Tables */
.article-body .table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
}
.article-body thead {
  background: var(--navy);
  color: var(--white);
}
.article-body th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.article-body td {
  padding: 12px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.article-body tbody tr:nth-child(even) { background: var(--light-bg); }
.article-body td strong { color: var(--navy); }

/* FAQ */
.faq {
  margin: 32px 0;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.faq-a {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* Article CTA */
.article-cta {
  margin: 56px 0 0;
  padding: 40px 32px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta h2, .article-cta h3, .article-cta p { color: var(--white); }
.article-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.article-cta-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.article-cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--white);
}
.article-cta-title em { color: var(--gold); font-style: italic; }
.article-cta-sub {
  font-size: 14px;
  opacity: .7;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.article-cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.article-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201,168,76,.3);
}
.article-cta-button svg { width: 14px; height: 14px; }

/* ═══════════════════════ BLOG INDEX ═══════════════════════ */

.blog-hero {
  padding: clamp(60px, 9vw, 110px) var(--px) clamp(40px, 6vw, 70px);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center;
  position: relative;
}
.blog-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
}
.blog-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.blog-hero-title em {
  font-style: italic;
  color: var(--gold);
}
.blog-hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  color: var(--white);
  opacity: .7;
  max-width: 640px;
  margin: 0 auto;
}

.blog-list {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) var(--px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.blog-card:hover {
  border-color: rgba(201,168,76,.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,24,41,.08);
}
.blog-card-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,168,76,.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201,168,76,.08), transparent 60%);
}
.blog-card-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  color: var(--gold);
  opacity: .35;
  position: relative;
  z-index: 1;
}
.blog-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 10px;
  background: rgba(13,24,41,.85);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.blog-card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex; flex-direction: column;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-card-meta-sep { opacity: .4; }
.blog-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -.2px;
  flex: 1;
}
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.blog-card-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  transition: gap .25s, color .25s;
}
.blog-card:hover .blog-card-arrow { gap: 14px; color: var(--gold); }
.blog-card-arrow svg { width: 14px; height: 14px; }

/* Coming soon card variant */
.blog-card.coming-soon { opacity: .5; pointer-events: none; cursor: default; }
.blog-card.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.blog-card.coming-soon .blog-card-tag { background: var(--text-soft); color: var(--white); }

/* ═══════════════════════ FOOTER ═══════════════════════ */

.blog-footer {
  background: var(--navy);
  color: var(--white);
  padding: clamp(36px, 5vw, 56px) var(--px) clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(201,168,76,.15);
}
.blog-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.blog-footer-brand {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.blog-footer-meta {
  font-size: 12px;
  opacity: .6;
}
.blog-footer-meta a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 6px;
  opacity: .9;
}
.blog-footer-meta a:hover { opacity: 1; }
@media (max-width: 600px) {
  .blog-footer-inner { flex-direction: column; align-items: flex-start; }
}
