/* Public layout policy. Loaded after framework/component styles.
   Saved editor values apply on desktop; compact screens scale them
   proportionally while the surrounding layout stacks. No global overflow clipping: content remains reachable. */
.public-site {
  --nav-height: 80px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.public-site *, .public-site *::before, .public-site *::after { box-sizing: border-box; }
.public-site :is(.flex, .grid) > * { min-width: 0; }
.public-site img { max-width: 100%; }
.public-site div[style*="width:"][style*="height:"] { max-width: 100%; }
.public-site :is(section[id], footer) { scroll-margin-top: calc(var(--nav-height) + 16px); }
.public-site :is(button, a):focus-visible { outline: 3px solid #38bdf8; outline-offset: 4px; }
.site-nav-row { gap: 1rem; }
.site-brand { flex: 0 1 auto; min-width: 0; }
.site-brand > a { min-width: 0; text-decoration: none; }
.site-brand-image { object-fit: contain; max-width: 180px !important; }
.site-nav-links { display: flex; gap: clamp(.75rem, 1.5vw, 2rem); flex-shrink: 1; }
.site-nav-links a { text-align: center; text-decoration: none; }
.site-nav-cta { display: flex; flex-shrink: 0; max-width: 220px; }
.site-nav-cta a { text-align: center; text-decoration: none; }
.site-menu-toggle { display: none; flex-shrink: 0; width: 44px; height: 44px; }
.site-mobile-menu { display: none; }
#hero { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; }
#hero .hero-content { flex: 1 0 auto; padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 3rem; }
.hero-highlights { flex-shrink: 0; }
.hero-actions { flex-wrap: wrap; }
.hero-actions a { text-align: center; max-width: 100%; min-height: 48px; }
.hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-features > div { justify-content: flex-start; padding: 1rem; }
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Container-based step sizing also works when a background image reserves half
   the section: three narrow columns must not be forced into that half. */
.process-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem; }
.process-steps > div > .flex { flex-wrap: wrap; }
.contact-card-content { gap: 2rem; }
.contact-card-content > * { max-width: 100%; }
.contact-card-content :is(a, span) { min-width: 0; }
.contact-card-content i { flex-shrink: 0; }

@media (max-width: 1399.98px) {
  .site-nav-links, .site-nav-cta { display: none; }
  .site-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-mobile-menu { display: block; max-height: calc(100vh - var(--nav-height)); max-height: calc(100dvh - var(--nav-height)); overflow-y: auto; overscroll-behavior: contain; }
  .site-mobile-menu a { min-height: 44px; display: flex; align-items: center; padding: .5rem; color: #374151 !important; }
  .site-mobile-menu a:last-child { justify-content: center; color: white !important; }
  .site-nav-row { min-height: 80px !important; }
  .site-brand-image { height: auto !important; max-height: 56px; max-width: min(180px, 30vw) !important; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > * { grid-column: auto; }
}
@media (max-width: 1023.98px) {
  .public-site section:not(#hero) { padding-block: 3rem; }
  .process-content { padding-left: 0 !important; padding-right: 0 !important; }
  .process-background { opacity: .12; pointer-events: none; }
  .public-site .about-split { display: flex; flex-direction: column; }
  .public-site .about-split .about-image-col { float: none; width: calc(50% + var(--about-image-width, 42%) / 2); margin: 0; align-self: flex-end; }
  .public-site .about-split .about-text-col { width: 100%; }
  .public-site .footprint-grid { grid-template-columns: minmax(0, 1fr); }
  .footprint-grid > * { grid-column: auto; }
}
@media (max-width: 639.98px) {
  .site-brand > a { gap: .5rem; }
  .site-brand > a > span { margin: 0; font-size: 1rem; line-height: 1.3; }
  #hero .hero-content { padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 2rem; }
  .hero-features, .services-grid, .process-steps, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions a { width: 100%; }
  .hero-highlights > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-highlights > div > div { min-width: 0; }
  .public-site .site-nav-row { min-height: 80px !important; }
  .contact-card-content { padding: 1.5rem; }
  .contact-card-content > * { min-width: 0 !important; width: 100%; flex-basis: auto; }
  .contact-card-content img { max-width: 100%; width: auto; object-fit: contain; }
  .contact-card-content a[aria-label] { min-width: 44px; min-height: 44px; max-width: 100%; }
  .public-site :is(input, select, textarea) { max-width: 100%; font-size: 16px; }
}

/* v2: a real header band in document flow, never positioned over a painted
   band in the hero artwork. Header alignment is independent of CMS offsets. */
.public-site { --nav-height: 96px; }
.public-site .site-header { position: sticky; top: 0; z-index: 50; background: #123653; color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
.public-site .site-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; max-width: 1280px; margin-inline: auto; padding: 1rem 2rem; min-height: 96px !important; }
.public-site .site-brand { display: flex; align-items: center; gap: .75rem; flex: 0 1 220px; min-width: 0; color: #fff; text-decoration: none; font-weight: 700; }
.public-site .site-brand-image { display: block; width: auto; height: 64px !important; max-height: 64px; max-width: 200px !important; object-fit: contain; transform: none !important; }
.public-site .site-nav-links { align-items: center; justify-content: center; gap: clamp(.75rem, 1.1vw, 1.5rem); min-width: 0; }
.public-site .site-nav-links a { color: #fff; font-size: .95rem; line-height: 1.3; font-weight: 600; padding-block: .75rem; }
.public-site .site-nav-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .75rem 1.25rem; border-radius: .375rem; font-weight: 600; font-size: .9rem; }
.site-mobile-disclosure { display: none; flex: 0 0 auto; }
.site-menu-toggle { list-style: none; cursor: pointer; border-radius: .375rem; color: #fff; }
.site-menu-toggle::-webkit-details-marker { display: none; }
.menu-close-icon, .site-mobile-disclosure[open] .menu-open-icon { display: none; }
.site-mobile-disclosure[open] .menu-close-icon { display: block; }
.site-mobile-disclosure:not([open]) .site-mobile-menu { display: none; }
.public-site .site-mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem max(1rem, calc((100% - 1216px) / 2)); box-shadow: 0 12px 20px rgb(0 0 0 / .15); border-top: 1px solid #ddd; }
.public-site .site-mobile-menu a { text-decoration: none; border-radius: .25rem; font-weight: 600; }
.public-site .site-mobile-menu .site-mobile-cta { margin-top: .5rem; }
#hero { min-height: calc(100svh - var(--nav-height)); }
#hero .hero-content { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 6vw, 6rem); flex: 1 0 auto; display: flex; align-items: center; }
#hero h1 { font-size: clamp(2rem, 3.6vw, 3.75rem); line-height: 1.12; }
#hero .hero-subtitle { font-size: clamp(1.125rem, 1.7vw, 1.75rem); line-height: 1.4; }
#hero .hero-description { font-size: clamp(1rem, 1.1vw, 1.25rem); line-height: 1.6; }
.hero-background img { object-position: center; }
@media (max-width: 1399.98px) {
  .public-site { --nav-height: 80px; }
  .public-site .site-nav-row { min-height: 80px !important; padding: .75rem 1.5rem; }
  .public-site .site-brand-image { height: 52px !important; max-height: 52px; max-width: 180px !important; }
  .site-mobile-disclosure { display: block; }
  .public-site .site-menu-toggle { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 767.98px) {
  .public-site { --nav-height: 72px; }
  .public-site .site-nav-row { min-height: 72px !important; padding: .625rem 1rem; }
  .public-site .site-brand-image { height: 48px !important; max-height: 48px; max-width: 160px !important; }
  .public-site .site-brand { flex-basis: auto; font-size: .875rem; }
  #hero { min-height: 0; background: #edf3f7; }
  #hero .hero-content { order: 1; padding: 2rem 1.25rem; flex: 0 1 auto; background: #edf3f7; }
  #hero .hero-copy { gap: 1rem; }
  #hero .hero-copy > * { margin-top: 0; margin-bottom: 0; }

  #hero h1 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); line-height: 1.15; color: #115a23; }
  #hero .hero-subtitle { font-size: 1.125rem; color: #17618b; }
  #hero .hero-description { font-size: 1rem; color: #334155; }
  #hero .hero-actions { display: flex; flex-direction: column; width: 100%; gap: .75rem; padding-top: .5rem; }
  #hero .hero-actions a { width: 100%; min-height: 48px; padding: .8rem 1rem; font-size: 1rem; }
  #hero .hero-background { position: relative; inset: auto; order: 2; width: 100%; aspect-ratio: 16 / 9; }
  #hero .hero-background img { width: 100%; height: 100%; object-fit: cover; }
  #hero .hero-background > div { display: none; }
  #hero .hero-highlights { order: 3; }
  #hero .hero-features { background: #123653; }
  #hero .backdrop-blur-sm { backdrop-filter: none; }
  #hero .hero-copy > .flex.flex-wrap > div { background: #123653; }
}

/* CMS values are authoritative. Only scale them on compact layouts; never
   replace them with fixed values or discard the user's saved translations. */
.public-site { --editor-font-scale: 1; --editor-offset-scale: 1; --editor-image-scale: 1; }
@media (max-width: 1023.98px) {
  .public-site { --editor-font-scale: .9; --editor-offset-scale: .5; --editor-image-scale: .9; }
  .public-site .about-split.image-left .about-image-col { align-self: flex-start; }
}
@media (max-width: 767.98px) {
  .public-site { --editor-font-scale: .85; --editor-offset-scale: .2; --editor-image-scale: .8; }
}

@media (min-width: 1024px) {
  .public-site .footprint-map { max-width: none; }
}

.process-image-right { margin-left: auto; }

/* v7: full-height Process artwork and a single ordered step sequence. */
.public-site #process { padding: 0; }
.process-layout { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.process-layout > * { min-width: 0; }
.process-picture { position: relative; overflow: hidden; min-height: 240px; }
.process-picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.process-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 65%, rgb(255 255 255 / .55)); }
.process-content { padding: clamp(2rem, 4vw, 5rem) clamp(1.5rem, 3vw, 4rem); container-type: inline-size; container-name: process; }
.process-heading { margin: 0 0 2.5rem; padding: 1rem; }
.process-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
.process-step { padding: 1rem; position: relative; text-align: left; }
.process-step-visual { min-height: 100px; justify-content: flex-start; margin: 0 0 2rem; gap: 1rem; }
.process-step h3 { margin: 0 0 1rem; }
.process-step p { margin: 0; }
.process-connector { position: absolute; top: calc(100% + .5rem); left: 50%; line-height: 1; }
.process-arrow { display: inline-block; color: var(--accent-color); font-size: 2rem; }
.process-arrow-horizontal { display: none; }
.process-arrow-vertical { display: inline; }
@container process (min-width: 660px) {
  .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .process-step-visual { min-height: 120px; }
  .process-connector { top: 4rem; left: auto; right: -1.8rem; }
  .process-arrow-horizontal { display: inline; }
  .process-arrow-vertical { display: none; }
  /* An additional row starts a new sequence; don't point beyond its edge. */
  .process-step:nth-child(3n) .process-arrow-horizontal { display: none; }
  .process-step:nth-child(3n) .process-arrow-vertical { display: inline; }
}
@media (min-width: 1100px) {
  .process-layout.has-image { grid-template-columns: minmax(0, min(var(--process-image-share), calc(100% - 780px))) minmax(0, 1fr); }
  .process-layout.has-image.image-right { grid-template-columns: minmax(0, 1fr) minmax(0, min(var(--process-image-share), calc(100% - 780px))); }
  .process-layout.image-right .process-picture { grid-column: 2; grid-row: 1; }
  .process-layout.image-right .process-content { grid-column: 1; grid-row: 1; }
  .process-layout.image-right .process-picture::after { background: linear-gradient(to left, transparent 65%, rgb(255 255 255 / .55)); }
}
#hero .hero-eyebrow { color: var(--accent-color); font-size: .875rem; }
.contact-card-content { display: flex; flex-direction: column; align-items: stretch; gap: 3rem; }
.contact-card-content > .contact-group { position: relative; min-width: 0; width: 100%; }
.contact-card-content > .contact-group[hidden] { display: none; }
.contact-group > div { min-width: 0; width: 100%; }
.contact-card-content.has-dividers > .contact-group:not([hidden]) ~ .contact-group:not([hidden])::before {
  content: ""; position: absolute; pointer-events: none; background: var(--divider-color); opacity: .65;
  width: min(100%, var(--divider-length)); height: var(--divider-thickness);
  left: 0; top: -1.5rem;
  transform: translate(var(--divider-x), var(--divider-y));
}
@media (min-width: 1200px) {
  .contact-card-content { flex-direction: row; align-items: center; gap: 3rem; }
  .contact-card-content > .contact-group { width: auto; flex: 1 1 0; }
  .contact-card-content.has-dividers > .contact-group:not([hidden]) ~ .contact-group:not([hidden])::before {
    width: var(--divider-thickness); height: var(--divider-length); left: -1.5rem; top: 50%;
    transform: translate(var(--divider-x), calc(-50% + var(--divider-y)));
  }
}

/* The Hero photograph determines its own aspect ratio: never zoom or darken it.
   Copy shares the image row only on wide screens; compact layouts separate it. */
#hero.hero-with-image { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; background: #fff; align-items: stretch; }
#hero.hero-with-image .hero-background { position: relative; inset: auto; grid-column: 1; grid-row: 1; aspect-ratio: auto; width: 100%; align-self: center; overflow: visible; order: initial; }
#hero.hero-with-image .hero-photo { position: static; display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; filter: none; opacity: 1; }
#hero.hero-with-image .hero-content { grid-column: 1; grid-row: 1; min-width: 0; background: transparent; order: initial; }
#hero.hero-with-image .hero-highlights { grid-column: 1; grid-row: 2; order: initial; }
@media (max-width: 1199.98px) {
  #hero.hero-with-image .hero-background { grid-row: 1; align-self: start; }
  #hero.hero-with-image .hero-content { grid-row: 2; padding: 2rem 1.25rem; background: #edf3f7; --hero-title-color: #0f2744; }
  #hero.hero-with-image .hero-highlights { grid-row: 3; }
  #hero.hero-with-image .hero-copy { max-width: 100%; }
}

@media (max-width: 1199.98px) {
  /* The formerly overlaid white paragraph/buttons need contrast on the separate light panel. */
  #hero.hero-with-image .hero-description { color: #334155 !important; }
  #hero.hero-with-image .hero-actions a { background-color: #0f2744; color: #fff; }
}
