/* Match the approved NGT HTML at every breakpoint.
   The HTML puts layout utilities (gap-20, gap-30 ...) in the markup; the WordPress templates carry the component class only,
   so the same responsive gap values and a few component details are applied here. Loaded last. */
:root {
    --gap-12: 12px; --gap-15: 15px; --gap-16: 16px; --gap-20: 20px; --gap-22: 22px; --gap-30: 30px;
}
@media (max-width: 1199px) { :root { --gap-16: 15px; --gap-20: 18px; --gap-22: 20px; --gap-30: 26px; } }
@media (max-width: 991px)  { :root { --gap-15: 14px; --gap-16: 14px; --gap-20: 16px; --gap-22: 18px; --gap-30: 24px; } }
@media (max-width: 767px)  { :root { --gap-12: 10px; --gap-22: 16px; --gap-30: 20px; } }

/* Homepage */
body.home .hero-section .hero-content-main { gap: var(--gap-16); }
@media (max-width: 767px) { body.home .hero-section { padding-top: 150px; } }
@media (max-width: 767px) {
    body.home .numbers-section .number-item,
    body.home .numbers-section .number-item:first-child,
    body.home .numbers-section .number-item:last-child { padding-inline: 0; }
}
body.home .services-section .services-grid,
body.home .approach-section .approach-grid,
body.home .organisations-section .organisations-grid,
body.home .case-studies-section .cases-grid,
body.home .insights-section .insights-grid,
body.home .explore-section .explore-layout { gap: var(--gap-30); }
body.home .logos-section .logo-item { opacity: 1; }
body.home .team-section .team-card { gap: var(--gap-20); }
body.home .team-section .team-card .member-name-row { gap: var(--gap-12); }
body.home .approach-section .approach-callout { box-shadow: none; }
body.home .case-studies-section .case-card,
body.home .insights-section .insight-card { gap: var(--gap-22); }
body.home .explore-section .tab-head,
body.home .explore-section .tab-title-wrap,
body.home .pre-footer-section .pre-footer-content { gap: var(--gap-15); }
body.home .explore-section .tab-body-inner,
body.home .cta-banner-section .cta-banner-content,
body.home .faq-section .faq-head { gap: var(--gap-20); }
body.home .testimonials-section .testimonials-controls.testimonials-controls { gap: var(--gap-15); position: absolute; }
@media (max-width: 991px) { body.home .testimonials-section { padding-bottom: 100px; } }

/* About vision card and banner, and the shared pre-footer: same sizes and spacing as the approved HTML. */
.vision-section .vision-card :is(h2, h3, .h2) { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(3, 8, 50, 0.2); }
.vision-section .vision-card p { font-size: var(--font-size-p3); line-height: var(--line-height-p3); }
.vision-section .vision-card p:not(:last-child) { margin-bottom: 15px; }
.vision-section .vision-banner p { font-size: 24px !important; line-height: 1.5 !important; }
@media (max-width: 1199px) { .vision-section .vision-banner p { font-size: 22px !important; } }
@media (max-width: 991px) { .vision-section .vision-banner p { font-size: 20px !important; } }
@media (max-width: 767px) { .vision-section .vision-banner p { font-size: 18px !important; } }
.vision-section .vision-banner p:not(:last-child) { margin-bottom: 20px; }
@media (max-width: 1199px) {
    .vision-section .vision-card :is(h2, h3, .h2) { padding-bottom: 18px; margin-bottom: 18px; }
    .vision-section .vision-banner p:not(:last-child) { margin-bottom: 18px; }
}
@media (max-width: 991px) {
    .vision-section .vision-card :is(h2, h3, .h2) { padding-bottom: 16px; margin-bottom: 16px; }
    .vision-section .vision-banner p:not(:last-child) { margin-bottom: 16px; }
    .pre-footer-section .pre-footer-content p br,
    .pre-footer-section .pre-footer-content .h2 br { display: none; }
}
.pre-footer-section .pre-footer-content p { font-size: var(--font-size-p2); line-height: var(--line-height-p2); margin-bottom: 0; }

/* Contact form: Contact Form 7 wraps each field in <p> and <br>; remove that extra spacing so the layout matches the HTML. */
.contact-section .form-group p { margin: 0 !important; }
.contact-section .form-group br { display: none; }
.contact-section .form-group label { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.contact-section .form-group .wpcf7-form-control-wrap { display: block; }
.contact-section .form-group .wpcf7-form-control-wrap .wpcf7-list-item { margin: 0; }
.contact-section .form-group .wpcf7-form-control-wrap + br + .wpcf7-form-control-wrap { margin: 0; }
.contact-section .form-group label:has(.wpcf7-list-item), .contact-section .form-group .wpcf7-list-item label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.contact-section .form-group .wpcf7-spinner { display: none; }
.contact-section .form-group .wpcf7-submit { margin: 0; }
.contact-section .wpcf7-acceptance, .contact-section .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; padding: 0; }
.contact-section .wpcf7-acceptance .wpcf7-list-item label { width: 100%; }
.contact-section .wpcf7-acceptance .wpcf7-list-item-label { flex: 1 1 auto; min-width: 0; }
.contact-section .wpcf7-acceptance .wpcf7-list-item label,
.contact-section .wpcf7-acceptance .wpcf7-list-item-label,
.contact-section .wpcf7-acceptance .wpcf7-list-item-label a { font-size: inherit; line-height: inherit; }
.contact-section .form-group .wpcf7-acceptance .wpcf7-list-item label,
.contact-section .form-group .wpcf7-acceptance .wpcf7-list-item-label { font-size: var(--font-size-p4) !important; line-height: var(--line-height-p4) !important; gap: 14px; }

/* 404 hero: same top/bottom padding and minimum height as the approved HTML. */
.error-hero { padding-top: calc(3 * var(--section-padding)) !important; padding-bottom: var(--space-2xl) !important; min-height: 480px; }
@media (max-width: 991px) { .error-hero { padding-bottom: 50px !important; } }
@media (max-width: 767px) { .error-hero { padding-bottom: 40px !important; } }
