/* ============================================
   Layout - Container, Grid, Sections
   ============================================ */

   .container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
  
  .container--wide {
    max-width: 1600px;
  }
  
  .container--narrow {
    max-width: 1024px;
  }
  
  .section {
    padding-top: var(--section-stack-padding-y);
    padding-bottom: var(--section-stack-padding-y);
  }
  
  main > section:not(.slider):not(.news-hero):not(.awards-hero):not(.awards-hall):not(.awards-journey):not(.awards-closing):not(.circular-intro):not(.sustain-hero):not(.ecopark-hero):not(.ecopark-facilities):not(.ecopark-engines):not(.ecopark-action):not(.ecopark-community):not(.ecopark-closing):not(.credentials-hero):not(.credentials-scope3):not(.credentials-targets):not(.credentials-eco):not(.credentials-compliance):not(.credentials-expert):not(.configurator-grid-section),
  main > .presentation-container > section:not(.slider):not(.news-hero):not(.awards-hero):not(.awards-hall):not(.awards-journey):not(.awards-closing):not(.circular-intro):not(.sustain-hero):not(.ecopark-hero):not(.ecopark-facilities):not(.ecopark-engines):not(.ecopark-action):not(.ecopark-community):not(.ecopark-closing):not(.credentials-hero):not(.credentials-scope3):not(.credentials-targets):not(.credentials-eco):not(.credentials-compliance):not(.credentials-expert):not(.configurator-grid-section) {
    padding-top: var(--section-stack-padding-y);
    padding-bottom: var(--section-stack-padding-y);
  }
  
  #main-content > .breadcrumb-wrap + section {
    padding-top: var(--space-md);
  }
  
  @media (min-width: 768px) {
    #main-content > .breadcrumb-wrap + section {
      padding-top: var(--space-lg);
    }
  }
  
  .section--dark {
    background-color: var(--color-bg-dark);
    color: white;
  }
  
  .section--gray {
    background-color: var(--color-bg-secondary);
  }
  
  .section--gradient-light {
    background: linear-gradient(to bottom, white, var(--color-bg-secondary), white);
  }
  
  .section--gradient-emerald {
    background: linear-gradient(to bottom, white, var(--color-emerald-50), white);
  }
  
  /* Grid */
  .grid {
    display: grid;
    gap: var(--space-lg);
  }
  
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  @media (min-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (min-width: 1024px) {
    .grid--3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  
    .grid--4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  
  /* Flex utilities */
  .flex {
    display: flex;
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-between {
    justify-content: space-between;
  }
  
  .justify-center {
    justify-content: center;
  }
  
  /* Page wrapper for fixed nav offset */
  main {
    display: block;
  }
  
  /* Sync nav + hero entrance until partials are injected */
  @media (prefers-reduced-motion: reduce) {
    html.app-ready--no-motion .nav {
      animation: none;
      opacity: 1;
      transform: translateX(-50%);
    }
  
    html.app-ready--no-motion .slider :is(
      .slider__title,
      .slider__subtitle,
      .slider__cta,
      .slider__actions
    ) {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
  
  /* Section header pattern */
  .section-header {
    width: 100%;
    max-width: var(--typography-display-content-max);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
    text-align: center;
  }
  
  @media (min-width: 768px) {
    .section-header {
      margin-bottom: 64px;
    }
  }
  
  .section-header__eyebrow,
  .news-hero__eyebrow,
  .contact-section__eyebrow,
  .contact-modal__eyebrow {
    display: inline-block;
    padding: var(--ui-eyebrow-padding-y) var(--ui-eyebrow-padding-x);
    margin-bottom: var(--ui-eyebrow-margin-bottom);
    color: var(--ui-eyebrow-color);
    background-color: var(--ui-eyebrow-bg);
    border: 1px solid var(--ui-eyebrow-border);
    border-radius: var(--ui-eyebrow-radius);
    box-shadow: none;
    font-family: var(--font-family);
    font-size: var(--ui-eyebrow-font-size);
    font-weight: var(--ui-eyebrow-font-weight);
    line-height: 1.2;
    letter-spacing: var(--ui-eyebrow-letter-spacing);
    text-transform: uppercase;
  }
  
  .contact-modal__eyebrow {
    margin-bottom: 14px;
  }
  
  .section-header__eyebrow--neutral {
    color: var(--color-text-secondary);
    background-color: var(--color-bg-secondary);
    border-color: var(--color-border);
  }
  
  .section-header__title {
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    font-size: var(--typography-display-title-size);
    font-weight: var(--typography-display-title-weight);
    line-height: var(--typography-display-title-lh);
    letter-spacing: var(--typography-display-title-tracking);
  }

  .page-inner .section-header__title {
    font-size: var(--typography-section-title-size);
    font-weight: var(--typography-section-title-weight);
    line-height: var(--typography-section-title-lh);
    letter-spacing: var(--typography-section-title-tracking);
    text-transform: none;
  }
  
  .section-header__subtitle {
    max-width: var(--typography-display-lede-max);
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
    font-size: var(--typography-display-lede-size);
    font-weight: var(--typography-display-lede-weight);
    line-height: var(--typography-display-lede-lh);
  }
  
  /* Viewport edge blur — transparent backdrop, stronger at the edge */
  .ui-bottom-edge-fade--test,
  .ui-top-edge-fade--test {
    position: fixed;
    right: 0;
    left: 0;
    z-index: calc(var(--z-fixed) - 1);
    pointer-events: none;
    contain: layout style paint;
    isolation: isolate;
  }

  .ui-bottom-edge-fade--test {
    bottom: 0;
    height: var(--bottom-edge-fade-height);
    opacity: var(--bottom-edge-fade-opacity, 1);
    transition: opacity 0.35s ease;
  }

  .ui-top-edge-fade--test {
    top: 0;
    height: var(--top-edge-fade-height, var(--bottom-edge-fade-height));
  }

  .ui-bottom-edge-fade__layer,
  .ui-top-edge-fade__layer {
    position: absolute;
    right: 0;
    left: 0;
    background: transparent;
    pointer-events: none;
  }

  .ui-bottom-edge-fade__layer {
    bottom: 0;
  }

  .ui-top-edge-fade__layer {
    top: 0;
  }

  .ui-bottom-edge-fade__layer--build {
    height: 100%;
    -webkit-backdrop-filter: blur(var(--bottom-edge-fade-blur-build));
    backdrop-filter: blur(var(--bottom-edge-fade-blur-build));
    -webkit-mask-image: linear-gradient(
      to top,
      #000 0%,
      rgb(0 0 0 / 0.72) 38%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to top,
      #000 0%,
      rgb(0 0 0 / 0.72) 38%,
      transparent 100%
    );
  }

  .ui-bottom-edge-fade__layer--peak {
    height: 68%;
    -webkit-backdrop-filter: blur(var(--bottom-edge-fade-blur-peak));
    backdrop-filter: blur(var(--bottom-edge-fade-blur-peak));
    -webkit-mask-image: linear-gradient(
      to top,
      #000 0%,
      rgb(0 0 0 / 0.9) 22%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to top,
      #000 0%,
      rgb(0 0 0 / 0.9) 22%,
      transparent 100%
    );
  }

  .ui-top-edge-fade__layer--build {
    height: 100%;
    -webkit-backdrop-filter: blur(var(--bottom-edge-fade-blur-build));
    backdrop-filter: blur(var(--bottom-edge-fade-blur-build));
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      rgb(0 0 0 / 0.72) 38%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      rgb(0 0 0 / 0.72) 38%,
      transparent 100%
    );
  }

  .ui-top-edge-fade__layer--peak {
    height: 68%;
    -webkit-backdrop-filter: blur(var(--bottom-edge-fade-blur-peak));
    backdrop-filter: blur(var(--bottom-edge-fade-blur-peak));
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      rgb(0 0 0 / 0.9) 22%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      rgb(0 0 0 / 0.9) 22%,
      transparent 100%
    );
  }

  @supports not (
    (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
  ) {
    .ui-bottom-edge-fade--test,
    .ui-top-edge-fade--test {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ui-bottom-edge-fade--test,
    .ui-top-edge-fade--test {
      display: none;
    }
  }

  html.app-ready--no-motion .ui-bottom-edge-fade--test,
  html.app-ready--no-motion .ui-top-edge-fade--test {
    display: none;
  }