/* ======================================================================
   Cordibly — Home Page (home.css)
   Page-specific styles. Extends styles.css — does not redefine tokens.
   ====================================================================== */


/* ======================================================================
   HERO
   Clean two-column homepage hero with one setup-routing card.
   ====================================================================== */

.home-hero {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-border) 100%);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
  padding-top: var(--space-12);
  padding-bottom: var(--space-10);
}

@media (min-width: 960px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: center;
    column-gap: var(--space-12);
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
  }
}

.home-hero-copy {
  max-width: 720px;
}

.home-hero-copy h1 {
  font-size: var(--font-size-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-obsidian);
  max-width: 18ch;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.home-hero-lead {
  font-size: 1.0625rem;
  max-width: 54ch;
  color: var(--color-text-muted);
  line-height: 1.72;
  margin-bottom: 0;
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
  margin-bottom: var(--space-4);
}

@media (max-width: 480px) {
  .home-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-ctas .btn-main,
  .home-hero-ctas .btn-outline {
    text-align: center;
    width: 100%;
  }
}

/* Right: setup-routing gate card */
.home-hero-gate {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.home-hero-gate .hero-gate-title {
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text);
}

.home-hero-gate-text {
  margin: var(--space-2) 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.62;
}

.hero-gate-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.hero-gate-list li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.hero-gate-list strong {
  color: var(--color-text);
  font-size: var(--font-size-small);
  line-height: 1.35;
}

.hero-gate-list a {
  width: fit-content;
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.35;
}

.hero-gate-sub {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.6;
}

/* ======================================================================
   TRUST METHOD STRIP
   Compact proof layer showing how Cordibly earns setup-first guidance.
   ====================================================================== */

.home-trust-strip {
  background:
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-8);
}

.home-trust-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-6);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}


.home-trust-copy {
  position: relative;
  z-index: 1;
  padding-left: var(--space-4);
}

.home-trust-kicker {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--color-card-dark);
}

.home-trust-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--color-obsidian);
}

.home-trust-text {
  max-width: 62ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.7;
}

.home-trust-checks {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.home-trust-checks-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--color-text);
}

.home-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-trust-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.35;
}

.home-trust-list li:first-child {
  border-color: var(--color-gold-border);
  background: var(--color-gold-tint);
  color: #6B4E00;
}

@media (max-width: 860px) {
  .home-trust-card {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

}

@media (max-width: 520px) {
  .home-trust-strip {
    padding-block: var(--space-6);
  }

  .home-trust-card {
    padding: var(--space-5);
  }

  .home-trust-copy {
    padding-left: var(--space-3);
  }

  .home-trust-checks {
    padding: var(--space-4);
  }

  .home-trust-list {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
   CORE PATHS
   Compact homepage routing layer for the four main site entry points.
   ====================================================================== */

.home-paths {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.home-paths-header {
  margin-bottom: var(--space-8);
}

.home-paths-header h2 {
  margin-bottom: var(--space-3);
}

.home-paths-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.home-path-card {
  min-width: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-path-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-border-mid);
}

.home-path-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  color: inherit;
  text-decoration: none;
}

.home-path-link:hover {
  color: inherit;
  text-decoration: none;
}

.home-path-kicker {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.home-path-card h3 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.12rem, 1.45vw, 1.35rem);
  line-height: 1.2;
}

.home-path-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.65;
}

.home-path-cta {
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-royal);
  line-height: 1.35;
  transition: color .15s ease;
}

.home-path-card:hover .home-path-cta {
  color: var(--color-royal-hover);
}

@media (max-width: 960px) {
  .home-paths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .home-paths-grid {
    grid-template-columns: 1fr;
  }
}


/* ======================================================================
   FEATURED DEEP DIVES — light bg-alt strip
   ====================================================================== */

.home-featured {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.home-featured-grid {
  margin-top: var(--space-2);
}

/* Feature cards — equal-height, aligned card content */
.home-featured .feature-card {
  display: flex;
  min-width: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-featured .feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-border-mid);
}

.home-featured .feature-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-featured .feature-link:hover {
  text-decoration: none;
}

.home-featured .feature-thumb {
  flex: 0 0 auto;
  background: var(--color-bg);
}

.home-featured .feature-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.home-featured .feature-body {
  flex: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-featured .feature-body .eyebrow {
  margin: 0;
}

.home-featured .feature-body h3 {
  font-size: clamp(1.15rem, 1.65vw, 1.35rem);
  line-height: 1.3;
  margin: 0;
}

@media (min-width: 821px) {
  .home-featured .feature-body h3 {
    min-height: calc(1.3em * 3);
  }
}

.home-featured .feature-body p {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.home-featured .feature-cta {
  margin-top: auto;
  padding-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--font-size-xs);
  color: var(--color-royal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color .15s ease, gap .15s ease;
}

.home-featured .feature-card:hover .feature-cta {
  color: var(--color-royal-hover);
  gap: var(--space-2);
}


