/* ============================================================
   ARTICLE.CSS — Standalone blog article pages
   Elena Meskhi & Co
   ============================================================ */

/* -------- BRAND TOKENS -------- */
:root {
  --navy:              #30293d;
  --navy-dark:         #1d1728;
  --brand-purple:      #812b71;
  --brand-purple-dark: #661f58;
  --brand-purple-soft: #a45995;
  --cream:             #f7f3ee;
  --cream-dark:        #efe8dd;
  --gold:              #c9a962;
  --gold-light:        #d4bc7e;
  --gold-dark:         #b89645;
  --charcoal:          #2d3436;
  --charcoal-light:    #636e72;
  --white:             #ffffff;
  --border:            rgba(48,41,61,0.1);
  --shadow-sm:         0 2px 8px rgba(29,23,40,0.06);
  --shadow-md:         0 8px 30px rgba(29,23,40,0.10);
  --shadow-lg:         0 20px 60px rgba(29,23,40,0.15);
  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --radius-xl:         28px;
  --font-heading:      'Playfair Display', Georgia, serif;
  --font-body:         'Inter', -apple-system, sans-serif;
  --transition-fast:   0.2s cubic-bezier(0.4,0,0.2,1);
  --nav-height:        72px;
}

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* -------- NAV -------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(247,243,238,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav--scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(29,23,40,0.07);
}
.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav__logo-image {
  height: 40px;
  width: auto;
}

/* -------- ARTICLE LAYOUT -------- */
.article {
  padding: calc(var(--nav-height) + 56px) 24px 100px;
  max-width: 760px;
  margin: 0 auto;
}

/* Back link */
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-purple);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: 0.01em;
  transition: gap var(--transition-fast);
}
.article__back:hover { gap: 12px; color: var(--brand-purple-dark); }
.article__back svg { flex-shrink: 0; }

/* Meta date */
.article__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

/* Title */
.article h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

/* Subtitle */
.article__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--charcoal-light);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* Body copy */
.article p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 20px;
}

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

/* Lead paragraph — first after subtitle */
.article .lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--navy);
  font-weight: 400;
}

/* Headings */
.article h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  margin: 52px 0 16px;
  padding-top: 4px;
}

.article h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
}

/* Lists */
.article ul, .article ol {
  padding-left: 0;
  margin: 16px 0 24px;
  list-style: none;
}

.article ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Ordered (numbered) list */
.article ol {
  counter-reset: ol-counter;
}

.article ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  counter-increment: ol-counter;
}

.article ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article strong { color: var(--navy); font-weight: 600; }
.article em { color: var(--charcoal-light); }

.article a:not(.article__back):not(.cta-btn):not(.sticky-cta) {
  color: var(--brand-purple);
  text-decoration: underline;
  text-decoration-color: rgba(129,43,113,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}
.article a:not(.article__back):not(.cta-btn):not(.sticky-cta):hover {
  text-decoration-color: var(--brand-purple);
}

/* Divider */
.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* -------- CALLOUT BOX -------- */
.callout {
  background: linear-gradient(135deg, #fdf9f3 0%, #f5ecda 100%);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px;
  margin: 32px 0;
}

.callout__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout__label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.callout p {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.callout ul {
  margin: 8px 0 0;
}

.callout ul li {
  color: var(--navy);
  font-size: 0.95rem;
}

/* -------- COMPARISON TABLE -------- */
.comparison-wrap {
  margin: 24px 0 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  letter-spacing: 0.01em;
}

.comparison-table tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
  color: var(--charcoal);
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(247,243,238,0.7);
}

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

/* -------- BENEFIT CARDS -------- */
.benefit-cards {
  display: grid;
  gap: 14px;
  margin: 20px 0 32px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border-left: 3px solid var(--brand-purple);
  box-shadow: var(--shadow-sm);
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-purple);
  font-size: 1rem;
  margin-bottom: 6px;
}

.benefit-card p {
  color: var(--charcoal);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* -------- CHECKLIST GRID -------- */
.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 16px 0 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.included-grid .item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.5;
}

.included-grid .item .tick {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.included-grid .item--full {
  grid-column: 1 / -1;
}

/* -------- CTA BLOCK -------- */
.cta-block {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  margin: 48px 0 16px;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--brand-purple), var(--gold-dark));
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(129,43,113,0.08);
  pointer-events: none;
}

.cta-block__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cta-block__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.25;
}

.cta-block__price {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.cta-block__desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* -------- BUTTONS -------- */
.cta-btn {
  display: inline-block;
  background: var(--brand-purple);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  z-index: 1;
}

.cta-btn:hover {
  background: var(--brand-purple-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129,43,113,0.35);
}

.cta-btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 14px 32px;
  margin-top: 12px;
}

.cta-btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  box-shadow: none;
}

/* Inline text CTA wrap */
.cta-wrap {
  text-align: center;
  margin: 36px 0;
}

/* -------- STICKY FLOATING CTA -------- */
.sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  background: var(--brand-purple);
  color: var(--white);
  padding: 14px 26px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 8px 32px rgba(129,43,113,0.4);
  transition: background var(--transition-fast), transform var(--transition-fast);
  line-height: 1.3;
  text-align: center;
  max-width: calc(100vw - 56px);
}

.sticky-cta:hover {
  background: var(--brand-purple-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* -------- PULL QUOTE -------- */
.pull-quote {
  border-left: 3px solid var(--brand-purple);
  margin: 36px 0;
  padding: 4px 0 4px 28px;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 0;
}

/* -------- INFO CARDS (for checklists) -------- */
.info-cards {
  display: grid;
  gap: 14px;
  margin: 20px 0 32px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.info-card__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 0;
}

.info-card ul {
  margin: 8px 0 0;
}

.info-card ul li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* -------- STAT HIGHLIGHT -------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}

.stat-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}

.stat-box__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-box__label {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  line-height: 1.4;
}

/* -------- FOOTER -------- */
.article-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 24px 40px;
  margin-top: 0;
}

.article-footer__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}

.article-footer__brand { flex: 1 1 260px; }

.article-footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.article-footer__tagline {
  font-size: 0.83rem;
  line-height: 1.7;
  opacity: 0.6;
}

.article-footer__links { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 6px 0; }

.article-footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.83rem;
  margin-left: 22px;
  transition: color var(--transition-fast);
}
.article-footer__links a:hover { color: var(--white); }

.article-footer__bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 28px;
  padding-top: 22px;
  font-size: 0.77rem;
  opacity: 0.4;
}

/* -------- RELATED ARTICLES -------- */
.related {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 36px 24px 0;
  border-top: 1px solid var(--border);
}
.related__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
}
.related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.related__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--brand-purple);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--transition-fast), gap var(--transition-fast);
}
.related__list a::before {
  content: "\2192";
  color: var(--gold-dark);
  font-weight: 600;
  flex-shrink: 0;
}
.related__list a:hover {
  color: var(--brand-purple-dark);
  gap: 14px;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 600px) {
  .related { padding: 32px 20px 0; }
  .article { padding: calc(var(--nav-height) + 36px) 20px 80px; }
  .article h1 { font-size: 1.75rem; }
  .article h2 { font-size: 1.2rem; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table thead th,
  .comparison-table tbody td { padding: 11px 12px; }
  .included-grid { grid-template-columns: 1fr; padding: 18px; }
  .cta-block { padding: 32px 22px; }
  .cta-btn { display: block; width: 100%; text-align: center; }
  .sticky-cta { bottom: 16px; right: 16px; left: 16px; max-width: none; font-size: 0.8rem; padding: 12px 16px; }
  .info-card { grid-template-columns: 1fr; gap: 10px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
