/* Shared repairs for the existing home and five service pages. */
main { --page-gutter: clamp(1.25rem, 5vw, 5.5rem); }
main *, main *::before, main *::after { box-sizing: border-box; }
section[id] { scroll-margin-top: 6rem; }
.hero > *, .service-hero > *, .section > *, .skills-section > *,
.commitment-section > *, .parent-guidance > *, .contact-section > *,
.location-section > *, .site-header > * { min-width: 0; }
h1, h2, h3, p, li, a, strong { overflow-wrap: break-word; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 4px;
}
.button, .header-cta { text-align: center; line-height: 1.4; white-space: normal; }
.button { max-width: 100%; font-size: 1rem; }
.button svg { flex-shrink: 0; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: .875rem;
  padding: .75rem 1rem;
  text-wrap: balance;
}
.mobile-nav, .mobile-cta-label { display: none; }
@media (max-width: 1080px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: .875rem; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { background: var(--mint); }
  .site-header .mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + .5rem);
    right: var(--page-gutter);
    left: var(--page-gutter);
    padding: .5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 12px 30px #403b6824;
  }
  .site-header .mobile-nav nav a { display: block; padding: .875rem 0; font-size: .9375rem; }
  .desktop-cta-label { display: none; }
  .mobile-cta-label { display: inline; }
}
.whatsapp-button {
  background: var(--yellow);
  color: var(--ink);
  margin-top: 1.5rem;
  box-shadow: 0 10px 26px #0a303926;
}
.whatsapp-button:hover { background: #f1d28e; }
.contact-note {
  display: block;
  color: #f4f1fa;
  margin-top: .75rem;
  font-size: .8125rem;
  line-height: 1.6;
}

/* The old .sign-card > span rule styled the text link as a 39px badge. */
.service-links-grid .sign-card-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.sign-card-link > span:first-child { margin-bottom: 1.25rem; flex-shrink: 0; }
.sign-card-link > span.card-link {
  display: block;
  width: auto;
  height: auto;
  min-height: 44px;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 800;
  white-space: normal;
}
.sign-card p, .recognition-card p, .approach-card p, .goal-card p,
.related-card p { font-size: 1rem; line-height: 1.65; }
.related-card span { font-size: .875rem; line-height: 1.5; }
.approach-card { min-height: 0; }
.approach-card > span { margin-bottom: 1.25rem; }

.skills-grid p {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  min-height: 0;
  padding: 1.25rem;
  line-height: 1.55;
}
.skills-grid span { flex: 0 0 auto; margin: .15rem 0 0; font-size: .75rem; }
.service-proof > div:last-child > h2 {
  font: 500 clamp(2rem, 4vw, 3.4rem)/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.service-proof > div:last-child > p:not(.eyebrow):not(.testimonial-disclaimer) {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--muted);
}
.testimonial-disclaimer { font-size: .75rem; line-height: 1.6; }
.parent-guidance .eyebrow { color: var(--yellow); margin-bottom: 1rem; }
.contact-form input, .contact-form select { min-width: 0; font-size: 1rem; }
.contact-form label { font-size: .875rem; }
.contact-form > small { font-size: .75rem; }
.hero-social-proof p { font-size: .9375rem; }
.hero-social-proof cite { font-size: .75rem; }
.microcopy { font-size: .8125rem; line-height: 1.6; }
.eyebrow { line-height: 1.6; letter-spacing: .1em; }
.success-grid figcaption span { font-size: .875rem; }
.testimonial-card footer span { font-size: .75rem; }
.testimonials-grid, .success-grid, .recognition-grid, .approach-grid,
.goals-grid, .related-grid, .skills-grid { min-width: 0; }

/* Collapse before the original fixed image/column widths can collide. */
@media (min-width: 801px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding-inline: var(--page-gutter);
  }
  .hero h1 { font-size: clamp(2.75rem, 4.4vw, 4.25rem); line-height: 1.07; }
  .hero-visual { width: 100%; max-width: 28rem; }
  .portrait-frame { width: 100%; }
  .hero-note { min-width: 0; max-width: 90%; }
  .note-top { left: -.5rem; }
  .note-bottom { right: -.5rem; }
  .hero-actions { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .hero-actions .button { flex: 1 1 15rem; }
  .hero-actions .text-link { flex: 0 1 auto; }
  .service-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding-inline: var(--page-gutter);
  }
  .service-hero h1 { font-size: clamp(2.75rem, 4.2vw, 4.25rem); line-height: 1.07; }
  .about-section, .service-proof {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
  .about-photo, .service-proof .about-photo { min-height: 0; aspect-ratio: 4/5; }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .section, .skills-section, .commitment-section, .parent-guidance,
  .success-gallery, .testimonials-section, .contact-section, .location-section {
    padding: 4rem var(--page-gutter);
  }
  .skills-section { grid-template-columns: 1fr; gap: 2rem; }
  .parent-guidance, .commitment-section, .contact-section, .location-section { gap: 2rem; }
  .process-item div { grid-template-columns: 1fr; gap: .75rem; }
  .service-hero-panel { padding: 1.75rem; box-shadow: 10px 12px 0 var(--yellow); }
  .section-heading h2, .commitment-section h2, .skills-section h2,
  .about-copy h2, .contact-copy h2, .location-copy h2, .parent-guidance h2,
  .gallery-heading h2, .testimonials-heading h2 { font-size: 2.5rem; }
}

@media (max-width: 800px) {
  main { --page-gutter: clamp(1.125rem, 4.7vw, 2rem); }
  .site-header { gap: .75rem; padding: .625rem var(--page-gutter); min-height: 68px; }
  .brand-logo { width: 100px; height: 46px; }
  .header-cta { max-width: none; min-width: 0; font-size: .8125rem; padding: .65rem .85rem; }
  .hero, .service-hero { padding: 2.5rem var(--page-gutter) 3rem; gap: 2rem; min-height: 0; }
  .hero h1, .service-hero h1 {
    font-size: clamp(2.125rem, 7.6vw, 3.375rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    text-wrap: pretty;
    margin-bottom: 1.25rem;
  }
  .hero-lead { font-size: 1.0625rem; line-height: 1.65; }
  .hero .eyebrow, .service-hero .eyebrow { font-size: .75rem; margin-bottom: 1rem; }
  .hero-actions { margin-top: 1.5rem; gap: 1rem; }
  .hero-actions > .button, .contact-copy > .button { width: 100%; }
  .hero-actions .text-link { font-size: .9375rem; line-height: 1.5; min-height: 32px; }
  .hero-visual { width: 100%; max-width: 24rem; padding: 0 .5rem .5rem; margin: .25rem auto 0; }
  .portrait-frame { width: 100%; max-width: none; box-shadow: 8px 10px 0 var(--yellow); }
  .hero-note { min-width: 0; max-width: calc(100% - 1rem); padding: .65rem .875rem; }
  .hero-note strong { font-size: .8125rem; }
  .hero-note span { font-size: .625rem; }
  .note-top { top: 8%; left: 0; }
  .note-bottom { bottom: 10%; right: 0; }
  .hero-social-proof { margin-top: 1.5rem; }
  .hero-social-proof blockquote { padding: 1rem; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 var(--page-gutter); }
  .trust-strip p { display: flex; align-items: center; gap: .5rem; text-align: left; padding: .875rem .625rem; font-size: .75rem; }
  .trust-strip span { flex-shrink: 0; margin: 0; }
  .trust-strip p:nth-child(2n + 1) { border-left: 1px solid #ffffff2e; }
  .section, .skills-section, .commitment-section, .parent-guidance,
  .success-gallery, .testimonials-section, .contact-section, .location-section {
    padding: 3rem var(--page-gutter);
  }
  .commitment-section, .skills-section, .parent-guidance, .service-proof,
  .about-section, .location-section, .contact-section { gap: 1.75rem; }
  .section-heading, .gallery-heading, .testimonials-heading { margin-bottom: 1.75rem; }
  .section-heading h2, .commitment-section h2, .skills-section h2,
  .about-copy h2, .contact-copy h2, .location-copy h2, .parent-guidance h2,
  .gallery-heading h2, .testimonials-heading h2, .service-proof > div:last-child > h2 {
    font-size: clamp(1.875rem, 6.8vw, 2.5rem);
    line-height: 1.16;
    letter-spacing: -.025em;
    text-wrap: pretty;
    margin-bottom: 1rem;
  }
  .section-heading > p:last-child, .gallery-heading > p:last-child,
  .testimonials-heading > p:last-child, .about-copy > p, .contact-copy > p,
  .parent-guidance p, .location-copy > p:not(.eyebrow), .commitment-copy > p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .service-links-grid .sign-card, .recognition-card, .approach-card, .goal-card,
  .related-card, .testimonial-card { padding: 1.25rem; border-radius: 18px; }
  .sign-card-link > span:first-child { width: 34px; height: 34px; margin-bottom: 1rem; }
  .sign-card h3, .recognition-card h3, .approach-card h3, .goal-card h3,
  .related-card h3 { font-size: 1.125rem; line-height: 1.4; margin-bottom: .75rem; }
  .sign-card-link > span.card-link { padding-top: 1rem; min-height: 0; }
  .skills-grid { gap: .75rem; }
  .skills-grid p { padding: 1.125rem; border-radius: 16px; font-size: 1rem; }
  .commitment-quote h2 { margin-top: 1rem; }
  .quote-mark { top: -1.5rem; left: 0; font-size: 5rem; }
  .process-item { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; }
  .process-item div { display: block; }
  .process-item h3 { font-size: 1.125rem; line-height: 1.4; margin-bottom: .625rem; }
  .process-item p { font-size: 1rem; }
  .process-number { font-size: 1.875rem; }
  .approach-card > span { width: 36px; height: 36px; margin-bottom: 1rem; }
  .about-photo, .service-proof .about-photo { min-height: 0; width: 100%; max-width: 27rem; aspect-ratio: 4/5; margin-inline: auto; }
  .about-tags { margin-top: 1.25rem; }
  .about-tags span { font-size: .8125rem; padding: .625rem .75rem; }
  .service-hero-panel { padding: 1.5rem; margin-right: .5rem; border-radius: 24px; box-shadow: 8px 10px 0 var(--yellow); }
  .service-hero-panel img { width: 76px; height: 76px; margin-bottom: 1rem; }
  .service-hero-panel strong { font-size: 1.5rem; }
  .service-hero-panel .service-location { font-size: .8125rem; line-height: 1.6; padding-top: 1rem; margin-top: 1rem; }
  .breadcrumb { margin-bottom: 1.25rem; line-height: 1.6; }
  .testimonial-card > p { font-size: 1.125rem; }
  .testimonials-heading { text-align: left; }
  .service-proof blockquote { padding: 1.25rem; margin-top: 1.5rem; }
  .service-proof blockquote p { font-size: 1.125rem; }
  .success-grid figure:last-child { max-width: none; }
  .success-grid img { max-height: 30rem; }
  .faq-list summary { padding: 1.125rem 2rem 1.125rem 0; font-size: 1rem; line-height: 1.5; }
  .faq-list summary::after { top: .75rem; }
  .faq-list details p { font-size: 1rem; }
  .contact-form { padding: 1.25rem; }
  .contact-form .form-heading strong { font-size: 1.25rem; line-height: 1.4; }
  .location-points { gap: .625rem; margin-block: 1.5rem; }
  .location-points p { min-width: 0; padding: 1rem; }
  .map-frame iframe { height: 300px; }
  .map-frame > span { font-size: .75rem; line-height: 1.5; }
  .service-note { margin-top: 1.5rem; padding: 1rem; }
  .instagram-link { max-width: 100%; text-align: center; line-height: 1.5; }
  main > footer { padding: 2rem var(--page-gutter) 6rem; gap: 1.25rem; }
  .footer-links { flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .875rem; }
  .footer-links a { min-height: 36px; display: inline-flex; align-items: center; }
  .floating-wa { width: 50px; height: 50px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .floating-wa svg { width: 28px; height: 28px; }
}

/* Larger phones and tablets keep useful two-column cards, never a squeezed desktop grid. */
@media (min-width: 600px) and (max-width: 800px) {
  .signs-grid.service-links-grid, .recognition-grid, .goals-grid,
  .related-grid, .skills-grid, .approach-grid, .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  .site-header { gap: .5rem; }
  .brand-logo { width: 85px; height: 42px; }
  .header-cta { max-width: 160px; padding: .625rem .75rem; font-size: .75rem; }
  .location-points { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .sign-card:hover, .related-card:hover, .button:hover { transform: none; }
}
