/* =========================================================
   LOGOS MECHANICS — HOMEPAGE SYSTEM
   Scoped homepage layout for Astra child theme
   ========================================================= */

.lm-homepage {
  position: relative;
  background: var(--lm-bg-page);
  color: var(--lm-text-primary);
}

/* ---------------------------------
   GLOBAL HOMEPAGE HELPERS
--------------------------------- */
.lm-homepage *,
.lm-homepage *::before,
.lm-homepage *::after {
  box-sizing: border-box;
}

.lm-homepage img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lm-homepage a {
  text-decoration: none;
}

.lm-homepage .lm-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.lm-homepage .lm-shell-wide {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.lm-homepage .lm-section {
  position: relative;
  padding: 88px 0;
}

.lm-homepage .lm-section-sm {
  padding: 64px 0;
}

.lm-homepage .lm-section-lg {
  padding: 112px 0;
}

.lm-homepage .lm-section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.lm-homepage .lm-section-header h2 {
  margin-bottom: 0.4em;
}

.lm-homepage .lm-section-header p {
  color: var(--lm-text-secondary);
  margin-bottom: 0;
}

.lm-homepage .lm-grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.lm-homepage .lm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.lm-homepage .lm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* ---------------------------------
   HERO
--------------------------------- */
.lm-home-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  background:
    radial-gradient(circle at 85% 18%, rgba(212, 175, 55, 0.10), transparent 20%),
    radial-gradient(circle at 12% 12%, rgba(11, 31, 59, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.lm-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 59, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.lm-home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.lm-home-hero__content {
  max-width: 680px;
}

.lm-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--lm-color-gold);
}

.lm-home-hero__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--lm-color-gold);
  opacity: 0.9;
}

.lm-home-hero__title {
  margin-bottom: 24px;
  max-width: 12ch;
}

.lm-home-hero__lead {
  max-width: 58ch;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.78;
  color: var(--lm-text-secondary);
  margin-bottom: 28px;
}

.lm-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.lm-home-hero__signal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 540px;
}

.lm-home-hero__signal p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--lm-text-muted);
}

.lm-home-hero__media {
  position: relative;
}

.lm-home-hero__visual {
  position: relative;
  min-height: 540px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.18), transparent 18%),
    linear-gradient(145deg, rgba(11, 31, 59, 0.98), rgba(12, 12, 14, 1));
  box-shadow: 0 24px 70px rgba(8, 20, 40, 0.16);
}

.lm-home-hero__visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 24px;
  border: 1px solid rgba(245, 247, 250, 0.07);
  pointer-events: none;
}

.lm-home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.lm-home-hero__orbit {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(245, 247, 250, 0.08);
}

.lm-home-hero__orbit--2 {
  width: 48%;
}

.lm-home-hero__orbit--3 {
  width: 22%;
}

.lm-home-hero__axis-v,
.lm-home-hero__axis-h,
.lm-home-hero__diag-a,
.lm-home-hero__diag-b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  opacity: 0.85;
}

.lm-home-hero__axis-v {
  width: 1px;
  height: 68%;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.9), transparent);
  transform: translate(-50%, -50%);
}

.lm-home-hero__axis-h {
  width: 68%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 247, 250, 0.18), transparent);
  transform: translate(-50%, -50%);
}

.lm-home-hero__diag-a,
.lm-home-hero__diag-b {
  width: 58%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 247, 250, 0.18), transparent);
}

.lm-home-hero__diag-a {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lm-home-hero__diag-b {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lm-home-hero__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lm-color-gold);
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.10);
  transform: translate(-50%, -50%);
}

.lm-home-hero__quote {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 250, 0.06);
  border: 1px solid rgba(245, 247, 250, 0.08);
}

.lm-home-hero__quote p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--lm-text-on-dark);
}

.lm-home-hero__quote strong {
  color: var(--lm-color-gold);
}

/* ---------------------------------
   QUICK ENTRY STRIP
--------------------------------- */
.lm-home-entry {
  position: relative;
  margin-top: -20px;
  z-index: 3;
}

.lm-home-entry__wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lm-home-entry__item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 31, 59, 0.08);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 18px 40px rgba(8, 20, 40, 0.08);
  transition:
    transform var(--lm-transition),
    box-shadow var(--lm-transition),
    border-color var(--lm-transition);
}

.lm-home-entry__item:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: 0 22px 48px rgba(8, 20, 40, 0.12);
}

