/*
 * One spacing rhythm for the content sections (RKS, 27 Nov 2026).
 * Ben's pick, option A on the spacing board: "one rhythm, 120 / 64".
 *
 * Site-owned. It loads after public/site/site.css and wins by specificity at every breakpoint, so the
 * earlier values (156, 150/140, 96 + 156, 100/0 and the rest) cannot come back at 1920, 1440, 1280,
 * 991, 767 or 479. Change the scale here, in one place.
 *
 * The heroes and the footer have their own section at the end of this file ("Heroes and footer").
 * Not touched anywhere here: the navbar and the home hero slider.
 */

:root {
  --section-space: 120px; /* every content section, top and bottom (desktop, 992 and up) */
  --header-gap: 64px;     /* heading block to its content (.global-header-wrapper) */
  --cta-space: 64px;      /* call to action band, top and bottom */
}
@media screen and (max-width: 991px) {
  :root { --section-space: 96px; --header-gap: 48px; --cta-space: 56px; } /* tablet, 768 to 991 */
}
@media screen and (max-width: 767px) {
  :root { --section-space: 80px; --header-gap: 40px; --cta-space: 48px; } /* 480 to 767 */
}
@media screen and (max-width: 479px) {
  :root { --section-space: 64px; --header-gap: 32px; --cta-space: 48px; } /* phones */
}

/* Content sections: same top and bottom. */
body .padding-global.padding-section-global,
body .padding-global.padding-section-secondary,
body .padding-global.padding-section-range,
body .padding-global.padding-section-application {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* Service intro: it leads into the next section, which supplies the gap below it, so its bottom stays 0. */
body .padding-global.padding-section-intro {
  padding-top: var(--section-space);
  padding-bottom: 0;
}

/* Home use cases: the space under the last card is the section's own bottom padding (was a 0 bottom plus a 40 margin). */
body .padding-global.paddin-section-simulation {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
body .section_simulation .projects_cards-wrapper {
  margin-bottom: 0;
}

/* Range of Services: the .section_solution wrapper added 96 above and below the section's own padding. */
body .section_solution {
  padding-top: 0;
  padding-bottom: 0;
}

/* Call to action. */
body .padding-global.padding-section-cta {
  padding-top: var(--cta-space);
  padding-bottom: var(--cta-space);
}

/* Heading to content. The two hero-heading variants keep their own margins. */
body .global-header-wrapper.global-header-wrapper:not(.is-6x-header):not(._6x-header) {
  margin-bottom: var(--header-gap);
}

/*
 * Heroes and footer (RKS, 27 Nov 2026).
 * Ben: "some spacing is weird and unharmonious". His pick, option A on the hero and footer board,
 * "hero on the rhythm": "120 above the text and 120 below on every inner-page banner (64 on phones),
 * same scale as the sections you picked; footer 64/48."
 *
 *   --hero-gap     space between the bottom of the fixed nav and the first line of the hero
 *   --hero-bottom  space under the hero content (same numbers as the gap)
 *   --nav-h        height of the fixed nav at that breakpoint (measured: 77 at 992 and up, 65 at 991 and below),
 *                  added to the top padding because the fixed nav sits over the hero
 *   --footer-top, --footer-bottom   footer padding
 *
 * Same breakpoints as the sections above: 992+, 768 to 991, 480 to 767, 479 and below.
 * Home hero slider: not touched (its height is its own). Contact: its nav is in the page flow, so only
 * its bottom padding changes (its top stays as it is). News, articles and the legal pages already open
 * with a standard section under an in-flow nav, so they sit on the same numbers without a rule here.
 */
:root {
  --nav-h: 77px;
  --hero-gap: 120px;
  --hero-bottom: 120px;
  --footer-top: 64px;
  --footer-bottom: 48px;
}
@media screen and (max-width: 991px) {
  :root { --nav-h: 65px; --hero-gap: 96px; --hero-bottom: 96px; } /* tablet */
}
@media screen and (max-width: 767px) {
  :root { --hero-gap: 80px; --hero-bottom: 80px; --footer-top: 48px; --footer-bottom: 40px; } /* 480 to 767 */
}
@media screen and (max-width: 479px) {
  :root { --hero-gap: 64px; --hero-bottom: 64px; } /* phones */
}

/* Inner-page heroes under the fixed nav: service pages, 6X, About (and the older hero variants, unused today). */
body .padding-global.padding-section-hero,
body .padding-global.padding-section-6x,
body .padding-global.padding-section-partnership,
body .padding-global.padding-section-about,
body .padding-global.padding-section_unconventional-hero,
body .padding-global.padding-section_about-hero {
  padding-top: calc(var(--nav-h) + var(--hero-gap));
  padding-bottom: var(--hero-bottom);
}

/* Contact: the nav is in the page flow and the banner content sits at the bottom of its box, so only the bottom changes. */
body .padding-global.padding-section-contact {
  padding-bottom: var(--hero-bottom);
}

/* Footer. */
body .padding-global.padding-section-footer {
  padding-top: var(--footer-top);
  padding-bottom: var(--footer-bottom);
}
