/* ================================================================
   BEYOND LINCS — Home Page
   ================================================================ */

/* --- Home hero --- */
.home-hero {
  min-height: 660px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #eaf3f2;
  display: grid;
  align-items: end;
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 44% 50%, rgba(18, 35, 38, 0.2) 0%, rgba(18, 35, 38, 0.08) 22%, rgba(18, 35, 38, 0) 42%),
    linear-gradient(90deg, rgba(18, 35, 38, 0.94) 0%, rgba(18, 35, 38, 0.84) 28%, rgba(18, 35, 38, 0.5) 48%, rgba(18, 35, 38, 0.12) 72%, rgba(18, 35, 38, 0) 100%),
    url("../hero-plan-support.png");
}

.home-hero .hero-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 120px 0 64px;
  position: relative;
  z-index: 2;
}

.home-hero h1 {
  max-width: 680px;
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Hero highlight strip --- */
.hero-points {
  position: relative;
  padding: 56px 0 64px;
  background: var(--soft);
  overflow: hidden;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  color: var(--ink);
}

.strip-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.strip-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.strip-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.strip-item:nth-child(2)::before {
  background: var(--green);
}

.strip-item:nth-child(3)::before {
  background: var(--gold);
}

.strip-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--teal-light);
  color: var(--teal);
  grid-row: span 2;
}

.strip-item:nth-child(2) .strip-icon {
  background: var(--green-light);
  color: var(--green);
}

.strip-item:nth-child(3) .strip-icon {
  background: var(--gold-light);
  color: var(--gold);
}

.strip-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

.strip-label {
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}

.strip-item div:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* --- Intro / support map --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Flip intro to single column early — the support-map diagram has
   fixed-width nodes (~600px min) that squeeze the text column otherwise. */
@media (max-width: 1100px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .support-map {
    min-height: auto;
  }
}

.intro-copy .section-heading {
  margin-bottom: 8px;
}

.intro-copy p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 14px;
}

.support-map {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 40px 36px;
  min-height: 540px;
  display: grid;
  align-content: center;
  gap: 36px;
}

.map-header {
  text-align: center;
}

.map-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 6px;
}

.map-note {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* --- Cross diagram (single grid) --- */
.map-cross {
  display: grid;
  grid-template-columns: 160px 24px 160px 24px 160px;
  grid-template-rows: auto 36px auto 36px auto;
  justify-items: center;
  justify-content: center;
  justify-self: center;
  align-items: center;
  margin-top: 12px;
}

/* Top node — spans full width, centered */
.map-node.top {
  grid-column: 3;
  grid-row: 1;
}

/* Vertical connectors */
.map-line-v {
  grid-column: 3;
  width: 2px;
  height: 100%;
  background: var(--line);
  justify-self: center;
}

.map-line-v:first-of-type {
  grid-row: 2;
}

.map-line-v:last-of-type {
  grid-row: 4;
}

/* Horizontal connectors */
.map-line-h {
  height: 2px;
  width: 100%;
  background: var(--line);
  align-self: center;
  grid-row: 3;
}

.map-line-h:first-of-type {
  grid-column: 2;
}

.map-line-h:last-of-type {
  grid-column: 4;
}

/* Place nodes */
.map-node.top    { grid-column: 3; grid-row: 1; }
.map-node.left   { grid-column: 1; grid-row: 3; }
.map-node.center { grid-column: 3; grid-row: 3; }
.map-node.right  { grid-column: 5; grid-row: 3; }
.map-node.bottom { grid-column: 3; grid-row: 5; }

/* --- Nodes (all same fixed size) --- */
.map-node {
  width: 160px;
  padding: 14px 12px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  font-size: 13px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.map-node:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Center node — stands out via dark bg + teal ring */
.map-node.center {
  background: var(--deep);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--teal);
}

.map-node.center:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--teal), var(--shadow);
}

