/* ==========================================================================
   FUNNELVALLEY — Home Page Styles
   ========================================================================== */

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__headline {
  font-size: var(--text-hero);
  line-height: 1.08;
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-tight);
}

.hero__subheadline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

.hero__copy {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero SVG Visual */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__svg-container {
  width: 100%;
  max-width: 520px;
  position: relative;
}

.hero__svg-container svg {
  width: 100%;
  height: auto;
}

/* SVG Animations */
@keyframes nodePulse {
  0%, 100% {
    opacity: 0.85;
    r: inherit;
  }
  50% {
    opacity: 1;
  }
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes nodeGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(205, 159, 80, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(205, 159, 80, 0.25));
  }
}

.hero-node {
  animation: nodeGlow 3s ease-in-out infinite;
}

.hero-node:nth-child(2) { animation-delay: 0.4s; }
.hero-node:nth-child(3) { animation-delay: 0.8s; }
.hero-node:nth-child(4) { animation-delay: 1.2s; }
.hero-node:nth-child(5) { animation-delay: 1.6s; }

.hero-flow-path {
  stroke-dasharray: 8 8;
  animation: flowDash 1.8s linear infinite;
}

.hero-flow-path--slow {
  animation-duration: 2.4s;
}

.hero-flow-path--reverse {
  animation-direction: reverse;
}

@keyframes pulseRing {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

.hero-pulse-ring {
  transform-origin: center;
  animation: pulseRing 2.5s ease-out infinite;
}

.hero-pulse-ring:nth-of-type(2) {
  animation-delay: 0.8s;
}

@media (max-width: 992px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    order: 1;
  }

  .hero__copy {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: 0;
    max-width: 400px;
    margin: 0 auto;
  }
}

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

  .hero__actions .btn {
    text-align: center;
  }
}

/* ── Systems Behind Growth (Replaced Stats) ───────────────────────────── */
.systems-growth {
  padding: var(--space-3xl) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.systems-growth__header {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.systems-growth__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.systems-growth__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.system-pillar {
  padding: 0 var(--space-lg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.system-pillar:last-child {
  border-right: none;
}

.system-pillar__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.system-pillar:hover .system-pillar__name {
  color: var(--gold-primary);
}

.system-pillar__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

@media (max-width: 992px) {
  .systems-growth__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg) 0;
  }
  .system-pillar {
    border-right: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
  }
  .system-pillar:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .systems-growth__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) 0;
  }
  .system-pillar {
    border-right: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
  }
  .system-pillar:nth-child(2n) {
    border-right: none;
  }
  .system-pillar:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .systems-growth__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm) 0;
  }
  .system-pillar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
  }
  .system-pillar:last-child {
    border-bottom: none;
  }
}

/* ── What We Build ────────────────────────────────────────────────────── */
.what-we-build .card {
  text-align: left;
}

.what-we-build .card__icon {
  width: 52px;
  height: 52px;
}

.what-we-build .card__icon svg {
  width: 26px;
  height: 26px;
}

/* ── Outcomes Section ─────────────────────────────────────────────────── */
.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.outcome-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.outcome-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-light);
}

.outcome-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.outcome-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outcome-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.outcome-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 992px) {
  .outcomes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .outcomes__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Case Study Preview ───────────────────────────────────────────────── */
.case-studies-preview {
  background: var(--bg-alt);
}

.case-study-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.case-study-card__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-accent));
}

.case-study-card__body {
  padding: var(--space-2xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.case-study-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: var(--leading-snug);
}

.case-study-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.case-study-card__metric {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.case-study-card__metric-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-xs);
}

.case-study-card__metric-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.case-studies-preview__cta {
  margin-top: var(--space-3xl);
  text-align: center;
}

/* ── Process / Timeline Section ───────────────────────────────────────── */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: var(--space-2xl);
}

/* Connecting line */
.process__timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process__step {
  text-align: center;
  position: relative;
  padding: 0 var(--space-lg);
}

.process__step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold-primary);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-primary);
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
  transition: background var(--transition-base), color var(--transition-base);
}

.process__step:hover .process__step-number {
  background: var(--gold-primary);
  color: var(--white);
}

.process__step-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-xs);
}

.process__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.process__step-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 240px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .process__timeline::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .process__timeline {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ── About/Founder Preview ────────────────────────────────────────────── */
.founder-preview__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: center;
}

.founder-preview__photo {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.founder-preview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-monogram {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--gold-primary);
  opacity: 0.15;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
}

.founder-monogram__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-monogram__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: var(--tracking-wide);
}

.founder-preview__content .section-label {
  margin-bottom: var(--space-md);
}

.founder-preview__content h2 {
  margin-bottom: var(--space-xl);
}

.founder-preview__copy {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

@media (max-width: 992px) {
  .founder-preview__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .founder-preview__photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .founder-preview__copy {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
  }

  .founder-preview__content .btn {
    margin: 0 auto;
  }
}

/* ── Agency Partnerships ──────────────────────────────────────────────── */
.agency-partnerships {
  background: var(--bg-alt);
}

.agency-partnerships__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.agency-partnerships__copy {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

@media (max-width: 992px) {
  .agency-partnerships__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .agency-partnerships__copy {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Agency Visual SVG ────────────────────────────────────────────────── */
.agency-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.agency-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final-cta {
  background: var(--dark);
  color: var(--text-inverse);
  text-align: center;
}

.final-cta h2 {
  color: var(--text-inverse);
  margin-bottom: var(--space-lg);
}

.final-cta__copy {
  font-size: var(--text-md);
  color: #aaa;
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* ── Misc homepage utilities ──────────────────────────────────────────── */
.section-header + .grid-3,
.section-header + .grid-4 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .outcome-card {
    padding: var(--space-lg);
  }
  .case-study-card__body {
    padding: var(--space-lg);
  }
}