.lm-home-entry__item h3 {
  margin-bottom: 10px;
  font-size: 1.36rem;
}

.lm-home-entry__item p {
  margin: 0 0 12px;
  color: var(--lm-text-secondary);
  font-size: 0.98rem;
}

.lm-home-entry__item span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lm-color-gold);
}

/* ---------------------------------
   FEATURED ARTICLE
--------------------------------- */
.lm-home-featured {
  background: var(--lm-bg-page);
}

.lm-home-featured__card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(11, 31, 59, 0.08);
  box-shadow: 0 20px 58px rgba(8, 20, 40, 0.10);
  background: #ffffff;
}

.lm-home-featured__media {
  min-height: 420px;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.16), transparent 16%),
    linear-gradient(160deg, rgba(11, 31, 59, 1), rgba(12, 12, 14, 1));
}

.lm-home-featured__media::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 22px;
  border: 1px solid rgba(245, 247, 250, 0.08);
}

.lm-home-featured__lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 250, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.18));
}

.lm-home-featured__label {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.10);
  border: 1px solid rgba(245, 247, 250, 0.10);
  color: var(--lm-text-on-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lm-home-featured__content {
  padding: 42px 40px;
}

.lm-home-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--lm-text-muted);
  margin-bottom: 18px;
}

.lm-home-featured__title {
  margin-bottom: 18px;
}

.lm-home-featured__excerpt {
  font-size: 1.06rem;
  color: var(--lm-text-secondary);
  max-width: 54ch;
  margin-bottom: 22px;
}

.lm-home-featured__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lm-home-featured__link {
  font-weight: 700;
  color: var(--lm-color-navy);
}

.lm-home-featured__link:hover {
  color: var(--lm-color-gold);
}

/* ---------------------------------
   LATEST ARTICLES
--------------------------------- */
.lm-home-latest {
  background: var(--lm-bg-soft);
}

.lm-post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(8, 20, 40, 0.08);
  transition:
    transform var(--lm-transition),
    box-shadow var(--lm-transition),
    border-color var(--lm-transition);
}

.lm-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(8, 20, 40, 0.12);
  border-color: rgba(212, 175, 55, 0.34);
}

.lm-post-card__media {
  min-height: 190px;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.12), transparent 14%),
    linear-gradient(160deg, rgba(11, 31, 59, 0.98), rgba(12, 12, 14, 1));
}

.lm-post-card__media::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 18px;
  border: 1px solid rgba(245, 247, 250, 0.08);
}

.lm-post-card__body {
  padding: 24px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lm-post-card__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lm-color-gold);
}

.lm-post-card__title {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.lm-post-card__excerpt {
  color: var(--lm-text-secondary);
  font-size: 0.98rem;
  margin-bottom: 18px;
  flex: 1;
}

.lm-post-card__meta {
  font-size: 0.9rem;
  color: var(--lm-text-muted);
}

/* ---------------------------------
   PATTERNS / THEMES SECTION
--------------------------------- */
.lm-home-patterns {
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.lm-pattern-card {
  padding: 26px 24px;
  border-radius: 24px;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(8, 20, 40, 0.07);
  height: 100%;
}

.lm-pattern-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--lm-color-gold);
  font-size: 0.86rem;
  font-weight: 700;
}

.lm-pattern-card h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.lm-pattern-card p {
  margin: 0;
  color: var(--lm-text-secondary);
  font-size: 0.98rem;
}

/* ---------------------------------
   ABOUT PREVIEW
--------------------------------- */
.lm-home-about {
  background: linear-gradient(180deg, #0b1f3b 0%, #0c0c0e 100%);
  color: var(--lm-text-on-dark);
  overflow: hidden;
}

.lm-home-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(212, 175, 55, 0.16), transparent 16%),
    radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.05), transparent 18%);
  pointer-events: none;
}

.lm-home-about .lm-shell {
  position: relative;
  z-index: 2;
}

.lm-home-about__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.lm-home-about__content h2,
.lm-home-about__content p,
.lm-home-about__content li {
  color: var(--lm-text-on-dark);
}

.lm-home-about__content p {
  color: var(--lm-text-on-dark-muted);
}

.lm-home-about__panel {
  padding: 30px;
  border-radius: 28px;
  background: rgba(245, 247, 250, 0.06);
  border: 1px solid rgba(245, 247, 250, 0.10);
  backdrop-filter: blur(12px);
}

.lm-home-about__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.lm-home-about__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--lm-text-on-dark-muted);
}

.lm-home-about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lm-color-gold);
}