/* Outer node colours */
.map-node.top    { background: #5e7a2d; }
.map-node.right  { background: #b04a3b; }
.map-node.bottom { background: #8a651f; }
.map-node.left   { background: #4d6f8f; }

/* --- Who we help --- */
.who-help-section {
  background: #f8faf9;
}

.who-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px 46px;
  align-items: start;
}

.who-help-section .section-heading {
  margin-bottom: 0;
}

.who-help-copy {
  border-left: 4px solid var(--gold);
  padding-left: 26px;
}

.who-help-copy p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.who-help-copy p:last-child {
  margin-bottom: 0;
}

.who-help-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.who-help-list div {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* --- Culture section --- */
.culture-section {
  background: #f8faf9;
}

.culture-subtitle {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 8px 0 20px;
}

.culture-section .section-heading h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 12px;
}

.culture-section .section-heading p:last-child {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.culture-section .section-heading .culture-subtitle + p {
  margin-top: 16px;
}

.culture-section .section-heading {
  margin-bottom: 28px;
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.culture-grid > div:last-child {
  display: flex;
  flex-direction: column;
}

.culture-image {
  min-height: 440px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: url("../hero-inclusive-support.png") center / cover;
  border: 1px solid var(--line);
}

.culture-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  margin-top: 20px;
  gap: 10px;
}

.culture-item {
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  background: var(--white);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: border-color var(--transition), transform var(--transition);
}

.culture-item:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
}

/* --- Home services section --- */
.home-services {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 270px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.55;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
}

.service-icon.teal  { background: var(--teal); }
.service-icon.green { background: #5e7a2d; }
.service-icon.coral { background: #b04a3b; }

/* --- Process timeline --- */
.process-timeline {
  display: flex;
  align-items: stretch;
}

.process-step {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.process-step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.process-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
  line-height: 1;
}

.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.process-step p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Arrow connectors */
.process-arrow {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-arrow svg {
  opacity: 0.7;
}

/* --- Quote band --- */
.quote-band {
  background: var(--deep);
  color: var(--white);
  padding: 56px 0;
}

.quote-band .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quote-band h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  margin-bottom: 28px;
  white-space: nowrap;
}

.quote-block {
  margin: 0;
  padding: 28px 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  max-width: 700px;
  text-align: left;
}

.quote-block p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.7;
  font-style: italic;
}

/* --- Home contact section --- */
.home-contact {
  background: #f8faf9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel,
.referral-panel {
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-panel h2,
.referral-panel h2 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.contact-panel p,
.referral-panel p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

.home-contact .contact-detail {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
}

.referral-panel .button {
  margin-top: 8px;
}

/* --- Home responsive --- */
@media (max-width: 880px) {
  .home-hero {
    min-height: 580px;
    background-size: cover;
    background-position: center;
    background-image:
      linear-gradient(180deg, rgba(18, 35, 38, 0.5) 0%, rgba(18, 35, 38, 0.72) 38%, rgba(18, 35, 38, 0.92) 72%, rgba(18, 35, 38, 0.97) 100%),
      url("../hero-plan-support.png");
  }

  .home-hero .hero-inner {
    padding: 72px 0 40px;
  }

  .home-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
  }

  .home-hero .hero-copy {
    color: rgba(255, 255, 255, 0.85);
  }

  .hero-strip,
  .intro-grid,
  .who-help-grid,
  .who-help-list,
  .culture-grid,
  .service-grid,
  .quote-band .section-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    flex-direction: column;
  }

  .process-arrow {
    flex: 0 0 36px;
  }

  .process-arrow svg {
    transform: rotate(90deg);
  }

  .quote-band .section-inner {
    flex-direction: column;
  }
}

/* --- Home small screens (phones < 640px) --- */
@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero .hero-inner {
    padding: 56px 0 40px;
  }

  .home-hero h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-points {
    padding: 36px 0 40px;
  }

  .strip-item {
    padding: 22px 20px;
  }

  .intro-grid,
  .culture-grid,
  .who-help-grid {
    gap: 28px;
  }

  .who-help-copy {
    padding-left: 18px;
  }

  .support-map {
    min-height: auto;
    padding: 24px 16px;
  }

  /* Map cross — scale down on phones (keep cross structure) */
  .map-cross {
    grid-template-columns: 1fr 24px 1fr 24px 1fr;
    grid-template-rows: auto 36px auto 36px auto;
    gap: 0;
  }

  .map-node {
    width: 100%;
    max-width: 160px;
    justify-self: center;
  }

  .culture-image {
    min-height: 280px;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card {
    min-height: auto;
    padding: 22px 18px;
  }

  .process-step {
    padding: 20px 18px;
  }

  .process-arrow {
    flex: 0 0 56px;
  }

  .quote-band {
    padding: 40px 0;
  }

  .quote-band h2 {
    white-space: normal;
    font-size: 20px;
  }

  .quote-block {
    padding: 20px 22px;
  }

  .quote-block p {
    font-size: 16px;
    line-height: 1.6;
  }

  .contact-grid {
    gap: 18px;
  }

  .contact-panel h2,
  .referral-panel h2 {
    font-size: 24px;
  }
}
