/* Bidani Projects | Mobile typography system (V10)
   Desktop styling remains untouched. All mobile headings use a consistent scale,
   with a few compact variants for exceptionally long Dutch titles. */
@media (max-width: 820px) {
  /* Balanced wrapping without clipping text or altering the desktop layout. */
  main h1, main .section-title, main .service-hero-form__head h2,
  main .ren-finance__price-panel h3, main .ren-finance__support-head h3 {
    text-wrap: balance;
    overflow-wrap: normal;
    hyphens: none;
  }
  .home-page .hero h1,
  .about-page .about-page-hero h1,
  .service-page .service-hero h1 { font-size: 40px; line-height: 1.1; }
  .companies-page.service-page .service-hero h1 { font-size: 38px; }
  .service-page .section-title,
  .companies-page .section-title,
  main .section-title { font-size: 36px; line-height: 1.13; }
  .service-page .ren-finance__head .section-title,
  .service-page--solar .ren-diagnosis .section-title,
  .service-page--solar .ren-meaning .section-title {font-size:36px;line-height:1.13;}
  .service-page .ren-finance__price-panel h3,
  .service-page .ren-finance__support-head h3 {font-size:26px;line-height:1.22;}
  .service-page .service-hero-form__head h2,
  .contact-page .service-hero-form__head h2,
  .companies-page .service-hero-form__head h2 {font-size:26px;line-height:1.18;}
  .service-card h3 {font-size:26px;}
  .companies-service h3,.process-step h3 {font-size:23px;}
  .project-detail .detail-hero .section-title {font-size:36px;}
  /* Forced single-line spans could overflow their container on phones. */
  .home-page .business__head .section-title span,
  .service-page .ren-why .business__head .section-title span,
  .companies-page .business__head .section-title span {white-space:normal;}
  .home-page .hero h1 span {white-space:normal;}
  .about-page #about-story-title .about-title-line {white-space:normal;}
}
@media (max-width: 560px) {
  .home-page .hero h1 {font-size:clamp(34px,9.75vw,38px);}
  .about-page .about-page-hero h1,
  .service-page .service-hero h1,
  .contact-page .service-hero h1 {font-size:clamp(32px,9.2vw,36px);line-height:1.11;}
  .companies-page.service-page .service-hero h1 {font-size:clamp(30px,8.8vw,34px);}
  .service-page .section-title,
  .companies-page .section-title,
  main .section-title {font-size:clamp(30px,8.15vw,32px);line-height:1.16;}
  .service-page .ren-finance__head .section-title,
  .service-page--solar .ren-diagnosis .section-title,
  .service-page--solar .ren-meaning .section-title {font-size:clamp(30px,8.15vw,32px);}
  .service-page .ren-finance__price-panel h3,
  .service-page .ren-finance__support-head h3 {font-size:24px;line-height:1.23;}
  .service-page .service-hero-form__head h2,
  .contact-page .service-hero-form__head h2,
  .companies-page .service-hero-form__head h2 {font-size:24px;line-height:1.2;}
  .service-card h3 {font-size:24px;}
  .companies-service h3,.process-step h3 {font-size:22px;}
  .project-detail .detail-hero .section-title {font-size:clamp(30px,8.15vw,32px);line-height:1.17;}
  .realisaties-heading .section-title {font-size:clamp(30px,8.15vw,32px);}
  .about-final-cta__copy .section-title,
  .cta-section__head .section-title {font-size:clamp(30px,8.15vw,32px);}
  /* Compact variants preserve two lines for unusually long headings. */
  .companies-page #companies-intro-title,
  .service-page #ren-when,
  .service-page #solar-what,
  .service-page #solar-why,
  .service-page #ren-why,
  .service-page #iso-why,
  .service-page #location-title,
  .about-page #experience-title {font-size:clamp(26px,7.15vw,30px);}
  .home-page #business-title {font-size:clamp(26px,7.15vw,30px);}
  .home-page #reviews-title,
  .contact-page #reviews-title {font-size:clamp(29px,8vw,32px);}
  /* The finance panel is subordinate to the yellow-section H2. */
  .service-page .ren-finance__price-panel h3,
  .service-page .ren-finance__support-head h3 {font-size:clamp(22px,6vw,24px);}
}
@media (max-width: 360px) {
  .service-page #solar-why,
  .service-page #ren-why,
  .service-page #iso-why,
  .companies-page #companies-intro-title {font-size:26px;}
  .service-page #ren-when {font-size:27px;}
  .about-page #location-title {font-size:28px;}
}
@media (max-width: 560px) {
  /* The legal heading is one long word; override its older 15ch constraint. */
  .legal-wrap h1 {font-size:clamp(27px,8vw,32px);max-width:100%;line-height:1.18;}
  .thanks h1 {font-size:clamp(30px,8.4vw,34px);line-height:1.15;text-wrap:balance;}
}

@media (max-width: 820px) {
  .legal-wrap h1 {max-width:100%;}
}
@media (max-width: 560px) {
  /* Explicitly balanced CTA line groups; larger viewports remain fluid. */
  .mobile-title-part {display:block; white-space:nowrap;}
  /* Do not force short FAQ headings into two unequal lines. */
  .faq__title span {display:inline;}
  .faq__title span + span::before {content:" ";}
  .about-final-cta__copy .section-title {max-width:100%;}
  .legal-wrap h2 {text-wrap:balance;}
}
@media (max-width: 340px) {
  /* On the narrowest phones, balance dakrenovatie subheadings. */
  .service-page .narrow-title-part {display:block;white-space:nowrap;}
}

@media (max-width: 560px) {
  /* Compact heading where review arrows constrain the available width. */
  .home-page #reviews-title,.contact-page #reviews-title {font-size:clamp(27px,7.4vw,30px);}
  /* Two-line treatment for a particularly long realisation title. */
  .project-detail .detail-hero .detail-title--long {font-size:clamp(28px,7.65vw,30px);}
}
@media (max-width: 360px) {
  .service-page #solar-when {font-size:28px;}
}

/* V11 — One mobile H1 size throughout all pages.
   Keep the established H2/H3 scale and all desktop rules untouched. */
@media (max-width: 820px) {
  main h1,
  .home-page .hero h1,
  .about-page .about-page-hero h1,
  .service-page .service-hero h1,
  .companies-page.service-page .service-hero h1,
  .service-page--solar .service-hero h1,
  .contact-page .service-hero h1,
  .realisaties-heading h1.section-title,
  .project-detail .detail-hero h1.section-title,
  .project-detail .detail-hero h1.section-title.detail-title--long,
  .legal-wrap h1,
  .thanks h1 {
    font-size: 34px;
    line-height: 1.13;
    text-wrap: balance;
    max-width: 100%;
  }
  .legal-wrap h1 { overflow-wrap: anywhere; }
}