.lm-home-about__mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.lm-home-about__mini-card {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 247, 250, 0.08);
}

.lm-home-about__mini-card strong {
  display: block;
  color: var(--lm-color-gold);
  margin-bottom: 6px;
}

.lm-home-about__mini-card span {
  display: block;
  color: var(--lm-text-on-dark-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------------------------------
   CLOSING CTA
--------------------------------- */
.lm-home-cta {
  background: var(--lm-bg-page);
}

.lm-home-cta__box {
  padding: 44px 36px;
  border-radius: 28px;
  border: 1px solid rgba(11, 31, 59, 0.08);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 48px rgba(8, 20, 40, 0.08);
  text-align: center;
}

.lm-home-cta__box h2 {
  max-width: 13ch;
  margin: 0 auto 14px;
}

.lm-home-cta__box p {
  max-width: 58ch;
  margin: 0 auto 24px;
  color: var(--lm-text-secondary);
}

.lm-home-cta__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------------------------
   RESPONSIVE
--------------------------------- */
@media (max-width: 1100px) {
  .lm-home-hero__inner,
  .lm-home-about__grid,
  .lm-home-featured__card,
  .lm-homepage .lm-grid-2 {
    grid-template-columns: 1fr;
  }

  .lm-home-hero__content {
    max-width: 100%;
  }

  .lm-home-hero__title {
    max-width: 14ch;
  }

  .lm-home-hero__visual {
    min-height: 460px;
  }

  .lm-home-featured__media {
    min-height: 300px;
  }
}

@media (max-width: 921px) {
  .lm-homepage .lm-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .lm-homepage .lm-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .lm-home-entry__wrap {
    grid-template-columns: 1fr;
  }

  .lm-homepage .lm-section,
  .lm-homepage .lm-section-lg {
    padding: 76px 0;
  }

  .lm-homepage .lm-section-sm {
    padding: 54px 0;
  }

  .lm-home-featured__content {
    padding: 34px 28px;
  }

  .lm-home-cta__box {
    padding: 36px 24px;
  }
}

@media (max-width: 544px) {
  .lm-homepage .lm-shell,
  .lm-homepage .lm-shell-wide {
    width: min(100% - 24px, 100%);
  }

  .lm-homepage .lm-grid-3,
  .lm-homepage .lm-grid-4 {
    grid-template-columns: 1fr;
  }

  .lm-home-hero {
    padding: 64px 0 54px;
  }

  .lm-home-hero__inner {
    gap: 28px;
  }

  .lm-home-hero__visual {
    min-height: 380px;
    border-radius: 24px;
  }

  .lm-home-hero__quote {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 16px;
  }

  .lm-home-entry {
    margin-top: 0;
  }

  .lm-home-entry__item,
  .lm-post-card__body,
  .lm-pattern-card,
  .lm-home-about__panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lm-home-about__mini {
    grid-template-columns: 1fr;
  }

  .lm-home-featured__content {
    padding: 28px 20px;
  }

  .lm-home-cta__box {
    padding: 28px 18px;
  }
  
  /* =========================================
   FULL-WIDTH HERO OVERRIDE
========================================= */

/* Break out of Astra container */
.lm-home-hero--full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

/* Remove background from hero so WP background shows */
.lm-home-hero {
  background: transparent !important;
}
/* Make sure content sits above background */
.lm-home-hero__inner {
  position: relative;
  z-index: 2;
}

.lm-home-hero__content {
  color: #ffffff;
}

.lm-home-hero__title {
  color: #ffffff;
}

.lm-home-hero__lead {
  color: #e6ebef; /* soft white */
}

.lm-home-hero__signal p {
  color: rgba(255,255,255,0.75);
}

.lm-home-hero__eyebrow {
  color: rgba(255,255,255,0.8);
}

/* =========================================
   HERO LIGHT TEXT SYSTEM
========================================= */

.lm-home-hero--light .lm-home-hero__content {
  color: #f5f7fa; /* base soft white */
}

/* Eyebrow */
.lm-home-hero--light .lm-home-hero__eyebrow {
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em;
}

/* Title */
.lm-home-hero--light .lm-home-hero__title {
  color: #ffffff;
}

/* Lead paragraph */
.lm-home-hero--light .lm-home-hero__lead {
  color: rgba(255,255,255,0.85);
}

/* Supporting text */
.lm-home-hero--light .lm-home-hero__signal p {
  color: rgba(255,255,255,0.7);
}
}