/* =========================
   HOMEPAGE POLISH
   ========================= */

/* General section rhythm */
.home .wp-site-blocks section,
.home .wp-block-group {
  box-sizing: border-box;
}

.home .f360-section-header,
.home .wp-block-heading,
.home h2,
.home h3 {
  letter-spacing: -0.03em;
}

/* -------------------------
   Platform capabilities
   "Everything you need to govern..."
   ------------------------- */

.home .f360-capability-grid,
.home .f360-feature-grid,
.home .wp-block-columns.is-layout-flex,
.home .wp-block-columns.is-layout-grid {
  align-items: stretch;
}

.home .f360-capability-card,
.home .f360-feature-card,
.home .wp-block-column .f360-card {
  height: 100%;
}

.home .f360-capability-grid,
.home .f360-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home .f360-capability-card,
.home .f360-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 250px;
  padding: 1.5rem;
  border: 1px solid rgba(169,180,185,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 10px 28px rgba(42,52,57,.05);
}

/* Flatten and professionalise icon treatment */
.home .f360-capability-card .emoji,
.home .f360-feature-card .emoji,
.home .f360-capability-card .icon,
.home .f360-feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(86,94,116,.08);
  color: #565e74;
  font-size: 16px;
  line-height: 1;
  filter: grayscale(1) saturate(0);
}

.home .f360-capability-card h3,
.home .f360-feature-card h3 {
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  line-height: 1.15;
}

.home .f360-capability-card p,
.home .f360-feature-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--wp--preset--color--on-surface-variant);
}

/* -------------------------
   Integrations cards
   "Connect the systems you already use"
   ------------------------- */

.home .f360-connector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.home .f360-connector-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  padding: 1.5rem;
  border: 1px solid rgba(169,180,185,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 10px 28px rgba(42,52,57,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home .f360-connector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(42,52,57,.08);
  border-color: rgba(86,94,116,.22);
}

.home .f360-connector-card__name {
  display: block;
  margin: 0 0 .85rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wp--preset--color--on-surface);
}

.home .f360-connector-card__desc {
  display: block;
  margin: 0 0 1.25rem;
  line-height: 1.7;
  color: var(--wp--preset--color--on-surface-variant);
}

.home .f360-connector-card a,
.home .f360-connector-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  text-decoration: none;
  color: #565e74;
}

.home .f360-connector-card a:hover,
.home .f360-connector-card__cta:hover {
  text-decoration: underline;
}

/* makes "Read more" feel more deliberate */
.home .f360-connector-card a::after,
.home .f360-connector-card__cta::after {
  content: "→";
  font-size: .95em;
}

/* -------------------------
   Solutions / metrics strip
   white line break removal
   ------------------------- */

.home .f360-solutions-section,
.home .f360-proof-strip,
.home .f360-metric-strip,
.home .f360-score-strip {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.home section[style*="border-top"],
.home section[style*="border-bottom"] {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* tighten abrupt section transitions */
.home .f360-section + .f360-section,
.home section + section {
  margin-top: 0;
}

/* -------------------------
   Headings on homepage
   ------------------------- */
/* =========================
   HOMEPAGE FIX - TARGETS REAL THEME CLASSES
   ========================= */

/* 1) Platform capabilities row */
.home .cards-grid.cards-grid--3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

.home .cards-grid.cards-grid--3 > .wp-block-column {
  display: flex !important;
  margin: 0 !important;
}

.home .cards-grid.cards-grid--3 > .wp-block-column > .card.card--bordered {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: 100% !important;
  min-height: 250px !important;
  padding: 1.5rem !important;
  border: 1px solid rgba(169,180,185,.14) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.56) !important;
  box-shadow: 0 10px 28px rgba(42,52,57,.05) !important;
}

/* Hide the coloured emoji and replace with flat glyphs */
.home .cards-grid.cards-grid--3 > .wp-block-column > .card.card--bordered > p:first-child {
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 0 1rem !important;
}

.home .cards-grid.cards-grid--3 > .wp-block-column > .card.card--bordered > p:first-child::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(86,94,116,.08);
  color: #565e74;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.home .cards-grid.cards-grid--3 > .wp-block-column:nth-child(1) > .card.card--bordered > p:first-child::before {
  content: "↗";
}

.home .cards-grid.cards-grid--3 > .wp-block-column:nth-child(2) > .card.card--bordered > p:first-child::before {
  content: "≡";
}

.home .cards-grid.cards-grid--3 > .wp-block-column:nth-child(3) > .card.card--bordered > p:first-child::before {
  content: "●";
}

.home .cards-grid.cards-grid--3 .wp-block-heading {
  margin: 0 0 .75rem !important;
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}

.home .cards-grid.cards-grid--3 p {
  line-height: 1.7 !important;
}

/* 2) Integrations row */
.home .f360-connector-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

.home .f360-connector-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 245px !important;
  padding: 1.5rem !important;
  border: 1px solid rgba(169,180,185,.14) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.56) !important;
  box-shadow: 0 10px 28px rgba(42,52,57,.05) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.home .f360-connector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(42,52,57,.08) !important;
  border-color: rgba(86,94,116,.22) !important;
}

.home .f360-connector-card__name {
  display: block !important;
  margin: 0 0 .85rem !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--on-surface) !important;
}

.home .f360-connector-card__desc {
  display: block !important;
  margin: 0 0 1.15rem !important;
  line-height: 1.7 !important;
  color: var(--wp--preset--color--on-surface-variant) !important;
}

.home .f360-connector-card a:last-child {
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  color: #565e74 !important;
}

.home .f360-connector-card a:last-child::after {
  content: "→";
}

.home .f360-connector-card a:last-child:hover {
  text-decoration: underline !important;
}

/* 3) Remove the line breaking the solutions section */
.home hr,
.home .wp-block-separator,
.home .f360-divider {
  display: none !important;
  border: 0 !important;
}

.home .stats-row,
.home .stat-item {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* 4) Tighten section rhythm */
.home .section-header {
  margin-bottom: 2rem !important;
}

.home .section-header .wp-block-heading,
.home h2 {
  font-size: clamp(2rem, 3vw, 3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

/* 5) Responsive */
@media (max-width: 1024px) {
  .home .cards-grid.cards-grid--3,
  .home .f360-connector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .home .cards-grid.cards-grid--3,
  .home .f360-connector-grid {
    grid-template-columns: 1fr !important;
  }
}
