/* Homepage typography & responsive rhythm — aligned with reference sydney/public/css/styles.css
   Loaded after section CSS; scoped to .slm-homepage only. */

.slm-homepage {
  font-family: var(--slm-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slm-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slm-homepage .text-muted-custom {
  color: #64748B !important;
}

/* Headings — reference scale */
.slm-homepage h1,
.slm-homepage h2,
.slm-homepage h3,
.slm-homepage h4,
.slm-homepage h5,
.slm-homepage h6 {
  font-family: var(--slm-font-heading);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.slm-homepage p {
  margin-bottom: 16px;
  line-height: 1.65;
  font-size: 16px;
}

.slm-homepage p:last-child {
  margin-bottom: 0;
}

.slm-homepage .lead {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

.slm-homepage .section-tag {
  line-height: 1.4;
}

.slm-homepage .section-tag i {
  line-height: 1;
}

/* Prevent clipped / stacked text on small screens */
.slm-homepage h1,
.slm-homepage h2,
.slm-homepage h3,
.slm-homepage h4,
.slm-homepage p,
.slm-homepage .lead,
.slm-homepage .case-study-title,
.slm-homepage .case-study-summary,
.slm-homepage .why-card-title,
.slm-homepage .why-card-desc,
.slm-homepage .why-cta-text,
.slm-homepage .recent-gallery-subheading,
.slm-homepage .recent-project-title,
.slm-homepage .recent-project-desc,
.slm-homepage .industry-name,
.slm-homepage .industry-tag,
.slm-homepage .area-pill,
.slm-homepage .btn-slm-primary,
.slm-homepage .btn-slm-outline-navy,
.slm-homepage .badge {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Undo protostar template.css shrinking form controls inside SLM sections */
.slm-homepage input[type="text"],
.slm-homepage input[type="email"],
.slm-homepage input[type="tel"],
.slm-homepage input[type="search"],
.slm-homepage input[type="url"],
.slm-homepage input[type="number"],
.slm-homepage textarea,
.slm-homepage select {
  font-family: var(--slm-font-body);
  line-height: 1.5;
  height: auto;
  min-height: 0;
}

.slm-homepage .form-control,
.slm-homepage .form-control-custom {
  font-size: 14px;
  line-height: 1.5;
}

/* Fixed min-heights that squish multi-line titles on tablets */
.slm-homepage .case-study-title {
  min-height: 0;
  align-items: flex-start;
  display: block;
}

.slm-homepage .case-study-meta-grid {
  min-height: 0;
}

.slm-homepage .case-study-meta-label {
  white-space: normal;
}

@media (max-width: 991px) {
  .slm-homepage h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .slm-homepage h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .slm-homepage .lead,
  .slm-homepage .text-muted-custom.lead,
  .slm-homepage p.lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .slm-homepage .hero-section .hero-headline {
    font-size: 38px;
    line-height: 1.1;
  }

  .slm-homepage .hero-section .hero-subheadline {
    font-size: 18px;
    line-height: 1.6;
  }

  .slm-homepage .services-section h2,
  .slm-homepage .quote-section h2 {
    font-size: 30px;
  }

  .slm-homepage .recent-gallery-heading {
    font-size: 30px;
    line-height: 1.2;
  }

  .slm-homepage .why-cta-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .slm-homepage > section .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .slm-homepage .hero-section .hero-headline {
    font-size: 32px;
  }

  .slm-homepage .hero-section .hero-subheadline {
    font-size: 16px;
    line-height: 1.65;
  }

  .slm-homepage .case-study-title {
    font-size: 18px;
    line-height: 1.35;
  }

  .slm-homepage .case-study-summary {
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (max-width: 576px) {
  .slm-homepage {
    font-size: 15px;
  }

  .slm-homepage h2 {
    font-size: 26px;
    line-height: 1.28;
  }

  .slm-homepage h3 {
    font-size: 18px;
  }

  .slm-homepage p,
  .slm-homepage .lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .slm-homepage .hero-section .hero-headline {
    font-size: 30px;
    line-height: 1.12;
  }

  .slm-homepage .services-section h2,
  .slm-homepage .quote-section h2 {
    font-size: 26px;
  }

  .slm-homepage .recent-gallery-heading {
    font-size: 26px;
  }

  .slm-homepage .why-card-title {
    font-size: 16px;
    line-height: 1.35;
  }

  .slm-homepage .why-card-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .slm-homepage .industry-name {
    font-size: 15px;
    line-height: 1.3;
  }

  .slm-homepage .industry-tag {
    font-size: 11px;
    line-height: 1.45;
  }

  .slm-homepage .area-pill {
    font-size: 11px;
    line-height: 1.4;
    padding: 8px 12px;
  }

  .slm-homepage .btn-slm-primary,
  .slm-homepage .btn-slm-outline-navy {
    font-size: 13px;
    line-height: 1.35;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .slm-homepage > section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .slm-homepage .d-flex.flex-wrap.gap-3,
  .slm-homepage .why-cta-wrapper .d-flex {
    gap: 12px !important;
  }
}

@media (max-width: 420px) {
  .slm-homepage .hero-section .hero-headline {
    font-size: 27px;
  }

  .slm-homepage h2 {
    font-size: 24px;
  }

  .slm-homepage .section-tag {
    font-size: 11px;
    letter-spacing: 0.6px;
  }
}
